A nonlinear state representation learning method and device for robot control

Dimensionality reduction and optimization of sensor data are carried out through kernel principal component analysis technology, which solves the problem of poor decision-making effect of robots in unstructured environments, achieves better understanding of environmental characteristics and decision-making effects, and is suitable for robots in unstructured environments. control.

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

Patent Information

Application Number
CN202410463960.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-17
Publication Date
2024-09-17
Estimated Expiration
2044-04-17

AI Technical Summary

Technical Problem

It is difficult for existing technologies to effectively perform nonlinear state representation learning for robot control in unstructured environments, resulting in poor decision-making effects of intelligent robots in complex environments.

Method used

Kernel principal component analysis technology is used to reduce the dimensionality of the original data input by the sensor. The Markov state quantity is optimized through relative entropy strategy search and preset kernel functions, and an optimized Markov decision maker is constructed to capture the characteristics of the nonlinear environment. and understanding.

Benefits of technology

It improves the decision-making system learning and decision-making effect of intelligent robots in unstructured environments, is suitable for home, office and outdoor small robots, and reduces the difficulty of manual intervention and task migration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118192260B
    Figure CN118192260B
Patent Text Reader

Abstract

The present invention relates to the field of robot control technology, and in particular to a nonlinear state representation learning method and device for robot control. A nonlinear state representation learning method for robot control includes: collecting information through environmental sensors to obtain environmental information; constructing a Markov decision maker for environmental information; collecting data based on the Markov decision maker to obtain experience samples and task feedback information; optimizing dimensionality reduction processing based on sample weights of experience samples and task feedback information to obtain an optimized Markov state quantity; based on a relative entropy strategy search method, iteratively optimizing the Markov decision maker based on the optimized Markov state quantity to obtain an optimized Markov decision maker; obtaining online environmental information; and making action decisions through the optimized Markov decision maker. The present invention is a nonlinear state representation learning method based on principal component analysis that effectively overcomes robot control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of robot control technology, and in particular to a nonlinear state representation learning method and device for robot control. Background Art

[0002] In the research fields of reinforcement learning and imitation learning of intelligent robots, the Markov decision process is a commonly used mathematical framework for modeling the sequential random environment in which the robot is located and the decision-making problems faced by the robot. In the Markov decision process, the state reflects the robot's intelligent decision-making system's cognition of the environment and tasks, and is a necessary basis for the robot to make decisions and decide on the next action. Whether the state can well reflect the characteristics of the environment and the progress of the task will affect the quality of the intelligent agent's decision.

[0003] For intelligent robots, the raw data input by sensors is high-dimensional, unfiltered, has high computational complexity, and cannot well reflect the environmental factors related to decision-making tasks. It is not suitable to be directly used as the state quantity in the Markov process. Therefore, the state is generally obtained by performing dimensionality reduction, refinement and other analysis and processing operations on the sensor input data based on the specific task characteristics.

[0004] In traditional methods, the analysis and processing of raw data is completed by manually analyzing the characteristics of the task, environment, and sensors in advance, and then designing a mapping from the raw input to the state quantity. This design work is called "state space design." The effectiveness of this method depends on the personal work experience of the engineer responsible for designing the state quantity, and the workload is large, it is difficult to transfer and generalize to different task scenarios, and the degree of intelligence is low.

[0005] Compared with traditional manual design methods, state representation learning (SRL) aims to enable intelligent systems to autonomously learn from raw, high-dimensional sensor data the mapping from raw input to state that is conducive to understanding the environment and completing tasks, thereby reducing the burden of manual labor, reducing the impact of human factors on the decision-making effect of intelligent systems, and improving the generalization and migration capabilities of decision-making algorithms. The research on state representation learning aims to solve problems related to feature extraction, dimensionality reduction, representation learning, and interpretability. Therefore, it spans multiple fields and disciplines, including machine learning, artificial intelligence, robotics, reinforcement learning, computer vision, and natural language processing. At present, research on state representation learning mainly focuses on several major areas: deep representation learning, unsupervised learning, transfer learning and domain adaptation, hierarchical and combined representations, semantic role labeling (Semantic Role Labeling, SRL) interpretability, SRL evaluation benchmarks and testing methods. In the field of deep representation learning and unsupervised learning, researchers use deep neural networks to learn state representations, including convolutional neural networks (CNN) for image representation, recurrent neural networks (RNN) for sequence data, and variational autoencoders (VAEs) for unsupervised representation learning. The research focus in this field is on developing architectures, training algorithms, and regularization techniques to learn effective and robust representations; in the direction of transfer learning and domain adaptation, the research focus is on developing methods that can transfer the representations learned by intelligent decision-making systems in one environment to other similar environments, thereby achieving faster learning and better generalization; hierarchical representation learning aims to capture multiple layers of abstraction and structure in the state space, and achieve more effective and flexible decision-making by learning state representations of different scales and levels. Combinatorial representation learning focuses on decomposing complex states into meaningful sub-states to better explain and understand the potential influencing factors in the environment; research on SRL interpretability includes developing methods to understand the representations learned by SRL algorithms, visualizing salient features, and providing explanations of the decision-making process that humans can understand; research on evaluation benchmarks and testing methods includes developing evaluation metrics and benchmark datasets, designing decision-making tasks and environments to evaluate the quality and effectiveness of state representations learned by SRL algorithms, and then evaluating the performance, generalization, and migration capabilities of SRL algorithms.

[0006] Principal Component Analysis (PCA) is a statistical technique widely used in dimensionality reduction and data mining. It converts high-dimensional data sets into low-dimensional space by identifying the direction of the largest data change (called the principal component). In the field of intelligent robot reinforcement training, the SRL algorithm based on the PCA principle is a method that can effectively extract state information related to the robot task in the environment, and performs well in structured environments. However, since the PCA method assumes that there is a linear relationship between the features to be extracted, if the data shows a complex nonlinear relationship, PCA will not be able to capture the key information in the environment well, which will affect the performance of the SRL algorithm and even the subsequent intelligent agent reinforcement training. Different from the structured environment with strict specifications such as factory assembly lines, production workshops, warehouses, and scientific research laboratories, where various items and equipment facilities are arranged in an orderly manner, in unstructured environments such as homes, office areas, business premises, and outdoors, where management is loose and items and devices are messy, intelligent robots need to face more disordered and chaotic environmental factors. The input of sensors and the environmental characteristics related to the task hidden in the environment all show obvious nonlinear properties. PCA is difficult to capture nonlinear relationships and complex patterns in such environments.

[0007] In the prior art, there is a lack of a principal component analysis-based learning method that can effectively overcome the nonlinear state representation of robot control. Summary of the invention

[0008] In order to solve the technical problem that the nonlinear state representation learning effect of the robot in the prior art is poor, the embodiment of the present invention provides a nonlinear state representation learning method and device for robot control. The technical solution is as follows:

[0009] In one aspect, a nonlinear state representation learning method for robot control is provided, the method being implemented by a nonlinear state representation learning device, the method comprising:

[0010] Collect information through environmental sensors to obtain environmental information;

[0011] Performing dimensionality reduction mapping on the environmental information to obtain a Markov state quantity; constructing a Markov decision maker according to the Markov state quantity;

[0012] According to the Markov state quantity, data is collected based on the Markov decision maker to obtain experience samples and task feedback information;

[0013] Based on the relative entropy strategy search method, the sample weight is obtained by calculating according to the experience sample and the task feedback information;

[0014] Based on a preset kernel function, an optimization dimensionality reduction process is performed according to the empirical samples and the sample weights to obtain an optimized Markov state quantity;

[0015] Based on the relative entropy strategy search method, according to the optimized Markov state quantity, the Markov decision maker is iteratively optimized to obtain an optimized Markov decision maker;

[0016] Acquire online environment information; and make action decisions based on the optimized Markov decision maker according to the online environment information.

[0017] The environmental information is nonlinear state representation information processed by the robot.

[0018] Optionally, collecting data based on the Markov state quantity and the Markov decision maker to obtain experience samples and task feedback information includes:

[0019] According to the Markov state quantity, an action decision is made through the Markov decision maker to obtain robot action and task feedback information;

[0020] Pairing the environment information and the robot action to obtain an environment-action data pair; saving the environment-action data pair to a data pair set;

[0021] When the number of environment-action data pairs in the data pair set reaches a preset threshold, the data pair set is determined as an experience sample.

[0022] Optionally, the relative entropy strategy-based search method calculates according to the experience sample and task feedback information to obtain the sample weight, including:

[0023] Based on the relative entropy strategy search method, a relative entropy strategy search problem is established according to the experience sample;

[0024] Performing mathematical transformation on the relative entropy strategy search problem to obtain a Lagrangian operator form search problem;

[0025] Solving the Lagrangian operator form search problem to obtain a Lagrangian operator;

[0026] Calculating according to the task feedback information to obtain the Bellman error;

[0027] The sample weight is obtained by calculating according to the Bellman error and the Laerrangian operator.

[0028] Optionally, the optimizing dimensionality reduction processing is performed based on the preset kernel function according to the empirical samples and the sample weights to obtain the optimized Markov state quantity, including:

[0029] Based on a preset kernel function, calculation is performed according to the empirical samples and the sample weights to obtain a weighted kernel matrix;

[0030] Performing eigenvalue decomposition on the weighted kernel matrix to obtain eigenvalues ​​and eigenvectors;

[0031] Based on a preset eigenvalue threshold, the eigenvalues ​​are screened to obtain principal component eigenvalues; and the corresponding principal component eigenvectors are determined according to the principal component eigenvalues;

[0032] According to the principal component eigenvector, the kernel matrix is ​​subjected to dimensionality reduction processing in the principal component direction to obtain an optimized Markov state quantity.

[0033] Optionally, the calculation based on the preset kernel function is performed according to the empirical samples and the sample weights to obtain a weighted kernel matrix, including:

[0034] Based on a preset kernel function, a kernel matrix is ​​constructed according to the empirical samples;

[0035] Performing centralization processing on the kernel matrix to obtain a processed kernel matrix;

[0036] Calculation is performed based on the processed kernel matrix and the sample weights to obtain a weighted kernel matrix.

[0037] On the other hand, a nonlinear state representation learning method device for robot control is provided, the device is applied to the nonlinear state representation learning method for robot control, and the device includes:

[0038] An environmental information acquisition module is used to collect information through environmental sensors to obtain environmental information;

[0039] A decision maker construction module is used to perform dimension reduction mapping on the environmental information to obtain a Markov state quantity; and to construct a Markov decision maker according to the Markov state quantity;

[0040] An information collection module, used to collect data based on the Markov state quantity and the Markov decision maker to obtain experience samples and task feedback information;

[0041] A sample weight calculation module is used to calculate the sample weight based on the experience sample and the task feedback information based on the relative entropy strategy search method;

[0042] A state quantity optimization module is used to perform optimization dimensionality reduction processing based on a preset kernel function according to the empirical samples and the sample weights to obtain an optimized Markov state quantity;

[0043] A decision maker optimization module, used for iteratively optimizing the Markov decision maker based on the relative entropy strategy search method and according to the optimized Markov state quantity to obtain an optimized Markov decision maker;

[0044] The action decision module is used to obtain online environment information; according to the online environment information, the action decision is made based on the optimized Markov decision maker.

[0045] The environmental information is nonlinear state representation information processed by the robot.

[0046] Optionally, the information collection module is further used to:

[0047] According to the Markov state quantity, an action decision is made through the Markov decision maker to obtain robot action and task feedback information;

[0048] Pairing the environment information and the robot action to obtain an environment-action data pair; saving the environment-action data pair to a data pair set;

[0049] When the number of environment-action data pairs in the data pair set reaches a preset threshold, the data pair set is determined as an experience sample.

[0050] Optionally, the sample weight calculation module is further used to:

[0051] Based on the relative entropy strategy search method, a relative entropy strategy search problem is established according to the experience sample;

[0052] Performing mathematical transformation on the relative entropy strategy search problem to obtain a Lagrangian operator form search problem;

[0053] Solving the Lagrangian operator form search problem to obtain a Lagrangian operator;

[0054] Calculating according to the task feedback information to obtain the Bellman error;

[0055] The sample weight is obtained by calculating according to the Bellman error and the Laerrangian operator.

[0056] Optionally, the state quantity optimization module is further used to:

[0057] Based on a preset kernel function, calculation is performed according to the empirical samples and the sample weights to obtain a weighted kernel matrix;

[0058] Performing eigenvalue decomposition on the weighted kernel matrix to obtain eigenvalues ​​and eigenvectors;

[0059] Based on a preset eigenvalue threshold, the eigenvalues ​​are screened to obtain principal component eigenvalues; and the corresponding principal component eigenvectors are determined according to the principal component eigenvalues;

[0060] According to the principal component eigenvector, the kernel matrix is ​​subjected to dimensionality reduction processing in the principal component direction to obtain an optimized Markov state quantity.

[0061] Optionally, the state quantity optimization module is further used to:

[0062] Based on a preset kernel function, a kernel matrix is ​​constructed according to the empirical samples;

[0063] Performing centralization processing on the kernel matrix to obtain a processed kernel matrix;

[0064] Calculation is performed based on the processed kernel matrix and the sample weights to obtain a weighted kernel matrix.

[0065] On the other hand, a nonlinear state representation learning device is provided, comprising: a processor; a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, any one of the nonlinear state representation learning methods for robot control as described above is implemented.

[0066] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction is stored in the storage medium, and the at least one instruction is loaded and executed by a processor to implement any one of the above-mentioned nonlinear state representation learning methods for robot control.

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

[0068] The present invention proposes a nonlinear state representation learning method for robot control. By using the kernel principal component analysis technology to reduce the dimensionality of the original data input by the sensor, it can help home, office area, and outdoor robots in unstructured environments (different from linear structured environments such as factories and assembly lines) to better understand environmental characteristics and make action decisions. According to task feedback, the dimension of the state representation vector is gradually reduced and the data points are weighted to obtain the optimal state representation. By using the extracted state representation as the state input of the Markov decision process, reinforcement learning, imitation learning, etc. are performed. The present invention is more suitable for processing robot controllers such as home robots, office business robots, and outdoor small robots operating in unstructured environments, and improves the learning and decision-making effects of the robot decision system. The present invention is a nonlinear state representation learning method based on principal component analysis that effectively overcomes robot control. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] 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.

[0070] Figure 1 is a flow chart of a nonlinear state representation learning method for robot control provided by an embodiment of the present invention;

[0071] Figure 2 It is a device block diagram of a nonlinear state representation learning method for robot control provided by an embodiment of the present invention;

[0072] Figure 3 It is a structural schematic diagram of a nonlinear state representation learning device provided by an embodiment of the present invention. DETAILED DESCRIPTION

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

[0074] 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.

[0075] 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.

[0076] In the embodiments of the present invention, sometimes a subscript such as W1 may be written as a non-subscript such as W1. When the difference is not emphasized, the meanings to be expressed are the same.

[0077] 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.

[0078] The embodiment of the present invention provides a nonlinear state representation learning method for robot control, which can be implemented by a nonlinear state representation learning device, which can be a terminal or a server. Figure 1 The flowchart of the nonlinear state representation learning method for robot control shown in FIG. 1 may include the following steps:

[0079] S1. Collect information through environmental sensors to obtain environmental information.

[0080] Among them, the environmental information is the nonlinear state representation information processed by the robot.

[0081] In a feasible implementation, the present invention performs dimensionality reduction processing on the raw data input by the sensor based on kernel principal component analysis (kernel PCA) technology. This technology is applicable to nonlinear data sets and can help home, office, and outdoor robots in unstructured environments (as opposed to linear structured environments such as factories and assembly lines) to better understand environmental characteristics and make action decisions.

[0082] The nonlinear state representation learning algorithm framework based on kernel principal component analysis can be mainly divided into four modules or parts: data acquisition, data weighting and preprocessing, kernel principal component analysis data dimensionality reduction and feature extraction, and decision maker learning. A representation learning algorithm is used as the main control part to achieve effective collaboration of the above modules. Among them, the data acquisition part integrates the original input data from the environment received by the sensor and the relevant information from the task requirements as the input of the subsequent steps; the data weighting and preprocessing perform preprocessing steps such as standardization and normalization on the data, and use the Bellman error based on the task feedback information for sample weighting, which is crucial to ensure the application effect of kernel principal component analysis and maintain the consistency of data representation; the kernel principal component analysis data dimensionality reduction and feature extraction module is the core part of the algorithm framework. Through kernel principal component analysis, the principal components that capture the most important sources of changes in the nonlinear data set are identified to achieve the purpose of screening and refining the original data, and obtain a low-dimensional state representation that is easy to calculate while retaining key information. The decision maker learning module uses the extracted state representation as the state input of the Markov decision process to learn intelligent decision algorithms such as reinforcement learning and imitation learning.

[0083] S2. Perform dimensionality reduction mapping on the environmental information to obtain the Markov state quantity; and construct a Markov decision maker based on the Markov state quantity.

[0084] In a feasible implementation, multiple sensor information is read by the environmental sensor carried by the robot for preprocessing. The processed environmental information is subjected to dimensionality reduction transformation to obtain Markov state quantity. A Markov decision maker is constructed based on the robot control information in the Markov state quantity, and the decision maker is used for robot control execution.

[0085] The dimensionality reduction mapping used here can adopt any existing dimensionality reduction mapping method, such as principal component analysis method.

[0086] S3. According to the Markov state quantity, data is collected based on the Markov decision maker to obtain experience samples and task feedback information.

[0087] Optionally, data collection is performed based on the Markov state quantity and the Markov decision maker to obtain experience samples and task feedback information, including:

[0088] According to the Markov state quantity, the action decision is made through the Markov decision maker to obtain the robot action and task feedback information;

[0089] Pairing the environment information and the robot action to obtain the environment-action data pair; saving the environment-action data pair to the data pair set;

[0090] When the number of environment-action data pairs in the data pair set reaches a preset threshold, the data pair set is determined as an experience sample.

[0091] In a feasible implementation, the Markov decision maker makes action decisions based on the input low-dimensional state representation representing the robot environment information, and the robot actuator makes corresponding actions based on the action decisions made. The robot controller records the executed task actions and task feedback information.

[0092] The sensor input data o is processed into a Markov state quantity s according to the dimension reduction mapping φ obtained in the previous iteration (no processing is performed in the first iteration). The mathematical expression of the Markov state quantity is as follows:

[0093] s=φ(o) (1)

[0094] The decision maker π gives the action a that the intelligent robot needs to perform based on the state quantity s. The mathematical expression of this process is shown in the following formula (2):

[0095] a=π(s) (2)

[0096] The intelligent robot performs a series of “read sensor data-execute action” operations to collect environment-action data pairs, and records them as experience samples {o, a} when a predetermined quantity threshold is reached.

[0097] S4. Based on the relative entropy strategy search method, the sample weight is calculated according to the experience samples and task feedback information.

[0098] Optionally, based on the relative entropy strategy search method, calculation is performed according to the experience sample and task feedback information to obtain the sample weight, including:

[0099] Based on the relative entropy strategy search method, a relative entropy strategy search problem is established according to the empirical samples;

[0100] The relative entropy strategy search problem is mathematically transformed to obtain the Lagrangian operator form search problem;

[0101] Solve the Lagrangian operator form search problem and obtain the Lagrangian operator;

[0102] Calculate based on task feedback information to get the Bellman error;

[0103] The sample weight is obtained by calculation based on the Bellman error and the Larrange operator.

[0104] In a feasible implementation, the relative entropy strategy search is a decision maker optimization method. In the present invention, the data dimension reduction method is constructed based on the characteristics of the decision maker optimization method. Therefore, the weight information of the data dimension reduction is also derived and calculated by the decision maker optimization formula.

[0105] Based on a series of paired observations and actions in the above steps, the empirical sample information sample (a, o) = {(a1, o1), (a2, o2) ... (a t , o t )...}, design a relative entropy strategy search problem with constraints. The mathematical expression of the relative entropy strategy search problem is shown in the following formula (3):

[0106]

[0107] Based on the above equation (3), the solution is converted into the Lagrangian operator form. The mathematical expression of this step is as follows:

[0108]

[0109] Among them, μ π (o) is the steady-state distribution, which indicates the probability that the agent obtains sensor data o under the condition of following strategy π. is the reinforcement learning reward function; q(a|o) is the sample distribution, η, V = V(o) is the Lagrangian operator, and δ(o, a, V) is the Bellman error.

[0110] Based on the above equations (3) and (4), the dual optimization problem is solved to obtain the Lagrangian operators η and V(o). The process is as follows:

[0111]

[0112] According to the calculation results of the above steps, the sample weight d based on the Bellman error is calculated. The mathematical expression of this process is as follows:

[0113]

[0114] S5. Based on the preset kernel function, an optimized dimensionality reduction process is performed according to the empirical samples and sample weights to obtain an optimized Markov state quantity.

[0115] Optionally, based on a preset kernel function, an optimized dimensionality reduction process is performed according to the empirical samples and sample weights to obtain an optimized Markov state quantity, including:

[0116] Based on the preset kernel function, the weighted kernel matrix is ​​obtained by calculation according to the empirical samples and sample weights;

[0117] Perform eigenvalue decomposition on the weighted kernel matrix to obtain eigenvalues ​​and eigenvectors;

[0118] Based on a preset eigenvalue threshold, the eigenvalues ​​are screened to obtain the principal component eigenvalues; and the corresponding principal component eigenvectors are determined according to the principal component eigenvalues;

[0119] According to the principal component eigenvector, the kernel matrix is ​​subjected to dimensionality reduction processing in the principal component direction to obtain the optimized Markov state quantity.

[0120] In a feasible implementation, the dimension of the state representation vector is gradually reduced according to the task feedback, and the data points are weighted to obtain the optimal state representation. The sensor input data and task feedback information are weighted to reduce the dimension, obtain the low-dimensional state representation vector and optimize the reduced dimension mapping. d Perform eigendecomposition to obtain several groups of eigenvectors p i and eigenvalue λ i , each set of eigenvectors p i and eigenvalue λ i Corresponding to a component. Among them, the component with the highest eigenvalue can capture the most significant changes in the data.

[0121] Calculate the corresponding explained variance based on the eigenvalue, compare it with the set threshold, and select the eigenvector as the main component. Calculate the explained variance v corresponding to each component i , the calculation process is shown in the following formula (7):

[0122]

[0123] Manually set a threshold and select the explained variance v i The first m eigenvectors exceeding the set threshold are taken as principal components. The centralized kernel matrix The eigenvector p corresponding to the selected principal component i Multiply, thereby projecting the original data onto the selected principal component direction to obtain the reduced-dimensional data And the optimized state The calculation process is as follows (8) (9):

[0124]

[0125]

[0126] The principal component is used as the Markov state quantity for this optimization and is used for subsequent decision maker optimization. This dimensionality reduction mapping will also be used as the dimensionality reduction mapping method when collecting experience samples in the next round of iterative optimization.

[0127] Optionally, based on a preset kernel function, calculation is performed according to empirical samples and sample weights to obtain a weighted kernel matrix, including:

[0128] Based on the preset kernel function, a kernel matrix is ​​constructed according to the empirical samples;

[0129] Perform centralization processing on the kernel matrix to obtain the processed kernel matrix;

[0130] The weighted kernel matrix is ​​obtained by calculation based on the processed kernel matrix and the sample weights.

[0131] In a feasible implementation, a suitable kernel function κ is selected and its parameters are determined according to the sensor type. For example, for visual sensors, a Gaussian kernel suitable for computer vision tasks such as object recognition and image segmentation can be selected to capture complex transitions and gradient relationships in the data; for depth sensors, lidars, etc., a Laplace kernel suitable for sparse or irregular data patterns can be selected to capture mutations or boundary structures in the environment.

[0132] For s=(s0,s1,s2,…,s n ) in each pair of data points (s i ,s j ), calculate the kernel matrix K to represent the pairwise similarity between data points in the transformed feature space. The kernel matrix calculation method is as follows (10):

[0133] K=[k ij ],k ij =κ(s i ,s j ) (10)

[0134] Centralize the kernel matrix and subtract the mean of each column and row from the kernel matrix K. The process is shown in equation (11):

[0135]

[0136] Among them, 1 N Represents all elements as An N×N matrix.

[0137] The sample weight d obtained according to the above steps is a diagonal matrix element, and the weight matrix D is constructed. The process is shown in the following formula (12):

[0138] D=diag(d) (12)

[0139] Calculate the weighted kernel matrix K d , the process is shown in the following formula (13):

[0140]

[0141] S6. Based on the relative entropy strategy search method, the Markov decision maker is iteratively optimized according to the optimized Markov state quantity to obtain the optimized Markov decision maker.

[0142] In a feasible implementation, before optimizing the decision maker, the parameter distribution of the decision maker π is weighted to fit the sample distribution q. The process is as follows:

[0143] π(a|o)∝q(a|o)·d (14)

[0144] The sample distribution comes from a series of “perception-action” operations performed by the intelligent robot under the guidance of the decision maker π recorded before optimization. The optimization of the decision maker π is iterative, that is, the decision maker obtained in this round of iterative optimization is The relationship between the decision maker π obtained in the previous iteration / not optimized in this iteration is as follows:

[0145]

[0146] Among them, RL represents the reinforcement learning iterative algorithm.

[0147] The iterative optimization process is repeated until the algorithm converges or a stopping condition is reached.

[0148] The relative entropy strategy search method is widely used in the prior art to optimize the decision maker, which will not be described in detail here.

[0149] S7. Obtain online environment information; and make action decisions based on the optimized Markov decision maker according to the online environment information.

[0150] In a feasible implementation, the optimized decision maker is used to perform the task online. In the subsequent execution of the action task, the intelligent robot can repeatedly perform the above iterative optimization according to the environmental information in the task, and continuously strengthen the robot control effect.

[0151] The present invention proposes a nonlinear state representation learning method for robot control. By using the kernel principal component analysis technology to reduce the dimensionality of the original data input by the sensor, it can help home, office area, and outdoor robots in unstructured environments (different from linear structured environments such as factories and assembly lines) to better understand environmental characteristics and make action decisions. According to task feedback, the dimension of the state representation vector is gradually reduced and the data points are weighted to obtain the optimal state representation. By using the extracted state representation as the state input of the Markov decision process, reinforcement learning, imitation learning, etc. are performed. The present invention is more suitable for processing robot controllers such as home robots, office business robots, and outdoor small robots operating in unstructured environments, and improves the learning and decision-making effects of the robot decision system. The present invention is a nonlinear state representation learning method based on principal component analysis that effectively overcomes robot control.

[0152] Figure 2 1 is a block diagram of a nonlinear state representation learning method for robot control according to an exemplary embodiment. The device is used for a nonlinear state representation learning method for robot control. Figure 2 The device includes an environment information acquisition module 210, a decision maker construction module 220, an information collection module 230, a sample weight calculation module 240, a state quantity optimization module 250, a decision maker optimization module 260 and an action decision module 270. Among them:

[0153] The environment information acquisition module 210 is used to collect information through environment sensors to obtain environment information;

[0154] A decision maker building module 220 is used to perform dimension reduction mapping on the environmental information to obtain a Markov state quantity; and to build a Markov decision maker according to the Markov state quantity;

[0155] An information collection module 230 is used to collect data based on the Markov state quantity and the Markov decision maker to obtain experience samples and task feedback information;

[0156] The sample weight calculation module 240 is used to calculate the sample weight based on the relative entropy strategy search method according to the experience sample and the task feedback information;

[0157] The state quantity optimization module 250 is used to perform optimization dimensionality reduction processing based on a preset kernel function, empirical samples and sample weights to obtain an optimized Markov state quantity;

[0158] A decision maker optimization module 260 is used to iteratively optimize the Markov decision maker based on the relative entropy strategy search method and according to the optimized Markov state quantity to obtain an optimized Markov decision maker;

[0159] The action decision module 270 is used to obtain online environment information and make action decisions based on the optimized Markov decision maker according to the online environment information.

[0160] Among them, the environmental information is the nonlinear state representation information processed by the robot.

[0161] Optionally, the information collection module 230 is further configured to:

[0162] According to the Markov state quantity, the action decision is made through the Markov decision maker to obtain the robot action and task feedback information;

[0163] Pairing the environment information and the robot action to obtain the environment-action data pair; saving the environment-action data pair to the data pair set;

[0164] When the number of environment-action data pairs in the data pair set reaches a preset threshold, the data pair set is determined as an experience sample.

[0165] Optionally, the sample weight calculation module 240 is further configured to:

[0166] Based on the relative entropy strategy search method, a relative entropy strategy search problem is established according to the empirical samples;

[0167] The relative entropy strategy search problem is mathematically transformed to obtain the Lagrangian operator form search problem;

[0168] Solve the Lagrangian operator form search problem and obtain the Lagrangian operator;

[0169] Calculate based on task feedback information to get the Bellman error;

[0170] The sample weight is obtained by calculation based on the Bellman error and the Larrange operator.

[0171] Optionally, the state quantity optimization module 250 is further used to:

[0172] Based on the preset kernel function, the weighted kernel matrix is ​​obtained by calculation according to the empirical samples and sample weights;

[0173] Perform eigenvalue decomposition on the weighted kernel matrix to obtain eigenvalues ​​and eigenvectors;

[0174] Based on a preset eigenvalue threshold, the eigenvalues ​​are screened to obtain the principal component eigenvalues; and the corresponding principal component eigenvectors are determined according to the principal component eigenvalues;

[0175] According to the principal component eigenvector, the kernel matrix is ​​subjected to dimensionality reduction processing in the principal component direction to obtain the optimized Markov state quantity.

[0176] Optionally, the state quantity optimization module 250 is further used to:

[0177] Based on the preset kernel function, a kernel matrix is ​​constructed according to the empirical samples;

[0178] Perform centralization processing on the kernel matrix to obtain the processed kernel matrix;

[0179] The weighted kernel matrix is ​​obtained by calculation based on the processed kernel matrix and the sample weights.

[0180] The present invention proposes a nonlinear state representation learning method for robot control. By using the kernel principal component analysis technology to reduce the dimensionality of the original data input by the sensor, it can help home, office area, and outdoor robots in unstructured environments (different from linear structured environments such as factories and assembly lines) to better understand environmental characteristics and make action decisions. According to task feedback, the dimension of the state representation vector is gradually reduced and the data points are weighted to obtain the optimal state representation. By using the extracted state representation as the state input of the Markov decision process, reinforcement learning, imitation learning, etc. are performed. The present invention is more suitable for processing robot controllers such as home robots, office business robots, and outdoor small robots operating in unstructured environments, and improves the learning and decision-making effects of the robot decision system. The present invention is a nonlinear state representation learning method based on principal component analysis that effectively overcomes robot control.

[0181] Figure 3 is a schematic diagram of the structure of a nonlinear state representation learning device provided by an embodiment of the present invention, such as Figure 3 As shown, the nonlinear state representation learning device may include the above Figure 2 The nonlinear state representation learning method and apparatus for robot control is shown. Optionally, the nonlinear state representation learning device 310 may include a first processor 2001 .

[0182] Optionally, the nonlinear state representation learning device 310 may further include a memory 2002 and a transceiver 2003 .

[0183] The first processor 2001, the memory 2002 and the transceiver 2003 may be connected via a communication bus.

[0184] Combine the following Figure 3The components of the nonlinear state representation learning device 310 are specifically introduced as follows:

[0185] The first processor 2001 is the control center of the nonlinear state representation learning device 310, and may be a processor or a general term for multiple processing elements. For example, the first processor 2001 is one or more central processing units (CPUs), or may be application specific integrated circuits (ASICs), or may be configured to implement one or more integrated circuits of the embodiments of the present invention, such as one or more microprocessors (digital signal processors, DSPs), or one or more field programmable gate arrays (FPGAs).

[0186] Optionally, the first processor 2001 may perform various functions of the nonlinear state representation learning device 310 by running or executing a software program stored in the memory 2002 and calling data stored in the memory 2002 .

[0187] In a specific implementation, as an embodiment, the first processor 2001 may include one or more CPUs, such as Figure 3 CPU0 and CPU1 are shown in FIG.

[0188] In a specific implementation, as an embodiment, the nonlinear state representation learning device 310 may also include multiple processors, such as Figure 3 The first processor 2001 and the second processor 2004 are shown in FIG. Each of these processors can be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor here can refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0189] The memory 2002 is used to store the software program for executing the solution of the present invention, and is controlled to be executed by the first processor 2001. The specific implementation method can refer to the above method embodiment, which will not be repeated here.

[0190] Optionally, the memory 2002 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 2002 may be integrated with the first processor 2001, or may exist independently, and may be connected to the first processor 2001 through the interface circuit ( Figure 3 (not shown) is coupled to the first processor 2001, which is not specifically limited in this embodiment of the present invention.

[0191] The transceiver 2003 is used to communicate with a network device or a terminal device.

[0192] Optionally, the transceiver 2003 may include a receiver and a transmitter ( Figure 3 The receiver is used to implement a receiving function, and the transmitter is used to implement a sending function.

[0193] Optionally, the transceiver 2003 may be integrated with the first processor 2001, or may exist independently, and may represent the interface circuit of the learning device 310 through the nonlinear state ( Figure 3 (not shown) is coupled to the first processor 2001, which is not specifically limited in this embodiment of the present invention.

[0194] It should be noted that Figure 3 The structure of the nonlinear state representation learning device 310 shown in the figure does not constitute a limitation on the router, and the actual knowledge structure recognition device may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.

[0195] In addition, the technical effects of the nonlinear state representation learning device 310 can refer to the technical effects of the nonlinear state representation learning method for robot control described in the above method embodiment, which will not be repeated here.

[0196] It should be understood that the first processor 2001 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.

[0197] 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).

[0198] 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.

[0199] 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.

[0200] 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.

[0201] 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.

[0202] 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.

[0203] 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.

[0204] 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.

[0205] 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.

[0206] 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.

[0207] 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 media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.

[0208] 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.

Claims

1. A nonlinear state representation learning method for robot control, It is characterized in that The method comprises: Collect information through environmental sensors to obtain environmental information; Performing dimensionality reduction mapping on the environmental information to obtain a Markov state quantity; constructing a Markov decision maker according to the Markov state quantity; According to the Markov state quantity, data is collected based on the Markov decision maker to obtain experience samples and task feedback information; Based on the relative entropy strategy search method, the sample weight is obtained by calculating according to the experience sample and the task feedback information; Based on a preset kernel function, an optimization dimensionality reduction process is performed according to the empirical samples and the sample weights to obtain an optimized Markov state quantity; Based on the relative entropy strategy search method, according to the optimized Markov state quantity, the Markov decision maker is iteratively optimized to obtain an optimized Markov decision maker; Acquire online environment information; and make action decisions based on the optimized Markov decision maker according to the online environment information.

2. The nonlinear state representation learning method for robot control according to claim 1, It is characterized in that The environmental information is nonlinear state representation information processed by the robot.

3. The nonlinear state representation learning method for robot control according to claim 1, It is characterized in that The step of collecting data based on the Markov state quantity and the Markov decision maker to obtain experience samples and task feedback information includes: According to the Markov state quantity, an action decision is made through the Markov decision maker to obtain robot action and task feedback information; Pairing the environment information and the robot action to obtain an environment-action data pair; saving the environment-action data pair to a data pair set; When the number of environment-action data pairs in the data pair set reaches a preset threshold, the data pair set is determined as an experience sample.

4. The nonlinear state representation learning method for robot control according to claim 1, It is characterized in that The relative entropy strategy-based search method calculates according to the experience sample and task feedback information to obtain the sample weight, including: Based on the relative entropy strategy search method, a relative entropy strategy search problem is established according to the experience sample; Performing mathematical transformation on the relative entropy strategy search problem to obtain a Lagrangian operator form search problem; Solving the Lagrangian operator form search problem to obtain a Lagrangian operator; Calculating according to the task feedback information to obtain the Bellman error; The sample weight is obtained by calculating according to the Bellman error and the Lagrangian operator.

5. The nonlinear state representation learning method for robot control according to claim 1, It is characterized in that The method of performing optimization dimensionality reduction processing based on the preset kernel function and the empirical samples and the sample weights to obtain an optimized Markov state quantity includes: Based on a preset kernel function, calculation is performed according to the empirical samples and the sample weights to obtain a weighted kernel matrix; Performing eigenvalue decomposition on the weighted kernel matrix to obtain eigenvalues ​​and eigenvectors; Based on a preset eigenvalue threshold, the eigenvalues ​​are screened to obtain principal component eigenvalues; and the corresponding principal component eigenvectors are determined according to the principal component eigenvalues; According to the principal component eigenvector, the kernel matrix is ​​subjected to dimensionality reduction processing in the principal component direction to obtain an optimized Markov state quantity.

6. The nonlinear state representation learning method for robot control according to claim 5, It is characterized in that The preset kernel function is calculated according to the empirical samples and the sample weights to obtain a weighted kernel matrix, including: Based on a preset kernel function, a kernel matrix is ​​constructed according to the empirical samples; Performing centralization processing on the kernel matrix to obtain a processed kernel matrix; Calculation is performed based on the processed kernel matrix and the sample weights to obtain a weighted kernel matrix.

7. A nonlinear state representation learning method device for robot control, the nonlinear state representation learning method device for robot control is used to implement the nonlinear state representation learning method for robot control as claimed in any one of claims 1 to 6, It is characterized in that The device comprises: An environmental information acquisition module is used to collect information through environmental sensors to obtain environmental information; A decision maker construction module is used to perform dimension reduction mapping on the environmental information to obtain a Markov state quantity; and to construct a Markov decision maker according to the Markov state quantity; An information collection module, used to collect data based on the Markov state quantity and the Markov decision maker to obtain experience samples and task feedback information; A sample weight calculation module is used to calculate the sample weight based on the experience sample and the task feedback information based on the relative entropy strategy search method; A state quantity optimization module is used to perform optimization dimensionality reduction processing based on a preset kernel function according to the empirical samples and the sample weights to obtain an optimized Markov state quantity; A decision maker optimization module, used for iteratively optimizing the Markov decision maker based on the relative entropy strategy search method and according to the optimized Markov state quantity to obtain an optimized Markov decision maker; The action decision module is used to obtain online environment information; according to the online environment information, the action decision is made based on the optimized Markov decision maker.

8. The nonlinear state representation learning device for robot control according to claim 7, It is characterized in that The state quantity optimization module is further used for: Based on a preset kernel function, a kernel matrix is ​​constructed according to the empirical samples; Performing centralization processing on the kernel matrix to obtain a processed kernel matrix; Calculation is performed based on the processed kernel matrix and the sample weights to obtain a weighted kernel matrix.

9. A nonlinear state representation learning device, It is characterized in that The nonlinear state representation learning device comprises: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 6 is implemented.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 6.