A material sound absorption coefficient regression method and system based on incremental learning
By using incremental learning and reservoir sampling technology in the material sound absorption coefficient regression task, the penalty coefficient is dynamically adjusted, which solves the catastrophic forgetting problem caused by the fluidity of material data, improves the regression accuracy and calculation efficiency, and realizes the optimization in the data flow. The ability to continue learning.
Patent Information
- Application Number
- CN202210406214.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-18
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-04-18
Smart Images

Figure CN115034354B
Abstract
Description
Technical Field
[0001] The invention relates to a material sound absorption coefficient regression method based on incremental learning and a system implemented based on the method, and belongs to the field of computers and materials. Background Art
[0002] Material sound absorption coefficient regression refers to finding the relationship between material specification parameters and sound absorption coefficient given the material specification parameters and sound absorption coefficient. The main purpose is to provide theoretical support for the selection, analysis and design of sound absorption materials.
[0003] It is very difficult to obtain material data. Material data is obtained through relevant material experiments, and the difficulty and high cost of the experiments are one of the main reasons for the difficulty in obtaining them. Material data often has the characteristics of streaming data, that is, it cannot be obtained all at once, and as the experimental settings change, the material data will change accordingly. This characteristic of material data makes many batch models that require all data to train lose their effectiveness.
[0004] Incremental learning refers to a learning system that can continuously process continuous information flows in the real world, retaining, even integrating, and optimizing old knowledge while absorbing new knowledge. Therefore, the learning model of incremental learning is very suitable for research in materials science, that is, it can learn new knowledge from constantly changing experimental data without forgetting old knowledge. Current research on incremental learning is aimed at solving the problem of catastrophic forgetting, because in each incremental stage, it is impossible to obtain samples that have been learned, resulting in catastrophic forgetting of old knowledge. And most incremental scenarios are based on classification tasks, that is, in each incremental stage, the categories in the classification task have never been learned. For regression tasks, when the spatial distribution of sample features is unbalanced, there will also be a problem of catastrophic forgetting. Summary of the invention
[0005] The purpose of the present invention is to provide an incremental learning method for regression tasks, which can continuously learn the laws of material sound absorption coefficients and material specification parameters in material flow data.
[0006] In order to achieve the above object, the technical solution of the present invention is to provide a material sound absorption coefficient regression method based on incremental learning, which is characterized by comprising the following steps:
[0007] S100, load the model parameters W learned in the last incremental learning phase pre , penalty coefficient F pre and sample playback pool M pre , define the model parameters W of the current incremental learning phase by W pre Assignment, the penalty coefficient F is given by F pre Assignment;
[0008] S200, divide the training set into batches according to the batch size to obtain a batch training data set D (n) , n represents the number of batch training data in the current batch training data set, and sets the number of training rounds N in the current incremental learning phase epoch ;
[0009] S300, perform N on the model epoch Wheel training;
[0010] In each round of training, for the batch training data set D (n) For each batch of training data in step S100, the model parameter W obtained in step S100 and the penalty coefficient F learned in the previous incremental learning stage are used. pre and sample playback pool M pre Perform mini-batch gradient descent, perform reverse gradient propagation on the mean square error loss function and the penalty loss function, and update the model parameters W and the penalty coefficient F at the same time;
[0011] S400, perform reservoir sampling on the training set, and obtain the sample M now The sample replay pool M from the previous incremental learning phase pre Merge to get a new sample playback pool M;
[0012] S500, the model parameters W, penalty coefficient F and sample replay pool M learned in the current incremental learning phase are saved so that the old knowledge will not be forgotten when the model is updated in the next phase, thereby alleviating the problem of catastrophic forgetting.
[0013] Preferably, in step S100, if the current incremental learning stage is the first incremental learning, the model parameter W is randomly initialized, the penalty coefficient F is initialized to zero, and the sample replay pool M is empty.
[0014] Preferably, for the batch training data set D (n) The i-th batch training data D in i Step S300 specifically includes the following steps:
[0015] S301, replay the sample pool M pre Perform random sampling to obtain old sample D pre ;
[0016] S302, old sample D pre and the i-th batch training data D i Merge to get As training data;
[0017] S303: training data Input into the regression model to get the predicted value
[0018] S304, repeat step 301 to step S303 until the batch training data set D is traversed (n) For each batch of training data in step 301, the mean square error loss L is calculated based on the true value of each batch of training data and the predicted value obtained in step 303. train , as shown below:
[0019]
[0020] In the formula, Represents the i-th batch training data D i The true value of itself
[0021] S305: According to the mean square error loss L obtained in step S304 train Perform gradient back propagation to update the model parameters W. The update calculation formula of W is:
[0022]
[0023] In the formula, is the gradient of the model parameter W in the mean square error, η w Represents the model learning rate, L train (W) represents the mean square error loss;
[0024] S306, according to the gradient Update the penalty coefficient F of the current incremental learning phase. The update calculation formula of the penalty coefficient F is:
[0025]
[0026] In the formula, α is the forgetting balance parameter;
[0027] S307, based on the model parameters W learned in the last incremental learning phase pre , penalty coefficient F pre Calculate the penalty loss L penalty , as shown below:
[0028]
[0029] In the formula, λ is the weight; represents the penalty coefficient of the i-th parameter; W i Represents the i-th parameter of the current model; represents the i-th parameter of the model learned in the last incremental learning phase;
[0030] S308: Penalty loss L obtained in step S307 penaltyPerform gradient back propagation to update the model parameters W. The update calculation formula of W is:
[0031]
[0032] In the formula, is the gradient of the model parameter W in the penalty loss, L penalty (W,W pre ,F pre ) represents penalty loss.
[0033] Preferably, in step S303, the regression model consists of a three-layer fully connected neural network.
[0034] Preferably, in step S307, if the current incremental learning phase is the first incremental learning phase, the penalty loss L penalty is equal to 0.
[0035] Preferably, assuming that the total number of training samples in the training set is N, and the number of reservoir samples is k, step S400 specifically includes the following steps:
[0036] S401, taking the first k samples in the training set as the initial sampling samples M now ;
[0037] S402: For the k+ith sample, randomly generate a random number p: M now A random sample in is replaced with the k+ith sample; if No replacement is made;
[0038] Step S403, repeat step S402 until k+i equals N, then end sampling;
[0039] Step S404: Sample M obtained by sampling the reservoir now With sample playback pool M pre The new sample playback pool M is obtained by merging.
[0040] Another technical solution of the present invention is to provide a material sound absorption coefficient regression system based on incremental learning, characterized in that the material sound absorption coefficient regression method mentioned above is adopted, including:
[0041] Model parameter loading and definition unit, used to load the model parameters W learned in the previous incremental learning phase pre , penalty coefficient F pre and sample playback pool M pre , and is also used to define the model parameters W of the current incremental learning phase by W pre Assignment, the penalty coefficient F is given by F pre Assignment;
[0042] The batch division unit is used to divide the training set into batches according to the batch size to obtain the batch training data set D (n) , n represents the number of batch training data in the current batch training data set;
[0043] Model training unit, used to train the model epoch Round training, in each round of training, for the batch training data set D (n) For each batch of training data in the model, the model parameters W obtained by the model parameter loading and definition unit and the penalty coefficient F learned in the previous incremental learning phase are pre and sample playback pool M pre Perform mini-batch gradient descent, perform reverse gradient propagation on the mean square error loss function and the penalty loss function, and update the model parameters W and the penalty coefficient F at the same time;
[0044] The sample playback pool update unit is used to perform reservoir sampling on the training set and update the sample M now The sample replay pool M from the previous incremental learning phase pre Merge to get a new sample playback pool M;
[0045] The parameter storage unit is used to save the model parameters W, penalty coefficient F and sample replay pool M learned in the current incremental learning phase, so that the old knowledge will not be forgotten when the model is updated in the next phase, thereby alleviating the problem of catastrophic forgetting.
[0046] The present invention realizes the application of incremental learning method based on playback and dynamic adjustment of penalty coefficient in material sound absorption coefficient regression, alleviates the catastrophic forgetting problem caused by material flow data, and reduces the amount of model calculation while ensuring regression accuracy. Compared with the prior art, the present invention has at least the following advantages:
[0047] (1) The material sound absorption coefficient regression is performed in an incremental learning mode, which can continuously learn new knowledge in the data stream, reduce the amount of calculation and ensure the regression accuracy;
[0048] (2) The penalty coefficient represents the ability of the parameter to retain old knowledge. By dynamically adjusting the penalty coefficient, we can more accurately determine which model parameters are mainly used to maintain old knowledge and which model parameters are used to learn new knowledge, which can better alleviate the problem of catastrophic forgetting.
[0049] (3) Reservoir sampling takes advantage of its linear complexity and can perform sampling under the premise of ensuring equal sampling probability, and all data are only viewed once. It is a fast and efficient sampling method. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1A flow chart of an embodiment of a material sound absorption coefficient regression method based on incremental learning provided by the present invention;
[0051] Figure 2 A schematic diagram of model training in a continuous data stream for incremental learning in a material sound absorption coefficient regression method based on incremental learning provided by the present invention;
[0052] Figure 3 A flow chart of updating a sample playback pool by using reservoir sampling in a material sound absorption coefficient regression method based on incremental learning provided by the present invention. DETAILED DESCRIPTION
[0053] The present invention is further described below in conjunction with specific examples. It should be understood that these examples are only to help those of ordinary skill in the art understand the principles and knowledge of the present invention, and are not intended to limit the scope of the present invention, and cannot be considered to limit the application scenarios of the present invention. In addition, it should be understood that after reading the content taught by the present invention, those skilled in the art may make various changes or modifications to the present invention, but the deformation, changes and conversions made to the embodiments based on the principles and purposes of the present invention also fall within the scope defined by the claims attached to this application. And it is obvious that this specification is only exemplified by preferred embodiments, and there is no need to exhaust all embodiments.
[0054] like Figure 1 As shown, the embodiment of the present invention provides a material sound absorption coefficient regression method based on incremental learning, that is, the catastrophic forgetting problem is alleviated by dynamically adjusting the penalty coefficient. In each incremental learning stage, the following steps are included:
[0055] S100, load the model parameters W learned in the last incremental learning phase pre , penalty coefficient F pre and sample playback pool M pre , define the model parameters W of the current incremental learning phase by W pre Assignment, the penalty coefficient F is given by F pre If the current incremental learning phase is the first incremental learning phase, the model parameter W is randomly initialized, the penalty coefficient F is initialized to zero, and the sample replay pool M is empty.
[0056] Specifically, refer to Figure 2 Incremental learning is to train the model in a continuous data stream. The present invention continuously adjusts the penalty coefficient F pre and sample playback pool M pre To maintain old knowledge. Therefore, in each incremental training phase, the relevant parameters of the previous phase need to be loaded.
[0057] S200, divide the training set into batches according to the batch size to obtain a batch training data set D (n) , n represents the number of batch training data in the current batch training data set, and its specific value is determined by the size of the original training set. At the same time, set the number of training rounds N in the current incremental learning phase epoch Each round of training uses a different batch training data set D to update parameters. (n) to update.
[0058] Specifically, the training set is divided into batch sizes in order to perform small-batch gradient descent. Small-batch gradient descent uses a part of the samples to update each time the parameters are updated. The accuracy is more precise than random gradient descent, and the speed is faster than full-batch gradient descent.
[0059] S300, in each round of training, for the batch training data set D (n) For each batch of training data in step S100, the model parameter W obtained in step S100 and the penalty coefficient F learned in the previous incremental learning stage are used. pre and sample playback pool M pre Perform mini-batch gradient descent, perform reverse gradient propagation on the mean square error loss function and the penalty loss function, and update the model parameters W and the penalty coefficient F at the same time.
[0060] Specifically, for the sample replay pool M pre Perform random sampling to obtain D pre , D pre Merge with batch training data to get As training data. Input the model to get the sample prediction value y pre , and then calculate the mean square error loss with the true value of the sample and perform back gradient propagation to update the model parameters W. Further, the gradient of the back propagation of the mean square error loss is used to update the penalty coefficient F. Finally, according to the model parameters W of the last incremental learning stage pre and penalty coefficient F pre Calculate the penalty loss and perform back-gradient propagation to update the model parameters W.
[0061] For the batch training data set D (n) The i-th batch training data D in i Step S300 specifically includes the following steps:
[0062] S301, replay the sample pool M pre Perform random sampling to obtain old sample D pre .
[0063] S302, old sample D preand the i-th batch training data D i Merge to get As training data.
[0064] S303: training data Input into the regression model to get the predicted value
[0065] In this embodiment, in step S303, the regression model is composed of a three-layer fully connected neural network.
[0066] S304, repeat step 301 to step S303 until the batch training data set D is traversed (n) For each batch of training data in step 301, the mean square error loss L is calculated based on the true value of each batch of training data and the predicted value obtained in step 303. train , as shown below:
[0067]
[0068] In the formula, Represents the i-th batch training data D i The true value of itself
[0069] S305: According to the mean square error loss L obtained in step S304 train Perform gradient back propagation to update the model parameters W. The update calculation formula of W is:
[0070]
[0071] In the formula, is the gradient of the model parameter W in the mean square error, η w Represents the model learning rate, L train (W) represents the mean square error loss.
[0072] S306, according to the gradient Update the penalty coefficient F of the current incremental learning phase. The update calculation formula of the penalty coefficient F is:
[0073]
[0074] Wherein, α is the forgetting balance parameter, which is set to 0.9 in this embodiment.
[0075] S307, based on the model parameters W learned in the last incremental learning phase pre , penalty coefficient F pre Calculate the penalty loss L penalty , as shown below:
[0076]
[0077] Wherein, λ is the weight, which is set to 50 in this embodiment; represents the penalty coefficient of the i-th parameter; W i Represents the i-th parameter of the current model; Represents the i-th parameter of the model learned in the last incremental learning phase.
[0078] If the current incremental learning phase is the first incremental learning phase, the penalty loss L penalty is equal to 0.
[0079] S308: Penalty loss L obtained in step S307 penalty Perform gradient back propagation to update the model parameters W. The update calculation formula of W is:
[0080]
[0081] In the formula, is the gradient of the model parameter W in the penalty loss, L penalty (W,W pre ,F pre ) represents penalty loss.
[0082] S400, perform reservoir sampling on the training set, and obtain the sample M now The sample replay pool M from the previous incremental learning phase pre The new sample playback pool M is obtained by merging.
[0083] Specifically, refer to Figure 3 , the total number of training samples is N, and the number of reservoir samples is k. Reservoir sampling first takes the first k samples in the training set as the initial sampling samples M now . Secondly, for the k+ith sample, a random number p is randomly generated: if M now A random sample in is replaced with the k+ith sample; if No replacement is made. When k+i equals N, the sampling ends. Finally, the sample M obtained by reservoir sampling is now With sample playback pool M pre The new sample playback pool M is obtained by merging.
[0084] Step S400 specifically includes the following steps:
[0085] S401, taking the first k samples in the training set as the initial sampling samples M now .
[0086] S402: For the k+ith sample, randomly generate a random number p: M now A random sample in is replaced with the k+ith sample; if No substitution is made.
[0087] Step S403: Repeat step S402 until k+i equals N, then end the sampling.
[0088] Step S404: Sample M obtained by sampling the reservoir now With sample playback pool M pre The new sample playback pool M is obtained by merging.
[0089] S500: Save the model parameters W, penalty coefficient F and sample replay pool M of the current incremental learning phase.
[0090] Specifically, the model parameters W, penalty coefficient F, and sample replay pool M learned in the current incremental learning phase are saved so that the old knowledge will not be forgotten when the model is updated in the next phase, thereby alleviating the problem of catastrophic forgetting.
Claims
1. A material sound absorption coefficient regression method based on incremental learning, It is characterized in that The following steps are involved: S100, load the model parameters W learned in the last incremental learning phase pre , penalty coefficient F pre and sample playback pool M pre , define the model parameters W of the current incremental learning phase by W pre Assignment, the penalty coefficient F is given by F pre Assignment; S200, divide the training set into batches according to the batch size to obtain a batch training data set D (n) , n represents the number of batch training data in the current batch training data set, and sets the number of training rounds N in the current incremental learning phase epoch ; S300, perform N on the model epoch Wheel training; In each round of training, for the batch training data set D (n) For each batch of training data in step S100, the model parameter W obtained in step S100 and the penalty coefficient F learned in the previous incremental learning stage are used. pre and sample playback pool M pre Perform mini-batch gradient descent, perform reverse gradient propagation on the mean square error loss function and the penalty loss function, and update the model parameters W and the penalty coefficient F at the same time; S400, perform reservoir sampling on the training set, and obtain the sample M now The sample replay pool M from the previous incremental learning phase pre Merge to get a new sample playback pool M; S500, the model parameters W, penalty coefficient F and sample replay pool M learned in the current incremental learning phase are saved so that the old knowledge will not be forgotten when the model is updated in the next phase, thereby alleviating the problem of catastrophic forgetting.
2. A material sound absorption coefficient regression method based on incremental learning as claimed in claim 1, It is characterized in that In step S100, if the current incremental learning stage is the first incremental learning, the model parameter W is randomly initialized, the penalty coefficient F is initialized to zero, and the sample replay pool M is empty.
3. A material sound absorption coefficient regression method based on incremental learning as claimed in claim 1, It is characterized in that For the batch training data set D (n) The i-th batch training data D in i Step S300 specifically includes the following steps: S301, replay the sample pool M pre Perform random sampling to obtain old samples D pre ; S302, old sample D pre and the i-th batch training data D i Merge to get As training data; S303: training data Input into the regression model to get the predicted value S304, repeat step 301 to step S303 until the batch training data set D is traversed (n) For each batch of training data in step 301, the mean square error loss L is calculated based on the true value of each batch of training data and the predicted value obtained in step 303. train, As shown below: In the formula, Represents the i-th batch training data D i The true value of itself S305: According to the mean square error loss L obtained in step S304 train Perform gradient back propagation to update the model parameters W. The update calculation formula of W is: In the formula, is the gradient of the model parameter W in the mean square error, η w Represents the model learning rate, L train (W) represents the mean square error loss; S306, according to the gradient Update the penalty coefficient F of the current incremental learning phase. The update calculation formula of the penalty coefficient F is: In the formula, α is the forgetting balance parameter; S307, based on the model parameters W learned in the last incremental learning phase pre , penalty coefficient F pre Calculate the penalty loss L penalty , as shown below: In the formula, λ is the weight; represents the penalty coefficient of the i-th parameter; W i represents the i-th parameter of the current model; W i pre represents the i-th parameter of the model learned in the last incremental learning phase; S308: Penalty loss L obtained in step S307 penalty Perform gradient back propagation to update the model parameters W. The update calculation formula of W is: In the formula, is the gradient of the model parameter W in the penalty loss, L penalty (W,W pre , F pre ) represents penalty loss.
4. A material sound absorption coefficient regression method based on incremental learning as claimed in claim 3, It is characterized in that In step S303, the regression model is composed of a three-layer fully connected neural network.
5. A material sound absorption coefficient regression method based on incremental learning as claimed in claim 3, It is characterized in that In step S307, if the current incremental learning phase is the first incremental learning phase, the penalty loss L penalty is equal to 0.
6. A material sound absorption coefficient regression method based on incremental learning as claimed in claim 3, It is characterized in that Assuming that the total number of training samples in the training set is N, and the number of reservoir samples is k, step S400 specifically includes the following steps: S401, taking the first k samples in the training set as the initial sampling samples M now ; S402: For the k+ith sample, randomly generate a random number p: M now A random sample in is replaced with the k+ith sample; if No replacement is made; Step S403, repeat step S402 until k+i equals N, then end sampling; Step S404: Sample M obtained by sampling the reservoir now With sample playback pool M pre The new sample playback pool M is obtained by merging.
7. A material sound absorption coefficient regression system based on incremental learning, It is characterized in that The material sound absorption coefficient regression method according to claim 1 comprises: Model parameter loading and definition unit, used to load the model parameters W learned in the previous incremental learning phase pre , penalty coefficient F pre and sample playback pool M pre , and is also used to define the model parameters W of the current incremental learning phase. pre Assignment, the penalty coefficient F is given by F pre Assignment; The batch division unit is used to divide the training set into batches according to the batch size to obtain the batch training data set D (n) , n represents the number of batch training data in the current batch training data set; Model training unit, used to train the model epoch Round training, in each round of training, for the batch training data set D (n) For each batch of training data in the model, the model parameters W obtained by the model parameter loading and definition unit and the penalty coefficient F learned in the previous incremental learning phase are pre and sample playback pool M pre Perform mini-batch gradient descent, perform reverse gradient propagation on the mean square error loss function and the penalty loss function, and update the model parameters W and the penalty coefficient F at the same time; The sample playback pool update unit is used to perform reservoir sampling on the training set and update the sample M now The sample replay pool M from the previous incremental learning phase pre Merge to get a new sample playback pool M; The parameter storage unit is used to save the model parameters W, penalty coefficient F and sample replay pool M learned in the current incremental learning phase, so that the old knowledge will not be forgotten when the model is updated in the next phase, thereby alleviating the problem of catastrophic forgetting.
Citation Information
Patent Citations
Image incremental learning method based on a migration model
CN109492765A
Power equipment temperature prediction method based on PSO-LSSVM online learning
CN111523710A
Incremental learning method through deep learning and support data
US20200410299A1
Linear time algorithms for privacy preserving convex optimization
US20210158211A1
