A cognitive decision-making and task execution method, medium and system based on a three-layer cascading architecture
By employing a three-layer cascaded architecture for cognitive decision-making, the uncertainty level of the state is calculated in real time and the calculation path is dynamically adjusted. This solves the problem of computational resource mismatch in multimodal cognitive decision-making systems under different uncertainty levels of input states, achieving tight coupling between computational resources and task requirements and ensuring inference accuracy.
Patent Information
- Application Number
- CN202611694350.1
- 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
Existing multimodal cognitive decision-making systems cannot adaptively allocate computational depth, resulting in a severe mismatch between computational resources and actual task requirements when dealing with input states of different uncertainty levels. In particular, improper allocation of computational resources leads to redundant computation or decreased inference accuracy in stable repetitive patterns with low uncertainty and sudden abnormal scenarios with high uncertainty.
A cognitive decision-making method based on a three-layer cascaded architecture is adopted. The state uncertainty level is calculated in real time through a spatiotemporal state cascaded perception model, and the computation path is dynamically adjusted. An adaptive directed acyclic graph structure and a reinforcement learning router are used, combined with a planning agent and an expert agent negotiation group to achieve adaptive allocation of computation depth. The configuration of computational resources is optimized through full-link closed-loop learning.
It achieves tight coupling between computing resources and task requirements under input states with different levels of uncertainty, reduces redundant computing, ensures inference accuracy in complex scenarios, and improves the success rate of end-to-end execution.
Smart Images

Figure CN123180211A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of artificial intelligence and natural language processing technology. Specifically, it relates to a cognitive decision-making and task execution method, medium, and system based on a three-layer cascaded architecture. Background Technology
[0002] In the field of intelligent decision-making and task execution, existing systems typically employ fixed-depth neural network inference architectures or rule-based expert systems to handle multimodal inputs, combined with reinforcement learning routers or multi-agent negotiation mechanisms to complete action planning. These systems have been widely applied in scenarios such as autonomous driving, industrial robot control, industrial IoT state monitoring, and multi-agent collaboration. However, these methods generally send all input states indiscriminately into computational paths of the same depth. Regardless of whether the input state is a highly stable repetitive instruction or a complex scenario with sudden anomalies, the same amount of computational resources are consumed, lacking a mechanism to dynamically shrink or expand the computational depth based on the amount of state information. Under continuous high-frequency input conditions, when a large number of input states belong to stable repetitive patterns with low uncertainty, fixed-depth inference results in a large amount of redundant computation. Furthermore, when environmental changes cause a sharp increase in input uncertainty, if the system has no computational budget margin, it cannot switch to a deeper inference path in time, leading to a decrease in inference accuracy and severely impacting the overall execution success rate. In other words, existing technologies suffer from the technical problem that multimodal cognitive decision-making systems cannot adaptively allocate computational depth when handling input states with different levels of uncertainty, resulting in a severe mismatch between computational resources and actual task requirements. Summary of the Invention
[0003] In view of this, the present invention provides a cognitive decision-making and task execution method, medium and system based on a three-layer cascaded architecture, which can solve the technical problem in the prior art that multimodal cognitive decision-making systems cannot adaptively allocate computation depth when dealing with input states of different uncertainty levels, resulting in a serious mismatch between computational resources and actual task requirements.
[0004] The present invention is implemented as follows: The first aspect of the present invention provides a cognitive decision-making and task execution method based on a three-layer cascaded architecture, comprising the following steps: Multimodal input data is collected, uniformly encoded into a standardized state token sequence through a spatiotemporal state cascaded perception model, and the novelty, change magnitude and task relevance of each state unit are calculated to generate a state uncertainty level. Based on the state uncertainty level, the state token sequence is fed into an adaptive directed acyclic graph structure, and a reverse index matching is performed using a non-forward priority indexing strategy based on information entropy distribution. The dynamic confidence evaluation result determines whether to trigger the binding execution rule. For state token sequences that are not hit with high confidence, the semantic vectors are extracted and normalized by the multimodal semantic encoder, and then mapped to discrete state codes by the vector quantization module. The reinforcement learning router queries the state action value table and outputs the ontology knowledge subgraph index or decision strategy identifier. For requests with an output confidence level lower than the routing confidence threshold or a task step count exceeding the single route processing limit, a heterogeneous negotiation group consisting of a planning agent, a domain expert agent, a reflective verification agent, and a symbolic reasoning engine performs parallel reasoning under the constraints of the activated ontology knowledge subgraph. An action sequence is generated through dynamic reputation-weighted consensus, and the reflective verification agent performs security checks. The action sequence is executed through the embodied interface or application interface gateway, and the intermediate state and final result of the execution are collected in real time. If the execution is blocked, a self-correction loop is triggered, requiring the planning agent to regenerate the action sequence. After the execution is completed, the successful path and reward signal are synchronously transmitted back to the parameter update module of the adaptive directed acyclic graph structure and reinforcement learning router. Based on the returned revenue signals, the exponential moving average confidence and hit count of the nodes in the adaptive directed acyclic graph are updated respectively, and lazy global pruning is performed; the state action value table of the reinforcement learning router and the reputation weight of each expert agent are updated simultaneously to complete the full-link closed-loop learning.
[0005] Specifically, the spatiotemporal state cascaded perception model is a deep learning-based perception model. The input layer receives natural language, visual features, sensor readings, and ontological entity sequences. Each modality is mapped to a unified state space vector through a dedicated coding sub-network. A three-dimensional state index is established based on timestamps, spatial locations, and state change rates. The front-end sparse perception layer calculates the novelty, change magnitude, and task relevance of each state unit, and only activates neural connections with information value scores higher than the sparse activation threshold.
[0006] The calculation of the information value score is specifically a weighted sum of three indicators: novelty, variation range, and task relevance. Novelty is the cosine distance between the current state vector and the weighted average hidden state stored in the continuous state memory unit. Variation range is the Euclidean distance between the current state vector and the state vector of the previous time step. Task relevance is the normalized value of the dot product between the current state vector and the task target embedding vector.
[0007] The spatiotemporal state cascaded perception model includes a dynamic routing adjustment function. This function calculates the comprehensive routing pressure value based on three data points: state uncertainty level, prediction error rate, and remaining computational budget ratio. It then adjusts the sparse activation threshold to a high-sparse policy range, a medium-sparse policy range, or a low-sparse policy range based on the range of the comprehensive routing pressure value, in order to adapt to the number of activated neuron connections under different task uncertainty levels.
[0008] The spatiotemporal state cascaded perception model is equipped with multi-level gating nodes. The multi-level gating nodes define the state uncertainty level as the weighted variance of the information value scores of each activated unit in the preceding sparse perception layer. Based on the state uncertainty level, the input is determined to enter the shallow fast path or the deep inference path. When the prediction error rate continues to increase within a consecutive preset time step, the gating node initiates a limited range of hidden layer backtracking, only recalculating the local state chain that caused the error.
[0009] The adaptive directed acyclic graph structure is a data structure that integrates a prefix tree structure and a directed acyclic graph structure. It is used to store and retrieve high-frequency state action mapping patterns and supports dynamic addition and deletion of nodes and cross-path sharing. The non-forward priority indexing strategy specifically starts state transition matching from the last token of the state token sequence to prioritize traversing positions with higher information entropy and quickly locate high-probability subtrees.
[0010] Specifically, the binding execution rules include stable state binding. Stable state binding refers to the strong binding of a state path with a fixed execution rule identifier when the number of consecutive hits of a certain state path reaches the stable binding hit threshold and the confidence level is higher than the stable confidence threshold. Subsequently, the execution is directly triggered without entering the subsequent layer calculation. The nodes of the adaptive directed acyclic graph structure are also equipped with fuzzy jump edges, which allow the state transition to be completed even when there is a finite edit distance between the current token and the stored token.
[0011] Specifically, the vector quantization module maintains a codebook containing a preset number of cluster centers, maps continuous semantic vectors to nearest neighbor cluster center indices, and forms discrete state codes. The state-action value table is a two-dimensional lookup table maintained by the reinforcement learning router, with row indices being discrete state codes and column indices being ontology knowledge subgraph indices or decision policy identifiers. The elements in the table are the cumulative expected revenue estimates for the corresponding state-action pairs.
[0012] Specifically, the update of the state-action value table is performed using a temporal differential learning method. The cumulative expected return of the current state-action pair is estimated based on the immediate return, discount factor, and maximum action value of the next state. The learning rate and discount factor are determined through grid search experiments in a simulation environment using the number of routing convergence rounds and the final route accuracy as indicators.
[0013] Specifically, the dynamic reputation-weighted consensus mechanism involves initial equal weights for each expert agent, followed by real-time Bayesian updates based on environmental feedback after each task execution. If a proposed decision receives positive environmental feedback, its weight increases; if it leads to execution failure, its weight decreases. The overall score is a weighted sum of the products of each expert agent's weight and its confidence in the candidate action sequence.
[0014] Specifically, when execution is blocked, the reflection and verification agent feeds back the error information as context input to the planning agent. The planning agent then regenerates the action sequence and executes it in a loop until the task is completed or the maximum number of retries is reached. The maximum number of retries is determined experimentally by statistically analyzing the change in the success rate of correction with the number of retries in typical failure scenarios.
[0015] Specifically, the exponential moving average confidence update is achieved by weighting the old confidence with a decay coefficient and then adding the normalized return value from the execution result or user feedback to form a new confidence. The decay coefficient is determined iteratively in multiple rounds of simulation experiments, using the confidence convergence speed and noise resistance as indicators.
[0016] Specifically, the lazy global pruning involves asynchronously triggering a global scan after each preset number of matching calls to remove low-value nodes with a confidence level below the degradation confidence threshold. The preset number of calls and the degradation confidence threshold are determined through experimental iterations that balance memory usage and pattern retention rate.
[0017] The training of the spatiotemporal state cascaded perception model specifically employs a multi-task joint training strategy. The loss function consists of a weighted sum of classification cross-entropy loss, state continuity loss, physical change continuity loss, and sparse activation regularization term. First, the codebook of the vector quantization module is pre-trained using unlabeled multimodal data. Then, the entire network is fine-tuned end-to-end using labeled data. The training convergence criterion is that the overall loss decreases by less than 0.1% over 10 consecutive rounds of validation set.
[0018] The sparse activation threshold ranges from 0.0 to 1.0, with a range of 0.7 to 1.0 under a high-sparse strategy, 0.4 to 0.7 under a medium-sparse strategy, and 0.0 to 0.4 under a low-sparse strategy. The recommended range for the stable binding hit threshold is 30 to 80 times, and the recommended range for the stable confidence threshold is 0.80 to 0.95. The recommended range for the routing confidence threshold is 0.50 to 0.70. The recommended range for the degradation confidence threshold is 0.20 to 0.40. The recommended range for the maximum number of retries is 3 to 10 times. The recommended range for the decay coefficient of the continuous state memory unit is 0.90 to 0.99. The recommended range for the decay coefficient in the exponential moving average confidence update is 0.990 to 0.999.
[0019] A second aspect of the present invention provides a computer-readable storage medium storing program instructions, which, when executed in a computer, are used to perform the aforementioned cognitive decision-making and task execution method based on a three-layer cascaded architecture.
[0020] A third aspect of the present invention provides a cognitive decision-making and task execution system based on a three-layer cascaded architecture, comprising the aforementioned computer-readable storage medium, wherein the system is a computer, the computer-readable storage medium is disposed within the system, and the system is provided with a microprocessor for executing program instructions stored in the computer-readable storage medium.
[0021] This invention introduces a dynamic cascading algorithm based on state entropy into the spatiotemporal state cascading perception model. It calculates the novelty, magnitude of change, and task relevance of each input state unit in real time, forming a state uncertainty level. This level drives the dynamic selection of computational paths in the three-layer cascading architecture, solving the technical problem of multimodal cognitive decision-making systems' inability to adaptively allocate computational depth. For stable states with low uncertainty, the system directly hits high-frequency rules along shallow, fast paths in an adaptive directed acyclic graph, significantly reducing redundant reasoning. For states with increasing uncertainty, the system progressively descends to reinforcement learning routers and even heterogeneous agent negotiation groups to perform deep reasoning, ensuring reasoning accuracy in complex scenarios. Continuous monitoring of prediction errors and a dynamic path recovery mechanism ensure that the computational savings accumulated in the stable phase become a budget margin for deep reasoning in the abrupt change phase. In summary, this invention solves the technical problem mentioned in the background art: multimodal cognitive decision-making systems cannot adaptively allocate computational depth when dealing with input states with different uncertainty levels, leading to a severe mismatch between computational resources and actual task requirements. Attached Figure Description
[0022] Figure 1 This is a flowchart of the method of the present invention.
[0023] Figure 2 This is a graph showing the cumulative number of frames processed by each layer of the three-layer cascaded architecture of this invention over time.
[0024] Figure 3 This is a convergence curve of the state-action value table during the closed-loop learning process of this invention. Detailed Implementation
[0025] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below.
[0026] S01. Collect multimodal input data, encode it into a standardized state token sequence through a spatiotemporal state cascaded perception model, and calculate the novelty, change magnitude and task relevance of each state unit to generate a state uncertainty level. S02. Based on the state uncertainty level, the state token sequence is sent into an adaptive directed acyclic graph structure, and a reverse index matching is performed using a non-forward priority indexing strategy based on information entropy distribution. The dynamic confidence evaluation result determines whether to trigger the binding execution rule. S03. For the state token sequence that was not hit with high confidence by S02, the semantic vector is extracted and normalized by the multimodal semantic encoder, and mapped to the discrete state code by the vector quantization module. The reinforcement learning router queries the state action value table and outputs the ontology knowledge subgraph index or decision strategy identifier. S04. For requests whose output confidence level is lower than the routing confidence threshold or whose number of task steps exceeds the single route processing limit, a heterogeneous negotiation group consisting of a planning agent, a domain expert agent, a reflective verification agent, and a symbolic reasoning engine will conduct parallel reasoning under the constraints of the activated ontology knowledge subgraph, generate an action sequence through dynamic reputation weighted consensus, and have the reflective verification agent perform security verification. S05. Execute the action sequence output by S04 through the embodied interface or application interface gateway, and collect the intermediate state and final result of the execution in real time; if the execution is blocked, trigger the self-correction loop, requiring the planning agent to regenerate the action sequence; after the execution is completed, the successful path and reward signal are synchronously sent back to the parameter update modules of S02 and S03. S06. Based on the revenue signal returned from S05, update the exponential moving average confidence and hit count of the nodes in the adaptive directed acyclic graph, and perform lazy global pruning; simultaneously update the state action value table of the reinforcement learning router and the reputation weight of each expert agent to complete the full-link closed-loop learning.
[0027] The multimodal input data refers to one or more of the following: natural language text, sensor discrete status codes, ontology entity identifier sequences, and multimodal fusion features.
[0028] The state token sequence refers to a standardized discrete symbol sequence transformed from multimodal input data after unified encoding preprocessing, with each element in the sequence corresponding to a state identifier.
[0029] The spatiotemporal state cascaded perception model is based on deep learning. Its specific structure is as follows: the input layer receives natural language, visual features, sensor readings, and ontological entity sequences. Each modality is mapped to a unified state space vector via a dedicated encoding sub-network. Subsequently, a three-dimensional state index is established based on timestamps, spatial locations, and state change rates. The pre-processor sparse perception layer does not perform complete feature interaction but instead calculates the novelty of each state unit. Variation range Relevance to the task Three indicators, novelty The cosine distance between the current state vector and the weighted average hidden state stored in the continuous state memory unit from the previous time step, and the magnitude of its change. The Euclidean distance between the current state vector and the previous state vector represents the task relevance. The information value score is the normalized value of the dot product between the current state vector and the task target embedding vector; the three indicators are weighted and summed to form the information value score. Only activation information value scores higher than the sparse activation threshold are activated. The neural connections are set to zero, while the remaining connections are set to zero, achieving dynamic sparse sensing. The continuous-state memory unit stores the hidden state from the previous time step using a decay coefficient. The data is saved, and new inputs only update local regions where the information value score exceeds a threshold, avoiding redundant calculations of stable regions. The intermediate layer uses multi-level gating nodes to manage the level of state uncertainty. Defined as the weighted variance of the information value scores of each activation unit in the preceding sparse perception layer, the gate node is based on The decision is made whether the input enters a shallow, fast path or a deep inference path; when the prediction error rate is continuous When the value continuously increases within a time step, the gate node initiates a limited range of hidden layer backtracking, recalculating only the local state chain that caused the error. Long-span residual jumps are used between different layers to directly pass stable states from lower layers to higher layers, reducing redundant feature extraction. During network training, the state continuity loss is simultaneously constrained. With the loss of continuity of physical change This ensures that the output actions or states do not exhibit abrupt changes that violate physical boundaries. The final output layer also generates the task confidence score. With calculation budget Both factors jointly determine the depth of subsequent computation, enabling the computational load to adaptively change with the uncertainty level of the actual task. The dynamic cascading algorithm based on state entropy is integrated into the path selection mechanism of the gated nodes: the first stage calculates the variation amplitude, modal consistency, historical hit rate, and anomaly degree of continuous input to form a state uncertainty level; the second stage selects a high-speed matching, semantic routing, or deep inference path based on the uncertainty level; the third stage continuously monitors the prediction error during execution, shortening subsequent computation paths if the error remains low, and restoring skipped computation layers if the error suddenly increases; the fourth stage feeds back the final execution result to the state entropy estimation submodule, readjusting the exit threshold for the next task, so that the computation path length adaptively changes with the stability of the environmental state. The number of activated connections between neurons is dynamically determined by the information value score, and the sparse activation threshold... Through dynamic routing adjustment function Update; the jump depth between layers is determined by the gating node based on the state uncertainty level. Dynamic allocation; the backtracking scope of data loops is limited to the local state chain that generates errors; video memory allocation prioritizes the retention of key memories related to the current task objective, abnormal states, and decision inflection points, and performs summary compression and incremental updates on continuously repeating states; memory allocation determines the priority of entering the computation window based on the time freshness, information density, and rate of change of each modal stream, and performs local corrections on late data instead of blocking the entire processing pipeline.
[0030] The steps for establishing the training dataset for the spatiotemporal state cascaded perception model specifically include: collecting multimodal synchronization data in scenarios such as autonomous driving, robot control, industrial IoT, and multi-agent collaboration, with data types covering natural language commands, camera image sequences, LiDAR point clouds, sensor time-series readings, and entity state sequences; aligning the collected data to multiple modalities based on timestamps, labeling the task objective, state change event type, and physical boundary constraints for each time frame; constructing positive and negative sample pairs, where positive samples are successful complete multimodal state sequences, and negative samples are state sequences that failed execution or triggered physical mutations; and dividing the dataset into training, validation, and test sets in a 7:2:1 ratio.
[0031] The specific steps for training the spatiotemporal state cascaded perception model include: employing a multi-task joint training strategy, with the loss function consisting of classification cross-entropy loss. loss of state continuity Continuity loss due to physical changes With sparse activation regularization The weighted summation is used to construct the network, and the weight coefficients are obtained through iterative grid search experiments on the validation set. First, the codebook of the vector quantization module is pre-trained with unlabeled multimodal data, so that semantically similar inputs are mapped to the same or adjacent discrete state codes. Then, the entire network is fine-tuned end-to-end with labeled data. During training, the path selection threshold of the gate nodes is dynamically adjusted according to the prediction error rate of the validation set. The training convergence criterion is that the decrease in the comprehensive loss of the validation set is less than 0.1% for 10 consecutive rounds.
[0032] Wherein, the dynamic routing adjustment function Used to adjust the sparse activation threshold in a spatiotemporal state cascade sensing model To adapt to the number of activated neuron connections under different levels of task uncertainty. Based on state uncertainty level Prediction error rate Compared with the calculated budget surplus ratio The three data points are used to calculate the overall routing pressure value. The calculation method is as follows ,in , , These are the weighting coefficients calibrated through experiments; when At that time, a high sparsity strategy is adopted to... Increase to In a given interval, activate the fewest number of neuron connections to maximize computational savings; when At that time, a moderately sparse strategy is adopted to... Adjust to Range, balancing accuracy and speed; when At that time, a low sparsity strategy is adopted to... Reduce to Within a given interval, activate as many neuronal connections as possible to ensure inference accuracy. , , The recommended value ranges are as follows: , and The comprehensive inference latency and task success rate were determined iteratively by performing multiple rounds of ablation experiments on the validation set.
[0033] The adaptive directed acyclic graph refers to a data structure that integrates a prefix tree structure and a directed acyclic graph structure. It is used to store and retrieve high-frequency state action mapping patterns and supports dynamic addition and deletion of nodes and cross-path sharing.
[0034] The information entropy distribution refers to the Shannon entropy distribution of the probability of occurrence of symbols at each position in the state token sequence, with positions having higher entropy values corresponding to state identifiers with greater information content.
[0035] The non-forward priority indexing strategy refers to performing state transition matching from the end token of the sequence in the adaptive directed acyclic graph, rather than starting from the beginning of the sequence, in order to prioritize traversing positions with higher information entropy and quickly locate high-probability subtrees.
[0036] The fuzzy jump edge refers to the preset fault-tolerant jump path in the adaptive directed acyclic graph node, which allows the state transition to be completed even when there is a finite edit distance between the current token and the stored token, thus avoiding matching interruption due to input noise.
[0037] The formula for updating the confidence level of the exponential moving average is as follows: ,in For the new confidence level, For the old confidence level, The normalized revenue value is derived from the execution results or explicit user feedback. The attenuation coefficient is recommended to have a value range of [value range missing]. The specific value is determined iteratively through multiple rounds of simulation experiments, using confidence convergence speed and noise immunity as indicators.
[0038] The stable state binding refers to the process where, when the number of consecutive hits of a certain state path reaches the stable binding hit threshold and the confidence level is higher than the stable confidence threshold, it is strongly bound to a fixed execution rule identifier, and subsequent execution is directly triggered without entering the subsequent layer calculation. The recommended range for the stable binding hit threshold is 30 to 80 times, and the recommended range for the stable confidence threshold is 0.80 to 0.95. Both are determined through statistical analysis experiments on high-frequency instructions in the production environment.
[0039] The lazy global pruning refers to the asynchronous triggering of a global scan after each preset number of matching calls to remove low-value nodes with confidence levels below the degradation confidence threshold. The recommended range for the preset number of calls is 500 to 2000, and the recommended range for the degradation confidence threshold is 0.20 to 0.40, which is determined through experimental iterations that balance memory usage and pattern retention rate.
[0040] The vector quantization module refers to maintaining a set of vector quantization modules. The codebook of each cluster center maps continuous semantic vectors to the nearest neighbor cluster center index, forming discrete state codes. The recommended range is 256 to 4096, which was determined through analysis and experiments on the number of nodes in the target scene ontology network.
[0041] The state-action value table refers to a two-dimensional lookup table maintained by the reinforcement learning router. The row index is a discrete state code, the column index is an ontology knowledge subgraph index or a decision policy identifier, and the elements in the table are the cumulative expected revenue estimates of the corresponding state-action pairs.
[0042] The update formula for the state-action value table is as follows: ,in For the learning rate, the recommended value range is [range missing]. , The recommended value range for the discount factor is: , For immediate gains, The next discrete state to which the action is transferred after the action is performed; the above parameters were determined through grid search experiments in a simulation environment with the number of routing convergence rounds and the final routing accuracy as indicators.
[0043] The routing confidence threshold refers to the lower bound value for determining whether the output of S03 meets the direct execution requirements. Outputs below this value are considered to have too high uncertainty and are relegated to the S04 layer. The recommended value range is 0.50 to 0.70, which is determined through ablation experiments on the misrouting rate and computational resource consumption under different thresholds in the statistical validation set.
[0044] The dynamic reputation-weighted consensus mechanism refers to the weights of each expert agent. Initial values are equal, and subsequent Bayesian updates are performed based on the environmental feedback after each task execution; if the proposed decision receives positive environmental feedback, then... Adding this will cause execution to fail. Attenuation; the formula for calculating the overall score is as follows: ,in For the first An expert agent analyzes candidate action sequences. The confidence level.
[0045] The self-correction loop refers to the process where, when execution is hindered, the reflection and verification agent feeds back the error information as context input to the planning agent, which then regenerates the action sequence and executes it in a loop until the task is completed or the maximum number of retries is reached. The recommended range for the maximum number of retries is 3 to 10, which is determined experimentally by statistically analyzing the change in the success rate of correction with the number of retries in typical failure scenarios.
[0046] The state entropy-based dynamic cascading algorithm quantifies the information content of the current state in real time, driving computational resources to concentrate on the local regions that truly require deep inference. When the state is more stable, the novelty and variation of each state unit are lower, and the state uncertainty level approaches zero. The system processes input along a shallow, fast path, significantly reducing redundant computation. When the environment undergoes a sudden change or the input exhibits a high degree of anomaly, the state uncertainty level rises rapidly. The gating node switches the computation path to a deep inference path, ensuring that inference accuracy does not decrease due to computational savings. The continuous monitoring of prediction errors and the dynamic path recovery mechanism enable the system to provide a budget margin for deep inference during the abrupt change phase by accumulating computational savings in the stable phase. This achieves a tight coupling between computational load and actual task requirements, reducing average inference latency and resource consumption.
[0047] The spatiotemporal state cascaded perception model activates only high-value neural connections through a dynamic sparse perception layer, combined with a local incremental update mechanism of continuous state memory units, significantly reducing the number of activation parameters when processing stable state sequences. The path allocation mechanism of multi-level gated nodes allows the model to take shallow, fast paths for simple tasks and deep inference paths for tasks with high uncertainty. The combined effect of these two mechanisms adaptively reduces the overall forward computation load as task uncertainty decreases. Long-span residual jumps directly transfer stable features extracted from lower layers to higher layers, avoiding repeated extraction of the same features in multiple intermediate layers. The continuity constraint of physical changes ensures that the model output remains smooth in time, reducing the number of execution layer abnormal rollbacks caused by output mutations and improving the overall execution success rate.
[0048] Optionally, the present invention also provides a computer-based implementation to form a cognitive decision-making and task execution system based on a three-layer cascaded architecture. The computer is equipped with a readable storage medium, which stores program instructions. When the program instructions are run in the computer, they can execute all the steps of S01 to S06 above by combining an adaptive directed acyclic graph structure, a reinforcement learning router, a heterogeneous intelligent agent negotiation group, and a spatiotemporal state cascaded perception model.
[0049] The specific implementation of step S01 involves collecting one or more of the following as multimodal input data: natural language text, sensor discrete state codes, ontology entity identifier sequences, and multimodal fusion features. This data is then fed into the input layer of a spatiotemporal state cascaded sensing model. Each modality is mapped to a unified state space vector via a dedicated coding subnetwork. A three-dimensional state index is established based on timestamps, spatial locations, and state change rates to obtain a standardized state token sequence. The pre-processing sparse sensing layer calculates the novelty of each state unit in the sequence. Variation range Relevance to the task The novelty metric is based on cosine distance, which measures the difference between the current state vector and the weighted average hidden state from previous time steps in the continuous state memory unit. The magnitude of change is based on Euclidean distance, which measures the absolute change of the state vector between adjacent time steps. The task relevance metric is based on the normalized dot product, which measures the alignment between the current state vector and the task target embedding vector. The information value score is obtained by weighting and summing the three metrics. Only activation information value scores higher than the sparse activation threshold are activated. The neural connections are set to zero, while the remaining connections are set to zero, achieving dynamic sparse sensing. Continuous state memory units use a decay coefficient... (Recommended value: 0.90 to 0.99) The hidden state at the previous time step is saved, and incremental updates are only performed on local areas where the information value score exceeds the threshold. Multi-level gating nodes define the weighted variance of the information value scores of each activated unit as the state uncertainty level. and with The driving signal determines the subsequent computation path. Dynamic routing adjustment function. in accordance with Prediction error rate Compared with the calculated budget surplus ratio Calculate the overall routing pressure value ,when A high sparsity strategy is adopted when the pressure is below the low pressure threshold. When the range is medium, a medium sparsity strategy is adopted. When the high pressure threshold is exceeded, a low sparsity strategy is adopted and the system is dynamically adjusted. This allows the number of activated neurons to adaptively change with task uncertainty. The final output layer simultaneously generates the task confidence score. With calculation budget This information is used to determine the calculation depth for subsequent layers.
[0050] The specific implementation of step S02 involves feeding the state token sequence output from S01 into an adaptive directed acyclic graph (DAG) structure. This structure integrates a prefix tree and a DAG, supporting dynamic addition and deletion of nodes and cross-path sharing. During index matching, a non-forward priority indexing strategy is adopted. Starting from the last token in the state token sequence, it prioritizes traversing positions with higher information content based on the information entropy distribution, quickly locating high-probability subtrees and reducing the average matching depth. When there is a finite edit distance between the current token and the stored token, fuzzy jump edges allow for fault-tolerant state transitions, avoiding matching interruptions due to input noise. After matching, the dynamic confidence evaluation result determines whether to trigger the binding execution rule. If the number of consecutive hits on a state path reaches the stable binding hit threshold (recommended 30 to 80 times) and the node confidence is higher than the stable confidence threshold (recommended 0.80 to 0.95), stable binding is triggered, and subsequent execution of the corresponding fixed rule is performed directly without entering layers S03 or S04. The node confidence level is updated using an exponential moving average method, with a recommended decay coefficient of 0.990 to 0.999. The normalized return value is derived from the execution results returned by S05.
[0051] The specific implementation of step S03 is as follows: For the state token sequence that did not hit with high confidence in S02, firstly, a multimodal semantic encoder extracts continuous semantic vectors and performs L2 normalization, then sends them to the vector quantization module. The vector quantization module maintains... A codebook for cluster centers (recommended) Using a range of 256 to 4096, semantic vectors are mapped to nearest-neighbor cluster center indices to form discrete state codes. The codebook is pre-trained with unlabeled multimodal data during the training phase, ensuring that semantically similar inputs are mapped to the same or adjacent discrete state codes. The reinforcement learning router queries the state-action value table using the discrete state codes as row indices, outputting an ontology knowledge subgraph index or decision policy identifier. The state-action value table is updated using a temporal difference learning method, with a recommended learning rate of 0.05 to 0.20 and a recommended discount factor of 0.80 to 0.95. If the output confidence is higher than the routing confidence threshold (recommended 0.50 to 0.70), the corresponding knowledge subgraph index or policy identifier is directly passed to the S05 execution layer; otherwise, it is pushed down to the S04 layer for deep inference.
[0052] The specific implementation of step S04 is as follows: For requests whose confidence level output from S03 is lower than the routing confidence threshold or whose number of task steps exceeds the single-route processing limit, a heterogeneous negotiation group consisting of a planning agent, a domain expert agent, a reflective verification agent, and a symbolic reasoning engine performs parallel reasoning under the constraints of the ontology knowledge subgraph output from S03. Each expert agent scores the candidate action sequence according to a dynamic reputation-weighted consensus mechanism. The comprehensive score is the weighted sum of the product of each agent's weight and its confidence level in the candidate action sequence. The weights are dynamically adjusted according to the Bayesian update rule based on execution feedback, with positive feedback increasing the weight and failure feedback decreasing the weight. The action sequence with the highest score undergoes security verification by the reflective verification agent. The verification includes physical boundary constraint verification and action sequence compliance review. After passing the verification, the result is output to layer S05.
[0053] The specific implementation of step S05 is as follows: the action sequence output in S04 is sent to the execution layer via the embodied interface or application programming interface gateway, and the intermediate execution status and final result of each action step are collected in real time. If execution is blocked, the reflection and verification agent feeds back the error information and current context to the planning agent, triggering a self-correction loop. The planning agent regenerates the action sequence and executes it again, looping until the task is completed or the maximum number of retries is reached (3 to 10 times recommended). After execution, the successful path identifier and normalized reward signal are synchronously sent back to the confidence update module in S02 and the state action value table update module in S03.
[0054] The specific implementation of step S06 is as follows: Based on the normalized revenue signal returned from S05, the exponential moving average confidence of the hit nodes in S02 is updated, and the hit count of the corresponding nodes is incremented simultaneously. After each preset number of matching calls (recommended 500 to 2000 times), lazy global pruning is asynchronously triggered to remove low-value nodes with confidence levels below the degradation confidence threshold (recommended 0.20 to 0.40), thus releasing memory. Simultaneously, the normalized revenue signal is updated in the state-action value table of S03 using a temporal difference learning method, and the reputation weights of each expert agent in S04 are updated using Bayesian methods based on execution feedback, completing the full-link closed-loop learning from the perception layer to the execution layer.
[0055] It should be noted that the key technologies of this invention include: a dynamic cascaded path selection mechanism driven by state entropy, which drives the computation path to adaptively switch between high-speed matching, semantic routing, and deep inference layers by quantifying the information value score of each input state unit in real time, thus ensuring strict coupling between computation depth and input information volume, avoiding redundant computation of stable states in fixed-depth inference architectures, while guaranteeing inference accuracy in abrupt scenarios; and a dynamic sparse perception and continuous state memory incremental update mechanism, which saves computation in the stable phase by activating only neural connections whose information value scores exceed a dynamic threshold and performing local incremental updates on stable regions. The system converts budget margins into mutation phases, enabling dynamic allocation of computing resources across time steps. The confidence-driven sinking mechanism of the three-layer cascaded architecture, the adaptive directed acyclic layer with stable-state binding for fast processing of high-frequency repetitive instructions, the reinforcement learning router layer with vector quantization for discretizing semantic routing for medium-complexity requests, and the heterogeneous agent negotiation group layer with dynamic reputation-weighted consensus for handling highly uncertain tasks, all work together to achieve a positive correlation between computational load and task complexity. Compared with a fixed-depth inference architecture, it significantly reduces redundant activations in the stable phase and fully guarantees inference depth in the mutation phase, thereby improving the overall success rate of execution.
[0056] It should be noted that in multi-agent collaborative scenarios, the environmental state exhibits high dynamism and multi-source asynchronicity. The state information reported by different sensors or agents is not aligned in time. Some state tokens carry highly related repetitive information, while others contain sudden abnormal signals that are crucial to task decision-making. When these two types of information are mixed in the input, the system has difficulty distinguishing in real time which state units need deep reasoning and which can directly reuse historical cache results, thus leading to a serious imbalance in the allocation of computing resources.
[0057] The above technical problems arise because traditional fixed-depth neural network inference architectures treat all inputs the same way. Regardless of whether the input state is a repetitive instruction with low novelty or a sudden anomaly with high variability, the entire forward propagation is performed through the network with the same number of layers. The network structure itself does not have the ability to dynamically adjust the activation range based on the amount of input information. At the same time, if the continuous state memory mechanism adopts a global update strategy, it will rewrite all hidden states for each new input, causing the historical features of stable regions to be unnecessarily covered, further aggravating redundant computation.
[0058] The common solution to the aforementioned technical problems is to introduce an early exit mechanism into the inference framework. This involves setting a classification head in the intermediate layer of the network and terminating the inference process prematurely when the confidence level of the intermediate layer's output exceeds a threshold. However, the exit threshold of the early exit mechanism is a globally fixed value, which cannot perceive the differences in information content between different state units. For mixed inputs where some state units are stable while others are suddenly abnormal, the early exit mechanism may exit prematurely due to the high overall confidence level, missing the in-depth inference for the abnormal units. At the same time, the early exit mechanism lacks the ability to allocate computational budgets across time steps. The computational resources saved in the stable phase cannot be transferred to the mutation phase, resulting in coarse-grained resource allocation.
[0059] This invention effectively solves this technical problem. The pre-processor sparse perception layer of the spatiotemporal state cascaded perception model calculates information value scores at the state unit level. It activates the corresponding neuron connections only for units whose information value scores exceed the dynamic adjustment threshold, while setting the connections of other units to zero. The activation range and information content are strictly coupled at the unit granularity. The continuous state memory unit only performs incremental updates on local regions where the information value scores exceed the threshold. Historical features of stable regions are preserved and directly transmitted to higher layers through long-span residual jumps, avoiding repeated feature extraction caused by global state overwriting. The dynamic routing adjustment function drives the dynamic adjustment of the sparse activation threshold with three data points: state uncertainty level, prediction error rate, and remaining computational budget ratio. In the stable phase, the threshold increases to reduce activation and accumulate computational budget margin. In the abrupt phase, the threshold decreases to expand activation and consumes the budget margin to ensure inference depth. The multi-level gating nodes continuously monitor the trend of prediction error changes during execution. When the error suddenly increases, the skipped computational layers are restored. This achieves dynamic allocation of computational resources across stages from a time dimension, making up for the shortcomings of the early exit mechanism in inference of sudden abnormal units in mixed input scenarios.
[0060] A second aspect of the present invention provides a computer-readable storage medium storing program instructions, which, when executed in a computer, are used to perform the aforementioned cognitive decision-making and task execution method based on a three-layer cascaded architecture.
[0061] A third aspect of the present invention provides a cognitive decision-making and task execution system based on a three-layer cascaded architecture, comprising the aforementioned computer-readable storage medium. The system is any one of a computer, a server, or a microcontroller. The computer-readable storage medium is disposed within the system, and the system is provided with a microprocessor that executes the program instructions stored in the computer-readable storage medium.
[0062] Specifically, the principle of this invention is: The fundamental reason why this invention can solve the above-mentioned technical problems is that its technical solution, from the perspective of information theory, takes the level of state uncertainty as the only driving signal for the allocation of computational depth, and constructs a strict coupling relationship between the amount of input information and the consumption of computational resources.
[0063] Specifically, the pre-layer sparse perception layer of the spatiotemporal state cascaded perception model calculates three indicators for each state unit: novelty, magnitude of change, and task relevance. These indicators are then weighted and summed to form an information value score. Only neural connections with information value scores exceeding a sparse activation threshold are activated. This mechanism achieves synchronous reduction of computational load with the amount of input information at the neural network activation level, avoiding redundant activation of stable, repetitive states. The continuous state memory unit stores the hidden state from the previous time step with a decay coefficient. New inputs only update local regions where the information value score exceeds the threshold, further eliminating the overhead of repeated computation in stable regions.
[0064] The multi-level gating nodes in the intermediate layer select paths based on the level of state uncertainty. Low-uncertainty inputs are directed to high-speed matching paths in an adaptive directed acyclic graph; medium-uncertainty inputs are directed to semantic routing paths in a reinforcement learning router; and high-uncertainty inputs are directed to deep inference paths in a heterogeneous agent negotiation group. The inter-layer threshold design of the three-layer cascaded architecture ensures that only inputs that cannot be matched with high confidence in previous layers are pushed down to the next layer, guaranteeing a positive correlation between computational depth and task complexity at the architectural level.
[0065] The prediction error continuous monitoring mechanism detects error trends in real time during execution. When the error remains low, it shortens subsequent computation paths; when the error suddenly increases, it restores skipped computation layers. This dynamic recovery mechanism transforms computational savings accumulated during the stable phase into usable computational budget during the mutation phase, achieving rational allocation of computational resources across phases from a time perspective.
[0066] Long-span residual jumps directly transfer stable features extracted from lower layers to higher layers, avoiding redundant feature extraction across multiple intermediate layers. Physical change continuity constraints ensure smooth output temporally, reducing the number of execution layer rollbacks caused by sudden output changes. Execution results are synchronously updated with parameters at each layer through a closed-loop feedback mechanism, enabling the system to continuously optimize state uncertainty estimation and path allocation strategies during operation, gradually improving the overall execution success rate. These mechanisms logically support each other, ensuring a tight coupling between computational load and actual task requirements, thus fundamentally solving the computational resource mismatch problem caused by fixed-depth inference architectures.
[0067] The following provides a specific embodiment 1 of the present invention, and the specific implementation of each step in this embodiment 1 is described in detail below.
[0068] The specific implementation method of step S01 is as follows.
[0069] The system collects natural language text, discrete sensor state codes, ontology entity identifier sequences, and multimodal fusion features, which are then uniformly encoded into standardized state token sequences using a spatiotemporal state cascaded sensing model. A pre-processor sparse sensing layer calculates the novelty of each state unit. Variation range Relevance to the task Novelty The cosine distance between the current state vector and the weighted average hidden state stored in the continuous state memory unit is calculated as follows: ; In the formula, Let this be the current state vector. For the state vector dimension, The weighted average hidden state vector from the previous time step is stored in the continuous state memory unit. For vectors Norm, A larger value indicates a more novel state. (Magnitude of change) The Euclidean distance between the current state vector and the previous state vector is calculated using the following formula: ; In the formula, This is the state vector from the previous time step. It reflects the magnitude of the state drift between the current frame and the previous frame, and its dimensions are consistent with the numerical scale of the state vector. Task relevance. The normalized value of the dot product between the current state vector and the task target embedding vector is calculated using the following formula: ; In the formula, Embed vectors for task objectives. A higher value indicates a greater relevance between the current state and the task objective. The information value score is calculated by weighting and summing the three indicators, using the following formula: ; In the formula, , , These are the weighting coefficients corresponding to novelty, magnitude of change, and task relevance, respectively. All three are dimensionless calibration coefficients, obtained through iterative grid search experiments on the validation set. This is a dimensionless information value score. Because... , Naturally dimensionless, and The dimension depends on the numerical scale of the state vector, therefore The dimension of is the reciprocal of the numerical scale of the state vector, to ensure Overall dimensionless. Only activated. The neural connections are set to 0, and the rest are set to zero to achieve dynamic sparse sensing. The sparse activation threshold is dimensionless. The update formula for continuous-state memory units is as follows: ; In the formula, The attenuation coefficient is dimensionless. As an indicator function, only for Local regions exceeding the threshold are updated to ensure that stable regions are not recalculated. State uncertainty level. Defined as the weighted variance of the information value scores of activated units, the calculation formula is as follows: ; In the formula, For all inputs that satisfy the condition The set of activation units, For set The Middle Information value score of each activated unit For set The weighted average of the information value scores of each activated unit in the middle. Dimensionless; a larger value indicates a more unstable current input state. Weighted mean. The calculation formula is as follows: ; The final output layer also generates task confidence. With calculation budget Both determine the depth of subsequent calculations, enabling the computational load to adapt to the uncertainty level of the actual task.
[0070] The specific implementation method of step S02 is as follows.
[0071] in accordance with The state token sequence is fed into an adaptive directed acyclic graph, and a non-forward priority indexing strategy is used to perform state transition matching starting from the high-entropy position at the end of the sequence. Dynamic routing adjustment function. according to Prediction error rate Compared with the calculated budget surplus ratio Calculate the overall routing pressure value The calculation formula is as follows: ; In the formula, , , The dimensionless weighting coefficients are calibrated through ablation experiments. This represents the current prediction error rate. This represents the ratio of the current remaining computing budget to the initial budget. This is a dimensionless comprehensive routing pressure value. When... At that time, Adjust to The interval is used with a highly sparse strategy; when At that time, Adjust to Range, balancing accuracy and speed; when At that time, Down to Within a given interval, as many neural connections as possible are activated to ensure inference accuracy. The confidence score of a hit node is updated using an exponential moving average formula, calculated as follows: ; In the formula, The confidence level of the previous node is dimensionless. The normalized revenue value is derived from the execution results or explicit user feedback. The attenuation coefficient was determined through simulation experiments using confidence level, convergence speed, and noise immunity as indicators. This represents the updated node confidence level, which is dimensionless. With the attenuation coefficient in S01 Different meanings Used for updating the confidence index moving average. Timing decay is used for state memory units. When the number of consecutive hits on a state path reaches a stable binding hit threshold (empirical value is 30-80 times) and When the confidence level exceeds the stability threshold (empirical value of 0.80–0.95), stable-state binding is triggered, and subsequent execution rules are directly triggered without proceeding to subsequent layer calculations. After each preset number of matching calls (empirical value of 500–2000), lazy global pruning is performed asynchronously to clear [the affected areas]. Nodes below the degradation confidence threshold (empirical value is 0.20 to 0.40).
[0072] The specific implementation method of step S03 is as follows.
[0073] For state token sequences that were not hit by S02 with high confidence, semantic vectors were extracted using a multimodal semantic encoder. And normalization, the vector quantization module maintains the codebook. ,in This refers to the codebook size, with an empirical range of 256 to 4096. For the first Each cluster center vector. Vector quantization mapping will... Mapped to nearest neighbor cluster centers, forming discrete state codes. The calculation formula is as follows: ; In the formula, This is a discrete status code index, dimensionless. For semantic vectors and the first Euclidean distance between cluster centers. Reinforcement learning router query state-action-value table. The row index is a discrete status code. The column index is either an ontology knowledge subgraph index or a decision strategy identifier. The elements in the table represent the cumulative expected revenue estimates for the corresponding state-action pairs. The update formula is as follows: ; In the formula, The learning rate is dimensionless. The discount factor is dimensionless. For immediate gains, For the current discrete state, For the current action, The next discrete state to which the action is performed. for The candidate actions are determined by the above parameters through grid search experiments in a simulation environment, with the number of routing convergence rounds and the final routing accuracy as indicators.
[0074] The specific implementation method of step S04 is as follows.
[0075] For requests with a confidence level below the routing confidence threshold (empirical values of 0.50–0.70) or a task number exceeding the single-route processing limit, a heterogeneous negotiation group of parallel reasoning is formed, consisting of a planning agent, a domain expert agent, a reflective verification agent, and a symbolic reasoning engine. The weights of each expert agent are as follows: Initial values are equal, and subsequent real-time Bayesian updates are performed based on environmental feedback after a single task execution. Positive environmental feedback occurs during these updates. Add, when execution fails Attenuation. The comprehensive score calculation formula is as follows: ; In the formula, The total number of agents. For the first The reputation weight of each agent For the first An agent in the current context With Activation of Ontology Knowledge Subgraph Candidate action sequences under constraints confidence level Candidate action sequence The overall score is dimensionless. The reflective verification agent performs a safety check on the action sequence with the highest overall score; if successful, it outputs the action sequence.
[0076] The specific implementation methods for steps S05 and S06 are as follows.
[0077] Action sequences are executed via an embodied interface or application programming interface gateway, with intermediate states and final results collected in real time. When execution is hindered, the reflection and verification agent feeds back the error context to the planning agent, requesting the regeneration of the action sequence. This process is repeated until the task is completed or the maximum number of retries is reached. The maximum number of retries is empirically estimated at 3–10, determined experimentally through experiments showing the success rate of correction as a function of the number of retries in typical failure scenarios. After execution, the successful path and reward signal are synchronously transmitted back to the parameter update modules of S02 and S03, updating the nodes of the adaptive directed acyclic graph. Compared to hit counting and reinforcement learning routers and the reputation weight of each agent Complete the entire closed-loop learning process.
[0078] To better understand and implement this invention, the following is a specific application scenario of this invention, Example 2: This embodiment uses a multi-station production line status monitoring and anomaly response task in an Industrial Internet of Things (IIoT) scenario as a background to verify the computational path allocation and task execution process of the cognitive decision-making and task execution method based on a three-layer cascaded architecture described in this invention when dealing with mixed uncertain inputs. The production line has a total of 8 monitoring stations, each continuously reporting four types of modal data: vibration frequency, temperature, current, and operation command text. The sampling period is 500ms, the continuous acquisition time is 600s, and a total of 1200 time frames are generated.
[0079] In the data acquisition and state coding phase, the four types of modal data are mapped to a 256-dimensional unified state space vector through their respective dedicated coding sub-networks. A three-dimensional state index is established based on timestamps and workstation spatial coordinates, resulting in a sequence containing 1200 state tokens. The pre-processor sparse sensing layer calculates the information value score and weight coefficient for each state token. , , The values are set to 0.4, 0.3, and 0.3 respectively. Continuous state memory cell decay coefficient. Set to 0.95, only for information value scores exceeding the current sparse activation threshold. The state unit activates neuron connections and performs local incremental updates. The distribution of state uncertainty levels for each time frame within a 600s acquisition period is shown in Table 1.
[0080] Table 1. Statistical distribution of state uncertainty levels for each time frame
[0081] As shown in Table 1, over 73% of the time frames are in the low uncertainty range, corresponding to the stable operation phase of the production line. The information value scores of these frames are generally low, and the dynamic routing adjustment function calculates the overall routing pressure value. All are below the low pressure threshold of 0.3. When the level is increased to the 0.7 to 1.0 range, the number of activated neuronal connections decreases significantly.
[0082] In the three-layer cascaded path allocation phase, all 876 frames in the low-uncertainty range enter the S02 layer for high-speed matching using an adaptive directed acyclic graph. Of these, 838 frames have already triggered stable-state binding after the first 300 seconds of execution (the stable binding hit threshold is set to 50 times, and the stable confidence threshold is set to 0.88), and subsequently trigger fixed execution rules directly without needing to enter the S03 or S04 layers. The 252 frames in the medium-uncertainty range enter the S03 layer. The vector quantization module codebook size... With a set value of 1024, after the discrete state codes corresponding to each frame are looked up in the state-action value table, 234 frames have an output confidence score higher than the routing confidence threshold of 0.60 and are directly passed to the execution layer; the remaining 18 frames have an output confidence score lower than the threshold and are pushed down to the S04 layer. All 72 frames in the high uncertainty range enter the S04 layer, where the planning agent, domain expert agent, reflective verification agent, and symbolic reasoning engine negotiate to generate action sequences and perform safety checks. The number of frames processed and the computation path allocation results for each layer are shown in Table 2.
[0083] Table 2. Statistical table of path allocation results for each layer of the three-tier cascaded architecture.
[0084] like Figure 2 As shown, the cumulative number of processed frames per second in the three-layer cascaded architecture over a 600s acquisition cycle indicates that the number of hit frames in layer S02 increases rapidly in the first 300s and then levels off. This corresponds to the steady-state binding mechanism gradually accumulating the number of hits in the first 300s until binding is triggered. Once binding is complete, subsequent frames of the same type do not need to be re-indexed, and the hit rate is stable. The number of processed frames in layer S03 increases in a stepwise manner with the intermittent occurrence of moderate uncertainty events. The number of processed frames in layer S04 is concentrated during the production line abnormal event period, which is consistent with the time distribution of high uncertainty frames.
[0085] During the abnormal response phase, from 420s to 480s, the vibration frequency of station 3 abruptly increased to 3.2 times the normal range, triggering a 72-frame high-uncertainty state. The dynamic routing adjustment function will... The error rate is reduced to 0.15, activating as many neural connections as possible to ensure inference accuracy. When a multi-level gating node detects a continuous increase in the prediction error rate exceeding eight time steps, a limited-range hidden layer backtracking is initiated to recalculate the local state chain related to workstation 3. The heterogeneous negotiation group in layer S04 generates an action sequence containing three steps: deceleration, alarm, and manual intervention, based on the activated equipment maintenance ontology knowledge subgraph. After reflecting on and verifying that the action sequence conforms to physical boundary constraints, it outputs it to the execution layer. During execution, the planning agent triggers a self-correction loop after the first execution attempt is blocked, regenerating an action sequence with an adjusted deceleration magnitude. The second execution is successful, not exceeding the maximum retry limit of three times.
[0086] During the closed-loop learning phase, after execution, the successful path and normalized profit signal are synchronously transmitted back to the parameter update modules of S02 and S03. The exponential moving average confidence of the relevant nodes at workstation 3 in layer S02 is updated based on the profit signal, with a decay coefficient set to 0.995. The state-action value table in layer S03 performs a temporal differential update on the discrete state code entries corresponding to vibration anomalies at workstation 3, with a learning rate... Set to 0.10, discount factor Set to 0.90; the domain expert agent in layer S04 receives positive feedback for this decision, and the reputation weight increases according to the Bayesian update rule. Lazy global pruning is triggered asynchronously after accumulating 1000 matching calls, clearing low-value nodes with a confidence score below 0.30.
[0087] like Figure 3 As shown, under the closed-loop learning mechanism, the cumulative expected return estimate of the S03 layer state-action value table for discrete state codes of vibration anomalies monotonically converges with the increase of execution count. The convergence speed is related to the learning rate. and discount factor The value of the learning rate is directly related to the convergence rate; a larger learning rate leads to faster convergence but also greater volatility. A larger discount factor results in a higher weight for long-term returns, and the valuation converges to a stable point that better reflects the value of multi-step tasks. This convergence process demonstrates that as execution experience accumulates, the system's routing decisions for similar abnormal states become increasingly accurate. The probability of subsequent similar events triggering the S04 layer gradually decreases, and computational resources are concentrated on new anomalies that actually require deep reasoning, which aligns with the core design goal of this invention: adaptive allocation of computational depth. During the entire 600-second test cycle, out of 1200 input frames, 876 frames were processed at the S02 layer, 234 frames were routed at the S03 layer, and only 90 frames entered the S04 layer for deep inference, accounting for 7.5% of the total. Furthermore, all 72 of these 90 frames were high-uncertainty anomaly frames, indicating that computational resources were concentrated on states that truly required deep inference. Compared to the method of performing equal-depth computation on all 1200 frames with fixed-depth inference, the matching degree between computational resource utilization and actual task requirements was significantly improved. This is precisely the technical effect brought about by the spatiotemporal state cascaded perception model, which uses information value scores to drive sparse activation and gating nodes to allocate computational paths based on state uncertainty levels.
[0088] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the present invention.
Claims
1. A cognitive decision-making and task execution method based on a three-layer cascaded architecture, characterized in that, Includes the following steps: Multimodal input data is collected, uniformly encoded into a standardized state token sequence through a spatiotemporal state cascaded perception model, and the novelty, change magnitude and task relevance of each state unit are calculated to generate a state uncertainty level. Based on the state uncertainty level, the state token sequence is fed into an adaptive directed acyclic graph structure, and a reverse index matching is performed using a non-forward priority indexing strategy based on information entropy distribution. The dynamic confidence evaluation result determines whether to trigger the binding execution rule. For state token sequences that are not hit with high confidence, the semantic vectors are extracted and normalized by the multimodal semantic encoder, and then mapped to discrete state codes by the vector quantization module. The reinforcement learning router queries the state action value table and outputs the ontology knowledge subgraph index or decision strategy identifier. For requests with an output confidence level lower than the routing confidence threshold or a task step count exceeding the single route processing limit, a heterogeneous negotiation group consisting of a planning agent, a domain expert agent, a reflective verification agent, and a symbolic reasoning engine performs parallel reasoning under the constraints of the activated ontology knowledge subgraph. An action sequence is generated through dynamic reputation-weighted consensus, and the reflective verification agent performs security checks. The action sequence is executed through the embodied interface or application interface gateway, and the intermediate state and final result of the execution are collected in real time. If the execution is blocked, a self-correction loop is triggered, requiring the planning agent to regenerate the action sequence. After execution, the successful path and reward signal are synchronously transmitted back to the parameter update module of the adaptive directed acyclic graph structure and reinforcement learning router. Based on the returned profit signal, update the exponential moving average confidence and hit count of the nodes in the adaptive directed acyclic graph, and perform lazy global pruning. The state action value table of the reinforcement learning router and the reputation weights of each expert agent are updated synchronously to complete the full-link closed-loop learning.
2. The cognitive decision-making and task execution method based on a three-layer cascaded architecture according to claim 1, characterized in that, The spatiotemporal state cascaded perception model is specifically a deep learning-based perception model. The input layer receives natural language, visual features, sensor readings, and ontological entity sequences. Each modality is mapped to a unified state space vector through a dedicated coding sub-network. A three-dimensional state index is established based on timestamps, spatial locations, and state change rates. The front-end sparse perception layer calculates the novelty, change magnitude, and task relevance of each state unit, and only activates neural connections with information value scores higher than the sparse activation threshold.
3. The cognitive decision-making and task execution method based on a three-layer cascaded architecture according to claim 2, characterized in that, The calculation of the information value score is specifically a weighted sum of three indicators: novelty, variation range, and task relevance. Novelty is the cosine distance between the current state vector and the weighted average hidden state stored in the continuous state memory unit of the previous time step. Variation range is the Euclidean distance between the current state vector and the state vector of the previous time step. Task relevance is the normalized value of the dot product between the current state vector and the task target embedding vector.
4. The cognitive decision-making and task execution method based on a three-layer cascaded architecture according to claim 3, characterized in that, The spatiotemporal state cascaded perception model is equipped with a dynamic routing adjustment function. The dynamic routing adjustment function calculates the comprehensive routing pressure value based on three data: state uncertainty level, prediction error rate, and remaining computational budget ratio. Based on the interval of the comprehensive routing pressure value, the sparse activation threshold is adjusted to the high sparse policy interval, medium sparse policy interval, or low sparse policy interval, respectively, to adapt to the number of neuron connection activations under different task uncertainty levels.
5. The cognitive decision-making and task execution method based on a three-layer cascaded architecture according to claim 4, characterized in that, The spatiotemporal state cascaded perception model is equipped with multi-level gating nodes. The multi-level gating nodes define the state uncertainty level as the weighted variance of the information value scores of each activated unit in the preceding sparse perception layer. Based on the state uncertainty level, the input is determined to enter the shallow fast path or the deep inference path. When the prediction error rate continues to increase within a continuous preset time step, the gating node initiates a limited range of hidden layer backtracking, only recalculating the local state chain that caused the error.
6. The cognitive decision-making and task execution method based on a three-layer cascaded architecture according to claim 5, characterized in that, The adaptive directed acyclic graph structure is a data structure that integrates the prefix tree structure and the directed acyclic graph structure. It is used to store and retrieve high-frequency state action mapping patterns and supports dynamic addition and deletion of nodes and cross-path sharing. The non-forward priority indexing strategy specifically starts state transition matching from the last token of the state token sequence to prioritize traversing positions with higher information entropy and quickly locate high-probability subtrees.
7. The cognitive decision-making and task execution method based on a three-layer cascaded architecture according to claim 6, characterized in that, The binding execution rules specifically include stable state binding. Stable state binding refers to the strong binding of a state path with a fixed execution rule identifier when the number of consecutive hits of a certain state path reaches the stable binding hit threshold and the confidence level is higher than the stable confidence threshold. Subsequently, the execution is directly triggered without entering the subsequent layer calculation. The nodes of the adaptive directed acyclic graph structure are also equipped with fuzzy jump edges, which allow the state transition to be completed even when there is a finite edit distance between the current token and the stored token.
8. The cognitive decision-making and task execution method based on a three-layer cascaded architecture according to claim 7, characterized in that, The vector quantization module specifically maintains a codebook containing a preset number of cluster centers, maps continuous semantic vectors to nearest neighbor cluster center indices, and forms discrete state codes. The state-action value table is specifically a two-dimensional lookup table maintained by the reinforcement learning router, with row indices being discrete state codes and column indices being ontology knowledge subgraph indices or decision policy identifiers. The elements in the table are the cumulative expected revenue estimates of the corresponding state-action pairs.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores program instructions, which, when executed in a computer, are used to perform the cognitive decision-making and task execution method based on a three-layer cascaded architecture as described in any one of claims 1-8.
10. A cognitive decision-making and task execution system based on a three-layer cascaded architecture, characterized in that, The system comprises the computer-readable storage medium of claim 9, wherein the system is a computer, the computer-readable storage medium is disposed within the system, and the system is provided with a microprocessor that executes program instructions stored in the computer-readable storage medium.
