Robot grinding prediction method and device based on dual-domain adaptive dual-task learning

Through the dual-domain adaptive dual-task learning method, combined with the multi-gated hybrid expert model and domain adaptive strategy, the problem of data distribution differences in new processing parameters in robot grinding is solved, and the material removal depth and average surface roughness are achieved. Accuracy joint prediction.

CN119249090AActive Publication Date: 2025-01-03HUAZHONG UNIV OF SCI & TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411177463.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2025-01-03
Estimated Expiration
2044-08-26

AI Technical Summary

Technical Problem

The traditional multi-task supervised learning method causes prediction offsets due to data distribution differences when processing new machining parameters in robot grinding, and based on the depth adaptive method, it is difficult to achieve accurate predictions under a small number of labeled samples.

Method used

A dual-task learning method for adaptive dual-tasks is proposed. By pairing historical process parameters with new process parameters cycles, a multi-gated hybrid expert model is constructed, and a domain adaptive strategy and an empirical maximum mean difference model is used to reduce the source domain and target domain The data distribution difference between them enables joint prediction of material removal depth and average surface roughness.

Benefits of technology

Effectively eliminate the distribution differences between training data and test data, improve domain adaptability under a small number of labeled samples, significantly improve the prediction accuracy of material removal depth and average surface roughness, and enhance the new processing parameter space predictive ability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119249090A_ABST
    Figure CN119249090A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of robot grinding, and particularly discloses a robot grinding prediction method and device based on dual-domain self-adaptive double-task learning. Comprising the steps that historical technological parameters and new technological parameters of robot grinding are circularly paired to form a target-source sample pair and a source-source sample pair, and after feature conversion and merging are conducted on the target-source sample pair and the source-source sample pair, a target-source feature and a source-source feature are obtained respectively; constructing an empirical maximum mean difference model, and calculating domain adaptive loss; constructing an overall loss function of the multi-gating hybrid expert model, and performing dual-task supervision optimization training to obtain a grinding prediction model; and performing dual prediction on the removal depth and the average surface roughness of the material ground by the robot based on the grinding prediction model. The method effectively balances the correlation and difference between the material removal depth and the average surface roughness, improves the number and diversity of samples, and is high in prediction precision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of robot grinding, and more specifically, relates to a robot grinding prediction method and device for dual domain adaptive dual-task learning. Background Art

[0002] Robotic grinding technology has been recognized as an effective technology for finishing and processing difficult-to-machine materials due to its high flexibility, large operating space and high cost-effectiveness. High-precision manufacturing is the goal of robotic grinding technology, which can be achieved by simultaneously improving material removal capability and workpiece surface quality. Over the past few decades, many machine learning methods have been proposed to predict material removal depth and average surface roughness separately. However, these methods usually require training two different models, ignoring the potential correlation between them. Multi-task supervised learning (such as shared underlying method, tensor factorization method and multi-gate expert mixture method) is a more effective technique. Among the multi-task supervised learning methods, the multi-gate expert mixture method is able to balance the correlation and difference between tasks using parameters in a small number of training samples.

[0003] However, traditional multi-task supervised learning methods usually assume that the training and test data are independent and identically distributed. In fact, machining parameters in different intervals present different data distributions, which often leads to prediction bias for unknown machining parameters when using traditional multi-task supervised learning methods. A reasonable approach is to utilize deep adaptation-based methods to alleviate the data distribution differences between existing and new machining parameters in robotic grinding, thereby achieving accurate joint prediction of material removal depth and average surface roughness when processing new machining parameters. However, the prediction ability of deep adaptation-based methods depends heavily on the number of samples available in the source and target domains. However, the cost of collecting and annotating data in the new machining parameter space of robotic grinding is too high, resulting in only a small number of labeled samples available for deep adaptation-based model training. When adopting deep adaptation-based methods, the limited test samples in the target domain may lead to inefficient training and inconsistent data distribution between training data and test data.

[0004] Therefore, it is necessary to propose a new adaptive strategy to eliminate the distribution difference between training data and test data when a small number of test samples are provided. Summary of the invention

[0005] In view of the above defects or improvement needs of the prior art, the present invention provides a robot grinding prediction method and device based on dual domain adaptive dual-task learning, wherein a dual domain adaptive dual-task learning method is designed accordingly in combination with the characteristics of robot grinding itself and the data distribution characteristics of its new process parameters and historical process parameters, and a domain adaptive strategy is used to alleviate the problem of data distribution differences between the source domain and the target domain. At the same time, in view of the correlation and difference between MRD (material removal depth) and RA (roughness), a dual-task prediction algorithm MMoE (multi-gated hybrid expert model) is used to enhance the domain adaptation capability when only a small number of labeled target samples are available for task supervised learning, thereby realizing the joint prediction of material removal depth and average surface roughness.

[0006] To achieve the above object, according to one aspect of the present invention, a robot grinding prediction method based on dual domain adaptive dual-task learning is proposed, comprising the following steps:

[0007] Step 1, cyclically pairing the historical process parameters of robot grinding and the corresponding new process parameters to form a "target-source" sample pair and a "source-source" sample pair, and performing feature conversion and merging on the "target-source" sample pair and the "source-source" sample pair to obtain a "target-source" feature and a "source-source" feature respectively;

[0008] Step 2: construct an empirical maximum mean difference model between the “target-source” feature and the “source-source” feature, and calculate the domain adaptation loss between the “target-source” feature and the “source-source” feature;

[0009] Step 3, constructing an overall loss function of a multi-gated hybrid expert model based on the domain adaptive loss, inputting the "target-source" feature and the "source-source" feature into the multi-gated hybrid expert model for dual-task supervised optimization training to obtain a grinding prediction model;

[0010] Step 4: perform dual prediction of the material removal depth and average surface roughness of robot grinding based on the grinding prediction model.

[0011] As a further preferred embodiment, in step one, a domain adaptation strategy is adopted to align the data between the source domain and the target domain, and the "target-source" sample pairs and the "source-source" samples are input into the feature converter for conversion and merging to obtain the "target-source" features and the "source-source" features respectively.

[0012] As a further preferred embodiment, in step 1, in order to learn the shared knowledge between MRD and Ra, two fully connected layers FC1 and FC2 are used to perform feature transformation;

[0013] The merging layer of the feature transformer is used to merge the transformed features of the paired data to reduce the domain adaptation loss between the “target-source” sample pairs and the “source-source” sample pairs.

[0014] As a further preferred embodiment, in step 2, the domain adaptive loss calculation model includes:

[0015]

[0016] Among them, L d represents the domain adaptation loss between the merged features of the target-source pair and the source-source pair, [·,·] represents the concatenation of two vectors, h(·) is the feature transformation network that maps the input data to the shared feature space, and X s is the source feature, X t is the target feature, x s is the source domain sample, x t is the target domain sample.

[0017] As a further preference, the Gaussian kernel is used as the kernel function in the adaptive loss calculation model, which is defined as follows:

[0018] φ(x i ,x j ) = exp(-||x i -x j || 2 / (2σ 2 ))

[0019] Here, σ is a hyperparameter representing the width of the Gaussian kernel.

[0020] As a further preference, the output of the kth (k=1, 2, ..., l) task in the multi-gated hybrid expert model is calculated as follows:

[0021]

[0022] Among them, x represents the input data or its transformed features, s is the number of expert networks, and f i (·) represents the mapping function of the i-th expert network, is the output of the kth gating network, is the weight matrix, d is the dimension of x, represents the mapping function of the k-th tower network, y k corresponds to the output of the tower network.

[0023] As a further preference, the Adam optimization algorithm is used to minimize the overall loss function of the multi-gated hybrid expert model and update the weights.

[0024] As further preferred, the overall loss function is expressed as follows:

[0025] L=L r +λL d ,

[0026] Among them, L r is the regression loss of labeled source and target samples, L d represents the domain adaptation loss between the merged features of the “target-source” sample pair and the “source-source” sample pair, and the parameter λ serves as a penalty term to balance the regression loss and the domain adaptation loss.

[0027] According to another aspect of the present invention, a robot grinding prediction system for dual-domain adaptive dual-task learning is also provided, comprising:

[0028] A first main control module is used to cyclically pair the historical process parameters of robot grinding with the corresponding new process parameters to form a "target-source" sample pair and a "source-source" sample pair, and after performing feature conversion and merging on the "target-source" sample pair and the "source-source" sample pair, obtain a "target-source" feature and a "source-source" feature respectively;

[0029] The second main control module is used to build an empirical maximum mean difference model between the "target-source" features and the "source-source" features, and calculate the domain adaptation loss between the "target-source" features and the "source-source" features;

[0030] A third main control module is used to construct an overall loss function of a multi-gated hybrid expert model according to the domain adaptive loss, and input the "target-source" feature and the "source-source" feature into the multi-gated hybrid expert model for dual-task supervised optimization training to obtain a grinding prediction model;

[0031] The fourth main control module is used to perform dual prediction of the material removal depth and average surface roughness of robot grinding according to the grinding prediction model.

[0032] According to another aspect of the present invention, there is also provided an electronic device, comprising:

[0033] At least one processor, at least one memory and a communication interface; wherein,

[0034] The processor, memory and communication interface communicate with each other;

[0035] The memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute a robot grinding prediction method based on dual-domain adaptive dual-task learning according to any of the above embodiments or a combination of multiple embodiments.

[0036] According to another aspect of the present invention, a non-transitory computer-readable storage medium is also provided, wherein the non-transitory computer-readable storage medium stores computer instructions, wherein the computer instructions enable the computer to execute a robot grinding prediction method based on dual-domain adaptive dual-task learning according to any of the above embodiments or a combination of multiple embodiments.

[0037] In general, the above technical solution conceived by the present invention has the following technical advantages compared with the prior art:

[0038] 1. This paper proposes a dual domain adaptive dual-task learning method to jointly predict the material removal depth and average surface roughness in robotic grinding. The training process of this method is divided into two main stages. First, the historical process parameters and new processing parameters in robotic grinding are cyclically paired to form "target-source" sample pairs and "source-source" sample pairs. Subsequently, the two types of sample pairs are input into the feature converter for domain adaptive and supervised dual-task model training, thereby achieving joint prediction of material removal depth and average surface roughness.

[0039] 2. The present invention proposes a domain adaptation strategy to make the data distribution between training data and test data correspond, so as to eliminate the negative impact of the data distribution difference between historical process parameters (training data) and new process parameters (test data) during training.

[0040] 3. The dual strategy of the present invention can be regarded as a data augmentation method, which expands a limited number of target samples by cyclically grouping target samples and source samples. Compared with traditional data augmentation methods (such as generative adversarial networks (GAN), synthetic minority oversampling technique (SMOTE), and adaptive synthesis (ADASYN) algorithm), the proposed dual strategy can use a small number of samples (even as few as one sample) to increase the sample size. Compared with the sample replication method, the proposed paired strategy can significantly improve the diversity of enhanced target samples by combining a limited number of target samples with a sufficient number of source samples, and enhance the ability of domain adaptation when there are fewer target samples.

[0041] 4. The present invention uses MMoE to perform dual-task prediction of material removal capability and workpiece surface quality. MMoE can model the relationship between tasks in a weighted manner. If the provided tasks are less relevant, the shared expert network will be penalized, so that the gated networks of these tasks will learn to select different expert networks, effectively balancing the correlation and difference between material removal depth and average surface roughness. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a flow chart of a robot grinding prediction method of dual-domain adaptive dual-task learning provided by an embodiment of the present invention;

[0043] Figure 2 It is a network schematic diagram of a robot grinding prediction method of dual domain adaptive dual-task learning according to the present invention;

[0044] Figure 3 is a schematic diagram of the MMoE method provided by an embodiment of the present invention;

[0045] Figure 4 is a schematic diagram of the joint prediction results of MRD and Ra of the PW-DA-DTL method under different normal forces provided by an embodiment of the present invention;

[0046] Figure 5 It is a schematic diagram of the joint prediction results of MRD and Ra of the PW-DA-DTL method considering different robot feed speeds provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0048] Example 1

[0049] like Figure 1 and Figure 2 As shown, the dual-task learning method based on dual domain adaptation of the present invention mainly includes the following steps:

[0050] (1) First, the historical process parameters and new processing parameters in robot grinding are cyclically paired to form "target-source" sample pairs and "source-source" sample pairs. The domain adaptation (DA) strategy is used to alleviate the problem of data distribution misalignment between the source domain and the target domain. The two sample pairs (represented as "target-source" sample pairs and "source-source" sample pairs) are simultaneously input into the feature converter, and the converted features are merged to obtain "target-source" and "source-source" features respectively. In this embodiment, the new processing parameters refer to the processing parameters obtained under the new normal force and the new robot feed speed.

[0051] (2) The empirical maximum mean difference (MMD) is used to characterize the distribution difference between the source domain and the target domain. The domain adaptation loss is the empirical maximum mean difference between the combined features of the "target-source" sample pair and the "source-source" sample pair. The calculation of the domain adaptation loss is converted into the following form:

[0052]

[0053] Where [·,·] represents the concatenation of two vectors, and h(·) is a feature transformation network that maps input data to a shared feature space. The Gaussian kernel is used as the kernel function, which is defined as follows:

[0054] φ(x i ,x j ) = exp(-||x i -x j || 2 / (2σ 2 ))

[0055] Here, σ is a hyperparameter representing the width of the Gaussian kernel.

[0056] (3) Further, Figure 3 As shown, the above features are input into MMoE for supervised training. The output of the kth (k=1, 2, ···, l) task in the MMoE method is calculated as follows:

[0057]

[0058] Where x represents the input data or its transformed features, s is the number of expert networks, and f i (·) represents the mapping function of the i-th expert network. is the output of the kth gating network, where is the weight matrix, and d represents the dimension of x. represents the mapping function of the k-th tower network, y k corresponds to the output of the tower network.

[0059] (4) Further, the Adam optimization algorithm is used to minimize the overall loss function and update the weight θ. The overall loss function is expressed as follows:

[0060] L=L r +λL d ,

[0061] Where L r is the regression loss (calculated by mean square error (MSE)) of labeled source and target samples. d represents the domain adaptation loss between the merged features of the target-source sample pair and the source-source sample pair. The parameter λ acts as a penalty term to balance the regression loss and the domain adaptation loss.

[0062] In order to test the health status prediction effect of the regression meta-learning framework of the present invention under small sample conditions, an industrial robot and a belt grinder equipped with a six-dimensional force sensor were tested. The test workpiece is a unidirectional carbon fiber reinforced composite material. In this experiment, four key control parameters (i.e., normal force F n , robot feed speed V w, belt speed V s and the equivalent radius of the abrasive grain ) to study the MRD and R of RBG a The controlled processing parameters and their selected values ​​are recorded in the following table. The controlled parameters include: normal force F n , feed speed V w , feed speed V w , belt speed V s , equivalent radius of abrasive particles

[0063] After randomly combining the four controlled machining parameters, orthogonal grinding experiments with the specified group of parameters were conducted to evaluate the performance of RBG, and the corresponding MRD and Ra were measured as labels. n and V w In order to verify the ability of the proposed PW-DA-DTL method for unknown processing parameters, based on F n and V w The value of F is used to divide the training data set and the test data set in a cross-validation manner. n For example, in each cross-validation iteration, a specific F n The samples with the value of are used as the test data set, and the rest of the samples are used as the training data set. In this experiment, only a labeled target sample is randomly selected from the target data set to train the PW-DA-DTL method, hoping to reduce the dependence on the target sample.

[0064] Firstly, the historical process parameters and new processing parameters in robotic grinding are cyclically paired to form "target-source" sample pairs and "source-source" sample pairs. The domain adaptation (DA) strategy is used to alleviate the problem of data distribution misalignment between the source domain and the target domain. The two sample pairs (represented as "target-source" sample pairs and "source-source" sample pairs) are simultaneously input into the feature converter, and the converted features are merged to obtain "target-source" and "source-source" features respectively.

[0065] Furthermore, the empirical maximum mean difference (MMD) is used to characterize the distribution difference between the source domain and the target domain. The domain adaptation loss is the empirical maximum mean difference between the combined features of the "target-source" sample pair and the "source-source" sample pair. The calculation of the domain adaptation loss is converted into the following form:

[0066]

[0067] Where [·,·] represents the concatenation of two vectors, and h(·) is a feature transformation network that maps input data to a shared feature space. The Gaussian kernel is used as the kernel function, which is defined as follows:

[0068] φ(xi ,x j ) = exp(-||x i -x j || 2 / (2σ 2 ))

[0069] Here, σ is a hyperparameter representing the width of the Gaussian kernel.

[0070] Furthermore, the above features are input into MMoE for supervised training. The output of the kth (k=1, 2, ···, l) task in the MMoE method is calculated as follows:

[0071]

[0072] Where x represents the input data or its transformed features, s is the number of expert networks, and f i (·) represents the mapping function of the i-th expert network. is the output of the kth gating network, where is the weight matrix, and d represents the dimension of x. represents the mapping function of the k-th tower network, y k corresponds to the output of the tower network.

[0073] Furthermore, the Adam optimization algorithm is used to minimize the overall loss function and update the weight θ. The overall loss function is expressed as follows:

[0074] L=L r +λL d ,

[0075] Where L r is the regression loss (calculated by mean square error (MSE)) of labeled source and target samples. d represents the domain adaptation loss between the merged features of the target-source sample pair and the source-source sample pair. The parameter λ acts as a penalty term to balance the regression loss and the domain adaptation loss.

[0076] In the experiment, the network input is the "target-source" sample pair or "source-source" sample pair that controls the processing parameters. In order to learn the shared knowledge between MRD and Ra, two fully connected layers (FC1 and FC2) are used for feature transformation. The merging layer is used to merge the transformed features of the paired data to reduce the domain adaptation loss between the "target-source" sample pair and the "source-source" sample pair.

[0077] Due to the weights transferred from the standard MMoE method, the training epochs are set to 100. The testing process is to input the target data of the four machining parameters into the trained PW-DA-DTL model, and the corresponding output is the jointly predicted MRD and Ra. The supervised MSE loss between the observed labels and the predicted labels is minimized using the Adam optimizer and trained from scratch. When using the new normal force to jointly predict MRD and Ra, the PW-DA-DTL method performs better at different test F n The MRD and Ra co-prediction results under 10.3% and 10.7% showed consistency between the predicted values ​​and the observed values, such as Figure 4 As shown; the combined prediction results of the robot feed speed are shown in Figure 5 Among them, the evaluation indicators of MRD and Ra co-prediction using the proposed PW-DA-DTL method, shared bottom method and MMoE method are listed in the following table.

[0078]

[0079] Compared with the shared bottom method and MMoE method, the prediction accuracy of the PW-DA-DTL method is further improved. The above MRD and Ra joint prediction results prove that the PW-DA-DTL method is effective for various F n , highlighting the flexibility and effectiveness of the proposed method in predicting new processing parameters of RBG.

[0080] In the joint prediction of MRD and Ra with robot feed rate. PW-DA-DTL method in different V w The MRD and Ra joint prediction results under the same conditions also show that there is a significant consistency between the predicted value and the observed value. The following table lists the evaluation indicators for the joint prediction of MRD and Ra using the proposed PW-DA-DTL method, the shared bottom method, and the MMoE method.

[0081]

[0082] The above joint prediction results of MRD and Ra are consistent with the joint prediction results of normal force, which also reflects the superiority of the PW-DA-DTL method.

[0083] That is, the method proposed in the present invention is used to jointly predict the material removal depth and average surface roughness under new process parameters of robot grinding. This method uses multiple hybrid experts to balance the correlation and difference between the material removal depth and the average surface roughness to achieve the purpose of high-precision dual-task prediction. In order to eliminate the negative impact of the data distribution difference between the historical process parameters (training data) and the new process parameters (test data) during training, a domain adaptation strategy is proposed to make the data distribution between the training data and the test data correspond. In order to solve the problem that the data distribution cannot be fully aligned due to the insufficient sample size of the new process parameters, a dual strategy is developed to significantly improve the number and diversity of samples. The present invention can simultaneously and accurately predict the material removal depth and average surface roughness. The present invention has been tested and verified on a self-developed robot grinding system. Experimental results show that compared with traditional methods, this invention shows obvious superiority in joint prediction.

[0084] Example 2

[0085] Based on any of the above embodiments or a combination of multiple embodiments, the implementation basis of each embodiment of the present invention is implemented by programmed processing by a device with a processor function. Therefore, in engineering practice, the technical solutions and functions of each embodiment of the present invention can be encapsulated into various modules. Based on this reality, on the basis of the above embodiments, an embodiment of the present invention provides a robot grinding prediction system for dual domain adaptive dual-task learning, including:

[0086] The first main control module is used to cyclically pair the historical process parameters of robot grinding and the corresponding new process parameters to form "target-source" sample pairs and "source-source" sample pairs, and after feature conversion and merging of the "target-source" sample pairs and the "source-source" sample pairs, "target-source" features and "source-source" features are obtained respectively; the second main control module is used to construct an empirical maximum mean difference model between the "target-source" features and the "source-source" features, and calculate the domain adaptive loss between the "target-source" features and the "source-source" features; the third main control module is used to construct the overall loss function of the multi-gated hybrid expert model according to the domain adaptive loss, and input the "target-source" features and the "source-source" features into the multi-gated hybrid expert model for dual-task supervised optimization training to obtain a grinding prediction model; the fourth main control module is used to perform dual prediction of the material removal depth and average surface roughness of robot grinding according to the grinding prediction model.

[0087] Example 3

[0088] Based on any of the above embodiments or a combination of multiple embodiments, the method of this embodiment is implemented by relying on an electronic device, so it is necessary to introduce the relevant electronic device. For this purpose, an embodiment of the present invention provides an electronic device, which includes: at least one processor, a communication interface, at least one memory, and a communication bus, wherein at least one processor, a communication interface, and at least one memory communicate with each other through a communication bus. At least one processor can call the logic instructions in at least one memory to execute all or part of the steps of the method provided by the aforementioned various method embodiments.

[0089] In addition, the logic instructions in the at least one memory mentioned above can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. 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 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 method described in each method embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0090] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0091] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0092] The flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. Based on this understanding, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and sometimes in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0093] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A robot grinding prediction method based on dual domain adaptive dual-task learning, characterized in that: The following steps are involved: Step 1: cyclically pair the historical process parameters of robot grinding and the corresponding new process parameters to form a "target-source" sample pair and a "source-source" sample pair, and perform feature conversion and merging on the "target-source" sample pair and the "source-source" sample pair to obtain a "target-source" feature and a "source-source" feature respectively; Step 2: construct an empirical maximum mean difference model between the "target-source" feature and the "source-source" feature, and calculate the domain adaptation loss between the "target-source" feature and the "source-source" feature; Step 3, constructing an overall loss function of a multi-gated hybrid expert model based on the domain adaptive loss, inputting the "target-source" feature and the "source-source" feature into the multi-gated hybrid expert model for dual-task supervised optimization training to obtain a grinding prediction model; Step 4: perform dual prediction of the material removal depth and average surface roughness of robot grinding based on the grinding prediction model.

2. According to claim 1, a dual domain adaptive dual-task learning robot grinding prediction method is characterized in that: In step 1, a domain adaptation strategy is used to align the data between the source domain and the target domain. The "target-source" sample pairs and the "source-source" samples are input into the feature converter for conversion and merging to obtain the "target-source" features and the "source-source" features, respectively.

3. The robot grinding prediction method based on dual domain adaptive dual-task learning according to claim 2 is characterized in that: In step 1, in order to learn the shared knowledge between MRD and Ra, two fully connected layers FC1 and FC2 are used for feature transformation; The merging layer of the feature converter is used to merge the transformed features of the paired data to reduce the domain adaptation loss between the "target-source" sample pairs and the "source-source" sample pairs.

4. The robot grinding prediction method based on dual domain adaptive dual-task learning according to claim 1 is characterized in that: In step 2, the domain adaptive loss calculation model includes: Among them, L d represents the domain adaptation loss between the merged features of the target-source sample pair and the source-source sample pair, [·,·] represents the concatenation of two vectors, h(·) is the feature conversion network that maps the input data to the shared feature space, and X s is the source feature, X t is the target feature, x s is the source domain sample, x t is the target domain sample; Preferably, the Gaussian kernel is used as the kernel function in the adaptive loss calculation model, which is defined as follows: φ(x i ,x j )=exp(-||x i -x j || 2 / (2σ 2 )) Here, σ is a hyperparameter representing the width of the Gaussian kernel.

5. The robot grinding prediction method based on dual domain adaptive dual-task learning according to claim 3 is characterized in that: The output of the kth (k=1, 2, ..., l) task in the multi-gated hybrid expert model is calculated as follows: Among them, x represents the input data or its transformed features, s is the number of expert networks, and f i (·) represents the mapping function of the i-th expert network, is the output of the kth gating network, is the weight matrix, d is the dimension of x, represents the mapping function of the k-th tower network, y k corresponds to the output of the tower network.

6. The robot grinding prediction method based on dual domain adaptive dual-task learning according to claim 1 is characterized in that: The Adam optimization algorithm is used to minimize the overall loss function of the multi-gated hybrid expert model and update the weights.

7. The robot grinding prediction method based on dual domain adaptive dual-task learning according to claim 6 is characterized in that: The overall loss function is expressed as follows: L=L r +λL d Among them, L r is the regression loss of labeled source and target samples, L d represents the domain adaptation loss between the merged features of the "target-source" sample pair and the "source-source" sample pair, and the parameter λ serves as a penalty term to balance the regression loss and the domain adaptation loss.

8. A robot grinding prediction system based on dual domain adaptive dual-task learning, characterized in that: include: The first main control module is used to cyclically pair the historical process parameters of robot grinding with the corresponding new process parameters to form a "target-source" sample pair and a "source-source" sample pair, and after performing feature conversion and merging on the "target-source" sample pair and the "source-source" sample pair, obtain a "target-source" feature and a "source-source" feature respectively; The second main control module is used to build an empirical maximum mean difference model between the "target-source" feature and the "source-source" feature, and calculate the domain adaptation loss between the "target-source" feature and the "source-source" feature; The third main control module is used to construct an overall loss function of a multi-gated hybrid expert model according to the domain adaptive loss, and input the "target-source" feature and the "source-source" feature into the multi-gated hybrid expert model for dual-task supervised optimization training to obtain a grinding prediction model; The fourth main control module is used to perform dual prediction of the material removal depth and average surface roughness of robot grinding according to the grinding prediction model.

9. An electronic device, characterized in that: include: At least one processor, at least one memory and a communication interface; wherein, The processor, memory and communication interface communicate with each other; The memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the robot grinding prediction method of dual-domain adaptive dual-task learning as described in any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the robot grinding prediction method of dual-domain adaptive dual-task learning according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Integrated energy system operation condition identification and operation performance prediction method

    CN114943277A

  • Domain adaptive semantic segmentation method and device, electronic equipment and storage medium

    CN116433902A

  • Method for training deep neural network and apparatus

    US20210012198A1

  • Unsupervised domain adaptation target re-identification method

    WO2022001489A1