An echo state network predictive control method based on an improved sparrow search algorithm

By improving the sparrow search algorithm to optimize the parameters of the echo state network, the accuracy and computational complexity issues of traditional predictive control methods in complex nonlinear systems are solved, achieving more efficient predictive control performance.

CN117539151BActive Publication Date: 2026-11-24NORTHEAST DIANLI UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311524982.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-15
Publication Date
2026-11-24
Estimated Expiration
2043-11-15

AI Technical Summary

Technical Problem

Traditional model predictive control methods suffer from low accuracy, high computational cost, and weak generalization ability. Furthermore, they require different models to be designed for different scenarios, making it difficult to meet the control requirements of complex nonlinear systems.

Method used

By combining the improved Sparrow Search Algorithm (ISSA) and Echo State Network (ESN), a neural network model is constructed to improve the stability and accuracy of predictive control by optimizing the parameters of leakage rate α, spectral radius ρ, sparsity D, and input unit scale IS.

Benefits of technology

It improves the stability and accuracy of predictive control models, enhances control performance, and particularly improves speed control in permanent magnet synchronous motor systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117539151B_ABST
    Figure CN117539151B_ABST
Patent Text Reader

Abstract

This invention discloses an echo state network predictive control method based on an improved sparrow search algorithm. First, an echo state network (ESN) pool is initialized. The dataset is then trained using an ESN, and parameters are extracted during training to determine their optimization range. Next, an improved ISSA algorithm is used to search within this optimization range, obtaining the optimal solutions for the ESN's leakage rate α, spectral radius ρ, sparsity D, and input unit scale IS. Finally, the ESN, combined with the ISSA-optimized ESN parameters, is used to train a neural network on the dataset. The optimized ESN is then used as the prediction model for data predictive control. Parameter optimization improves the stability and accuracy of the ESN prediction model, thereby enhancing the predictive control performance of the neural network prediction model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of optimization control algorithms, and specifically to an echo state network predictive control method based on an improved sparrow search algorithm. Background Technology

[0002] With the development of computer networks, predictive control has been widely applied not only in academia but also in solving constrained optimal control problems in many fields such as advanced manufacturing, electromechanical equipment, energy, environment and infrastructure, aerospace, medicine, transportation, and agriculture. Predictive control achieves better control performance through analysis. However, traditional model predictive control has drawbacks such as low model accuracy, high computational and time consumption in solving optimization problems, the need to design different models for different scenarios, and weak generalization ability. Intelligent control theory provides a new approach to controlling complex nonlinear systems, and its combination with predictive control methods has led to many emerging control methods. Although they vary in form and control effects, their basic principles are consistent, namely, they all include three parts: predictive model, adaptive optimization, and real-time correction. Currently, research on predictive control mainly focuses on establishing predictive models and solving control laws. Therefore, a new predictive control method based on accurate and efficient predictive models is needed to achieve better control performance. Summary of the Invention

[0003] In order to overcome the shortcomings of the prior art, the present invention provides an echo state network predictive control method based on an improved sparrow search algorithm. The improved sparrow search algorithm is used to optimize the parameters of the regularized echo state network, and the optimized neural network model is used as the prediction model to improve the stability and accuracy of the predictive control model.

[0004] An echo state network predictive control method based on an improved sparrow search algorithm is proposed. This method utilizes a neural network to construct an ISSA-ESN predictive model for the control system. The specific steps of ISSA-ESN are as follows:

[0005] S1. Perform corresponding preprocessing based on the original dataset and construct the ESN echo state network structure;

[0006] S2. Initialize the ESN neural network structure and use the state information in the reservoir to determine the matrix W. in W x and W out And initialize the state of the reserve pool to a zero matrix;

[0007] S3. Train the dataset using the ESN neural network structure and extract the trained parameters to determine the optimization range of leakage rate α, spectral radius ρ, sparsity D, and input unit scale IS.

[0008] S4. Then, ISSA is used to optimize the extracted parameters, including leakage rate α, spectral radius ρ, sparsity D, and input cell scale IS. The analysis process is as follows:

[0009] Step 1: Initialize the population using the Tent chaotic mapping function to form a new population. The leakage rate α, spectral radius ρ, sparsity D, and input unit scale IS are represented as d-dimensional space vectors.

[0010] Step 2: Use the network training error function as the fitness function to calculate the fitness value of the sparrow, where N represents the size of the training dataset. The calculation formula is as follows:

[0011]

[0012] Step 3: Evaluate the best and worst fitness values ​​of individual sparrows and their corresponding positions by calculating their fitness values, and update the positions of the discoverer, joiner, and watcher using the formula in the ISSA improved algorithm;

[0013] Step 4: Calculate the fitness and location information of the updated sparrow population, find the globally optimal individual to satisfy the termination condition, and obtain the optimized leakage rate α, spectral radius ρ, sparsity D and input unit scale IS. Then, substitute the optimized leakage rate α, spectral radius ρ, sparsity D and input unit scale IS into the ESN model.

[0014] S5. The echo state network model is then trained with optimized leakage rate α, spectral radius ρ, sparsity D, and input unit scale IS.

[0015] Preferably, in step three, the update equation of the improved ISSA algorithm is used to update the positions of different individuals in the sparrow population, and the individual with a better position is selected as the discoverer. The position update equation for the discoverer is as follows:

[0016]

[0017] The remaining individuals are treated as followers, and the position update equation for the followers is as follows:

[0018]

[0019] The step size control parameters β and K are adjusted according to the formula to obtain the optimal and worst fitness values, and then improved. The formulas for calculating β and K are as follows:

[0020]

[0021]

[0022] Substituting the improved step size control parameters β and K into the formula, selecting an individual as a watchdog, updating the position according to the formula, calculating the fitness and position information of the population after the update, finding the globally optimal individual, and generating a new solution, the calculation formula is as follows:

[0023]

[0024] When the optimal conditions are met, the program terminates and outputs the optimal solution, then inputs the optimized network structure parameters into the echo state network structure. If the conditions are not met, the program jumps back to continue execution.

[0025] Preferably, in step S2, the reserve pool is driven by input data to continuously update its internal state. The update function is calculated as follows:

[0026] s(t+1)=(1-α)s(t)+αf(W in (t+1)+W s s(t))

[0027]

[0028] Where t is the time value, f is the activation function in the reservoir, s(t) is the input layer state value, y(t+1) is the output layer state value, and α is the leakage rate.

[0029] Preferably, during model training, the obtained W out To minimize the error between the actual output y(t) and the target value d(t), the corresponding calculation formula is as follows:

[0030]

[0031] Where N is the number of training samples.

[0032] In the process of selecting the parameters of the ESN network in the ISSA algorithm in S4, the network training error function is calculated by the root mean square error. The root mean square error calculation formula is used to replace the fitness evaluation function in the ISSA algorithm. The minimum iteration upper limit in the hunting performance is used as the stopping criterion. When the iteration ends, the optimal solution output by the ISSA algorithm is set as the parameters of the ESN.

[0033] During the initialization process of S2, W in W x Each connection weight matrix is ​​initialized, W out Initialized as a zero matrix, the parameters during network training include leakage rate α, spectral radius ρ, sparsity D, and input unit scale IS.

[0034] Due to the adoption of the above technical solutions, the present invention has the following advantages compared with the prior art:

[0035] 1. This invention optimizes predictive control systems by combining the improved Sparrow Search Algorithm (ISSA) with the Echo State Network (ESN). First, the dataset is trained using the ESN, and parameters are extracted during training to determine the optimization range. Then, the improved ISSA algorithm is used to search within this range to optimize the parameters of the ESN, including leakage rate α, spectral radius ρ, sparsity D, and input unit scale IS. The analysis incorporates an objective function, a Tent chaotic mapping function, and a Levy flight function. By searching the parameters, the stability of the model solution is improved, and the model complexity is effectively controlled to prevent overfitting.

[0036] 2. In the ISSA algorithm optimization process of this invention, the sparrow population is first initialized using the Tent chaotic mapping strategy, thereby improving the diversity of the population. Then, by optimizing the step size control parameters and using the Levy fractal function for detection and early warning, the optimization ability and the ability to escape local optima of the algorithm are improved. The network training error function is used to replace the fitness evaluation function in the ISSA algorithm. The optimal and worst fitness of individual sparrows and their corresponding positions are evaluated by calculating the sparrow fitness. The optimal solution output when the conditions are met is the optimal value of the parameters. Finally, the ISSA-ESN is used to train the neural network on the dataset using the ISSA-optimized echo state network parameters, thereby improving the prediction performance of the neural network prediction model. Attached Figure Description

[0037] Figure 1 This is a flowchart illustrating the overall analysis process of the present invention.

[0038] Figure 2 This is a diagram of the regularized echo state network predictive control structure of the present invention;

[0039] Figure 3 This is a structural diagram of the permanent magnet synchronous motor current loop predictive control system of the present invention. Detailed Implementation

[0040] The foregoing and other technical contents, features and effects of the present invention are described in conjunction with the appendix below. Figures 1 to 3 The detailed description of the embodiments will make it clear. The embodiments and features described herein can be combined with each other, and the terminology used in this specification has the meaning commonly understood by those skilled in the art.

[0041] This invention discloses an echo state network predictive control method based on an improved sparrow search algorithm. It utilizes a neural network to construct an ISSA-ESN predictive model for the control system. Taking the predictive control of a permanent magnet synchronous motor speed control system as a specific example, in the predictive model, y r(k) is a reference value, y m (k) represents the actual output of the object, y p (k) represents the output of the predictive model, u(k) is the optimal control signal, and e is the deviation between the actual output and the predicted output of the control system. Based on this predictive control structure, a current loop model predictive control strategy is implemented for the permanent magnet synchronous motor; considering i d =0, the d-axis controller still uses a PI controller, while the q-axis uses the ISSA-ESN model predictive controller proposed in this invention. This solves the problem that traditional PI control is difficult to maintain control performance in practical applications due to parameter changes and load disturbances, thereby improving the control effect of the motor. Finally, a PMSM system is constructed, and ISSA-ESN is used to realize neural network predictive control of the PMSM speed regulation system to improve the speed, accuracy and stability of the speed regulation system. Compared with traditional model predictive control and PI control, the control performance is greatly improved. In the predictive control of the motor, the analysis results of different parameters directly affect the efficiency of predictive control. In the embodiments of this invention, the leakage rate α, spectral radius ρ, sparsity D and input unit scale IS are optimized using a neural network analysis algorithm. The ISSA algorithm and ESN algorithm are combined to train the dataset. The analysis accuracy of ESN is improved by analyzing the parameters leakage rate α, spectral radius ρ, sparsity D and input unit scale IS. Preferably, the specific steps of ISSA-ESN are as follows:

[0042] S1. Perform corresponding preprocessing based on the original dataset and construct the ESN echo state network structure;

[0043] S2. Initialize the ESN neural network structure and use the state information in the reservoir to determine the matrix W. in W x and W out And initialize the state of the reserve pool to a zero matrix, W in W x Each connection weight matrix is ​​initialized, W out Initialize as a zero matrix; after initializing the reservoir, the internal state of the reservoir changes with the input data, driven internally by the input data. The function formula for calculating the state update is as follows:

[0044] s(t+1)=(1-α)s(t)+αf(W in (t+1)+W s s(t)),

[0045]

[0046] The state update process is related to the parameter leakage rate α.

[0047] S3. Before network training, the four parameters are set in advance. During training, the corresponding values ​​of the parameters are generated. The dataset is trained through the ESN neural network structure, and the trained parameters are extracted. The parameters of the trained echo state network are then stored to determine the optimization range of leakage rate α, spectral radius ρ, sparsity D, and input unit scale IS. The leakage rate parameter is added to the objective function of the ESN model. Compared with the traditional ESN model training, the ESN model trained with the leakage rate parameter improves the stability of the model solution and effectively controls the complexity of the model, preventing overfitting.

[0048] S4. Further, ISSA is used to optimize the extracted parameters, including leakage rate α, spectral radius ρ, sparsity D, and input cell scale IS. The analysis process is as follows:

[0049] Step 1: Initialize ISSA parameters, then initialize the population using the Tent chaotic mapping function to form a new population. Determine the optimization range of the ISSA algorithm for leakage rate α, spectral radius ρ, sparsity D, and input unit scale IS using the constructed ESN model. The optimal values ​​obtained by the ISSA algorithm are used as the network parameters. The ISSA algorithm selects the parameter problem of the ESN network as an optimization process. Assume the number of iterations is t, the objective function is the root mean square error, and the leakage rate α, spectral radius ρ, sparsity D, and input unit scale IS are represented as d-dimensional space vectors.

[0050] Step 2: Preferably, the network training error function is used as the fitness function to calculate the fitness value of the sparrow, where N represents the size of the training dataset. The calculation formula is as follows:

[0051]

[0052] Step 3: Evaluate the best and worst fitness values ​​of individual sparrows and their corresponding positions by calculating their fitness values, and update the positions of the discoverer, joiner, and watcher using the formula in the ISSA improved algorithm;

[0053] Step 4: Calculate the fitness and location information of the updated sparrow population, find the globally optimal individual to satisfy the termination condition, and obtain the optimized leakage rate α, spectral radius ρ, sparsity D and input unit scale IS. Then, substitute the optimized leakage rate α, spectral radius ρ, sparsity D and input unit scale IS into the ESN model.

[0054] S5. The echo state network model is trained with optimized leakage rate α, spectral radius ρ, sparsity D, and input unit scale IS. The echo state network prediction model is used to predict and control the speed regulation of permanent magnet synchronous motor. Compared with traditional recurrent neural networks, the prediction model based on regularized echo state network has the advantages of simple training and low computational cost. The ISSA-ESN echo state network predictive control method has significantly improved the control performance of permanent magnet synchronous motor system speed regulation.

[0055] Furthermore, in step three, the update equation of the improved ISSA algorithm is used to update the positions of different individuals in the sparrow population, and the individual with a better position is selected as the discoverer. The position update equation for the discoverer is as follows:

[0056]

[0057] The remaining individuals are treated as followers, and the position update equation for the followers is as follows:

[0058]

[0059] The step size control parameters β and K are adjusted according to the formula to obtain the optimal and worst fitness values, and then improved. β and K are set constants, and the calculation formulas for β and K are as follows:

[0060]

[0061]

[0062] Substituting the improved step size control parameters β and K into the formula, selecting an individual as a watchdog, updating the position according to the formula, calculating the fitness and position information of the population after the update, finding the globally optimal individual, and generating a new solution, the calculation formula is as follows:

[0063]

[0064] When the optimal conditions are met, the program terminates and outputs the optimal solution, then inputs the optimized network structure parameters into the echo state network structure. If the conditions are not met, the program jumps back to continue execution.

[0065] Furthermore, in S2, the reserve pool is driven by input data, continuously updating its internal state. The update function calculation formula is as follows:

[0066] s(t+1)=(1-α)s(t)+αf(W in (t+1)+W s s(t))

[0067]

[0068] Where t is the time value, f is the activation function in the reservoir, s(t) is the input layer state value, y(t+1) is the output layer state value, and α is the leakage rate.

[0069] Furthermore, during model training, we aim to obtain Wout that minimizes the error between the actual output y(t) and the target value d(t). The optimization problem expression is as follows:

[0070]

[0071] Where N is the number of training samples.

[0072] Furthermore, in S4, the network training error function in the process of selecting the parameters of the ESN network by the ISSA algorithm is the root mean square error. The root mean square error calculation formula is used to replace the fitness evaluation function in the ISSA algorithm. The minimum iteration upper limit in the hunting performance is used as the stopping criterion. When the iteration ends, the optimal solution output by the ISSA algorithm is set as the parameters of the ESN.

[0073] In accordance with the initialization requirements of S2, parameters that need to be set in advance during network training include leakage rate α, spectral radius ρ, sparsity D, and input unit scale IS.

[0074] In practical application, the ISSA-ESN analysis process involves first initializing the Echo State Network's reservoir, then training the dataset using the ESN echo state network, extracting parameters during training to determine the optimization range, and finally using an improved ISSA algorithm to search within this range. Specifically, the four parameters of the echo state network—leakage rate α, spectral radius ρ, sparsity D, and input unit scale IS—are optimized. During optimization, the sparrow positions are first initialized using the Tent chaotic mapping function, then the positions of the discoverer and follower are updated using the position update equation, and a step size factor dynamic adjustment strategy and a Levy flight strategy are introduced to update the position of the early warning system. After satisfying the iteration conditions, the optimal solution is output as the optimal value of the parameters. The ISSA-ESN then trains the dataset using the optimized echo state network parameters. The optimized ISSA-ESN is then used as a prediction model for data prediction, improving the prediction performance of the neural network prediction model and the stability and accuracy of the ISSA-ESN prediction model.

[0075] The above description provides a further detailed explanation of the present invention in conjunction with specific embodiments. However, it will be readily understood by those skilled in the art that the scope of protection of the present invention is obviously not limited to these specific embodiments. Without departing from the principles of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions resulting from these changes or substitutions will all fall within the scope of protection of the present invention.

Claims

1. An echo state network predictive control method based on an improved sparrow search algorithm, characterized in that, The ISSA-ESN prediction model for a control system is constructed using a neural network. The specific steps of ISSA-ESN are as follows: S1. Perform corresponding preprocessing based on the original dataset and construct the ESN echo state network structure; S2. Initialize the ESN neural network structure and use the state information in the reservoir to determine the matrix W. in W x and W out And initialize the state of the reserve pool to a zero matrix; S3. Train the dataset using the ESN neural network structure and extract the trained parameters to determine the optimization range of leakage rate α, spectral radius ρ, sparsity D, and input unit scale IS. S4. Then, ISSA is used to optimize the extracted parameters, including leakage rate α, spectral radius ρ, sparsity D, and input cell scale IS. The analysis process is as follows: Step 1: Initialize the population using the Tent chaotic mapping function to form a new population. The leakage rate α, spectral radius ρ, sparsity D, and input unit scale IS are represented as d-dimensional space vectors. Step 2: Use the network training error function as the fitness function to calculate the fitness value of the sparrow, where N represents the size of the training dataset. The calculation formula is as follows: Step 3: Evaluate the best and worst fitness values ​​of individual sparrows and their corresponding positions by calculating their fitness values, and update the positions of the discoverer, joiner, and watcher using the formula in the ISSA improved algorithm; Step 4: Calculate the fitness and location information of the updated sparrow population, find the globally optimal individual to satisfy the termination condition, and obtain the optimized leakage rate α, spectral radius ρ, sparsity D and input unit scale IS. Then, substitute the optimized leakage rate α, spectral radius ρ, sparsity D and input unit scale IS into the ESN model. S5. The echo state network model is then trained with optimized leakage rate α, spectral radius ρ, sparsity D, and input unit scale IS.

2. The echo state network predictive control method based on an improved sparrow search algorithm according to claim 1, characterized in that, In step three, the updated equation of the improved ISSA algorithm is used to update the positions of different individuals in the sparrow population. The individual with a better position is selected as the discoverer. The position update equation for the discoverer is as follows: The remaining individuals are treated as followers, and the position update equation for the followers is as follows: The step size control parameters β and K are adjusted according to the formula to obtain the optimal and worst fitness values, and then improved. The formulas for calculating β and K are as follows: K=(fitness best -fitness worst )· Substituting the improved step size control parameters β and K into the formula, selecting an individual as a watchdog, updating the position according to the formula, calculating the fitness and position information of the population after the update, finding the globally optimal individual, and generating a new solution, the calculation formula is as follows: When the optimal conditions are met, the program terminates and outputs the optimal solution, then inputs the optimized network structure parameters into the echo state network structure. If the conditions are not met, the program jumps back to continue execution.

3. The echo state network predictive control method based on an improved sparrow search algorithm according to claim 1, characterized in that, In S2, the reserve pool is driven by input data, continuously updating its internal state. The update function is calculated as follows: s(t+1)=(1-α)s(t)+αf(W in (t+1)+W s s(t)) Where t is the time value, f is the activation function in the reservoir, s(t) is the input layer state value, y(t+1) is the output layer state value, and α is the leakage rate.

4. The echo state network predictive control method based on an improved sparrow search algorithm according to claim 1, characterized in that, During model training, the obtained W out To minimize the error between the actual output y(t) and the target value d(t), the corresponding calculation formula is as follows: Where N is the number of training samples.

5. The echo state network predictive control method based on an improved sparrow search algorithm according to claim 1, characterized in that, In the process of selecting the parameters of the ESN network in the ISSA algorithm in S4, the network training error function is calculated by the root mean square error. The root mean square error calculation formula is used to replace the fitness evaluation function in the ISSA algorithm. The minimum iteration upper limit in the hunting performance is used as the stopping criterion. When the iteration ends, the optimal solution output by the ISSA algorithm is set as the parameters of the ESN.

6. The echo state network predictive control method based on an improved sparrow search algorithm according to claim 1, characterized in that, During the initialization process of S2, W in W x Each connection weight matrix is ​​initialized, W out Initialized as a zero matrix, the parameter leakage rate α, spectral radius ρ, sparsity D, and input unit scale IS are set during network training.

Citation Information

Patent Citations

  • Method for predicting online learning photovoltaic power of leaky integral echo state networks

    CN107766986A

  • Robot control method and system, electronic equipment and readable storage device

    CN114603556A