Compressor stall prediction method based on WOA-LSTM, medium and program product
By using the whale optimization algorithm to optimize the parameters of the LSTM model in axial flow compressor stall prediction, the problem of data acquisition and computing resource requirements is solved, the prediction accuracy and efficiency are improved, and the safety and reliability of the aeroengine are ensured.
Patent Information
- Application Number
- CN202410793404.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-10-18
AI Technical Summary
The existing technology has problems in obtaining high-quality training data, large computing resource requirements, and poor model interpretability in axial flow compressor stall prediction, resulting in insufficient prediction accuracy and efficiency, affecting the safety and reliability of aeroengines.
The Whale Optimization Algorithm (WOA) is used to optimize the initialization parameters in the long short-term memory network (LSTM), combined with data preprocessing and model training, to improve the model's ability to capture time series data and generalize it, and to realize the stall phenomenon of axial flow compressors. high accuracy predictions.
It significantly improves the accuracy and efficiency of axial flow compressor stall prediction, enhances the adaptability and real-time performance of the model, ensures the safe operation of aeroengines, and reduces the risk of flight accidents.
Smart Images

Figure CN118798030A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of aero-engines and relates to stall prediction of an axial flow compressor. Specifically, the present invention provides a stall prediction method for an aero-engine axial flow compressor based on a whale optimization algorithm (WOA) and a long short-term memory network (LSTM). By integrating the global search capability of the WOA and the time series data processing capability of the LSTM, the present invention aims to improve the accuracy and efficiency of stall prediction of the axial flow compressor and provide technical support for the safe operation of the aero-engine. Background Art
[0002] As one of the core components of aircraft engines, the axial flow compressor plays a vital role. Its performance directly affects the overall efficiency, thrust output and fuel consumption rate of the engine. However, in complex flight environments and changing operating conditions, the axial flow compressor may stall during operation. Stall phenomenon usually refers to an instability of the flow inside the compressor. This instability may be caused by factors such as low flow, high compression ratio, uneven intake flow or sudden changes in operating conditions. Once stall occurs, the compression capacity of the compressor drops sharply, resulting in a significant reduction in engine thrust, which seriously affects the flight performance and safety of the aircraft.
[0003] Therefore, developing effective prediction techniques to accurately predict the stall point of axial compressors is of vital importance to ensure the safe and reliable operation of aircraft engines. Traditional stall prediction methods mainly rely on physical models and empirical formulas. These methods are based on a deep understanding of the principles of fluid mechanics and thermodynamics, and construct mathematical models to simulate and predict the performance and stall characteristics of axial compressors under specific working conditions. However, these traditional methods often have limitations when dealing with complex engine operating conditions, highly nonlinear flow characteristics, and chaotic phenomena in fluid dynamics. The main reason is that the simplification of physical models and the generality of empirical formulas cannot accurately capture all the subtle factors that affect stall, especially in highly complex and dynamically changing flight environments, and the adaptability and accuracy of these methods are limited.
[0004] With the rapid development of artificial intelligence technology, especially machine learning and deep learning technology, using these technologies to predict stalls has become a new trend in aviation research. Machine learning methods can build prediction models that can automatically adapt to different flight conditions and environmental changes by learning the patterns and characteristics of stalls from a large amount of flight data. This data-driven approach has significant advantages over traditional methods, especially in terms of performance when dealing with nonlinear, high-dimensional and complex relationships.
[0005] However, although machine learning methods have shown great potential in stall prediction, they still face many challenges in practical applications. First, it is quite difficult to obtain high-quality and high-precision training data. The operating data of aircraft engines are collected under specific conditions and are affected by various random factors, which requires the model to have the ability to process and learn to extract information from noisy data. Secondly, machine learning models, especially deep learning models, have extremely high requirements for computing resources during the learning and prediction process, which poses a challenge to the construction of real-time or near real-time stall prediction systems. In addition, the interpretability of the model is also an important issue, because safety-critical aircraft engine systems require that the prediction model must not only be accurate, but also its decision-making process must be clear and explainable.
[0006] In summary, how to deeply explore the potential of machine learning methods in stall prediction, while maintaining the model's performance in dealing with nonlinearity, high dimensions and complex relationships, overcome its shortcomings such as difficulty in obtaining high-quality training data, large computing resource requirements and poor model interpretability, and build a high-precision, efficient and interpretable stall prediction model, thereby further improving the prediction accuracy of axial compressor stall phenomenon, is a technical problem that needs to be solved urgently and is of great significance to improving the safety and reliability of aircraft engines. Summary of the invention
[0007] (I) Purpose of the invention
[0008] In view of the above defects and deficiencies of the existing machine learning methods in the stall prediction of the axial compressor of an aeroengine, in order to solve at least one of the above and other technical problems in the prior art, the present invention aims to provide a stall prediction method, medium and program product of an axial compressor based on WOA-LSTM, by combining the Whale Optimization Algorithm (WOA) with the Long Short-Term Memory (LSTM), integrating the global search capability of WOA and the time series data processing capability of LSTM, and using WOA to optimize the key parameters of LSTM (such as learning rate and number of hidden layer units, etc.), to achieve high-accuracy prediction of the stall phenomenon of the axial compressor. The method aims to enhance the ability of the model to capture the medium- and long-term dependent characteristics of time series data by finely adjusting the initialization parameters of the LSTM network, thereby improving the prediction accuracy of the stall phenomenon of complex dynamic systems such as the axial compressor of an aeroengine, being able to maintain a high generalization ability under different operating conditions and environmental changes, and having the ability to quickly respond to new data input, ensuring the real-time nature of the stall prediction, thereby providing timely technical support for the safe operation of the aeroengine.
[0009] (II) Technical solution
[0010] In order to achieve the purpose of the invention and solve the technical problems, the present invention adopts the following technical solutions:
[0011] The first invention object of the present invention is to provide a compressor stall prediction method based on WOA-LSTM, which is used to improve the prediction accuracy of the stall phenomenon of an axial flow compressor of an aircraft engine. The method comprises at least the following steps when implemented:
[0012] SS1. Data collection and preprocessing: Collect the original compressor operating data under low-speed uniform intake conditions, and preprocess the collected operating data to construct a high-quality data set for subsequent model training;
[0013] SS2.WOA optimizes LSTM network parameters: The whale optimization algorithm (WOA) is used to optimize the initialization parameters of the long short-term memory network (LSTM) to at least determine the optimal learning rate and number of hidden layer units in the LSTM network, so that the LSTM network constructed based on the determined initialization parameters can minimize the prediction error of the axial compressor stall phenomenon;
[0014] SS3. Stall prediction model training: Use the parameters optimized in step SS2 to initialize the LSTM network, and train the initialized LSTM network based on the high-quality data set constructed in step SS1, so that the trained LSTM network can effectively capture the patterns and long-term dependencies in the time series data, and gradually improve the prediction ability of the axial compressor stall phenomenon;
[0015] SS4. Stall prediction and evaluation: Use the LSTM network model trained in step SS3 to predict the stall phenomenon of the axial flow compressor, and compare the predicted results with the actual observations to comprehensively evaluate the effectiveness and reliability of the trained model in actual application scenarios.
[0016] Preferably, in the above step SS1, the original operating data includes at least various operating parameters and environmental conditions of the axial flow compressor, and the preprocessing includes at least data cleaning to remove noise and incomplete records, and down-frequency processing, normalization processing and time series construction of the data.
[0017] Preferably, in the above step SS2, the WOA algorithm searches for the optimal initialization parameter combination of the LSTM network in the high-dimensional parameter space by simulating the social behavior and foraging strategy of whales, so that the LSTM network constructed based on the determined parameters can minimize the prediction error of the axial compressor stall phenomenon, so as to improve the convergence speed of LSTM network training and the generalization ability of the model.
[0018] Furthermore, in the above step SS2, the implementation process of optimizing the LSTM network parameters using the WOA algorithm includes the following sub-steps:
[0019] SS21. Generate an initial population, where each individual represents a combination of initialization parameters of a group of LSTM networks, and set the optimization objective function to minimize the prediction error of the LSTM network on the validation set;
[0020] SS22. Calculate the key parameters a, vector A, and C in the WOA algorithm in each iteration. The parameter a is used to control the convergence and exploration ability of the search process, and the vectors A and C are used to update the position of the individual to simulate the foraging behavior of the whale group;
[0021] SS23. Judge the behavior pattern of the whale individual according to the probability value P corresponding to the parameter a. When P < 0.5, further judge the absolute value of A. If |A| < 1, update the position of the individual to simulate the behavior of surrounding the prey, otherwise the individual will search for a new position to simulate the exploration behavior; when P ≥ 0.5, update the position and create a spiral bubble to simulate the whale predation behavior;
[0022] SS24. Update the position and fitness value of the whale individual in each iteration, that is, adjust the LSTM network parameter values, and continuously adjust the individual parameters through the above predation and exploration behaviors to make it approach the optimal solution;
[0023] SS25. Judge whether the current iteration number t is less than the maximum iteration number t_max. If t < t_max, continue to iterate and optimize the parameters; otherwise, stop the iteration and obtain the optimal LSTM network initialization parameters;
[0024] SS26. After reaching the maximum iteration number, obtain the optimal combination of LSTM network parameters, including the learning rate and the number of hidden layer units, to minimize the prediction error of the LSTM network.
[0025] Through the above process, the WOA algorithm can efficiently search in the parameter space and automatically determine the optimal combination of parameters such as the learning rate and the number of hidden layer units of the LSTM network, making the prediction performance of the LSTM network constructed based on these parameters optimal on the validation set, thereby improving the prediction accuracy of the axial compressor stall phenomenon of aeroengines.
[0026] Preferably, in the above step SS3, during the training process of the LSTM network model, cross - validation technology is adopted to prevent overfitting, and the early stopping strategy is combined to monitor the performance change on the validation set to dynamically adjust the learning rate and the number of training epochs during the training process, so as to avoid overfitting the training data, and further improve the robustness and anti - interference ability of the model through data augmentation technology and regularization methods to ensure that the model has good generalization performance and reliability in practical applications.
[0027] Furthermore, in the above step SS3, the data enhancement technology in the LSTM network model training process includes at least translation, scaling and noise injection of time series data to enhance the robustness of the LSTM network model to data changes and improve the prediction ability; the early stopping strategy monitors the performance changes on the validation set to determine whether the model is overfitting, and stops training when the performance of the validation set no longer improves, thereby ensuring the efficiency and timeliness of model training.
[0028] Furthermore, in the above step SS3, the regularization method in the LSTM network model training process includes L2 regularization and Dropout technology, wherein the L2 regularization prevents the model from being overly dependent on certain specific weights by adding a penalty term of the sum of squared weights in the loss function, thereby improving the generalization ability of the model, and the Dropout technology randomly ignores a part of neurons during the training process to prevent co-adaptation between neurons, thereby enhancing the robustness and anti-interference ability of the model.
[0029] Preferably, in the above step SS4, the evaluation of the model prediction results adopts a multi-index evaluation method, including at least mean square error and root mean square error, to evaluate the degree of deviation between the model prediction results and the true value, and by examining the adaptability of the model under different working conditions and the robustness to abnormal data, to comprehensively evaluate the reliability of the model in practical applications.
[0030] The second inventive object of the present invention is to provide a computer program product, including computer instructions, for executing the above-mentioned aircraft engine axial compressor stall prediction method based on WOA-LSTM.
[0031] The third inventive object of the present invention is to provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned WOA-LSTM-based aircraft engine axial compressor stall prediction method is implemented.
[0032] (III) Technical Effect
[0033] Compared with traditional methods and single machine learning methods, the aircraft engine axial compressor stall prediction technology based on WOA-LSTM neural network of the present invention has the following advantages:
[0034] (1) Improve prediction accuracy: The present invention optimizes the initialization parameters of the long short-term memory network (LSTM) through the bio-inspired algorithm WOA, which can automatically determine the optimal learning rate, number of hidden layer units and other parameter combinations. The optimized LSTM network can more accurately learn and predict the stall phenomenon of the axial compressor, and can more accurately learn and capture the patterns and long-term dependencies in time series data. The optimized LSTM model can more effectively reduce the prediction error when processing complex nonlinear dynamic systems, thereby significantly improving the accuracy and reliability of the prediction.
[0035] (2) Strong adaptability: The LSTM network optimized by the WOA algorithm in the present invention can adapt to different operating conditions and environmental changes, improving the generalization ability of the model. This adaptability enables the model to maintain a high level of prediction performance under a variety of complex flight conditions, ensuring that the stall phenomenon can be accurately predicted under various operating conditions. The improvement of generalization ability not only enhances the robustness of the model, but also reduces the need to retrain the model under different conditions, improving the convenience of practical application.
[0036] (3) Good real-time performance: By optimizing the model structure and parameter configuration, the present invention enables the LSTM network model to quickly respond to new data inputs, realize real-time prediction of axial compressor stall, provide timely technical support for the safe operation of aircraft engines, and provide early warning before stall occurs, giving operators enough time to take corresponding preventive measures, thereby significantly reducing the risk of flight accidents and improving flight safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 Shown is a schematic diagram of the stall prediction method of an aero-engine axial compressor based on a WOA-LSTM neural network of the present invention;
[0039] Figure 2 Shown is a schematic diagram of the test bench and measurement arrangement;
[0040] Figure 3 Shown is a comparison chart of standardized training data and original data;
[0041] Figure 4 The figure shows the flow chart of WOA algorithm optimizing LSTM network parameters;
[0042] Figure 5The following is a comparison chart of the prediction effects of WOA-LSTM and LSTM;
[0043] Figure 6 Shown is the long-term prediction graph of WOA-LSTM. DETAILED DESCRIPTION
[0044] In order to better understand the present invention, the content of the present invention is further explained below in conjunction with embodiments. The described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limitations of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in the art without making creative work are within the scope of protection of the present invention.
[0045] The present invention aims to improve the prediction accuracy of the stall phenomenon of an axial flow compressor of an aircraft engine by combining advanced optimization algorithms and deep learning techniques. Specifically, the present invention uses the whale optimization algorithm (WOA) to optimize the key parameters of the long short-term memory network (LSTM), including the learning rate and the number of hidden layer units in the network. This method aims to enhance the model's ability to capture long-term dependent characteristics in time series data by fine-tuning the initialization parameters of the LSTM network, thereby improving the prediction accuracy of the stall phenomenon of complex dynamic systems, such as an axial flow compressor of an aircraft engine. As a specific example, Figure 1 As shown, the axial flow compressor stall prediction method based on WOA-LSTM of the present invention is divided into the following key steps during implementation:
[0046] SS1. Data collection and preprocessing
[0047] First, the original operating data of the axial compressor of the aircraft engine under low-speed uniform intake conditions are collected. These data cover various operating parameters and environmental conditions of the axial compressor. Considering that the original operating data may contain noise and incomplete records, a series of preprocessing steps are applied to the original operating data, including data cleaning, data frequency reduction, normalization processing, and time series construction, in order to prepare a high-quality data set for subsequent model training.
[0048] In a more specific example, when executing this step, the dynamic pressure change signal of the casing wall from steady state to stall process is obtained on the constructed low-speed compressor and the high-speed compressor through the pressure signal acquisition device. The test bench parameters are shown in Table 1, and the test bench and measurement arrangement diagram are shown in Figure 2 shown.
[0049] Table 1 Low speed compressor parameters
[0050]
[0051] In addition, when executing this step, the signals collected by two pressure sensors with similar positions are extracted separately. The number of points collected by each sensor is 2.3 million points, and the collection frequency is 100kHz. A section of the data points is intercepted, which includes the process from steady state to instability, with a total of 30k data points. Then it is down-converted to 10kHz. The dynamic pressure signal collected by the first sensor is selected as the training set, and the dynamic pressure signal collected by the second sensor is selected as the verification set. The training set and the verification set are standardized to eliminate the influence of scale and unit, ensuring that the model can focus on the intrinsic dynamic changes of the data, such as Figure 3 shown.
[0052] SS2.WOA optimizes LSTM model parameters
[0053] The whale optimization algorithm (WOA) is used to find the optimal initialization parameters of the LSTM network, including the learning rate and the number of hidden layer units. WOA simulates the social behavior and foraging strategy of whales and explores in the high-dimensional parameter space to find the parameter combination that can minimize the prediction error. This step is the key to achieving high-precision stall prediction, because proper parameter initialization can significantly improve the convergence speed of network training and the generalization ability of the model.
[0054] In some preferred embodiments, Figure 4 As shown in the figure, the implementation process of optimizing LSTM network parameters using the WOA algorithm includes the following sub-steps:
[0055] SS21. Generate an initial population, where each individual represents a set of initialization parameter combinations of the LSTM network, and set the optimization objective function to minimize the prediction error of the LSTM network on the validation set;
[0056] SS22. The key parameter a and vectors A and C in the WOA algorithm are calculated in each iteration. Parameter a is used to control the convergence and exploration ability of the search process, and vectors A and C are used to update the position of the individual to simulate the foraging behavior of the whale group.
[0057] SS23. The behavior pattern of individual whales is determined based on the probability value P corresponding to the parameter a. When P<0.5, the absolute value of A is further determined. If |A|<1, the position of the individual is updated to simulate the behavior of surrounding prey, otherwise the individual will search for a new position to simulate exploration behavior. When P≥0.5, the position is updated and a spiral bubble is created to simulate the predation behavior of whales.
[0058] SS24. Update the position and fitness value of individual whales in each iteration, that is, adjust the LSTM network parameter value, and continuously adjust the individual parameters through the above-mentioned predation and exploration behaviors to make it closer to the optimal solution;
[0059] SS25. Determine whether the current iteration number t is less than the maximum iteration number t_max. If t < t_max, continue to iteratively optimize the parameters; otherwise, stop the iteration and obtain the optimal initial parameters of the LSTM network.
[0060] SS26. After reaching the maximum iteration number, obtain the optimal parameter combination of the LSTM network, including the learning rate and the number of hidden layer units, to minimize the prediction error of the LSTM network.
[0061] Through the above process, the WOA algorithm can efficiently search in the parameter space and automatically determine the optimal parameter combination such as the learning rate and the number of hidden layer units of the LSTM network, making the prediction performance of the LSTM network constructed based on these parameters optimal on the validation set, thereby improving the prediction accuracy of the stall phenomenon of the aero-engine axial compressor.
[0062] SS3. Stall prediction model training
[0063] Initialize the LSTM network with the parameters optimized by the WOA algorithm in step SS2, and then perform learning and model construction on the high-quality data set formed by the data preprocessed in step SS1. In this stage, the model gradually improves its prediction ability for the stall phenomenon of the axial compressor by continuously learning the patterns and dependencies in the time series data. Cross-validation and other techniques are used in model training to prevent overfitting and ensure that the model has good generalization performance.
[0064] In some preferred examples, when performing this step, the data augmentation techniques in the LSTM network model training process at least include the translation, scaling, and noise injection of time series data to enhance the robustness of the LSTM network model to data changes and improve the prediction ability; the early stopping strategy determines whether the model is overfitting by monitoring the performance changes on the validation set and stops training when the performance on the validation set no longer improves, thereby ensuring the efficiency and timeliness of model training. In addition, the regularization methods in the LSTM network model training process include L2 regularization and Dropout techniques. Among them, the L2 regularization prevents the model from over-relying on certain specific weights by adding a penalty term of the sum of the squares of the weights to the loss function, thereby improving the generalization ability of the model, and the Dropout technique randomly ignores a part of the neurons during the training process to prevent the co-adaptability between neurons and enhance the robustness and anti-interference ability of the model.
[0065] SS4. Prediction and evaluation
[0066] Use the LSTM network model trained in step SS3 to predict the stall phenomenon of the axial compressor, and compare the predicted data with the actually measured data to comprehensively evaluate the effectiveness and reliability of the trained model in the actual application scenario.
[0067] In some preferred instances, a multi-index evaluation method is used to evaluate the model prediction results, including at least mean square error and root mean square error, to evaluate the degree of deviation between the model prediction results and the true value, and by examining the model's adaptability under different working conditions and its robustness to abnormal data, to comprehensively evaluate the reliability of the model in practical applications.
[0068] In a more specific example, the advantages and disadvantages of the WOA-LSTM developed by the present invention and the traditional LSTM without WOA optimization are compared. Figure 5 It can be seen that the WOA-LSTM of the present invention captures more signal features than LSTM. When processing complex time series data, the LSTM model that has not been optimized by WOA is often unable to fully capture the important features and patterns in the data, resulting in insufficient prediction accuracy. The LSTM model optimized by WOA can not only capture subtle signal features more accurately, but also significantly improve the ability to predict the stall phenomenon of axial compressors. This improvement is mainly due to the global search capability of the WOA algorithm in high-dimensional parameter space, which makes the initialization parameters of the LSTM network more optimized, thereby improving the learning and generalization capabilities of the model. Then extend the data segment for long-term prediction, such as Figure 6 It can be seen that the WOA-LSTM developed by the present invention can predict the stall characteristics 1.26s in advance, providing a longer time window for early warning and state control of stall. This not only proves the effectiveness of the WOA-LSTM developed by the present invention in long-term sequence prediction, but also shows that it has excellent early warning capabilities, can detect stall signs in time, and thus take corresponding measures to prevent the occurrence of stall phenomenon, ensuring the safe and efficient operation of the compressor.
[0069] Through the above steps, the WOA optimized LSTM model developed by the present invention provides a new and efficient method for predicting the stall phenomenon of the axial compressor of an aircraft engine. This not only provides technical support for the health management and predictive maintenance of aircraft engines, but also promotes the application research of optimization algorithms in the field of complex system modeling and prediction.
[0070] Through the above embodiments, the purpose of the present invention is fully and effectively achieved. Those skilled in the art can understand that the present invention includes but is not limited to the contents described in the drawings and the above specific embodiments. Although the present invention has been described with respect to the most practical and preferred embodiments currently considered, it should be understood that the present invention is not limited to the disclosed embodiments, and any modification that does not deviate from the functional and structural principles of the present invention will be included in the scope of the claims.
Claims
1. A compressor stall prediction method based on WOA-LSTM, characterized in that: The method comprises at least the following steps when implemented: SS1. Collect the raw operating data of the compressor under low-speed uniform intake conditions, and preprocess the collected raw operating data to construct a high-quality data set for model training; SS2. Optimize the initialization parameters of the LSTM network using the WOA algorithm to at least determine the optimal learning rate and number of hidden layer units in the LSTM network, so that the LSTM network constructed based on the determined initialization parameters can minimize the prediction error of the compressor stall phenomenon; SS3. Initialize the LSTM network using the parameters optimized in step SS2, and train the initialized LSTM network based on the high-quality data set constructed in step SS1, so that the trained LSTM network can effectively capture the patterns and long-term dependencies in the time series data, and gradually improve the prediction ability of the compressor stall phenomenon; SS4. Use the LSTM network trained in step SS3 to predict the stall phenomenon of the compressor, and compare the predicted results with the actual observations to comprehensively evaluate the effectiveness and reliability of the trained model in actual application scenarios.
2. The compressor stall prediction method based on WOA-LSTM according to claim 1, characterized in that: In the above step SS1, the original operating data includes various operating parameters and environmental conditions of the compressor, and the preprocessing includes at least data cleaning to remove noise and incomplete records, and down-sampling, normalization and time series construction of the data.
3. The compressor stall prediction method based on WOA-LSTM according to claim 1, characterized in that: In the above step SS2, the WOA algorithm searches for the optimal initialization parameter combination of the LSTM network in the high-dimensional parameter space by simulating the social behavior and foraging strategy of whales, so that the LSTM network constructed based on the determined parameters can minimize the prediction error of the compressor stall phenomenon, thereby improving the convergence speed of LSTM network training and the generalization ability of the model.
4. The compressor stall prediction method based on WOA-LSTM according to claim 3, characterized in that: In the above step SS2, the implementation process of optimizing the LSTM network parameters using the WOA algorithm includes the following sub-steps: SS21. Generate the initial population and initialize the potential solution. Each individual represents a set of LSTM network initialization parameter combinations. The optimization objective function is set to minimize the prediction error of the LSTM network on the validation set. SS22. The key parameter a and vectors A and C in the WOA algorithm are calculated in each iteration. Parameter a is used to control the convergence and exploration ability of the search process, and vectors A and C are used to update the position of the individual to simulate the foraging behavior of the whale group. SS23. The behavior pattern of individual whales is determined based on the probability value P corresponding to the parameter a. When P < 0.5, the absolute value of A is further determined. If |A| < 1, the position of the individual is updated to simulate the behavior of surrounding prey. Otherwise, the individual will search for a new position to simulate exploration behavior. When P ≥ 0.5, the position is updated and spiral bubbles are created to simulate whale predation behavior; SS24. Update the position and fitness value of individual whales in each iteration, that is, adjust the LSTM network parameter value, and continuously adjust the individual parameters through the above-mentioned predation and exploration behaviors to make it closer to the optimal solution; SS25. Determine whether the current iteration number t is less than the maximum iteration number t_max. If t < t_max, continue to iteratively optimize the parameters; Otherwise, stop the iteration and obtain the optimal initial parameters of the LSTM network; SS26. After reaching the maximum iteration number, obtain the optimal combination of LSTM network parameters, including the learning rate and the number of hidden layer units, to minimize the prediction error of the LSTM network.
5. The compressor stall prediction method based on WOA-LSTM according to claim 1, characterized in that: In the above step SS3, during the training process of the LSTM network model, cross-validation technology is adopted to prevent overfitting. Combining the early stopping strategy to monitor the performance changes on the validation set, the learning rate and the number of training epochs are dynamically adjusted during the training process, so as to avoid overfitting the training data. And through data augmentation technology and regularization methods, the robustness and anti-interference ability of the model are further improved to ensure that the model has good generalization performance and reliability in practical applications.
6. The compressor stall prediction method based on WOA-LSTM according to claim 1, characterized in that: In the above step SS3, the data augmentation technology during the training process of the LSTM network model at least includes the translation, scaling, and noise injection of time series data to enhance the robustness of the LSTM network model to data changes and improve the prediction ability; The early stopping strategy judges whether the model is overfitting by monitoring the performance changes on the validation set, and stops the training when the performance of the validation set no longer improves, so as to ensure the efficiency and timeliness of the model training.
7. The compressor stall prediction method based on WOA-LSTM according to claim 6, characterized in that: In the above step SS3, the regularization methods during the training process of the LSTM network model include L2 regularization and Dropout technology. Among them, the L2 regularization prevents the model from over-relying on certain specific weights by adding a penalty term of the sum of squared weights to the loss function, thereby improving the generalization ability of the model. The Dropout technology randomly ignores a part of neurons during the training process to prevent co-adaptation between neurons and enhance the robustness and anti-interference ability of the model.
8. The compressor stall prediction method based on WOA-LSTM according to claim 1, characterized in that: In the above step SS4, a multi-index evaluation method is used to evaluate the model prediction results, at least including the mean square error and the root mean square error, to evaluate the deviation degree between the model prediction results and the true values, and to comprehensively evaluate the reliability of the model in practical applications by examining the adaptability of the model under different working conditions and the robustness to abnormal data.
9. A computer program product, including computer instructions for executing the compressor stall prediction method based on WOA-LSTM according to any one of claims 1 to 8.
10. A computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the compressor stall prediction method based on WOA-LSTM according to any one of claims 1 to 8.
