A reinforcement learning method based on contextual state and action weight

By introducing context state and action weighting mechanisms into reinforcement learning, the problem of insufficient representation of future states by convolutional neural networks is solved, state information association capture and sample efficiency are improved, and ideal effects in continuous action control environments are achieved.

CN118627574BActive Publication Date: 2024-10-11ANHUI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411102954.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-10-11
Estimated Expiration
2044-08-13

AI Technical Summary

Technical Problem

Traditional convolutional neural networks have low ability to represent future states, resulting in the inability to effectively capture the correlation between state information and future states during the interaction between the agent and the environment, affecting the effectiveness of reinforcement learning algorithms.

Method used

A reinforcement learning method based on context state and action weight is adopted. By obtaining state data in the Mujoco framework, the feature network CMNet and the framework network SACNet of the SAC reinforcement learning algorithm are used, combined with the state information preprocessing and context state information fusion module, and the action weight is introduced. mechanism to optimize state information extraction and prediction model training.

Benefits of technology

It improves the network model's ability to represent future states, enhances the ability to capture state information correlations, improves sample data utilization efficiency, promotes model convergence speed and training effect, and ensures that agents can make accurate decisions in a continuous action control environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118627574B_ABST
    Figure CN118627574B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of intelligent agent reinforcement learning technology, and in particular to a reinforcement learning method based on contextual state and action weight, the method comprising the following steps: in a continuous action control environment based on the Mujoco framework, obtaining state data information generated by the interaction between a robot and an environment; training and testing an execution action prediction model based on the state data information, inputting real-time state information fed back by the environment into the execution action prediction model to output the corresponding predicted execution action. The present invention strengthens the network model's ability to characterize future states, can broaden the network model's global vision in the process of interaction between an intelligent agent and an environment, so as to help the network model better capture the relationship between future state information and states, improve the utilization efficiency of sample data, enhance the reinforcement learning method, and achieve ideal results in continuous action control environment tasks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent agent reinforcement learning, and in particular to a reinforcement learning method based on context state and action weight. Background Art

[0002] In the reinforcement learning algorithm, the model directly inputs the state information fed back by the environment during the interaction between the agent and the environment, extracts the features of the state image information, and then sends it to the Actor network in the reinforcement learning algorithm to obtain the predicted execution action. Most of the feature extraction of image information uses convolutional neural networks (CNN), which are very popular and efficient feature extraction networks in the field of computer vision. However, this network has very low ability to represent future states.

[0003] At the same time, in the feature extraction of state information, it is not taken into account that the interaction between the intelligent agent and the environment is a continuous process, and there is a lack of constraints on the state information feature extraction network. Therefore, it is impossible to better capture the relationship between future state information and states, so it is difficult to achieve the ideal effect. Summary of the invention

[0004] In view of the shortcomings of the prior art, the present invention provides a reinforcement learning method based on contextual states and action weights, which solves the technical problem that traditional convolutional neural networks have very low ability to represent future states, resulting in the inability to capture future state information and the relationship between states.

[0005] To solve the above technical problems, the present invention provides the following technical solution: a reinforcement learning method based on context state and action weight, the method comprising the following steps:

[0006] S1. In a continuous motion control environment based on the Mujoco framework, obtain the state data information generated by the interaction between the robot and the environment. The state data information includes the state image , Reward Value and end mark Three types of data information;

[0007] S2. Train and test the execution action prediction model based on the state data information. The execution action prediction model consists of a feature network CMNet with state information extraction and fusion functions, and a reinforcement learning framework network SACNet based on the SAC reinforcement learning algorithm;

[0008] S3. Input the real-time status information fed back by the environment into the execution action prediction model to output the corresponding predicted execution action, so as to adjust the action executed by the intelligent agent in real time to ensure that a higher score is obtained in the environment.

[0009] Furthermore, the continuous motion control environment based on the Mujoco framework includes cartpole-swingup, cheetah-run and walker-walk.

[0010] Furthermore, the acquisition of status data information generated by the interaction between the robot and the environment specifically includes:

[0011] In the continuous action control virtual environment based on the Mujoco framework, the agent first performs actions randomly generated by the program to interact with the environment 1000 times, and then feeds back the state image of the next moment. , Reward Value and end mark Three types of data information, and the currently randomly generated actions Store them together in the experience pool Buffer;

[0012] The program generates actions based on the current state information. The agent will perform these actions to interact with the environment and will generate the state image of the next moment fed back by the environment. , Reward Value and end mark Three types of data information, and the actions currently generated by the program Store them together in the experience pool Buffer.

[0013] Furthermore, the feature network CMNet includes a method for extracting features from the input state data information to obtain a triple The state information preprocessing module and the triple Fusion to obtain latent features Context state information fusion module;

[0014] The state information preprocessing module is obtained by stacking four CONV-MP-ReLU layers, and the expression is:

[0015] ;

[0016] in, represents the CONV-MP-ReLU layer, which is a series combination of the CONV layer, the MaxPooling layer, and the ReLU layer; It means that 4 CONV-MP-ReLU layers are superimposed;

[0017] The context state information fusion module consists of three FC layers that fuse the context state information, and the expression is:

[0018] ;

[0019] Among them, MLP represents 3 FC layers; is the potential characteristic at time t.

[0020] Furthermore, the state information preprocessing module includes an online state information preprocessing module and a target state information preprocessing module. The online state information preprocessing module and the target state information preprocessing module use the same model structure and are in parallel. The online state information preprocessing module and the context state information fusion module are in series.

[0021] Furthermore, the weight of the target state information preprocessing module is soft-updated according to the weight of the online state information preprocessing module, and the weight of the target state information preprocessing module is:

[0022] ;

[0023] in, is the weight of the target state information preprocessing module; is the weight of the online status information preprocessing module; is a coefficient between 0 and 1.

[0024] Furthermore, in step S2, a reinforcement learning framework network SACNet based on the SAC reinforcement learning algorithm is constructed, which specifically includes the following steps:

[0025] S21. Build a reinforcement learning AC framework based on Actor network and Critic network;

[0026] S22. Randomly extract n state image State data from the experience pool Buffer , and the corresponding actions Recorded as , and calculate the cosine similarity between two actions to get the action weight matrix ,Right now:

[0027] ;

[0028] in, Represents the cosine similarity calculation function;

[0029] S23, perform random cropping operation on each state image State data to obtain two state image State data, which are recorded as and ;

[0030] S24, will Input the online state information preprocessing module and the context state information fusion module to obtain features Recorded as ,Will Input the target state information preprocessing module to obtain features Recorded as ;

[0031] S25, according to the action weight matrix Calculate the loss function of the state information preprocessing model ,Right now:

[0032] ;

[0033] in, It is a feature The item; and Characteristics The Item and item; is a set of learnable weight parameters; is the action weight matrix Zhongyu The corresponding action weight vector; Features The length of the sequence;

[0034] S26. Determine the loss function of the reinforcement learning algorithm ,Right now:

[0035] ;

[0036] in, and It is the loss function corresponding to the Actor network and the Critic network under the reinforcement learning AC framework; It is the loss function that constrains the state information preprocessing model;

[0037] S27. Combined with loss function based on reinforcement learning AC framework Construct the framework network SACNet.

[0038] Furthermore, in step S3, the specific process includes: inputting the real-time state information fed back by the environment into the feature network CMNet and the reinforcement learning framework network SACNet in sequence, and outputting the corresponding predicted execution action, namely:

[0039] The real-time state data information is input into the state information preprocessing module and the Actor network under the reinforcement learning AC framework in turn, and the corresponding predicted execution action is output ;

[0040] The agent performs actions according to the instructions output by the program And get rewards until the end of the environment round.

[0041] By means of the above technical solution, the present invention provides a reinforcement learning method based on context state and action weight, which has at least the following beneficial effects:

[0042] 1. The present invention introduces a context state and action weight mechanism to train the network model, thereby enhancing the network model's ability to represent future states. This can broaden the network model's global vision during the interaction between the intelligent agent and the environment, helping the network model to better capture future state information and the relationship between states, improve the utilization efficiency of sample data, enhance the reinforcement learning method, and achieve ideal results in continuous action control environment tasks.

[0043] 2. The present invention helps the feature extraction network capture the relationship between future state information and states, improves sample efficiency, accelerates the convergence speed of the model, and improves the training effect of the reinforcement learning algorithm.

[0044] 3. The action weight mechanism proposed in the present invention helps the network model learn the associations and differences between various state features, and can focus on more diversified features, enhance the sensitivity of the network model to similar state information, and enable the intelligent agent to make more accurate decisions in the process of interacting with the environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0046] Figure 1 A flowchart of a reinforcement learning method based on contextual state and action weights of the present invention;

[0047] Figure 2 A network structure diagram of the action prediction model executed by the present invention;

[0048] Figure 3 A schematic diagram of the environment selected during the training process of the present invention;

[0049] Figure 4 It is a reward curve diagram of the present invention during the training process of the cartpole-swingup environment;

[0050] Figure 5 It is a reward curve diagram of the present invention during the training process of the cheetah-run environment;

[0051] Figure 6It is a reward curve diagram of the present invention during the walker-walk environment training process;

[0052] Figure 7 It is a reward curve diagram of the present invention during the cartpole-swingup environment test;

[0053] Figure 8 It is a reward curve diagram of the present invention during the cheetah-run environment test;

[0054] Fig. 9 It is a reward curve diagram of the present invention during the walker-walk environment test process. DETAILED DESCRIPTION

[0055] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific implementation methods, so that the implementation process of how the present application uses technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly.

[0056] Improving sample efficiency has always been an important topic in the field of reinforcement learning research. Due to the particularity of reinforcement learning model training, the agent needs to constantly interact with the environment for trial and error learning. Data is generated during the interaction between the agent and the environment, and the model is trained and updated through this data. Therefore, in the early stage of training, the data for training the model is very limited, and the amount of data directly affects the training effect of the model. Therefore, how to make limited data play a greater value, that is, to improve the efficiency of sample use, is an important topic with great theoretical research value.

[0057] In previous reinforcement learning algorithms, the model directly inputs the state information fed back by the environment during the interaction between the agent and the environment, extracts the features of the state image information, and then feeds it into the Actor network in the reinforcement learning algorithm to obtain the predicted execution action. However, this does not take into account that the interaction between the agent and the environment is a continuous process, and the action executed at each moment and the state of the next moment fed back by the environment are closely linked. Most of the feature extraction of image information uses convolutional neural networks (CNNs), which are very popular and efficient feature extraction networks in the field of computer vision. However, this network has very low representation ability for future states. In order to enhance the network's representation ability for future states and improve sample efficiency, a contextual state information and action weight mechanism is used to broaden the global vision of the network model during the interaction between the agent and the environment, so as to help the network model better capture the relationship between future state information and states.

[0058] In the field of reinforcement learning research, improving sample efficiency is a very challenging and significant research direction. In the feature extraction of state information, previous reinforcement learning algorithms did not take into account that the interaction between the agent and the environment is a continuous process, and lacked constraints on the state information feature extraction network, so it is difficult to achieve the desired effect. Therefore, in order to solve the above pain points, please refer to Figure 1-Figure 9 This embodiment proposes a reinforcement learning method based on contextual state and action weight to help the network model better capture the association between future state information and states, improve the utilization efficiency of sample data, enhance the reinforcement learning method, and achieve ideal results in continuous action control environment tasks. The method includes the following steps:

[0059] S1. In a continuous motion control environment based on the Mujoco framework, obtain the state data information generated by the interaction between the robot and the environment. The state data information includes the state image , Reward Value and end mark Three types of data information; the continuous action control environment based on the Mujoco framework includes cartpole-swingup, cheetah-run and walker-walk. Obtain the state data information generated by the interaction between the robot and the environment, including:

[0060] In the continuous action control virtual environment based on the Mujoco framework, the agent first performs actions randomly generated by the program to interact with the environment 1000 times, and then feeds back the state image of the next moment. , Reward Value and end mark Three types of data information, and the currently randomly generated actions Store them together in the experience pool Buffer;

[0061] Next, the program generates an action based on the current state information. The agent will perform this action to interact with the environment and send the state image of the next moment fed back by the environment. , Reward Value and end mark Three types of data information, and the actions currently generated by the program Store them together in the experience pool Buffer.

[0062] In this embodiment, a considerable amount of state data is obtained in a continuous motion control environment based on the Mujoco framework, including data generated during the interaction between randomly generated intelligent agent actions and different environments, as well as data generated during the interaction between intelligent agent actions generated according to current state information and different environments. In this way, the sample data used to perform motion prediction model training is expanded, thereby improving the final training effect, making limited data more valuable, and improving the efficiency of sample use.

[0063] S2. Train and test the execution action prediction model based on the state data information. The execution action prediction model consists of a feature network CMNet with state information extraction and fusion functions, and a reinforcement learning framework network SACNet based on the SAC reinforcement learning algorithm;

[0064] like Figure 2 As shown in the figure, a feature network CMNet with state information extraction and fusion functions is constructed. The feature network CMNet consists of three parts: an online state information preprocessing network, a target state information preprocessing network and a context state information fusion network. The online state information preprocessing network and the context state information fusion network are a series combination. The online state information preprocessing network and the target state information preprocessing network use the same model structure, and the two are parallel structures. The weights of the target state information preprocessing network are soft updated according to the weights of the online state information preprocessing network.

[0065] The above two state information preprocessing networks are obtained by stacking 4 CONV-MP-ReLU layers, so that the state information preprocessing network can extract features from the input state information. First, the input state information image data size is adjusted to a uniform size of 84×84, and then the image data is randomly cropped for preprocessing. Finally, the image data is sent to the preprocessing module to obtain the following features:

[0066] ;

[0067] in, represents the CONV-MP-ReLU layer, which is a series combination of the CONV layer, the MaxPooling layer, and the ReLU layer; It means that 4 CONV-MP-ReLU layers are superimposed;

[0068] The weight of the target state information preprocessing module is soft-updated according to the weight of the online state information preprocessing module. The weight of the target state information preprocessing module is:

[0069] ;

[0070] in, is the weight of the target state information preprocessing module; is the weight of the online status information preprocessing module; is a coefficient between 0 and 1.

[0071] The above-mentioned context state information fusion network consists of three FC layers, which can fuse the context state information and enhance the prediction ability of the execution action prediction model for future states. The three consecutive state information are processed by the state information preprocessing network to obtain a triplet , the feature obtained by inputting the triple into the context state information fusion network is:

[0072] ;

[0073] Among them, MLP represents 3 FC layers; is the potential characteristic at time t.

[0074] Furthermore, a reinforcement learning framework network SACNet based on the SAC reinforcement learning algorithm is constructed, which specifically includes the following steps:

[0075] S21. Build a reinforcement learning AC framework based on Actor network and Critic network;

[0076] S22. Randomly extract n state image State data from the experience pool Buffer , and the corresponding actions Recorded as , and calculate the cosine similarity between two actions to get the action weight matrix ,Right now:

[0077] ;

[0078] in, Represents the cosine similarity calculation function;

[0079] The action weight matrix helps the model understand the similarity between states. By constraining the similarity between states through the action weight matrix, it can help the model extract a better representation of the state information, thereby improving the performance of the model.

[0080] At the same time, the action weight mechanism helps the network model learn the associations and distinctions between various state features, and pay attention to more diversified features, enhancing the sensitivity of the action prediction model to similar state information, allowing the intelligent agent to make more accurate decisions in the process of interacting with the environment.

[0081] S23, perform random cropping operation on each state image State data to obtain two state image State data, which are recorded as and ;

[0082] S24, will Input the online state information preprocessing module and the context state information fusion module to obtain features Recorded as ,Will Input the target state information preprocessing module to obtain features Recorded as ;

[0083] S25, according to the action weight matrix Calculate the loss function of the state information preprocessing model ,Right now:

[0084] ;

[0085] in, It is a feature The item; and Characteristics The Item and item; is a set of learnable weight parameters; is the action weight matrix Zhongyu The corresponding action weight vector; Features The length of the sequence;

[0086] S26. Determine the loss function of the reinforcement learning algorithm ,Right now:

[0087] ;

[0088] in, and It is the loss function corresponding to the Actor network and the Critic network under the reinforcement learning AC framework; It is the loss function that constrains the state information preprocessing model;

[0089] S27. Combined with loss function based on reinforcement learning AC framework Construct the framework network SACNet.

[0090] This embodiment introduces a feature fusion mechanism on the original feature extraction, and integrates the contextual state information into the state features at each moment, broadening the field of vision of the network model so that the network model not only pays attention to the state features of the past, but can also predict the state features of the future, thereby enhancing the representation and exploration capabilities of the network model, which can enable the intelligent agent to perform better in a series of decision-making tasks.

[0091] S3, input the real-time state information fed back by the environment into the execution action prediction model to output the corresponding predicted execution action, so as to adjust the action executed by the agent in real time to ensure a higher score in the environment, that is:

[0092] The real-time state data information is input into the state information preprocessing module and the Actor network under the reinforcement learning AC framework in turn, and the corresponding predicted execution action is output ; The agent performs actions according to the instructions output by the program And get rewards until the end of the environment round.

[0093] The present invention introduces contextual state and action weight mechanism to enhance the reinforcement learning algorithm, improves the sample utilization efficiency, enables the feature extraction network to play an effective role in both spatial and temporal dimensions, achieves ideal results in the continuous action control environment, and the proposed method has been effectively verified. Compared with the traditional feature extraction network model, the execution action prediction model takes into account the future state characteristics and the relationship between state characteristics, providing a solid guarantee for the correct action execution of the subsequent intelligent body.

[0094] In the actual implementation of the present invention, the intelligent agent Figure 3 The training and testing are performed in the environments shown in the figure, including cartpole-swingup, cheetah-run and walker-walk, where the environmental background includes interference information such as different background colors, floors, various shadows and contours. These interference information increases the complexity of the image data and makes the training of the execution action prediction model more difficult. However, it is precisely because of these interference factors that the trained execution action prediction model has very good transferability and robustness.

[0095] In the actual training process, this method trains the action prediction model in the cartpole-swingup, cheetah-run, and walker-walk environments based on the Mujoco framework. The agent needs to perform actions 100K times in total. In the first 1000 interactions, the actions performed by the agent are randomly generated, and then the actions performed by the agent are generated by the network model. Each time the action prediction model is trained, a certain number of samples are randomly extracted from the experience pool Buffer, which is conducive to improving the richness of samples and accelerating the learning of the action prediction model. During the training of the action prediction model, only the reinforcement learning framework network SACNet and Figure 2 The online state information preprocessing network and context state information fusion network shown in are updated, and the weights of the target state information preprocessing network are soft-updated based on the weights of the online state information preprocessing network, which reduces the burden of learning the execution action prediction model and also speeds up the convergence speed of the execution action prediction model.

[0096] Figure 4-Figure 6 is the reward curve of the present invention during the training process in different environments, where the horizontal axis is the number of interactions between the agent and the environment, and the vertical axis is the reward score obtained by the agent at the moment. The Baseline curve in the figure is the training result without adding context state information and action weight mechanism, and the Ours curve is the training result of the present invention. Figure 4-Figure 6 The training results show that the reinforcement learning method based on contextual state information and action weights proposed in the present invention has achieved good results in the training process, with a significant improvement in the reward index, greatly improving the efficiency of sample utilization, and accelerating the convergence speed of the model. At the same time, it also proves the universality of this method.

[0097] Figure 7-Figure 9 It is the reward curve of the present invention in the process of testing in different environments, where the horizontal axis is the number of interactions between the agent and the environment, and the vertical axis is the reward score obtained by the current agent in the test process. The test is carried out simultaneously during the training process to facilitate real-time monitoring of the current decision-making ability of the agent. The Baseline curve in the figure is the test result without adding contextual state information and action weight mechanism, and the Ours curve is the test result of the present invention. During the test process, the model must first undergo ten tests, and the results are saved at the same time, and finally the calculated average value is used as the final result. By Figure 7-Figure 9 The test results show that the method proposed in the present invention has achieved good results and still performs well in different test environments, which can prove the stability and universality of the method.

[0098] Those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, so the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0099] The above implementation methods have been described in detail. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A reinforcement learning method based on context state and action weight, characterized in that: The method comprises the following steps: S1. In a continuous motion control environment based on the Mujoco framework, obtain the state data information generated by the interaction between the robot and the environment. The state data information includes the state image , Reward Value and end mark Three types of data information; S2. Train and test the execution action prediction model based on the state data information. The execution action prediction model consists of a feature network CMNet with state information extraction and fusion functions, and a reinforcement learning framework network SACNet based on the SAC reinforcement learning algorithm; The feature network CMNet includes a function for extracting features from the input state data information to obtain a triple The state information preprocessing module and the triple Fusion to obtain latent features Context state information fusion module; The state information preprocessing module is obtained by stacking four CONV-MP-ReLU layers, and the expression is: ; in, represents the CONV-MP-ReLU layer, which is a series combination of the CONV layer, the MaxPooling layer, and the ReLU layer; It means that 4 CONV-MP-ReLU layers are superimposed; The context state information fusion module consists of three FC layers that fuse the context state information, and the expression is: ; Among them, MLP represents 3 FC layers; is the potential characteristic at time t; Construct a reinforcement learning framework network SACNet based on the SAC reinforcement learning algorithm, which includes the following steps: S21. Build a reinforcement learning AC framework based on Actor network and Critic network; S22. Randomly extract n state image State data from the experience pool Buffer , and the corresponding actions Recorded as A, and the cosine similarity between two actions is calculated to obtain the action weight matrix ,Right now: ; in, Represents the cosine similarity calculation function; S23, perform random cropping operation on each state image State data to obtain two state image State data, which are recorded as and ; S24, will Input the online state information preprocessing module and the context state information fusion module to obtain features Recorded as ,Will Input the target state information preprocessing module to obtain features Recorded as ; S25, according to the action weight matrix Calculate the loss function of the state information preprocessing model ,Right now: ; in, It is a feature The item; and Characteristics The Item and item; is a set of learnable weight parameters; is the action weight matrix Zhongyu The corresponding action weight vector; Features The length of the sequence; S26. Determine the loss function of the reinforcement learning algorithm ,Right now: ; in, and It is the loss function corresponding to the Actor network and the Critic network under the reinforcement learning AC framework; It is the loss function that constrains the state information preprocessing model; S27. Combined with loss function based on reinforcement learning AC framework Construct the framework network SACNet; S3. Input the real-time status information fed back by the environment into the execution action prediction model to output the corresponding predicted execution action, so as to adjust the action executed by the intelligent agent in real time to ensure that a higher score is obtained in the environment.

2. The reinforcement learning method according to claim 1, characterized in that: The continuous motion control environment based on the Mujoco framework includes cartpole-swingup, cheetah-run and walker-walk.

3. The reinforcement learning method according to claim 1, characterized in that: The obtaining of status data information generated by the interaction between the robot and the environment specifically includes: In the continuous action control virtual environment based on the Mujoco framework, the agent first performs actions randomly generated by the program to interact with the environment 1000 times, and then feeds back the state image of the next moment. , Reward Value and end mark Three types of data information, and the currently randomly generated actions Store them together in the experience pool Buffer; The program generates actions based on the current state information. The agent will execute this action to interact with the environment and store the three data information of the next moment's state image, reward value and end mark fed back by the environment, as well as the current action generated by the program, into the experience pool Buffer.

4. The reinforcement learning method according to claim 1, characterized in that: The state information preprocessing module includes an online state information preprocessing module and a target state information preprocessing module. The online state information preprocessing module and the target state information preprocessing module use the same model structure and are in parallel. The online state information preprocessing module and the context state information fusion module are in series.

5. The reinforcement learning method according to claim 4, characterized in that: The weight of the target state information preprocessing module is soft-updated according to the weight of the online state information preprocessing module. The weight of the target state information preprocessing module is: ; in, is the weight of the target state information preprocessing module; is the weight of the online status information preprocessing module; is a coefficient between 0 and 1.

6. The reinforcement learning method according to claim 1, characterized in that: In step S3, the specific process includes: inputting the real-time state information fed back by the environment into the feature network CMNet and the reinforcement learning framework network SACNet in sequence, and outputting the corresponding predicted execution action, namely: The real-time state data information is input into the state information preprocessing module and the Actor network under the reinforcement learning AC framework in turn, and the corresponding predicted execution action is output ; The agent outputs the Instructions perform actions and receive rewards until the end of the environment round.