Mobile terminal-oriented function dynamic perception and task planning execution method and device

By employing a dynamic function perception and task planning execution method in bank mobile applications, and utilizing natural language parsing and a hierarchical knowledge base to generate action sequences, combined with front-end interactive interfaces to execute tasks, the inefficiency and security deficiencies of traditional technologies under dynamic interface changes are solved, achieving efficient and secure cross-application business automation processing.

CN123178116APending Publication Date: 2026-11-27CHINA CONSTRUCTION BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611193544.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-07
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Traditional automation solutions in bank mobile applications suffer from low efficiency, insufficient security, and inadequate compliance when the interface changes dynamically. Existing technologies struggle to automate and optimize complex cross-application business processes without breaching application permission boundaries.

Method used

A mobile-oriented approach to function dynamic perception and task planning and execution is adopted. A structured task context is generated by semantic parsing natural language instructions, and similarity retrieval is performed by combining a hierarchical task knowledge base to generate a sequence of actions to be executed. The actions are then executed step by step on the application interface. The operation is carried out using a front-end interactive interface of a technology stack type, and the execution results are verified in real time. An interface state comparison mechanism is established to avoid single-step error propagation.

Benefits of technology

It enables the efficient completion of complex cross-application business operations without exceeding application permission boundaries, improving execution efficiency and stability, meeting the security and compliance requirements of financial scenarios, and possessing self-optimization capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178116A_ABST
    Figure CN123178116A_ABST
Patent Text Reader

Abstract

The present application relates to a mobile terminal-oriented function dynamic perception and task planning execution method and device. First, natural language task instructions are received and structured task context is generated by parsing. Similarity retrieval is performed through a hierarchical task knowledge base. When a structured task execution template is matched, a to-be-executed action sequence is directly generated. When a template is not matched, an action sequence is generated by interface-by-interface disassembly. During execution, interface technology stack types are identified step by step. Through corresponding front-end interaction interface simulation operation, the single-step execution effect is verified by comparing the interface data before and after execution. When an exception occurs, the action sequence is dynamically updated. After the cold start task is completed, new execution templates are deposited in the knowledge base. The method of the present application does not require system-level high authority, has execution efficiency and scene robustness, and is suitable for mobile terminal business automation scenarios with high compliance requirements such as banks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of artificial intelligence technology, and in particular to a method and apparatus for dynamic perception of functions and task planning and execution for mobile devices. Background Technology

[0002] Against the backdrop of the deepening digital transformation in the banking industry, mobile devices have become the core carrier for business processing and customer service. Frontline operations and business personnel frequently need to complete operations such as information retrieval, data entry, and process flow across multiple business applications. The banking business system is characterized by a large number of systems, long process links, and frequent rule updates. Coupled with the dynamic changes in mobile interfaces, numerous pop-up distractions, and limited screen space, manual operations become highly complex, inefficient, and prone to operational risks and compliance pressures.

[0003] Traditional automation solutions often employ rule-driven RPA technology, which relies on fixed interface layouts and preset operation paths. They can only complete highly repetitive tasks in stable scenarios. When the application interface is updated or the business process is adjusted, static rules are prone to failure, resulting in high maintenance costs. Furthermore, they cannot understand the high-level business intent expressed in natural language, making it difficult to autonomously complete complex and long-chain tasks across applications.

[0004] Existing GUI intelligent agent solutions are mainly divided into two categories: one category adopts a system-level event injection path to achieve cross-application operations by obtaining underlying control permissions. This approach breaks through the application permission isolation boundary and triggers the security risk control mechanism of financial applications. The operation process cannot meet the mandatory requirements of data protection and compliance auditing, and cannot be implemented in sensitive scenarios such as banks. The other category is a pure real-time reasoning architecture-level solution that relies on the model to generate operation steps through successive reasoning. Although it does not require high permissions, it needs to be planned from scratch every time the same type of task is executed. The execution efficiency of repetitive tasks is low, and it lacks experience accumulation and self-optimization capabilities. Failure of a single step can easily lead to the interruption of the entire task chain, resulting in insufficient overall robustness.

[0005] Therefore, there is an urgent need to develop a mobile task intelligent execution solution that combines security and compliance, execution efficiency and scenario robustness, to achieve automated processing of complex cross-application business without exceeding application permission boundaries, and to have the ability to continuously self-optimize. Summary of the Invention

[0006] To address the problems existing in the prior art, embodiments of the present invention provide a method and apparatus for dynamic perception of functions and task planning and execution for mobile devices.

[0007] The specific technical solutions of this invention are as follows: On one hand, embodiments of the present invention provide a method for dynamic function perception and task planning and execution for mobile devices, the method comprising: Receive natural language task instructions submitted by users via mobile devices, perform semantic parsing on the natural language task instructions, and generate a structured task context; Based on the structured task context, a similarity search is performed in the hierarchical task knowledge base to obtain the target structured task execution template, and a sequence of actions to be executed is generated based on the target structured task execution template. The hierarchical task knowledge base stores multiple structured task execution templates. On the application interface of the mobile terminal, the pending actions in the pending action sequence are executed step by step. Before executing each pending action, the technology stack type of the current application interface is identified, the pre-execution interface data of the current application interface is extracted, and the pending action is executed through the front-end interaction interface corresponding to the technology stack type. After the pending action is executed, the post-execution interface data of the current application interface is extracted. Based on the pre-execution interface data and the post-execution interface data, it is determined whether the execution result of the pending action meets the expectation. If it meets the expectation, the next pending action in the pending action sequence is executed until all actions in the pending action sequence are executed, and the task execution result is output.

[0008] Further, a similarity search is performed in the hierarchical task knowledge base based on the structured task context to obtain the target structured task execution template, and a sequence of actions to be executed is generated based on the target structured task execution template, including: Determine whether there exists a target structured task execution template in the hierarchical task knowledge base whose similarity to the structured task context exceeds a similarity threshold. The content of the structured task execution template in the hierarchical task knowledge base includes the atomic action sequence, parameter placeholders, and execution preconditions of the corresponding task. If the target structured task execution template exists, then extract the atomic action sequence from the target structured task execution template, replace the parameter placeholders in the atomic action sequence with the business parameters in the structured task context, and obtain the action sequence to be executed; If the target structured task execution template does not exist, the interface data of the current application interface of the mobile terminal is obtained, and the atomic steps of the current application interface are generated by combining the structured task context and the interface data of the current application interface. After the atomic steps of the current application interface are executed, the interface data of the next application interface after it jumps are obtained, and the atomic steps of the next application interface are generated by continuing to decompose. All atomic steps constitute the sequence of actions to be executed.

[0009] Furthermore, the interface data includes interactive elements, control states, and page text content; The atomic step of generating the current application interface by combining the structured task context and the interface data of the current application interface includes: For the current application interface, the final execution target and business parameters in the structured task context are used as the task target; Based on the task objective and the page text content in the interface data of the current application interface, the target interactive elements and target control states within the current application interface are filtered, and the operation sequence of the target interactive elements and target controls is generated according to the order of operation execution, thereby obtaining at least one atomic step corresponding to the current application interface, and each atomic step corresponds to a directly executable interface operation.

[0010] Further, determining whether a target structured task execution template exists in the hierarchical task knowledge base and has a similarity exceeding a similarity threshold with the structured task context includes: The structured task context is vectorized, and the similarity between the vector corresponding to the structured task context and the execution templates of each structured task in the hierarchical task knowledge base is calculated. If there is a structured task execution template with a similarity exceeding the similarity threshold, then the structured task execution template is used as a candidate structured task execution template, and the execution preconditions of the candidate structured task execution template are verified. The structured task execution template with the highest similarity among the candidate structured task execution templates that pass the execution precondition verification is used as the target structured task execution template. If there is no structured task execution template with a similarity exceeding the similarity threshold, or if the preconditions for the execution of the candidate structured task execution template fail the validation, then the target structured task execution template does not exist.

[0011] Furthermore, if the target structured task execution template does not exist, the method further includes, after all actions in the sequence of actions to be executed have been completed: Generate a new structured task execution template corresponding to the sequence of actions to be executed, and store the new structured task execution template in the hierarchical task knowledge base.

[0012] Further, determining whether the execution result of the action to be executed meets expectations based on the pre-execution interface data and the post-execution interface data includes: By comparing the interface data after execution with the interface data before execution, the actual interface change data is obtained. Determine whether the actual interface change data matches the expected interface change data of the action to be performed; If the conditions are met, the execution result of the action to be performed is as expected. If not, the execution result of the action to be performed will not meet expectations.

[0013] Furthermore, if the execution result of the action to be performed does not meet expectations, the method further includes: Update the sequence of actions to be executed.

[0014] Further, updating the sequence of actions to be executed includes: By combining the instruction content of the action to be executed, the interface data before execution, the interface data after execution, and the execution return information of the action to be executed, the root cause of the abnormality of the action to be executed is analyzed. A repair strategy for the sequence of actions to be executed is generated based on the root cause of the anomaly, and the sequence of actions to be executed is repaired according to the repair strategy.

[0015] Furthermore, when the action to be performed is executed on the current application interface through the front-end interaction interface corresponding to the technology stack type, the operation process only simulates user input at the application layer interaction dimension, does not call system-level event injection permissions, and does not break the application's permission isolation boundary.

[0016] On the other hand, embodiments of the present invention also provide a function dynamic perception and task planning and execution device for mobile terminals, the device comprising: The task instruction receiving unit is used to receive natural language task instructions submitted by users through mobile terminals, perform semantic parsing on the natural language task instructions, and generate a structured task context. The action sequence generation unit is used to perform similarity retrieval in the hierarchical task knowledge base based on the structured task context to obtain the target structured task execution template, and generate the action sequence to be executed based on the target structured task execution template. The hierarchical task knowledge base stores multiple structured task execution templates. An execution unit is configured to progressively execute the actions in the sequence of actions to be executed on the application interface of the mobile terminal. Before executing each action, the unit identifies the technology stack type of the current application interface, extracts the pre-execution interface data of the current application interface, and executes the action to be executed through the front-end interaction interface corresponding to the technology stack type. After the action to be executed is completed, the unit extracts the post-execution interface data of the current application interface, and determines whether the execution result of the action to be executed meets expectations based on the pre-execution interface data and the post-execution interface data. If it meets expectations, the unit executes the next action to be executed in the sequence of actions to be executed until all actions in the sequence of actions to be executed are completed, and then outputs the task execution result.

[0017] On the other hand, embodiments of the present invention also provide a computer device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the above-described method.

[0018] On the other hand, embodiments of the present invention also provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method.

[0019] On the other hand, embodiments of the present invention also provide a computer program product, the computer program product including a computer program, which implements the above-described method when executed by a processor.

[0020] The method of this invention employs a dual-track execution mechanism combining knowledge base template reuse and real-time interface decomposition. For high-frequency repetitive tasks, it can directly match verified structured task execution templates, quickly generate execution sequences after parameter replacement, and significantly shorten decision-making time. For new tasks, it ensures scenario adaptability through real-time interface-by-interface decomposition, balancing execution efficiency and generalization ability. The execution method, which uses technology stack type recognition and corresponding front-end interaction interface matching, can adapt to various mobile page technologies such as native controls, WebView, and cross-platform rendering frameworks, eliminating the need for separate adaptation for different applications and improving universality and operational accuracy in complex application environments. A mechanism for comparing and verifying the interface state before and after each step of execution is established. After each step is completed, the execution effect is automatically verified, enabling timely detection and correction of execution anomalies, preventing single-step errors from propagating to the entire chain, and significantly improving the stability and overall success rate of task execution. The method of this invention simulates user operations throughout the entire task execution based on the application layer front-end interaction path, without calling system-level event injection permissions, without breaking the permission isolation boundary between applications, and the entire operation chain is traceable and auditable, which meets the security and compliance requirements of financial scenarios and will not trigger the risk control interception mechanism of the target application. Attached Figure Description

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

[0022] Figure 1 The diagram shown is a flowchart of a mobile-oriented function dynamic perception and task planning and execution method according to an embodiment of the present invention. Figure 2The diagram shows a flowchart illustrating the atomic steps of generating the current application interface by combining the structured task context with the interface data of the current application interface in an embodiment of the present invention. Figure 3 The diagram shown is a flowchart illustrating the process of updating the sequence of actions to be executed in an embodiment of the present invention. Figure 4 The diagram shown is a structural schematic of a mobile-oriented functional dynamic perception and task planning execution device according to an embodiment of the present invention. Figure 5 The diagram shown is a structural schematic of a computer device in an embodiment of the present invention.

[0023] [Explanation of Figure Markers]: 401. Task Instruction Receiving Unit; 402. Action sequence generation unit; 403. Execution Unit; 502. Computer equipment; 504, Processor; 506. Memory; 508. Drive mechanism; 510. Input / output module; 512. Input devices; 514. Output devices; 516. Presentation equipment; 518. Graphical User Interface; 520. Network interface; 522. Communication link; 524. Communication bus. Detailed Implementation

[0024] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present invention.

[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of the embodiments of the present invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the present invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, apparatus, product, or device that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.

[0026] It should be noted that the acquisition, storage, use, and processing of data in the technical solutions of this invention comply with the relevant provisions of national laws and regulations.

[0027] It should be noted that in the embodiments of this invention, certain existing solutions in the industry, such as software, components, and models, may be mentioned. These should be considered exemplary, and their purpose is merely to illustrate the feasibility of implementing the technical solution of this application, but does not mean that the applicant has already used or necessarily used such a solution. Similarly, the descriptions of prediction algorithms, table organization forms, and hardware structures are also exemplary.

[0028] To address the problems existing in the prior art, embodiments of the present invention provide a method and apparatus for dynamic function perception and task planning and execution for mobile devices. Figure 1 The diagram illustrates a flowchart of a mobile-oriented method for dynamic function perception and task planning execution according to an embodiment of the present invention. The order of steps listed in the embodiment is merely one possible execution order among many and does not represent the only possible execution order. In actual system or device products, the method can be executed sequentially or in parallel according to the embodiment or the accompanying drawings.

[0029] Specific examples Figure 1 As shown, the method may include: Step 101: Receive the natural language task instruction submitted by the user through the mobile terminal, perform semantic parsing on the natural language task instruction, and generate a structured task context; Step 102: Perform a similarity search in the hierarchical task knowledge base based on the structured task context to obtain the target structured task execution template, and generate a sequence of actions to be executed based on the target structured task execution template. The hierarchical task knowledge base stores multiple structured task execution templates. Step 103: On the application interface of the mobile terminal, execute the actions to be executed in the sequence step by step. Before executing each action, identify the technology stack type of the current application interface, extract the pre-execution interface data of the current application interface, and execute the action to be executed through the front-end interaction interface corresponding to the technology stack type. After the action to be executed is completed, extract the post-execution interface data of the current application interface, and determine whether the execution result of the action to be executed meets the expectations based on the pre-execution interface data and the post-execution interface data. If it meets the expectations, execute the next action to be executed in the sequence until all actions in the sequence are completed, and output the task execution result.

[0030] The mobile-oriented function dynamic perception and task planning and execution method provided in this embodiment can be applied to automated processing scenarios of cross-application business on bank mobile terminals. It is geared towards front-line operations staff, account managers, and other positions that frequently operate multiple business applications, replacing manual labor for repetitive tasks such as cross-application information queries, data transfers, and process approvals. The method runs entirely at the mobile application layer, using a lightweight floating window as the user interaction entry point. Users can initiate tasks without switching applications, and the interface perception, task planning, and action execution are completed in the background without acquiring system-level control permissions throughout the process.

[0031] Users can invoke the interactive interface via a floating window and input natural language task commands in text or voice. These commands are task objectives described by users in everyday language, without specifying specific operation paths or click locations, such as "Query a customer's transaction details for February 2026 and send it." Upon receiving the command, the content is first semantically parsed to generate a structured task context. During the parsing process, the core task intent of the command is first identified through a natural language understanding model. Then, named entity recognition is used to extract various parameter entities contained in the command, such as the target application, business object, and time range. Subsequently, the extracted entities are normalized and validated, and default execution rules and constraints are completed. Finally, the data is encapsulated into a structured task context in a unified data format, serving as a unified input benchmark for subsequent knowledge base retrieval and task decomposition.

[0032] The hierarchical task knowledge base of this invention is divided into two layers: an upper task index layer and a lower template execution layer. The task index layer stores the semantic vector, task classification label, and execution precondition summary corresponding to each execution template, which is used for fast retrieval and matching, reducing the computational overhead of full-database retrieval. The template execution layer stores complete structured task execution templates, the content of which includes the atomic action sequence, parameter placeholders, and execution preconditions of the corresponding task.

[0033] This can be understood as a layered design that ensures both retrieval efficiency and complete storage of reusable execution logic.

[0034] In this embodiment of the invention, a similarity search is performed in a hierarchical task knowledge base based on the structured task context to obtain a target structured task execution template, and a sequence of actions to be executed is generated based on the target structured task execution template.

[0035] In this embodiment of the invention, it is first determined whether there is a target structured task execution template in the hierarchical task knowledge base whose similarity to the structured task context exceeds a similarity threshold. If the target structured task execution template exists, the atomic action sequence in the target structured task execution template is extracted, and the parameter placeholders in the atomic action sequence are replaced with business parameters in the structured task context to obtain the action sequence to be executed, directly generating an executable action sequence to be executed. Each structured task execution template contains three parts: atomic action sequence, parameter placeholders, and execution preconditions. Its function is to solidify the verified successful execution process into a standardized reusable unit, avoiding repeated reasoning and planning for similar tasks, thereby improving execution efficiency and ensuring the stability of the execution process. Taking the above customer transaction detail query scenario as an example, the atomic action sequence of the corresponding template contains multiple interface operations executed sequentially. The parameter placeholders correspond to variable content such as customer name, query month, and recipient name. The execution preconditions limit the initial page to the application homepage, the application version to no less than a specified version, etc. After parameter replacement, it can be directly used for execution.

[0036] During retrieval, the structured task context is vectorized, and the similarity between the vector corresponding to the structured task context and the execution templates of each structured task in the hierarchical task knowledge base is calculated. If there is a structured task execution template with a similarity exceeding the similarity threshold, then the structured task execution template is used as a candidate structured task execution template, and the execution preconditions of the candidate structured task execution template are verified. The structured task execution template with the highest similarity among the candidate structured task execution templates that pass the execution precondition verification is used as the target structured task execution template. If there is no structured task execution template with a similarity exceeding the similarity threshold, or if the preconditions for the execution of the candidate structured task execution template fail the validation, then the target structured task execution template does not exist.

[0037] In this embodiment, the verification content of the preconditions may include the version requirements of the target application, the initial page state requirements, and the operation permission requirements.

[0038] If the target structured task execution template does not exist, the cold start disassembly mode is entered, and the sequence of actions to be executed is generated by advancing interface by interface and disassembling while executing, without the need to obtain all interface data of the entire task chain in advance.

[0039] Specifically, the interface data of the current application interface of the mobile terminal is obtained, and the atomic steps of the current application interface are generated by combining the structured task context and the interface data of the current application interface; after the atomic steps of the current application interface are executed, the interface data of the next application interface after it jumps are obtained, and the atomic steps of the next application interface are generated by continuing to decompose and generate the atomic steps of the next application interface. All atomic steps constitute the sequence of actions to be executed.

[0040] like Figure 2 The diagram shows a flowchart illustrating the atomic steps of generating the current application interface by combining the structured task context and the interface data of the current application interface in an embodiment of the present invention, including: Step 201: For the current application interface, take the final execution target and business parameters in the structured task context as the task target; Step 202: Based on the task objective and the page text content in the interface data of the current application interface, filter the target interactive elements and target control states in the current application interface, generate the operation sequence of the target interactive elements and target controls according to the order of operation execution, and obtain at least one atomic step corresponding to the current application interface. Each atomic step corresponds to a directly executable interface operation.

[0041] In this embodiment, the interface data includes interactive elements, control states, and page text content, where the page text content describes the interactive elements and control states. A multimodal semantic understanding model can be used to input the task objective, page text content, and element semantic information into the model. The model then evaluates the semantic relevance of all interactive elements and control states, selecting the target interactive elements and target control states with the highest relevance to the task objective, and automatically excluding irrelevant content such as advertising elements and unrelated function entry points. Subsequently, based on the logical dependencies of interface operations, the operation sequence of the target elements and controls is generated according to the order of operation execution, resulting in at least one atomic step corresponding to the current interface. Each atomic step corresponds to a directly executable interface operation. After all atomic steps of the current interface are executed, the interface jumps to the next application interface, and the interface data of the next application interface is obtained. The above decomposition process is repeated to generate subsequent operation steps.

[0042] Then, the actions in the sequence of actions to be executed can be executed step by step on the application interface of the mobile terminal. In this embodiment, the sequence of actions to be executed consists of multiple atomic actions arranged in execution order, and each action corresponds to a specific interface interaction operation. The sequence of actions to be executed is executed step by step on the application interface of the mobile terminal, and each execution of an action follows the closed-loop logic of perception, execution, and verification.

[0043] Before executing a single action, the technology stack type of the current application interface is identified using a page type sniffer. The technology stack type refers to the application interface's development technology architecture, with common types including native controls, WebView pages, and cross-platform rendering frameworks. Different technology stacks have different interface element organization logic and interaction triggering mechanisms; therefore, each technology stack corresponds to a dedicated set of front-end interaction interfaces, including element parsing interfaces and action execution interfaces. After identifying the technology stack type, the corresponding front-end interaction interface can be matched, ensuring the accuracy of element identification and action execution. After matching, the interface data before execution is extracted using the parsing interface, recording complete information such as the element's identifier, state, position, and text.

[0044] When executing actions, user interaction is simulated through the front-end interaction interface of the corresponding technology stack. The entire operation simulates user input only at the application layer interaction level, without invoking system-level event injection permissions or violating the permission isolation boundaries between applications. Specifically, native control interfaces trigger element click and input events through the application layer's accessibility service; WebView pages inject interaction scripts through a two-way bridging mechanism between native and web pages; and cross-platform rendered interfaces locate elements and trigger interactions through auxiliary services. All operations are within the application's own permission scope and do not inject global touch or input events into the system. This execution method does not trigger the security risk control mechanisms of financial applications, and all operations leave complete operation logs within the application, achieving end-to-end traceability and meeting the security compliance and auditing requirements of banking scenarios.

[0045] After the action is completed, the post-execution interface data of the current application interface is retrieved again, and the interface data before and after execution is compared to determine whether the execution result of the action meets expectations.

[0046] Each action to be executed generates corresponding expected interface change data simultaneously. This data is derived based on the action's operation type and target element attributes. For example, clicking the query button is expected to load a list of query results and display statistical text; the expected change for input text is to update the text content within the target input box. Differences between the interface data before and after execution are extracted, and changes in element states, page identifiers, core text, and other dimensions are statistically analyzed to generate actual interface change data. Semantic matching is calculated between the actual and expected interface change data. When the matching degree reaches a preset threshold, the action execution result is considered to meet expectations, and the next action in the action sequence continues. When the matching degree does not reach the preset threshold, the action execution result is considered to not meet expectations, triggering an update process for the action sequence. The execution effect is verified by comparing the interface states before and after execution, based on the fundamental characteristics of graphical interface operations: effective operations inevitably trigger corresponding state changes on the interface. Therefore, the degree of matching of state changes directly reflects the success or failure of the action execution.

[0047] If the execution result does not meet expectations, the entire sequence of actions to be executed is updated and adjusted.

[0048] like Figure 3 The diagram shown is a flowchart illustrating the process of updating the sequence of actions to be executed in an embodiment of the present invention, including: Step 301: Analyze the root cause of the abnormality of the action to be executed by combining the instruction content of the action to be executed, the interface data before execution, the interface data after execution, and the execution return information of the action to be executed; Step 302: Generate a repair strategy for the sequence of actions to be executed based on the root cause of the anomaly, and repair the sequence of actions to be executed according to the repair strategy.

[0049] In this embodiment of the invention, the instruction content of the current action to be executed, the interface data before execution, the interface data after execution, and the error information returned by the execution can be jointly input into the inference analysis model. The inference analysis model will classify the root causes of the anomalies. Common root causes of anomalies may include four categories: target element not found, no response to operation, abnormal page jump, and unexpected pop-up window.

[0050] For different root causes of anomalies, corresponding repair strategies are generated, and the sequence of actions to be executed is repaired as a whole.

[0051] If the root cause of the exception is that the target element is not found, it means that the current parsing strategy cannot accurately locate the target element. In this case, after switching the parsing strategy of the current interface, the positioning and execution method of the current action will be replaced in the original position of the sequence, and the current action will be retried directly. If the root cause of the exception is that the operation is unresponsive, which is often caused by the page not being fully loaded, then insert a page waiting step before the current action to extend the loading waiting time before executing the current action. If the root cause of the error is a page redirection error, it means that the operation entered an error page or did not redirect as expected. In this case, roll back to the interface state corresponding to the previous step, delete the current action and all subsequent steps in the original sequence, re-plan the subsequent operation steps based on the rolled-back interface and splice them into the sequence. If the abnormal root is due to an unexpected pop-up, a pop-up closing process is inserted before the current action. After the process is completed, the subsequent content of the original sequence continues to be executed.

[0052] This can be understood as an adjustment mechanism that targets the entire sequence of actions rather than just modifying a single action, thus addressing the chain reaction caused by anomalies and ensuring the continuity of the task chain.

[0053] After all actions in the action sequence have been executed, the final task execution result is output.

[0054] In mobile environments, interference such as system notification pop-ups, permission request boxes, application push overlays, and unexpected page jumps can frequently occur. This can directly lead to target element location failure and action execution failure, resulting in low task execution efficiency and insufficient fault tolerance. This problem is particularly prominent in banking applications, where scenarios such as security prompt pop-ups and identity verification pop-ups are common. To address this issue, this embodiment of the invention performs interface consistency verification and interference classification and handling before action execution, eliminating execution obstacles in advance, reducing invalid operation steps, and shifting anomaly handling from "post-event repair" to "pre-event prevention." This improves task execution efficiency and robustness in complex mobile interference environments, forming a double layer of protection with the original post-event anomaly repair mechanism.

[0055] Specifically, when the sequence of actions to be executed is generated, each action is simultaneously accompanied by corresponding expected preceding interface features, including page identifiers and attribute ranges of target elements. After extracting the interface data before execution, this embodiment first matches and verifies the features of the current interface with the expected preceding interface features corresponding to the current action to be executed, to determine whether the current interface is the target execution interface for the action to be executed. If the match is inconsistent, it indicates that the interface has unexpectedly jumped or deviated, and an interface rollback operation is performed to return to the specified initial interface and re-execute.

[0056] If a match is found, the process proceeds to the interference detection stage. All floating layers, pop-ups, and hovering elements are extracted from the pre-execution interface data. Combined with the structured task context and the coordinates of the target element in the current action, it is determined whether the element is an expected element within the task flow. If it is an unexpected element, it is further categorized into two types based on whether it obscures the target operation area: non-blocking interference (such as top notification bar pushes and edge floating icons, which do not obscure the target element) and blocking interference (such as permission request pop-ups, system prompts, and application upgrade pop-ups, which completely or partially obscure the target element).

[0057] For non-blocking interference, it is directly marked as ignored without additional processing, and the current pending action continues to be executed to avoid excessive processing affecting execution efficiency. For blocking interference, a preset handling rule library is matched, and the corresponding handling action is executed, such as clicking the pop-up close button, processing a regular permission request, or collapsing the notification bar. After the handling is completed, the interface data before execution is re-collected, and after passing the consistency check again, the current pending action is executed. For special blocking interference that cannot be handled automatically, the exception repair process is triggered and handed over to subsequent logic for processing.

[0058] According to one embodiment of the present invention, if the current task is an execution sequence generated in cold start mode, i.e., no target structured task execution template was matched before execution, then after the task is completed, the structured task context, complete sequence of actions to be executed, and execution preconditions corresponding to the current task can be extracted, and a new structured task execution template can be generated. This template is then synchronously stored in the task index layer and template execution layer of the hierarchical task knowledge base, and the index vector and template data are updated. When similar tasks are initiated subsequently, the template can be directly retrieved and matched for reuse. As the frequency of use increases, the task scenarios covered by the knowledge base continue to expand, and the overall execution efficiency and stability continue to improve, forming a self-evolving closed loop of execution, accumulation, and reuse.

[0059] Based on the same inventive concept, embodiments of the present invention also provide a mobile-oriented device for dynamic functional perception and task planning and execution, such as... Figure 4 The diagram shown is a structural schematic of a mobile-oriented functional dynamic perception and task planning execution device according to an embodiment of the present invention. The device includes: The task instruction receiving unit 401 is used to receive natural language task instructions submitted by users through mobile terminals, perform semantic parsing on the natural language task instructions, and generate a structured task context. The action sequence generation unit 402 is used to perform similarity retrieval in the hierarchical task knowledge base according to the structured task context to obtain the target structured task execution template, and generate the action sequence to be executed according to the target structured task execution template. The hierarchical task knowledge base stores multiple structured task execution templates. The execution unit 403 is used to execute the actions to be executed in the sequence of actions to be executed step by step on the application interface of the mobile terminal. Before executing each action to be executed, the technology stack type of the current application interface is identified, the pre-execution interface data of the current application interface is extracted, and the action to be executed is executed through the front-end interaction interface corresponding to the technology stack type. After the action to be executed is completed, the post-execution interface data of the current application interface is extracted, and the execution result of the action to be executed is determined based on the pre-execution interface data and the post-execution interface data. If the result meets the expectation, the next action to be executed in the sequence of actions to be executed is executed until all actions in the sequence of actions to be executed are completed, and the task execution result is output.

[0060] The beneficial effects obtained by the above-described device are the same as those obtained by the above-described method, and will not be described in detail in the embodiments of the present invention.

[0061] like Figure 5 As shown, a computer device provided in this embodiment can be used to execute the methods described herein. The computer device 502 may include one or more processors 504, such as one or more central processing units (CPUs), each of which may implement one or more hardware threads. The computer device 502 may also include any memory 506 for storing information of any kind, such as code, settings, data, etc. Without limitation, for example, memory 506 may include any type of RAM, any type of ROM, flash memory, hard disk, optical disk, etc. More generally, any memory can use any technology to store information. Further, any memory may provide volatile or non-volatile retention of information. Further, any memory may represent a fixed or removable component of the computer device 502. In one case, when processor 504 executes associated instructions stored in any memory or combination of memories, the computer device 502 may perform any operation of the associated instructions. The computer device 502 also includes one or more drive mechanisms 508 for interacting with any memory, such as hard disk drive mechanisms, optical disk drive mechanisms, etc.

[0062] Computer device 502 may also include an input / output module 510 (I / O) for receiving various inputs (via input device 512) and providing various outputs (via output device 514). A specific output mechanism may include a presentation device 516 and an associated graphical user interface (GUI) 518. In other embodiments, the input / output module 510 (I / O), input device 512, and output device 514 may be omitted, and the device may function solely as a computer device within a network. Computer device 502 may also include one or more network interfaces 520 for exchanging data with other devices via one or more communication links 522. One or more communication buses 524 couple the components described above together.

[0063] Communication link 522 can be implemented in any way, such as via a local area network, a wide area network (e.g., the Internet), a point-to-point connection, or any combination thereof. Communication link 522 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc., governed by any protocol or combination of protocols.

[0064] This invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method.

[0065] This invention also provides a computer-readable instruction, wherein when a processor executes the instruction, the program therein causes the processor to perform the above-described method.

[0066] It should be understood that in various embodiments of the present invention, the order of the above-mentioned process numbers does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the present invention.

[0067] It should also be understood that, in the embodiments of the present invention, the term "and / or" is merely a description of the relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the embodiments of the present invention, the character " / " generally indicates that the preceding and following associated objects have an "or" relationship.

[0068] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed in this invention can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of the embodiments of this invention.

[0069] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0070] In the embodiments provided in this invention, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices, or units, or it may be an electrical, mechanical, or other form of connection.

[0071] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the embodiments of the present invention, depending on actual needs.

[0072] Furthermore, in the various embodiments of the present invention, the functional units can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0073] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0074] The embodiments of this invention have been described using specific examples to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of the embodiments of this invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the embodiments of this invention. Therefore, the content of this specification should not be construed as a limitation on the embodiments of this invention.

Claims

1. A method for dynamic function perception and task planning and execution for mobile devices, characterized in that, The method includes: Receive natural language task instructions submitted by users via mobile devices, perform semantic parsing on the natural language task instructions, and generate a structured task context; Based on the structured task context, a similarity search is performed in the hierarchical task knowledge base to obtain the target structured task execution template, and a sequence of actions to be executed is generated based on the target structured task execution template. The hierarchical task knowledge base stores multiple structured task execution templates. On the application interface of the mobile terminal, the pending actions in the pending action sequence are executed step by step. Before executing each pending action, the technology stack type of the current application interface is identified, the pre-execution interface data of the current application interface is extracted, and the pending action is executed through the front-end interaction interface corresponding to the technology stack type. After the pending action is executed, the post-execution interface data of the current application interface is extracted. Based on the pre-execution interface data and the post-execution interface data, it is determined whether the execution result of the pending action meets the expectation. If it meets the expectation, the next pending action in the pending action sequence is executed until all actions in the pending action sequence are executed, and the task execution result is output.

2. The method according to claim 1, characterized in that, Based on the structured task context, a similarity search is performed in the hierarchical task knowledge base to obtain the target structured task execution template, and a sequence of actions to be executed is generated based on the target structured task execution template, including: Determine whether there exists a target structured task execution template in the hierarchical task knowledge base whose similarity to the structured task context exceeds a similarity threshold. The content of the structured task execution template in the hierarchical task knowledge base includes the atomic action sequence, parameter placeholders, and execution preconditions of the corresponding task. If the target structured task execution template exists, then extract the atomic action sequence from the target structured task execution template, replace the parameter placeholders in the atomic action sequence with the business parameters in the structured task context, and obtain the action sequence to be executed; If the target structured task execution template does not exist, the interface data of the current application interface of the mobile terminal is obtained, and the atomic steps of the current application interface are generated by combining the structured task context and the interface data of the current application interface. After the atomic steps of the current application interface are executed, the interface data of the next application interface after it jumps are obtained, and the atomic steps of the next application interface are generated by continuing to decompose. All atomic steps constitute the sequence of actions to be executed.

3. The method according to claim 2, characterized in that, The interface data includes interactive elements, control states, and page text content; The atomic step of generating the current application interface by combining the structured task context and the interface data of the current application interface includes: For the current application interface, the final execution target and business parameters in the structured task context are used as the task target; Based on the task objective and the page text content in the interface data of the current application interface, the target interactive elements and target control states within the current application interface are filtered, and the operation sequence of the target interactive elements and target controls is generated according to the order of operation execution, thereby obtaining at least one atomic step corresponding to the current application interface, and each atomic step corresponds to a directly executable interface operation.

4. The method according to claim 2, characterized in that, Determining whether a target structured task execution template exists in the hierarchical task knowledge base with a similarity exceeding a similarity threshold to the structured task context includes: The structured task context is vectorized, and the similarity between the vector corresponding to the structured task context and the execution templates of each structured task in the hierarchical task knowledge base is calculated. If there is a structured task execution template with a similarity exceeding the similarity threshold, then the structured task execution template is used as a candidate structured task execution template, and the execution preconditions of the candidate structured task execution template are verified. The structured task execution template with the highest similarity among the candidate structured task execution templates that pass the execution precondition verification is used as the target structured task execution template. If there is no structured task execution template with a similarity exceeding the similarity threshold, or if the preconditions for the execution of the candidate structured task execution template fail the validation, then the target structured task execution template does not exist.

5. The method according to claim 2, characterized in that, If the target structured task execution template does not exist, then after all actions in the sequence of actions to be executed have been completed, the method further includes: Generate a new structured task execution template corresponding to the sequence of actions to be executed, and store the new structured task execution template in the hierarchical task knowledge base.

6. The method according to claim 1, characterized in that, Determining whether the execution result of the action to be executed meets expectations based on the pre-execution interface data and the post-execution interface data includes: By comparing the interface data after execution with the interface data before execution, the actual interface change data is obtained. Determine whether the actual interface change data matches the expected interface change data of the action to be performed; If the conditions are met, the execution result of the action to be performed is as expected. If not, the execution result of the action to be performed will not meet expectations.

7. The method according to claim 6, characterized in that, If the execution result of the action to be performed does not meet expectations, the method further includes: Update the sequence of actions to be executed.

8. The method according to claim 7, characterized in that, Updating the sequence of actions to be executed includes: By combining the instruction content of the action to be executed, the interface data before execution, the interface data after execution, and the execution return information of the action to be executed, the root cause of the abnormality of the action to be executed is analyzed. A repair strategy for the sequence of actions to be executed is generated based on the root cause of the anomaly, and the sequence of actions to be executed is repaired according to the repair strategy.

9. The method according to claim 1, characterized in that, When the action to be performed is executed on the current application interface through the front-end interaction interface corresponding to the technology stack type, the operation process only simulates user input at the application layer interaction dimension, does not call system-level event injection permissions, and does not break the application's permission isolation boundary.

10. A mobile-terminal-oriented device for dynamic functional perception and task planning and execution, characterized in that, The device includes: The task instruction receiving unit is used to receive natural language task instructions submitted by users through mobile terminals, perform semantic parsing on the natural language task instructions, and generate a structured task context. The action sequence generation unit is used to perform similarity retrieval in the hierarchical task knowledge base based on the structured task context to obtain the target structured task execution template, and generate the action sequence to be executed based on the target structured task execution template. The hierarchical task knowledge base stores multiple structured task execution templates. An execution unit is configured to progressively execute the actions in the sequence of actions to be executed on the application interface of the mobile terminal. Before executing each action, the unit identifies the technology stack type of the current application interface, extracts the pre-execution interface data of the current application interface, and executes the action to be executed through the front-end interaction interface corresponding to the technology stack type. After the action to be executed is completed, the unit extracts the post-execution interface data of the current application interface, and determines whether the execution result of the action to be executed meets expectations based on the pre-execution interface data and the post-execution interface data. If it meets expectations, the unit executes the next action to be executed in the sequence of actions to be executed until all actions in the sequence of actions to be executed are completed, and then outputs the task execution result.

11. A computer device comprising a memory, a processor, and a computer program stored in the memory, characterized in that, When the processor executes the computer program, it implements the method according to any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method of any one of claims 1 to 9.

13. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the method of any one of claims 1 to 9.