Identification model training method, nonlinear system identification method and system
Through the multi-layer neural network model and alternating direction multiplier method optimization combined with the sliding data window stochastic gradient descent algorithm, the problem of poor fitting effect of the nonlinear system identification model is solved, the data utilization rate and convergence speed are improved, and a better Nonlinear system identification effects.
Patent Information
- Application Number
- CN202410734169.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-07
AI Technical Summary
Existing nonlinear system identification models based on neural network models have poor fitting effects during the training process, low data utilization, low convergence speed and accuracy, and poor training and identification effects.
Multi-layer different neural network models are used for feature extraction, combined with the alternating direction multiplier method for parameter optimization, and the stochastic gradient descent algorithm of the sliding data window is used to update the parameters, enhance data utilization and convergence speed, and improve the model training effect.
Through multi-model feature extraction and parameter optimization strategies, the fitting effect of nonlinear systems is significantly improved, the convergence speed and accuracy of the algorithm are improved, the model training effect is improved, and excellent performance in nonlinear system identification tasks is demonstrated.
Smart Images

Figure CN118333129B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of nonlinear system identification, and in particular relates to an identification model training method, a nonlinear system identification method and a system. Background Art
[0002] In the automation of industrial production processes, it is often necessary to measure and control the liquid levels of certain equipment and containers, and adjust the balance of input and output materials in the containers to ensure that materials in each link of the production process are properly matched. The cascade water tank system is a relatively common industrial field liquid level system, which consists of two water tanks, a reservoir and a water pump. The basic principle is that the water pump pumps the water in the pool to the higher water tank, and then the water flows from the higher water tank to the lower water tank through an opening, and finally flows to the reservoir.
[0003] System identification is a classic topic widely used in automatic control. It is the basic theory for establishing the mathematical model of the target system and plays an irreplaceable role in modern engineering. At present, the system objects to be identified are generally nonlinear systems, such as the identification of cascade water tank systems. The main goal of system identification is to infer an actual automatic system or to establish a dynamic model from observed data to accurately predict future data. Multi-innovation theory is a branch of system identification. Its basic idea is to extend the length of innovation and make full use of useful information from data, that is, to introduce past data multiple times in training. Deep learning has been a very popular field in recent years. It is based on the previous neural network and adds a more complex and deep network, which can be used to fit most nonlinear problems. Deep networks have been applied in many fields and have achieved great success, such as computer vision, speech recognition and natural language processing. Stochastic gradient-based optimization methods have core practical significance in many fields of science and engineering. In deep learning, stochastic gradient descent has been proven to be an effective parameter search optimization method in countless practices.
[0004] The inventors have found that when identifying nonlinear systems such as cascade water tank systems, by adding a more complex and deep network on the basis of the neural network, it can be used to fit most nonlinear problems; however, the current nonlinear system identification model based on the neural network model still has many difficult-to-handle nonlinear problems, the fitting effect is poor, and the utilization rate of data during the training process needs to be improved, the convergence speed and accuracy are not high, and the training effect and effect identification are poor. Summary of the invention
[0005] In order to solve the above problems, the present invention proposes an identification model training method, a nonlinear system identification method and a system. The present invention uses a variety of different models to extract input features, which has better performance than the original single model and better fitting effect on nonlinear systems. The stochastic gradient descent algorithm based on the sliding data window enhances the utilization of data and improves the convergence speed and accuracy of the algorithm. The parameter optimization strategy based on the principle of the alternating direction multiplier method enhances the training effect of the model.
[0006] In order to achieve the above object, the present invention is implemented through the following technical solutions:
[0007] In a first aspect, the present invention provides a recognition model training method, comprising:
[0008] Obtain input and output data of nonlinear systems;
[0009] Input data and output data are input into preset multi-layer neural network models for training to obtain recognition models; during training, multiple different neural network models are used to extract features of input data and output data to obtain different intermediate features; the alternating direction multiplier method is used for parameter optimization. In each round of parameter optimization, the parameters of other neural network models are fixed, and only the parameters of one neural network model are adjusted, and all neural network models are updated in sequence;
[0010] According to the pre-constructed loss function, the output of the network is compared with the actual output of the nonlinear system to obtain the error; based on the stochastic gradient descent algorithm of the sliding data window, the change of each layer of the neural network model is obtained, and the parameters of each layer of the neural network model are updated.
[0011] In a second aspect, the present invention provides a nonlinear system identification method, comprising:
[0012] Obtain input and output data of nonlinear systems;
[0013] Obtain identification results based on input data, output data, and a preset identification model;
[0014] Among them, the identification model includes multiple layers of different neural network models for training to obtain the identification model; during training, multiple different neural network models are used to extract features of input data and output data to obtain different intermediate features; the alternating direction multiplier method is used for parameter optimization, and in each round of parameter optimization, the parameters of other neural network models are fixed, and only the parameters of one of the neural network models are adjusted, and all the neural network models are updated in turn; according to a pre-constructed loss function, the output of the network is compared with the true output of the nonlinear system to obtain the error; based on the stochastic gradient descent algorithm of the sliding data window, the change amount of each layer of the neural network model is obtained, and the parameters of each layer of the neural network model are updated.
[0015] Furthermore, the nonlinear system is a cascade water tank system characterized by a nonlinear autoregressive model, and the cascade water tank system includes two water tanks and a water pump; the two water tanks have different heights, the output data is the water level of the lower water tank, and the input data is the water pump voltage.
[0016] Furthermore, different intermediate features are merged as input to the feature processing network; the merged intermediate features are subjected to multi-layer nonlinear transformation using the feature processing network to obtain the final model output.
[0017] Furthermore, in each round of parameter iteration h The loss function of the feature extraction network is as follows:
[0018] ;
[0019] ;
[0020] ;
[0021] in, β It is a hyperparameter that controls the degree to which the model is affected by the overall network output; represents the intermediate features obtained by input processing, represents the corresponding real output of the system, i is a constant; Indicated in Model output under action; n Indicates the number of training data.
[0022] Furthermore, the loss function is reconstructed as follows:
[0023] ;
[0024] in, W and b Represent the learnable parameter weights and biases of the network respectively; p Indicates the length of the new information,j is a constant;
[0025] The error between the model output and the true output for:
[0026] .
[0027] In a third aspect, the present invention further provides a nonlinear system identification system, comprising:
[0028] The data acquisition module is configured to: obtain input data and output data of the nonlinear system;
[0029] The identification module is configured to: obtain an identification result according to the input data and the output data and a preset identification model;
[0030] Among them, the identification model includes multiple layers of different neural network models for training to obtain the identification model; during training, multiple different neural network models are used to extract features of input data and output data to obtain different intermediate features; the alternating direction multiplier method is used for parameter optimization, and in each round of parameter optimization, the parameters of other neural network models are fixed, and only the parameters of one of the neural network models are adjusted, and all the neural network models are updated in turn; according to a pre-constructed loss function, the output of the network is compared with the true output of the nonlinear system to obtain the error; based on the stochastic gradient descent algorithm of the sliding data window, the change amount of each layer of the neural network model is obtained, and the parameters of each layer of the neural network model are updated.
[0031] In a fourth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the nonlinear system identification method described in the first aspect.
[0032] In a fifth aspect, the present invention further provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein when the processor executes the program, the steps of the nonlinear system identification method described in the first aspect are implemented.
[0033] In a sixth aspect, the present invention further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the nonlinear system identification method described in the first aspect are implemented.
[0034] Compared with the prior art, the present invention has the following beneficial effects:
[0035] The present invention uses a plurality of different neural network models to extract features from input data and output data during model training to obtain different intermediate features; uses an alternating direction multiplier method to perform parameter optimization, and in each round of parameter optimization, fixes the parameters of other neural network models, only adjusts the parameters of one of the neural network models, and updates all the neural network models in sequence; compares the output of the network with the true output of the nonlinear system according to a pre-constructed loss function to obtain an error; uses a random gradient descent algorithm based on a sliding data window to obtain the variation of each layer of the neural network model, and updates the parameters of each layer of the neural network model; uses a plurality of different models to extract input features to obtain more diversified information, which is more excellent than the original single model effect and has a better fitting effect on the nonlinear system. In addition, the random gradient descent algorithm based on the sliding data window introduces past information in the parameter training process, enhances the utilization rate of data, and improves the convergence speed and accuracy of the algorithm. At the same time, a parameter optimization strategy based on the principle of the alternating direction multiplier method is proposed. When optimizing the model parameters, only one model direction is used, instead of all model parameters participating in the training at the same time as before, so as to enhance the training effect of the model and show better results in the identification task of the nonlinear system. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The drawings in the specification that constitute a part of this embodiment are used to provide a further understanding of this embodiment. The schematic embodiments of this embodiment and their descriptions are used to explain this embodiment and do not constitute improper limitations on this embodiment.
[0037] Figure 1 The overall process of model parameter optimization of Example 1 of the present invention;
[0038] Figure 2 This is a graph showing the variation of the MLP model training error when the number of samples is 500 in Example 1 of the present invention;
[0039] Figure 3 This is a graph showing the variation of the MLP model test error when the number of samples is 500 in Example 1 of the present invention;
[0040] Figure 4 This is a test error change diagram of the TCN model of Example 1 of the present invention;
[0041] Figure 5 This is a graph showing the test error changes of the RNN model of Example 1 of the present invention;
[0042] Figure 6 This is a box plot of the error distribution of the new model and other single models when the number of samples in Example 1 of the present invention is 1000;
[0043] Figure 7This is a box plot of the error distribution of the new model and other single models when the number of samples in Example 1 of the present invention is 8000. DETAILED DESCRIPTION
[0044] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0045] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.
[0046] Embodiment 1:
[0047] This embodiment provides a recognition model training method, including:
[0048] Obtain input and output data of nonlinear systems;
[0049] Input data and output data are input into preset multi-layer neural network models for training to obtain recognition models; during training, multiple different neural network models are used to extract features of input data and output data to obtain different intermediate features; the alternating direction multiplier method is used for parameter optimization. In each round of parameter optimization, the parameters of other neural network models are fixed, and only the parameters of one neural network model are adjusted, and all neural network models are updated in sequence;
[0050] According to the pre-constructed loss function, the output of the network is compared with the actual output of the nonlinear system to obtain the error; based on the stochastic gradient descent algorithm of the sliding data window, the change in the parameters of each layer of the neural network model is obtained, and the parameters of each layer of the neural network model are updated.
[0051] By using a variety of different models to extract input features, we can obtain more diversified information, which performs better than the original single model and has a better fitting effect on nonlinear systems. In addition, the stochastic gradient descent algorithm based on the sliding data window introduces past information in the parameter training process, which enhances the utilization of data and improves the convergence speed and accuracy of the algorithm. At the same time, a parameter optimization strategy based on the principle of alternating direction multiplier method is proposed. When optimizing model parameters, only one model direction is used instead of all model parameters participating in the training at the same time as before, which enhances the training effect of the model and shows good results in the identification task of nonlinear systems.
[0052] Based on the identification model training method, this embodiment also provides a nonlinear system identification method, such as Figure 1 As shown, the specific steps include:
[0053] S1. Data acquisition and preprocessing of nonlinear systems;
[0054] Optionally, the nonlinear system adopts a cascade water tank system, which is a liquid level control system including two water tanks. The input and output of the cascade water tank system are the water pump voltage and the water level of the low water tank, respectively. A general nonlinear model, i.e., a nonlinear autoregressive model with exogenous inputs (NARX), can be used to characterize the cascade water tank system:
[0055]
[0056] in, A mapping representing a nonlinear autoregressive model; y ( k ) represents the system output, i.e. the water level of the low water tank, is a positive integer, indicating the sampling timing. u ( k ) is the external input of the model, i.e., the pump voltage; lu and ly Respectively represent the maximum lag time of input and output; N Input u (1) u (2), ..., u ( k )..., u ( N ), input the model in sequence, and get N The corresponding timing output y (1) y (2), ..., y ( k )..., y ( N ), the number of samples can be obtained as N The dataset ( U , Y ), U Include N Input , Y Contains the system output of the corresponding timing ; Divide the data set into a training data set and a test data set, and normalize and standardize the training data set and the test data set respectively.
[0057] S2, combine multiple networks into an identification model to fit the collected training data, that is, use the neural network as the mapping of the nonlinear autoregressive model in step S1 g(), to construct the relationship between the pump voltage and the low water tank water level in the cascade water tank system. The steps of building the identification model are as follows:
[0058] S2.1. Choose the appropriate m Neural network model f For feature extraction, these models can be convolutional networks (CNN) and long short-term memory networks (LSTM). The input is processed by different networks, and different features are extracted from each network. The number of layers is L The network output can be expressed as:
[0059]
[0060] in, represents the output of the feature extraction network; represents the input of the network; W and b are the learnable parameters weight and bias of the network respectively; L Indicates the number of layers in the network; Represents a nonlinear transformation function, which can be in the form of RELU or related variants.
[0061] S2.2. Different intermediate features Merge as input to the feature processing network .
[0062] S2.3, the feature processing network combines these abstract features Perform multiple layers of nonlinear transformation to obtain the final model output , the whole model can be expressed as:
[0063]
[0064] in, F d It is a feature processing network that processes the intermediate features to obtain the final output.
[0065] S3. Select the loss function based on the nature of the input and output data J , using the theory of multiple innovations and the Alternating Direction Method of Multipliers (ADMM) to improve the loss function J , improve the fitting effect of the model on the actual data, that is, select a good evaluation function to detect whether the proposed neural network can effectively reflect the relationship between the preset input and output. The specific steps are as follows:
[0066] S3.1. System identification usually involves regression prediction tasks, and the data is usually positive, so the loss function of the evaluation model is J The mean square error (MSE) is used:
[0067]
[0068] in, It is the first k Data u ( k ) Network model output under the action of input; y ( k ) represents the corresponding real output of the system; N Indicates the total number of samples.
[0069] S3.2. In the parameter optimization iteration of the model, batch processing is adopted. In each round of parameter optimization, n training data, where the network input , Represents the dataset U The randomly selected input is processed by the model to get the output ,in, Indicated in The model output under the action of , so the loss function in each round of parameter iteration can be written as:
[0070]
[0071] S3.3. Using the parameter optimization idea of ADMM, the parameters of each network are optimized separately during parameter iteration. That is, in each round of parameter optimization, the parameters of other models are fixed, and only the parameters of one of the models are adjusted. All models are updated in sequence to enhance the integrity of the network.
[0072] S3.4. In each feature extraction model f In the above example, we introduce the loss function of the model itself:
[0073]
[0074] in, It is for input The intermediate features obtained by processing are used to suppress the excessive liberalization of the parameter space and make the model more stable. Under the above conditions, the first h The loss function of the feature extraction network is as follows:
[0075]
[0076] in, β It is a configurable hyperparameter between 0 and 1, which controls the degree to which the model is affected by the overall network output. F d The loss function remains the same as the original one.
[0077] S4. Combining the multi-innovation theory, on the basis of the original batch stochastic gradient algorithm, the data used in each round of training is expanded to obtain a gradient descent algorithm based on a moving data window, which is applied to the training of the model to optimize the entire network structure and obtain the best model. That is, the network parameters are obtained through the optimization algorithm to restore the model of the cascade water tank system.
[0078] S4.1. According to the data set obtained in step S1, divide it into a training set and a test set, and use the samples in the training set to train the parameters.
[0079] S4.2. The parameters of the network model are initialized randomly. The weight of each layer W With deviation b The value of is randomly drawn from a Gaussian distribution with mean 0 and variance 0.25.
[0080] S4.3. Use random search to find the best hyperparameters. Specifically, set the batch size, optimizer learning rate, and step S3.4 β Each of them is set in a reasonable range, and partial training is performed by randomly taking a combination of the three values in these ranges. The most appropriate set of values is selected as the subsequent parameters based on the training results;
[0081] The batch length is one new message. p Expand the input and output data, introduce the data used in the previous rounds into this training, increase the data used in each round of training, and on this basis, rebuild the loss function in step S3 as follows:
[0082]
[0083] in, n Indicates the number of training data, that is, the batch size; p Indicates the length of the new message.
[0084] S4.4. Input the training data into the network and get the network output , according to the reconstructed loss function, the network output is compared with the real output of the system to obtain a new error E According to the stochastic gradient descent algorithm, the change of each layer parameter is obtained, and the optimization path of each layer parameter is obtained through reverse propagation, and the parameters of each layer are updated. t At iteration wThe parameter optimization algorithm can be expressed as:
[0085]
[0086] in, Indicates t The step size at the iteration; n Represents the amount of training data; p Indicates the length of the message; Indicates participation in calculation pn The model output corresponding to the input; is the error between the model output and the true output. Since the sliding window data is added, it is expressed as:
[0087]
[0088] S4.5. All training data are put into the training for a specified number of times. In each round of parameter training, the loss function is reconstructed according to the principle of ADMM, and the parameters of each model are updated in turn, which can be expressed as:
[0089]
[0090] in, w h Indicates h The parameters of the model; w d Representation feature processing network F d Parameters; E h ( p,t )express t Moment h The error between the model output and the true output:
[0091]
[0092] The training data is subjected to a specified number of reciprocating optimization calculations, and the best performing model parameters are saved, that is, the model with the closest mapping relationship to the original system. The test data is input into the saved model to obtain the predicted output of the model. The MSE is used to measure the gap between the predicted input of the model and the actual output of the system. If the error meets the requirements, the system is identified. If the error does not meet the requirements, the model is trained continuously until the requirements are met, thereby achieving the approximation of the cascade water tank system and achieving the purpose of controlling the water level of the water tank by the water pump voltage.
[0093] In order to verify the effectiveness of the network model and the optimization algorithm in this embodiment, this embodiment uses the identification model in the task of system identification. Optionally, the fitted NARX system is:
[0094]
[0095] in, u [ k ] selects a randomly generated standard Gaussian distribution. This embodiment uses u [ k ] as input to predict output y [ k ], the backtracking step length used is 5, that is, the first 5 input data are used as the input of the model to predict the output of the 6th data at the next moment. The model used in this experiment is composed of a multilayer perceptron (Multilayer Perceptron, MLP) and a temporal convolutional network (Temporal Convolutions Network, TCN). TCN is a variant of the convolutional neural network that can be used for sequence signals. This experiment uses the above network to fit the above-mentioned nonlinear function. The data set is randomly generated by the system, that is, the output of the system is obtained by randomly generating inputs, and the generated training set samples are used to optimize the parameters of the model. The fitting effect of the model is then tested through the test data set, and the mean square error is used to judge the performance of the model. In the experiment, this embodiment first tested the effect of the stochastic gradient algorithm based on the sliding data window. This embodiment uses different new information lengths p To test the algorithm's descent effect, p =1 means using the original gradient descent algorithm. When the number of samples is 500, the MLP model is modeled and the changes in training loss and test loss are obtained as follows Figure 2 and Figure 3 As shown, the optimal test error is shown in Table 1:
[0096] Table 1 Test results of improved gradient descent algorithm
[0097]
[0098] It can be seen that under different sample numbers, the optimization algorithm based on the sliding data window performs better, and the tests on other models also show the same results. Figure 4 and Figure 5 This is the test error of Recurrent Neural Networks (RNN) and TCN. As the length of the new information increases, the convergence speed is obviously faster and the test results are relatively better.
[0099] When testing the performance of the proposed new model, the input and output data of the above system are collected. Under the same conditions, the single model MLP, TCN and the proposed new model are modeled respectively, and their optimal test errors are compared. The optimizer is set to Adam, the learning rate is 0.01, the number of training times is 10, and the best result is taken. Under the same running time, the test error of the new network model is shown in Table 2:
[0100] Table 2 Modeling test results of different network models
[0101]
[0102] It can be seen that the model in this embodiment performs better. Even if the performance is slightly insufficient under certain sample numbers, its convergence speed is still faster than other single models. In addition, according to the distribution of data, this embodiment obtains a box plot of the test error, such as Figure 6 and Figure 7 As shown, the results of this embodiment are obviously better than those of the original single model;
[0103] Embodiment 2:
[0104] This embodiment provides a nonlinear system identification method, including:
[0105] Obtain input and output data of nonlinear systems;
[0106] Obtain identification results based on input data, output data, and a preset identification model;
[0107] Among them, the identification model includes multiple layers of different neural network models for training to obtain the identification model; during training, multiple different neural network models are used to extract features of input data and output data to obtain different intermediate features; the alternating direction multiplier method is used for parameter optimization, and in each round of parameter optimization, the parameters of other neural network models are fixed, and only the parameters of one of the neural network models are adjusted, and all the neural network models are updated in turn; according to a pre-constructed loss function, the output of the network is compared with the true output of the nonlinear system to obtain the error; based on the stochastic gradient descent algorithm of the sliding data window, the change amount of each layer of the neural network model is obtained, and the parameters of each layer of the neural network model are updated.
[0108] The identification model training method in the method is the same as the identification model training method in Example 1, and will not be repeated here.
[0109] Embodiment 3:
[0110] This embodiment provides a nonlinear system identification system, including:
[0111] The data acquisition module is configured to: obtain input data and output data of the nonlinear system;
[0112] The identification module is configured to: obtain an identification result according to the input data and the output data and a preset identification model;
[0113] Among them, the identification model includes multiple layers of different neural network models for training to obtain the identification model; during training, multiple different neural network models are used to extract features of input data and output data to obtain different intermediate features; the alternating direction multiplier method is used for parameter optimization, and in each round of parameter optimization, the parameters of other neural network models are fixed, and only the parameters of one of the neural network models are adjusted, and all the neural network models are updated in turn; according to a pre-constructed loss function, the output of the network is compared with the true output of the nonlinear system to obtain the error; based on the stochastic gradient descent algorithm of the sliding data window, the change amount of each layer of the neural network model is obtained, and the parameters of each layer of the neural network model are updated.
[0114] The working method of the system is the same as the nonlinear system identification method of Example 1, and will not be repeated here.
[0115] Embodiment 4:
[0116] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the nonlinear system identification method described in Embodiment 1 are implemented.
[0117] Embodiment 5:
[0118] This embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor executes the program, the steps of the nonlinear system identification method described in Example 1 are implemented.
[0119] Embodiment 6:
[0120] This embodiment provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of the nonlinear system identification method described in Embodiment 1 are implemented.
[0121] The above description is only a preferred embodiment of the present embodiment and is not intended to limit the present embodiment. For those skilled in the art, the present embodiment may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present embodiment shall be included in the protection scope of the present embodiment.
Claims
1. A recognition model training method, characterized in that: include: Obtain input and output data of nonlinear systems; Input the input data and output data into the preset multi-layer neural network model for training to obtain the recognition model; During training, multiple different neural network models are used to extract features from input data and output data to obtain different intermediate features. The alternating direction multiplier method is used for parameter optimization. In each round of parameter optimization, the parameters of other neural network models are fixed, and only the parameters of one neural network model are adjusted, and all neural network models are updated in sequence. According to the pre-constructed loss function, the output of the network is compared with the actual output of the nonlinear system to obtain the error; based on the stochastic gradient descent algorithm of the sliding data window, the change amount of each layer of the neural network model is obtained, and the parameters of each layer of the neural network model are updated; The nonlinear system is a cascade water tank system characterized by a nonlinear autoregressive model, the cascade water tank system comprising two water tanks and a water pump; the two water tanks are at different heights, the output data is the water level of the lower water tank, and the input data is the water pump voltage; Merge different intermediate features as input to the feature processing network; use the feature processing network to perform multi-layer nonlinear transformation on the merged intermediate features to obtain the final model output; In each round of parameter iteration h The loss function of the feature extraction network is as follows: ; ; ; in, β is a hyperparameter that controls the degree to which the model is affected by the overall network output; represents the intermediate features obtained by input processing, represents the corresponding real output of the system, i is a constant; Indicated in Model output under action; n Indicates the number of training data; The loss function is reconstructed as follows: ; in, W and b Represent the learnable parameter weights and biases of the network respectively; p Indicates the length of the new information; j is a constant; The error between the model output and the true output for: 。 2. Nonlinear system identification method, characterized in that: include: Obtain input and output data of nonlinear systems; Obtain identification results based on input data, output data, and a preset identification model; Among them, the identification model includes training multiple layers of different neural network models to obtain the identification model; during training, multiple different neural network models are used to extract features of input data and output data to obtain different intermediate features; the alternating direction multiplier method is used to optimize parameters, and in each round of parameter optimization, the parameters of other neural network models are fixed, and only the parameters of one neural network model are adjusted, and all neural network models are updated in sequence; according to the pre-constructed loss function, the output of the network is compared with the true output of the nonlinear system to obtain the error; based on the stochastic gradient descent algorithm of the sliding data window, the change amount of each layer of the neural network model is obtained, and the parameters of each layer of the neural network model are updated; The nonlinear system is a cascade water tank system characterized by a nonlinear autoregressive model, the cascade water tank system comprising two water tanks and a water pump; the two water tanks are at different heights, the output data is the water level of the lower water tank, and the input data is the water pump voltage; Merge different intermediate features as input to the feature processing network; use the feature processing network to perform multi-layer nonlinear transformation on the merged intermediate features to obtain the final model output; In each round of parameter iteration h The loss function of the feature extraction network is as follows: ; ; ; in, β is a hyperparameter that controls the degree to which the model is affected by the overall network output; represents the intermediate features obtained by input processing, represents the corresponding real output of the system, i is a constant; Indicated in Model output under action; n Indicates the number of training data; The loss function is reconstructed as follows: ; in, W and b Represent the learnable parameter weights and biases of the network respectively; p Indicates the length of the new information; j is a constant; The error between the model output and the true output for: 。 3. Nonlinear system identification system, characterized in that, include: The data acquisition module is configured to: obtain input data and output data of the nonlinear system; The identification module is configured to: obtain an identification result according to the input data and the output data and a preset identification model; Among them, the identification model includes training multiple layers of different neural network models to obtain the identification model; during training, multiple different neural network models are used to extract features of input data and output data to obtain different intermediate features; the alternating direction multiplier method is used to optimize parameters, and in each round of parameter optimization, the parameters of other neural network models are fixed, and only the parameters of one neural network model are adjusted, and all neural network models are updated in sequence; according to the pre-constructed loss function, the output of the network is compared with the true output of the nonlinear system to obtain the error; based on the stochastic gradient descent algorithm of the sliding data window, the change amount of each layer of the neural network model is obtained, and the parameters of each layer of the neural network model are updated; The nonlinear system is a cascade water tank system characterized by a nonlinear autoregressive model, the cascade water tank system comprising two water tanks and a water pump; the two water tanks are at different heights, the output data is the water level of the lower water tank, and the input data is the water pump voltage; Merge different intermediate features as input to the feature processing network; use the feature processing network to perform multi-layer nonlinear transformation on the merged intermediate features to obtain the final model output; In each round of parameter iteration h The loss function of the feature extraction network is as follows: ; ; ; in, β is a hyperparameter that controls the degree to which the model is affected by the overall network output; represents the intermediate features obtained by input processing, represents the corresponding real output of the system, i is a constant; Indicated in Model output under action; n Indicates the number of training data; The loss function is reconstructed as follows: ; in, W and b Represent the learnable parameter weights and biases of the network respectively; p Indicates the length of the new information; j is a constant; The error between the model output and the true output for: 。 4. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the nonlinear system identification method according to claim 2 are implemented.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that: When the processor executes the program, the steps of the nonlinear system identification method according to claim 2 are implemented.
6. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the nonlinear system identification method according to claim 2 are implemented.
