Decision model visualization method and system based on deep reinforcement learning algorithm

Through graph convolution network and independent containerization technology, the decision-making process of deep reinforcement learning algorithms in complex dynamic environments is simplified, and the interpretability of decision-making is improved through multi-dimensional statistical analysis, solving the real-time problem of deep reinforcement learning algorithms in complex environments. Decision-making and interpretive challenges.

CN118656714APending Publication Date: 2024-09-17UNIV OF SCI & TECH BEIJING +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410690420.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

It is difficult for deep reinforcement learning algorithms to make real-time decisions in complex dynamic environments, with high time complexity, and the ‘black box’ characteristics limit the application of high interpretability and robustness.

Method used

Graph convolutional networks are used to convert complex dynamic environments into environmental graphs, decision-making models are built through independent containerization technology, and decision-making views are built through multi-level data storage and multi-dimensional statistical analysis to simplify the state space and explain the decision-making process.

Benefits of technology

It achieves real-time and efficient decision-making in a dynamically changing environment, reduces the time complexity of the algorithm, and improves the interpretability and robustness of the decision-making process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656714A
    Figure CN118656714A
Patent Text Reader

Abstract

The invention provides a decision model visualization method and system based on a deep reinforcement learning algorithm, and relates to the technical field of deep reinforcement learning. The method comprises the steps of obtaining a complex dynamic environment; converting the complex dynamic environment into an environment graph through a graph convolutional network; constructing a decision model based on a deep reinforcement learning algorithm through an independent containerization technology according to the graph convolutional network; training the decision model; constructing a structured multi-level data storage mechanism; through a multi-stage data storage mechanism, storing training data in a decision model training process; according to the training data, constructing a multi-dimensional decision view through multi-dimensional statistical analysis; and displaying the multi-dimensional decision view. According to the method, real-time and efficient decision making of deep reinforcement learning in a complex dynamic environment can be realized, and the decision making process of understanding and explaining a deep reinforcement learning algorithm becomes simple through a multi-dimensional decision making view.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of deep reinforcement learning technology, and in particular to a decision model visualization method and system based on a deep reinforcement learning algorithm. Background Art

[0002] In recent years, deep reinforcement learning (DRL) has attracted widespread attention due to its outstanding ability to handle complex decision-making problems. Deep reinforcement learning has been widely used in autonomous mobile robots, games, self-driving vehicles and other fields, especially in robot positioning and mapping (SLAM) technology.

[0003] However, as the complexity of the task environment increases, the challenges faced by deep reinforcement learning algorithms also increase. In particular, achieving real-time and efficient decision-making in a dynamically changing environment remains a difficult problem. The algorithm has a high time complexity and the dimension of the state space grows exponentially, making real-time decision-making a challenge.

[0004] In addition, the "black box" characteristics of deep reinforcement learning algorithms make it difficult to understand and explain the algorithmic decision-making process, limiting the application of deep reinforcement learning technology in fields that require high interpretability and high robustness. Summary of the invention

[0005] In order to solve the technical problem that as the complexity of the task environment increases, the challenges faced by traditional deep reinforcement learning algorithms also increase accordingly, especially in a dynamically changing environment, achieving real-time and efficient decision-making is still a difficult problem. The time complexity of the algorithm is high, and the dimension of the state space grows exponentially, making real-time decision-making a challenge. In addition, the "black box" characteristics of the deep reinforcement learning algorithm make it difficult to understand and explain the algorithm decision-making process, which limits the application of deep reinforcement learning technology in fields requiring high interpretability and high robustness. The present invention provides a decision model visualization method and system based on a deep reinforcement learning algorithm.

[0006] The technical solution provided by the embodiment of the present invention is as follows:

[0007] A first aspect of the present invention provides a decision model visualization method based on a deep reinforcement learning algorithm, comprising:

[0008] S1: Acquire complex dynamic environment;

[0009] S2: converting the complex dynamic environment into an environment graph through a graph convolutional network;

[0010] S3: Building a decision model based on a deep reinforcement learning algorithm according to the graph convolutional network through independent containerization technology;

[0011] S4: training the decision model;

[0012] S5: Build a structured multi-level data storage mechanism;

[0013] S6: Storing the training data in the decision model training process through the multi-level data storage mechanism;

[0014] S7: constructing a multidimensional decision view through multidimensional statistical analysis based on the training data;

[0015] S8: Display the multi-dimensional decision view.

[0016] A second aspect of the present invention provides a decision model visualization system based on a deep reinforcement learning algorithm, comprising:

[0017] processor;

[0018] A memory having computer-readable instructions stored therein, which, when executed by a processor, implements the decision model visualization method based on a deep reinforcement learning algorithm as in the first aspect.

[0019] The third aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the decision model visualization method based on a deep reinforcement learning algorithm as in the first aspect.

[0020] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0021] In the present invention, a complex dynamic environment is converted into an environment graph through a graph convolutional network, the state space is simplified, and real-time and efficient decision-making is achieved in a dynamically changing environment; by training the decision model, the time complexity of the deep reinforcement learning algorithm is reduced, and real-time and efficient decision-making is achieved; through multi-dimensional statistical analysis and multi-dimensional decision views, it becomes simple to understand and explain the decision-making process of the deep reinforcement learning algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1A flowchart of a decision model visualization method based on a deep reinforcement learning algorithm provided by an embodiment of the present invention;

[0024] Figure 2 A structural schematic diagram of a decision model visualization system based on a deep reinforcement learning algorithm provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0025] The technical solution of the present invention is described below in conjunction with the accompanying drawings.

[0026] In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "example" is intended to present the concept in a specific way. In addition, in the embodiments of the present invention, the meaning expressed by "and / or" can be both, or it can be either of the two.

[0027] In the embodiments of the present invention, "image" and "picture" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same. "of", "corresponding, relevant" and "corresponding" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same.

[0028] In the embodiments of the present invention, sometimes the subscripts such as W 1 It may be written in non-subscript form such as W1. When the difference is not emphasized, the meaning is the same.

[0029] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0030] Reference Manual Attached Figure 1 , showing a flow chart of a decision model visualization method based on a deep reinforcement learning algorithm provided in an embodiment of the present invention.

[0031] The embodiment of the present invention provides a decision model visualization method based on a deep reinforcement learning algorithm, which can be implemented by a decision model visualization device of a deep reinforcement learning algorithm, and the decision model visualization device of the deep reinforcement learning algorithm can be a terminal or a server. The processing flow of the decision model visualization method based on a deep reinforcement learning algorithm may include the following steps:

[0032] S1: Acquire complex dynamic environments.

[0033] Among them, a complex dynamic environment refers to an environment in which multiple factors interact and change over time. This environment may contain a large number of variables, uncertainties and dynamic properties.

[0034] S2: Through graph convolutional networks, complex dynamic environments are converted into environment maps.

[0035] It should be noted that in a complex dynamic environment, the dimensions of the state space and action space will increase exponentially, the algorithm has a high time complexity, and real-time decisions cannot be made. The present invention uses a graph convolutional network to abstract the continuous state space and action space into a graph composed of nodes and edges to simplify the environmental expression and greatly reduce the dimension of the state space.

[0036] Among them, state space and action space are commonly used concepts in reinforcement learning, which are used to describe the set of situations and possible actions faced by the agent when interacting with the environment.

[0037] Among them, the graph convolutional network is a policy network and / or value network of a decision model based on a deep reinforcement learning algorithm.

[0038] In a possible implementation, S2 specifically includes sub-steps S201 to S203:

[0039] S201: Through the graph convolutional network, based on the distance relationship between key objects and objects in complex dynamic environments, the graph features of complex dynamic environments are extracted:

[0040]

[0041] Among them, g′ t represents the feature matrix at time t after feature extraction, σ(·) represents the ReLU activation function, D represents the degree matrix, represents the sum of the weighted adjacency matrix of the exploration graph and the identity matrix, g t represents the feature matrix at time t, W represents the learnable weight matrix, A represents the weighted adjacency matrix of the exploration graph, and I represents the identity matrix.

[0042] In the present invention, the graph convolutional network can extract graph features based on key objects in complex dynamic environments and the distance relationships between them. These graph features can retain important information in the environment and help the intelligent agent better understand the environment and make decisions.

[0043] S202: Based on the graph features, establish a graph representation of the complex dynamic environment:

[0044] G=(V,E)

[0045] Among them, G represents the graph representation of the complex dynamic environment, V represents the set of uncertain objects in the complex dynamic environment, and E represents the direct distance mapping ratio of objects in the complex dynamic environment.

[0046] In the present invention, the structured representation form of the environment graph can help the intelligent agent better understand the relationship and interaction between objects in a complex dynamic environment. This helps to improve the generalization ability of the intelligent agent, enabling it to adapt to different environments and tasks.

[0047] S203: Convert the complex dynamic environment into an environment graph according to the graph representation form of the complex dynamic environment.

[0048] In the present invention, after converting the complex dynamic environment into an environment graph, the agent can use techniques such as graph neural networks to process and learn the graph structure, thereby simplifying the decision-making process. The agent can extract features from the graph through methods such as graph convolutional networks and make decisions based on these features without directly processing the original high-dimensional state space.

[0049] S3: Build a decision model based on deep reinforcement learning algorithm based on graph convolutional network through independent containerization technology.

[0050] Among them, independent containerization technology is a method of software deployment and management, which uses container technology to encapsulate an application and all its dependencies in an independent container to achieve rapid deployment, portability and environmental consistency.

[0051] It should be noted that the present invention uses independent containerization technology to construct multiple types of deep reinforcement learning algorithm components suitable for various application scenarios, supports independent deployment of algorithms, and encapsulates multiple types of algorithms in images containing all necessary dependencies and configurations, thereby ensuring consistent execution across environments.

[0052] Furthermore, using container technology, algorithm images can be quickly instantiated and run in parallel in an isolated environment, ensuring the independence of different algorithms; through container orchestration, algorithm resource allocation becomes more flexible and can be automatically adjusted according to demand, which not only improves processing efficiency, but also enhances the applicability of the DRL algorithm in various application scenarios and the generalization of visual explanations, and also meets the needs of diversified applications.

[0053] Optionally, the deep reinforcement learning algorithm includes a policy iteration algorithm and a value iteration algorithm.

[0054] Among them, the policy iteration algorithm and the value iteration algorithm are two classic solutions in reinforcement learning, which are used to find the optimal strategy or value function.

[0055] Furthermore, the present invention also establishes a remote management and operation support system for deep reinforcement learning algorithms. The remote management system based on the HTTP protocol solves the search and query of deep reinforcement learning algorithm data; the WebIDE (Web Integrated Development Environment) architecture based on the SSH (Secure Shell) protocol realizes remote code adjustment, improves the applicability of the present invention, especially in fields with high requirements for explainability, and provides a complete tool set to support the development, debugging and interpretation of deep reinforcement learning algorithms.

[0056] Among them, SSH is a network protocol used for secure remote connection and data transmission in an insecure network, and protects the security of remote connections through encryption technology, allowing users to safely perform remote management and operations in an untrusted network environment.

[0057] Among them, WebIDE is an integrated development environment based on a web browser that allows developers to develop software in the browser without installing local development tools. It integrates development workflows such as code editing, compilation, debugging, and deployment into a unified web interface, providing developers with a convenient development environment.

[0058] In this invention, independent containerization technology encapsulates the algorithm and its dependencies in an independent container, so that the decision model can be easily deployed and run in different environments while maintaining environmental consistency, making the deployment and migration of the algorithm faster and easier; through container technology, each deep reinforcement learning algorithm can be run in an independent container, thereby achieving resource isolation and independence, avoiding conflicts between different algorithms, and improving the stability and security of the system.

[0059] S4: Train the decision model.

[0060] In the present invention, by training the decision model, the model parameters can be continuously optimized, the performance of the model in complex environments can be improved, and the strategy and value function can be optimized in different ways, thereby improving the performance of the intelligent agent in the environment.

[0061] In a possible implementation, S4 specifically includes sub-steps S401 to S402:

[0062] S401: Training the policy iteration algorithm.

[0063] In a possible implementation, S401 specifically includes sub-steps S4011 to S4012:

[0064] S4011: Construct parameterized strategies for policy iteration algorithms.

[0065] S4012: According to the parameterized strategy, use the policy iteration loss function and train the policy iteration algorithm with the goal of minimizing the policy iteration loss function.

[0066] In a possible implementation, the strategy iteration loss function is specifically:

[0067]

[0068] A(g t ,a t )=Q(g t ,a t )-V(g t )

[0069]

[0070] Among them, L A2C (D) represents the policy iteration algorithm, E B~D represents sampling expectation, B~d represents minimization sampling, and represents the loss term of a single transition sample, g t represents the state at time t, a t represents the action taken at time t, η represents the output entropy coefficient, A(g t ,a t ) represents the advantage function, π θ (a t |g t ) represents the parameterized strategy, β represents the state value loss coefficient, V(g t ) represents the state value function, r t represents the immediate reward at time t, γ represents the discount factor, Q(g t ,a t ) represents the state-action-value function.

[0071] S402: Training the value iteration algorithm.

[0072] In a possible implementation, S402 specifically includes sub-steps S4021 to S4022:

[0073] S4021: Determine the expected value of future returns through the value iteration algorithm:

[0074]

[0075] Among them, Q θ represents the expected value of future rewards, E[·] represents expectation, r represents immediate reward, T represents total duration, and τ represents time.

[0076] S4022: Use the value iteration loss function to train the value iteration algorithm with the goal of minimizing the value iteration loss function.

[0077] In a possible implementation, the value iteration loss function is specifically:

[0078] L DQN (D)=E B~D [(r t +γmax(g t+1 ,a t+1 )-Q(g t ,a t )) 2 ]

[0079] B~D={(g t ,a t ,r t ,g t+1 ) t} t∈T

[0080] Among them, L DQN (D) represents the updated policy iteration algorithm.

[0081] In the present invention, the training process enables the decision model to gradually learn the characteristics and laws of the environment, so as to make better decisions. The policy iteration algorithm and the value iteration algorithm enable the intelligent agent to learn and make decisions according to different goals, so as to enhance its decision-making ability in a complex dynamic environment. Through training, the decision model can learn the general laws of the environment, so as to improve its generalization ability in different environments, which makes the decision model more adaptable and versatile, and can make effective decisions when facing unknown environments. Through repeated iterative training, the decision model can continuously optimize itself, so as to improve its stability and robustness, which enables the decision model to better cope with changes and uncertainties in the environment, so as to improve its reliability in practical applications.

[0082] S5: Build a structured multi-level data storage mechanism.

[0083] The structured multi-level data storage mechanism represents a mechanism combining CSV file storage and database structured storage.

[0084] It should be noted that the present invention constructs a structured multi-level data storage mechanism, which can effectively realize the analysis of training data, the performance evaluation of deep reinforcement learning algorithms, and the visualization support of decision models based on deep reinforcement learning algorithms.

[0085] S6: Store the training data during the decision model training process through a multi-level data storage mechanism.

[0086] Specifically, the present invention uses a multi-level data storage mechanism to structure the storage of algorithm training and test data, and records algorithm hyperparameter settings and training cycle and decision sequence data during the training process.

[0087] In the present invention, storing training data can help in deep reinforcement learning algorithm performance evaluation and model optimization. The performance of the model in the training process can be analyzed based on the stored data, the advantages and disadvantages of the model can be identified, and the model parameters can be adjusted and optimized accordingly to improve the performance and effect of the model.

[0088] In a possible implementation, S6 specifically includes sub-steps S601 to S602:

[0089] S601: The training data in the graph convolutional network training process is labeled through a structured multi-level data storage mechanism, where the training data includes training cycle and decision sequence data.

[0090] Among them, each decision sequence data includes a set of {environment-action-reward}.

[0091] S602: The labeled training data is serialized and stored as a CSV file through a structured multi-level data storage mechanism.

[0092] In the present invention, the training data is structured and stored in CSV (Comma-Separated Values) files and databases, so that the data can be flexibly queried, analyzed and managed as needed. The CSV file can be used to view the data simply and quickly, while the database can provide more powerful data management and query functions, including complex query statements and data indexes. The structured multi-level data storage mechanism can also support the interpretability of the decision model. By storing and recording the decision sequence data, the decision-making process made by the model in different environments can be traced, and the basis and results of each decision can be analyzed, thereby enhancing the interpretability and trustworthiness of the decision model.

[0093] Among them, CSV is a common file format used to store tabular data. The data is organized in plain text form, and different fields are distinguished by commas or other separators (such as tabs).

[0094] S7: Based on the training data, a multidimensional decision view is constructed through multidimensional statistical analysis.

[0095] It should be noted that the present invention combines multidimensional statistical analysis with gradient weighted class activation mapping visual interpretation to construct a multidimensional view including spatiotemporal mapping relationships to enhance the comprehensibility of the decision-making process. The decision model based on the deep reinforcement learning algorithm generates automated visualization code, allowing users to implement CSV key information analysis based on large models based on the original data stored in the CSV file, assisting users to propose natural language prompts for visualization targets, designing a general visualization code running interface, and providing prompt options for further explanation and analysis of the decision-making process of deep reinforcement learning.

[0096] Among them, multidimensional statistical analysis is a method for analyzing the relationship between multiple variables, which usually includes multivariate statistical analysis, cluster analysis, principal component analysis and other techniques.

[0097] Gradient Weighted Class Activation Mapping is a technique for visualizing class activation in deep neural networks. It visualizes the degree of attention that the neural network pays to a specific category by backpropagating the gradient information in the network to the input image.

[0098] Furthermore, the present invention combines multidimensional statistical analysis with gradient-weighted class activation mapping visual interpretation to reveal the decision model's dependence on spatiotemporal data, analyze the impact of specific input features on model decisions, and provide intuitive and reliable visual analysis and interpretation for deep reinforcement learning algorithms.

[0099] In the present invention, the multidimensional decision view combines multidimensional statistical analysis and gradient weighted class activation mapping technology, which can show the decision process of the deep reinforcement learning algorithm in an intuitive way, and help users better understand the operation principle and decision basis of the decision model by visually displaying the spatiotemporal mapping relationship and the influence of specific input features on the model decision; and the decision model based on the deep reinforcement learning algorithm automatically generates visualization code, providing users with a convenient and fast data visualization tool. Users can perform multidimensional statistical analysis and visualization of the decision process based on the original data stored in the CSV file through the generated visualization code, without manually writing complex visualization code.

[0100] S8: Display multi-dimensional decision view.

[0101] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0102] In the present invention, a complex dynamic environment is converted into an environment graph through a graph convolutional network, the state space is simplified, and real-time and efficient decision-making is achieved in a dynamically changing environment; by training the decision model, the time complexity of the deep reinforcement learning algorithm is reduced, and real-time and efficient decision-making is achieved; through multi-dimensional statistical analysis and multi-dimensional decision views, it becomes simple to understand and explain the decision-making process of the deep reinforcement learning algorithm.

[0103] Reference Manual Attached Figure 2 , showing a structural schematic diagram of a decision model visualization system based on a deep reinforcement learning algorithm provided by the present invention.

[0104] The present invention also provides a decision model visualization system 30 based on a deep reinforcement learning algorithm, which is applied to the above-mentioned decision model visualization method based on a deep reinforcement learning algorithm, comprising:

[0105] Processor 301.

[0106] The memory 302 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 301, a decision model visualization method based on a deep reinforcement learning algorithm as in the method embodiment is implemented.

[0107] The decision model visualization system 30 based on deep reinforcement learning algorithm provided by the present invention can execute the above-mentioned decision model visualization method based on deep reinforcement learning algorithm and achieve the same or similar technical effects. To avoid repetition, the present invention will not go into details.

[0108] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0109] In the present invention, a complex dynamic environment is converted into an environment graph through a graph convolutional network, the state space is simplified, and real-time and efficient decision-making is achieved in a dynamically changing environment; by training the decision model, the time complexity of the deep reinforcement learning algorithm is reduced, and real-time and efficient decision-making is achieved; through multi-dimensional statistical analysis and multi-dimensional decision views, it becomes simple to understand and explain the decision-making process of the deep reinforcement learning algorithm.

[0110] It should be understood that the processor in the embodiment of the present invention may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0111] It should also be understood that the memory in the embodiments of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0112] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.

[0113] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.

[0114] In the present invention, "at least one" means one or more, and "more than one" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0115] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean 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 embodiments of the present invention.

[0116] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0117] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0118] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0119] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0120] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0121] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0122] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, the decision model visualization method based on a deep reinforcement learning algorithm as described in the method embodiment is implemented.

[0123] A computer-readable storage medium provided by the present invention can implement the steps and effects of the decision model visualization method based on the deep reinforcement learning algorithm of the above-mentioned method embodiment. To avoid repetition, the present invention will not go into details.

[0124] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0125] In the present invention, a complex dynamic environment is converted into an environment graph through a graph convolutional network, the state space is simplified, and real-time and efficient decision-making is achieved in a dynamically changing environment; by training the decision model, the time complexity of the deep reinforcement learning algorithm is reduced, and real-time and efficient decision-making is achieved; through multi-dimensional statistical analysis and multi-dimensional decision views, it becomes simple to understand and explain the decision-making process of the deep reinforcement learning algorithm.

[0126] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

[0127] There are a few points to note:

[0128] (1) The drawings of the embodiments of the present invention only relate to the structures related to the embodiments of the present invention, and other structures may refer to the general design.

[0129] (2) For the sake of clarity, in the drawings used to describe the embodiments of the present invention, the thickness of the layers or regions is exaggerated or reduced, that is, these drawings are not drawn according to the actual scale. It is understood that when an element such as a layer, film, region or substrate is referred to as being "on" or "under" another element, the element may be "directly" "on" or "under" the other element or there may be intermediate elements.

[0130] (3) In the absence of conflict, the embodiments of the present invention and the features therein may be combined with each other to obtain new embodiments.

[0131] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. The protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A decision model visualization method based on deep reinforcement learning algorithm, characterized in that: include: S1: Acquire complex dynamic environment; S2: converting the complex dynamic environment into an environment graph through a graph convolutional network; S3: Building a decision model based on a deep reinforcement learning algorithm according to the graph convolutional network through independent containerization technology; S4: training the decision model; S5: Build a structured multi-level data storage mechanism; S6: Storing the training data in the decision model training process through the multi-level data storage mechanism; S7: constructing a multidimensional decision view through multidimensional statistical analysis based on the training data; S8: Display the multi-dimensional decision view.

2. The decision model visualization method based on deep reinforcement learning algorithm according to claim 1, characterized in that: The graph convolutional network is a policy network and / or value network of a decision model based on a deep reinforcement learning algorithm.

3. The decision model visualization method based on deep reinforcement learning algorithm according to claim 1, characterized in that: The S2 specifically includes: S201: extracting graph features of the complex dynamic environment based on the distance relationship between key objects and objects in the complex dynamic environment through a graph convolutional network: Among them, g′ t represents the feature matrix at time t after feature extraction, σ(·) represents the ReLU activation function, D represents the degree matrix, represents the sum of the weighted adjacency matrix of the exploration graph and the identity matrix, g t represents the feature matrix at time t, W represents the learnable weight matrix, A represents the weighted adjacency matrix of the exploration graph, and I represents the identity matrix; S202: Establishing a graph representation form of the complex dynamic environment according to the graph features: G=(V,E) Among them, G represents the graph representation of the complex dynamic environment, V represents the set of objects with uncertainty in the complex dynamic environment, and E represents the direct distance mapping ratio of the objects in the complex dynamic environment; S203: Convert the complex dynamic environment into an environment graph according to the graph representation form of the complex dynamic environment.

4. The decision model visualization method based on deep reinforcement learning algorithm according to claim 1, characterized in that: The deep reinforcement learning algorithm includes a policy iteration algorithm and a value iteration algorithm, and S4 specifically includes: S401: training the policy iteration algorithm; S402: Training the value iteration algorithm.

5. The decision model visualization method based on deep reinforcement learning algorithm according to claim 4 is characterized in that: The S401 specifically includes: S4011: Constructing a parameterized strategy of the policy iteration algorithm; S4012: According to the parameterized strategy, use the policy iteration loss function and train the policy iteration algorithm with the goal of minimizing the policy iteration loss function.

6. The decision model visualization method based on deep reinforcement learning algorithm according to claim 5, characterized in that: The strategy iteration loss function is specifically: A(g t ,a t )=Q(g t ,a t )-V(g t ) Among them, L A2C (D) represents the policy iteration algorithm, E B~D represents sampling expectation, B~D represents minimization sampling, and represents the loss term of a single transition sample, g t represents the state at time t, a t represents the action taken at time t, η represents the output entropy coefficient, A(g t ,a t ) represents the advantage function, π θ (a t |g t ) represents the parameterized strategy, β represents the state value loss coefficient, V(g t ) represents the state value function, r t represents the immediate reward at time t, γ represents the discount factor, Q(g t ,a t ) represents the state-action-value function.

7. The decision model visualization method based on deep reinforcement learning algorithm according to claim 4, characterized in that: The S402 specifically includes: S4021: Determine the expected value of future returns through the value iteration algorithm: Among them, Q θ represents the expected value of future rewards, E[·] represents expectation, r represents immediate reward, T represents total duration, and τ represents time; S4022: Use the value iteration loss function to train the value iteration algorithm with the goal of minimizing the value iteration loss function.

8. The decision model visualization method based on deep reinforcement learning algorithm according to claim 7, characterized in that: The value iteration loss function is specifically: L DQN (D)=E B~D [(r t +γmax(g t+1 ,a t+1 )-Q(g t ,a t )) 2 ] B~D={(g t ,a t ,r t ,g t+1 ) t } t∈T Among them, L DQN (D) represents the updated policy iteration algorithm.

9. The decision model visualization method based on deep reinforcement learning algorithm according to claim 1, characterized in that: The S6 specifically includes: S601: marking the training data in the graph convolutional network training process through the structured multi-level data storage mechanism, wherein the training data includes training cycles and decision sequence data, wherein each decision sequence data includes a set of {s, a, r}; S602: The labeled training data is serialized and stored as a CSV file through the structured multi-level data storage mechanism.

10. A decision model visualization system based on deep reinforcement learning algorithm, characterized in that: include: processor; A memory having computer-readable instructions stored thereon, which, when executed by a processor, implements the decision model visualization method based on a deep reinforcement learning algorithm as described in any one of claims 1 to 9.