A method and system for predicting non-stationary ship motions in dynamic system modeling

By introducing the koopa architecture and Fourier filtering technology into the ship motion prediction model, the non-stationary components are separated and processed, which solves the problem of low ship motion prediction accuracy under medium and high sea conditions and achieves more accurate prediction results.

CN118410722BActive Publication Date: 2024-08-23QINGDAO INNOVATION & DEV CENT OF HARBIN ENG UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410850464.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-08-23
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

In medium and high sea conditions, the non-stationary nature of ship motion history makes it difficult for existing forecast models to predict accurately. In particular, the changes in distribution characteristics caused by non-stationary factors and the endpoint effect of the empirical mode decomposition method affect the forecast accuracy.

Method used

A neural network model based on the koopa architecture is used, combined with Fourier filtering and koopman theory, to separate the high-frequency and low-frequency components of ship motion data, and predict through low-frequency and high-frequency koopman predictors respectively, and adjust the network structure to reduce errors. Achieve modeling and prediction of non-stationary characteristics.

Benefits of technology

It improves the modeling ability and prediction accuracy of the ship motion prediction model for non-stationary data, reduces the deviation between the prediction results and the true value, and overcomes the problem of errors at the endpoints of traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118410722B
    Figure CN118410722B
Patent Text Reader

Abstract

The present invention belongs to the technical field of ship and ocean engineering, and discloses a method and system for predicting non-stationary ship motion for power system modeling. The method introduces Fourier filtering and Koopman theory, constructs a ship motion prediction model based on Koopa architecture, respectively constructs a low-frequency Koopman predictor and a high-frequency Koopman predictor, and the filtered high-frequency component is mapped to a high-dimensional space through a low-frequency Koopman predictor, and its state transfer is controlled by a Koopman operator in the high-dimensional space; the filtered low-frequency component is mapped to a high-dimensional space through a low-frequency Koopman predictor, and different Koopman operators are used to control the state transfer of data state areas with different distribution characteristics in the high-dimensional space. The present invention effectively improves the prediction accuracy of the prediction model for non-stationary ship motion time history data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of ship and ocean engineering, and in particular relates to a method and system for predicting non-stationary ship motion in power system modeling. Background Art

[0002] During the sea voyage, ships are often affected by complex environmental factors such as wind, waves and currents, and exhibit complex six-degree-of-freedom swaying motion. As the interference factors increase, the ship motion will show stronger randomness and nonlinearity, which poses a serious threat to the ship's navigation and operation at sea. Estimating the ship's navigation posture in the next few seconds to tens of seconds in advance can avoid possible risks in the voyage in advance, reduce the probability of accidents, and ensure the safety of personnel on board and the normal operation of equipment.

[0003] However, the following problems still exist in the prediction of ship motion attitude. In medium and high sea conditions, ship motion often exhibits strong non-stationarity, that is, the statistical characteristics and joint distribution of ship motion, such as the mean and variance, will change continuously over time in an unpredictable way, which makes the amplitude and phase characteristics in the ship motion history complex and difficult to capture, greatly affecting the accuracy of the prediction of the ship motion history. Therefore, how to reduce the impact of non-stationarity on the ship motion history and improve the accuracy of the ship motion attitude prediction in medium and high sea conditions is a problem that needs to be solved urgently.

[0004] The existing ship motion prediction methods are mainly based on neural network models such as RNN, and the prediction of future ship motion is achieved through the method of time history extrapolation. The construction of the neural network model is based on the assumption that the data set follows the independent and identically distributed assumption, which means that the model needs to extract representative distribution features from historical data for fitting future data. However, due to the existence of non-stationary factors, the distribution of time history data of ship motion under medium and high sea conditions will continue to change over time, which makes the model trained based on historical data unable to identify new data distribution, and ultimately leads to a large deviation between the prediction result and the true value. In past studies, the empirical mode decomposition (EMD) method is often used to decompose the non-stationary ship motion time history data into several stable intrinsic mode function components and remainders to reduce the impact of non-stationarity on the prediction accuracy. However, due to the inevitable endpoint effect of the EMD method, there is a large error at the endpoint, which has a great impact on the overall accuracy of the prediction results.

[0005] Therefore, the ship motion history is regarded as a nonlinear dynamic system that evolves over time. Fourier filtering and Koopman theory are introduced to construct a ship motion prediction model based on the Koopa architecture. The ship motion history is decomposed into low-frequency components with non-stationary characteristics and relatively stable high-frequency components through Fourier filters to achieve the separation of stable and non-stationary characteristics; the low-frequency components and high-frequency components are mapped to high-dimensional linear space through different Koopman predictors, and different Koopman operators are used to perform state modeling on data state regions with different distribution characteristics in the high-dimensional space, so that the model can effectively identify and capture the non-stationary characteristics existing in the ship motion history data. Finally, the future state obtained by pushing the operator forward is transformed back to the original sequence space to generate the prediction result of the motion history.

[0006] Through the above analysis, the problems and defects of the prior art are as follows: in terms of extremely short-term prediction of ship motion, the existing implementation scheme is that machine learning models such as neural networks perform time-to-time extrapolation prediction of the motion time history of a certain degree of freedom of the ship. However, under medium and high sea conditions, complex environmental factors will make the ship motion time history extremely unstable, and the distribution characteristics of the time history data will continue to change with time. Therefore, it is difficult for the neural network model trained based on historical data to fit future motion data with different distribution characteristics, and there is a large deviation between the predicted results and the future true values.

[0007] In past studies, the use of empirical mode decomposition (EMD) can effectively solve the influence of non-stationary factors in ship motion history data, but the EMD method has an inevitable endpoint effect, so the predicted value will have a large error at the endpoint and is difficult to apply to real-time prediction tasks.

[0008] In the existing technology, due to the influence of non-stationary factors, the prediction results of the ship motion prediction model often have a large deviation from the true value. The empirical mode decomposition (EMD) technology, which can more effectively deal with non-stationarity, has an inevitable endpoint effect, which has a certain impact on the overall prediction accuracy of the model.

[0009] Past models often considered reducing or eliminating the impact of non-stationary factors, but did not consider non-stationarity as a type of learnable feature and include it in the feature extraction and modeling scope of the model. Summary of the invention

[0010] In order to overcome the problems existing in the related art, the disclosed embodiment of the present invention provides a method and system for predicting non-stationary ship motion based on power system modeling, and specifically relates to a method for predicting non-stationary ship motion based on nonlinear power system modeling.

[0011] The technical solution is as follows: A method for predicting non-stationary ship motions in dynamic system modeling, comprising:

[0012] S1: Segment the known ship motion time history data of a certain degree of freedom to obtain the training set of time history forecast and test set ;

[0013] S2: Establish a neural network model based on the koopa architecture, set the historical input step size back and the advance prediction step size ahead, and and test set Construct input and output datasets for the neural network model based on the koopa architecture;

[0014] S3: According to the obtained koopa-based neural network model training input data set and test input data set, each segment of input data is converted from the time domain to the frequency domain through fast Fourier transform, and high-pass filtering and low-pass filtering are performed respectively according to the filtering threshold to decompose each segment of input data into high-frequency components and low-frequency components;

[0015] S4: training the low-frequency component and the high-frequency component of the input data according to the obtained neural network model based on the koopa architecture, respectively inputting the low-frequency koopman predictor and the high-frequency koopman predictor for prediction, and linearly superimposing the prediction results of the low-frequency koopman predictor and the high-frequency koopman predictor;

[0016] S5: Input dataset for training the neural network model based on koopa architecture Each input fragment The prediction results are generated by Fourier filtering and Koopman predictor processing in turn. The neural network model based on the koopa architecture adjusts the parameter settings of the internal network structure to make the prediction results Output dataset for training neural network model based on koopa architecture Output snippet The error between them is continuously reduced, and after multiple iterations, a trained neural network model based on the koopa architecture is obtained;

[0017] S6: Input dataset for testing the neural network model based on the koopa architecture Input the trained koopa-based neural network model, each input fragment The ship motion time history prediction result is obtained by Fourier filtering and Koopman predictor respectively.

[0018] In step S1, the known motion history data of a certain degree of freedom of the ship is:

[0019] ;

[0020] In the formula, The amount of data on the ship's historical movement history;

[0021] Split the ship's historical motion data into training sets , test set ,in, is the number of data in the training set, The number of data in the test set and the number of data in the training set and test set are set according to actual needs.

[0022] In step S2, the training set Extraction by sliding window method as well as ,in, is the input length, is the output length; get The set of input data sets ,get The set of output data sets ;

[0023] The test set Extraction by sliding window method as well as ;get The set of input data sets ,get The set of output data sets .

[0024] In step S3, the model is trained on the input dataset , for each input data Convert from time domain to frequency domain via Fast Fourier Transform ; Set the filtering threshold according to the actual problem requirements , and according to the filtering threshold Will Divide into and Two parts; convert from frequency domain back to time domain through inverse Fourier transform to obtain the low-frequency components of each segment of input data and high frequency components .

[0025] In step S4, the low frequency Koopman predictor comprises: training the low frequency component of the input data according to the obtained model , the low frequency component Divide into Duan Dedao ,in, Determine according to the actual situation; Each component is passed through The encoder maps to The hidden space is obtained , through Perform front-to-back displacement to obtain and ,exist and Perform matrix multiplication between them to get the Koopman operator ; Through the koopman operator right Perform a linear transformation to obtain The dynamic recursion results ,Will The decoder maps back to the sequence dimension to obtain the prediction result of the low-frequency component .

[0026] In step S4, the high frequency koopman predictor comprises: training the high frequency components of the input data according to the obtained model , the high frequency component Mapped by the encoder Latent space variables , through the learnable Koopman operator in the latent space right Perform a linear transformation to obtain The dynamic recursion results ,Will The decoder maps back to the sequence dimension to obtain the prediction result of the high-frequency component .

[0027] In step S4, the prediction results of the low-frequency Koopman predictor and the high-frequency Koopman predictor are linearly superimposed, including: the prediction results of the low-frequency component Prediction results with high frequency components Perform linear superposition to obtain the input segment The prediction results .

[0028] Furthermore, in the model training input data set In the above example, we input data for each training segment. The operations of step S3 and step S4 are performed to obtain the corresponding prediction results. , the model adjusts the parameter settings of the internal network structure to make the prediction results With the training input dataset Input snippet The error between them keeps decreasing, and after multiple iterations, a trained model is obtained.

[0029] In step S6, the input data set for the neural network model test , input data for each test segment Input it into the model trained in step S5, repeat the operations of steps S3 and S4, and obtain the corresponding set of prediction results .

[0030] Another object of the present invention is to provide a non-stationary ship motion prediction system for power system modeling, the system implements the non-stationary ship motion prediction method for power system modeling, and the system comprises:

[0031] The module for obtaining the training set and test set of the time-history forecast is used to segment the time-history data of a certain degree of freedom of the known ship to obtain the training set of the time-history forecast. and test set ;

[0032] The neural network model input and output data set construction module based on the koopa architecture is used to build a neural network model based on the koopa architecture, set the historical input step size back and the advance prediction step size ahead, and and test set Construct input and output datasets for the neural network model based on the koopa architecture;

[0033] The high-frequency component and low-frequency component decomposition module is used to train the input data set and test the input data set according to the obtained neural network model based on the koopa architecture, convert each segment of input data from the time domain to the frequency domain through fast Fourier transform, and perform high-pass filtering and low-pass filtering respectively according to the filtering threshold, so as to decompose each segment of input data into high-frequency components and low-frequency components;

[0034] The high- and low-frequency component prediction and linear superposition module is used to train the low-frequency component and high-frequency component of the input data according to the obtained neural network model based on the koopa architecture, input them into the low-frequency koopman predictor and the high-frequency koopman predictor for prediction respectively, and linearly superpose the prediction results of the low-frequency koopman predictor and the high-frequency koopman predictor;

[0035] A neural network model training module based on the koopa architecture, used to train the neural network model based on the koopa architecture with an input data set Each input fragment The prediction results are generated by Fourier filtering and Koopman predictor processing in turn. The neural network model based on the koopa architecture adjusts the parameter settings of the internal network structure to make the prediction results Output dataset for training neural network model based on koopa architecture Output snippet The error between them is continuously reduced, and after multiple iterations, a trained neural network model based on the koopa architecture is obtained;

[0036] The module for obtaining the ship motion time history prediction results is used to input the data set for the neural network model test based on the koopa architecture. Input the trained koopa-based neural network model, each input fragment The ship motion time history prediction result is obtained by Fourier filtering and Koopman predictor respectively.

[0037] In combination with all the above technical solutions, the beneficial effects of the present invention are as follows: in order to improve the modeling ability and prediction performance of the ship motion prediction model for non-stationary data, the present invention proposes a non-stationary ship motion prediction method based on nonlinear dynamic system modeling, introduces Fourier filtering and koopman theory, and constructs a ship motion prediction model based on the koopa architecture. On the one hand, the historical motion data of the ship is processed by Fourier filtering to separate the low-frequency components containing non-stationary factors from the high-frequency components; on the other hand, based on the nonlinear dynamics concept of Koopman theory, a low-frequency Koopman predictor and a high-frequency Koopman predictor are constructed respectively. For the high-frequency components with relatively stable data distribution characteristics, they are mapped to the high-dimensional space through the high-frequency component Koopman predictor, and their state transfer is controlled by a Koopman operator; for the low-frequency components whose data distribution characteristics change continuously over time, they are mapped to the high-dimensional space through the low-frequency Koopman predictor, and different Koopman operators are used to control the state transfer of data state areas with different distribution characteristics in the high-dimensional space, thereby quantifying and modeling the non-stationary factors in the high-dimensional space, so that the model can dynamically adapt to the non-stationary factors in the data by adjusting the learnable parameters, and effectively improve the prediction accuracy of the forecast model for non-stationary data.

[0038] The present invention solves the problem of feature extraction and modeling of non-stationarity within the forecast model. In the past, non-stationary ship motion history data was often first subjected to a non-stationary operation using a data decomposition method such as EMD, and the non-stationary history was decomposed into multiple stationary history, which were then input into the model for prediction. The method proposed by the present invention directly inputs the non-stationary history into the model, and extracts and learns non-stationary features within the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the principles of the present disclosure;

[0040] Figure 1 It is a schematic diagram of a method for predicting non-stationary ship motions in power system modeling provided by an embodiment of the present invention;

[0041] Figure 2 is a time history data diagram of a non-stationary ship motion roll provided by an embodiment of the present invention;

[0042] Figure 3 is a schematic diagram of Fourier filtering operation of a training input segment provided by an embodiment of the present invention;

[0043] Figure 4 is a Fourier filtering result diagram of a training input segment provided by an embodiment of the present invention;

[0044] Figure 5 is a graph of the time history prediction result of the non-stationary ship motion rolling provided by an embodiment of the present invention;

[0045] Figure 6 It is a statistical diagram of the error in the time history prediction of the non-stationary ship motion rolling provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0046] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention, so the present invention is not limited by the specific implementation disclosed below.

[0047] The innovation of the present invention lies in that: in view of the inherent non-stationarity in the actual ship motion history under high sea conditions and the endpoint effect of the traditional EMD method, the present invention introduces Fourier filtering and koopman theory, constructs a non-stationary ship motion history prediction model based on the koopa architecture, realizes the extraction and learning of non-stationary features within the model, and improves the modeling and prediction capabilities of the model for non-stationary ship motion history data.

[0048] The present invention constructs a ship motion prediction model based on the koopa architecture (a deep learning model architecture combining koopman theory with neural networks). For ship motion time history data, the factors causing data non-stationarity are mainly concentrated in the low-frequency components of the data. Therefore, the low-frequency components containing non-stationarity factors are separated from the high-frequency components by Fourier filtering;

[0049] Non-stationarity is regarded as a kind of learnable feature and is included in the feature extraction and modeling scope of the model. Therefore, the Koopman1 theory is introduced, and the ship motion history is regarded as a nonlinear dynamic system. The nonlinear dynamic system is mapped to a high-dimensional linear space through the model. For high-frequency components, a single Koopman operator is used to control the state transfer of the system. For low-frequency components, multiple Koopman operators are used to control the system state areas with different distribution characteristics respectively, thereby incorporating the intrinsic distribution characteristics of the data caused by non-stationarity into the model modeling consideration, improving the model's feature extraction and modeling capabilities for non-stationary ship motion data.

[0050] Embodiment 1, the method for predicting non-stationary ship motions in power system modeling provided by the embodiment of the present invention comprises:

[0051] S1: Segment the known ship motion time history data of a certain degree of freedom to obtain the training set of time history forecast and test set ;

[0052] The known motion history data of a certain degree of freedom of a ship is:

[0053] ;

[0054] In the formula, The amount of data on the ship's historical movement history;

[0055] Split the ship's historical motion data into training sets , test set ,in, is the number of data in the training set, The number of data in the test set and the number of data in the training set and test set are set according to actual needs.

[0056] S2: Establish a neural network model based on the koopa architecture, set the historical input step size back and the advance prediction step size ahead, and and test set Construct input and output datasets for the neural network model based on the koopa architecture;

[0057] The training set Extraction by sliding window method as well as ,in, is the input length, is the output length; get The set of input data sets ,get The set of output data sets ;

[0058] The test set Extraction by sliding window method as well as ;get The set of input data sets ,get The set of output data sets .

[0059] It can be understood that the sliding window method is used to divide the data in the model training set and test set into features and their corresponding labels for supervised learning of neural network models.

[0060] S3: According to the obtained koopa-based neural network model training input data set and test input data set, each segment of input data is converted from the time domain to the frequency domain through fast Fourier transform, and high-pass filtering and low-pass filtering are performed respectively according to the filtering threshold to decompose each segment of input data into high-frequency components and low-frequency components;

[0061] Model training input dataset , for each input data Convert from time domain to frequency domain via Fast Fourier Transform ; Set the filtering threshold according to the actual problem requirements , and according to the filtering threshold Will Divide into and Two parts; convert from frequency domain back to time domain through inverse Fourier transform to obtain the low-frequency components of each segment of input data and high frequency components .

[0062] It can be understood that the present invention uses Fourier filtering operation to separate the high-frequency component from the low-frequency component of the data.

[0063] S4: training the low-frequency component and the high-frequency component of the input data according to the obtained neural network model based on the koopa architecture, respectively inputting the low-frequency koopman predictor and the high-frequency koopman predictor for prediction, and linearly superimposing the prediction results of the low-frequency koopman predictor and the high-frequency koopman predictor;

[0064] The low-frequency Koopman predictor includes: training the low-frequency components of the input data according to the obtained model , the low frequency component Divide into Duan Dedao ,in, Determine according to the actual situation; Each component is passed through The encoder maps to The hidden space is obtained , through Perform front-to-back displacement to obtain and ,exist and Perform matrix multiplication between them to get the Koopman operator ; Through the koopman operator right Perform a linear transformation to obtain The dynamic recursion results ,Will The decoder maps back to the sequence dimension to obtain the prediction result of the low-frequency component .

[0065] It can be understood that the present invention innovatively proposes a low-frequency Koopman predictor for prediction, which maps the low-frequency component into a state variable in a high-dimensional latent space through an encoder, calculates the Koopman operator in the high-dimensional latent space, recursively extrapolates the state variable outward through the Koopman operator, and finally maps the recursive state variable back to the sequence dimension through the decoder to obtain a prediction result.

[0066] High-frequency Koopman predictor, including: training the high-frequency components of the input data according to the obtained model , the high frequency component Mapped by the encoder Latent space variables , through the learnable Koopman operator in the latent space right Perform a linear transformation to obtain The dynamic recursion results ,Will The decoder maps back to the sequence dimension to obtain the prediction result of the high-frequency component .

[0067] It can be understood that the present invention innovatively proposes a prediction method of a high-frequency Koopman predictor, which maps the high-frequency component into a state variable in a high-dimensional latent space through an encoder, fits the Koopman operator using a neural network in the high-dimensional latent space, recursively extrapolates the state variable outward through the Koopman operator, and finally maps the recursive state variable back to the sequence dimension through a decoder to obtain a prediction result.

[0068] The specific method of linearly superimposing the prediction results of the low-frequency Koopman predictor and the high-frequency Koopman predictor is to superimpose the prediction results of the low-frequency component Prediction results with high frequency components Perform linear superposition to obtain the input segment The prediction results ;

[0069] It can be understood that the innovative proposal of the present invention , is a simple linear superposition, that is, the corresponding data in the low-frequency component prediction results and the high-frequency component prediction results are added to obtain the prediction result of the entire sequence.

[0070] S5: Input dataset for training the neural network model based on koopa architecture Each input fragment The prediction results are generated by Fourier filtering and Koopman predictor processing in turn. The neural network model based on the koopa architecture adjusts the parameter settings of the internal network structure to make the prediction results Output dataset for training neural network model based on koopa architecture Output snippet The error between them is continuously reduced, and after multiple iterations, a trained neural network model based on the koopa architecture is obtained;

[0071] Input dataset for model training In the above example, we input data for each training segment. The operations of step S3 and step S4 are performed to obtain the corresponding prediction results. , the model adjusts the parameter settings of the internal network structure to make the prediction results With the training input dataset Input snippet The error between them keeps decreasing, and after multiple iterations, a trained model is obtained.

[0072] It can be understood that the innovative proposal of the present invention , which is used to perform the operations of step S3 and step S4 on each segment of training input data in the training input data set.

[0073] S6: Input dataset for testing the neural network model based on the koopa architecture Input the trained koopa-based neural network model, each input fragment The ship motion time history prediction result is obtained by Fourier filtering and Koopman predictor respectively.

[0074] Input dataset for neural network model testing , input data for each test segment Input it into the model trained in step S5, repeat the operations of steps S3 and S4, and obtain the corresponding set of prediction results .

[0075] The principle of the non-stationary ship motion prediction method for power system modeling provided by the embodiment of the present invention is as follows: Figure 1 shown.

[0076] It can be seen from the above embodiments that, since the distribution characteristics of non-stationary ship motion history data will continue to change over time, it is difficult for traditional ship motion prediction models to make accurate predictions of future motion data with constantly changing distribution characteristics. Although the empirical mode decomposition (EMD) method can effectively solve the influence of non-stationary factors, EMD will introduce errors at the endpoints, resulting in a decrease in the overall accuracy of the prediction results.

[0077] Previous models often considered reducing or eliminating the impact of non-stationary factors, but did not consider non-stationarity as a type of learnable feature and include it in the feature extraction and modeling scope of the model. In order to improve the modeling ability and prediction performance of the ship motion prediction model for non-stationary data, the present invention proposes a non-stationary ship motion prediction method based on power system modeling.

[0078] The ship motion prediction model is constructed based on the koopa architecture (a deep learning model architecture that combines koopman theory with neural networks). First, the low-frequency components containing non-stationary factors are separated from the high-frequency components by Fourier filtering. The effect of this step is to separate the non-stationary items from the overall data, which is convenient for subsequent analysis and modeling of the non-stationary items. Secondly, the ship motion history is regarded as a nonlinear dynamic system, and the nonlinear dynamic system is mapped to a high-dimensional linear space through the model. The effect of this is to simplify modeling and analysis: the ship motion history usually has complex nonlinear characteristics, and direct modeling and analysis will face great challenges. By mapping it to a high-dimensional linear space, the description of the dynamic system can be simplified to some extent, making the problem easier to understand and handle; second, it is to facilitate the extraction of features and patterns: mapping the nonlinear dynamic system to a high-dimensional linear space can make the features and patterns hidden in the data more obvious and separable, which helps the model to more accurately identify and analyze the laws and trends of ship motion. For high-frequency components, a single Koopman operator is used to control the state transfer of the system. This has the effect of reducing the amount of model calculation. Since the statistical characteristics of high-frequency components change very little over time, only a single Koopman operator can be used for modeling and calculation. For low-frequency components, multiple Koopman operators are used to control system state regions with different distribution characteristics. This has the effect of improving the model's ability to model non-stationary terms. Since the statistical characteristics and data distribution of low-frequency components change continuously over time, multiple Koopman operators are needed to model and calculate them.

[0079] Based on the above operations, the intrinsic distribution characteristics of the data caused by non-stationarity are incorporated into the modeling considerations, which improves the model's feature extraction and modeling capabilities for non-stationary ship motion data.

[0080] The present invention also provides a non-stationary ship motion prediction system for power system modeling, which implements the non-stationary ship motion prediction method for power system modeling, and the system comprises:

[0081] The module for obtaining the training set and test set of the time-history forecast is used to segment the time-history data of a certain degree of freedom of the known ship to obtain the training set of the time-history forecast. and test set ;

[0082] The neural network model input and output data set construction module based on the koopa architecture is used to build a neural network model based on the koopa architecture, set the historical input step size back and the advance prediction step size ahead, and and test set Construct input and output datasets for the neural network model based on the koopa architecture;

[0083] The high-frequency component and low-frequency component decomposition module is used to train the input data set and test the input data set according to the obtained neural network model based on the koopa architecture, convert each segment of input data from the time domain to the frequency domain through fast Fourier transform, and perform high-pass filtering and low-pass filtering respectively according to the filtering threshold, so as to decompose each segment of input data into high-frequency components and low-frequency components;

[0084] The high- and low-frequency component prediction and linear superposition module is used to train the low-frequency component and high-frequency component of the input data according to the obtained neural network model based on the koopa architecture, input them into the low-frequency koopman predictor and the high-frequency koopman predictor for prediction respectively, and linearly superpose the prediction results of the low-frequency koopman predictor and the high-frequency koopman predictor;

[0085] A neural network model training module based on the koopa architecture, used to train the neural network model based on the koopa architecture with an input data set Each input fragment The prediction results are generated by Fourier filtering and Koopman predictor processing in turn. The neural network model based on the koopa architecture adjusts the parameter settings of the internal network structure to make the prediction results Output dataset for training neural network model based on koopa architecture Output snippet The error between them is continuously reduced, and after multiple iterations, a trained neural network model based on the koopa architecture is obtained;

[0086] The module for obtaining the ship motion time history prediction results is used to input the data set for the neural network model test based on the koopa architecture. Input the trained koopa-based neural network model, each input fragment The ship motion time history prediction result is obtained by Fourier filtering and Koopman predictor respectively.

[0087] Embodiment 2: In the above embodiments, the description of each embodiment has its own emphasis. For the parts that are not described or recorded in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0088] Since the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present invention, their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0089] To further illustrate the effects of the embodiments of the present invention, the following experiment was conducted. The data selected was 8 hours of real sea navigation movement history data of a certain ship type, with a time step of 0.5 seconds. Figure 2 The rolling time history data of non-stationary ship motion is shown in the figure.

[0090] Step 1: Segment the known ship motion history data of a certain degree of freedom to obtain a training set and a test set for the time history forecast. The specific method of step 1 is as follows: the known ship motion history data of a certain degree of freedom is , where is the number of data on the ship's historical movement history; the ship's historical movement history data is divided into training sets: , test set ; Among them, the number of data in the training set is , the number of data in the test set is The data quantity of the training set and the test set is set according to the requirements of the ship's motion history.

[0091] Step 2: Build a neural network model based on the koopa architecture, set the historical input step size back and the advance prediction step size ahead, and use the training set in step 1 and test set Construct the input data set and output data set of the model. The specific method of step 2 is to convert the training set data Extraction by sliding window method as well as ;in, is the input length, is the output length; get The set of input data sets ,get The set of output data sets ; The test set data Extraction by sliding window method as well as ;get The set of input data sets ,get The set of output data sets .

[0092] Step 3: Based on the model training input data set and the model test input data set obtained in step 2, each segment of input data is converted from the time domain to the frequency domain through fast Fourier transform, and high-pass filtering and low-pass filtering are performed respectively according to the filtering threshold to decompose each segment of input data into high-frequency components and low-frequency components.

[0093] The specific method of Fourier filtering in step 3 is to train the input data set according to the model obtained in step 2 , for each input data Convert from time domain to frequency domain via Fast Fourier Transform ; Set the filtering threshold according to the actual problem requirements , and according to the filtering threshold Will Divide into and Two parts; and Through inverse Fourier transform, the low-frequency components of each segment of input data are obtained by converting from the frequency domain back to the time domain. and high frequency components The Fourier filter operation of the training input segment is as follows Figure 3 As shown, the Fourier filtering results of the training input fragment are as follows Figure 4 shown.

[0094] Step 4: According to the model training input data obtained in step 3, the low-frequency component and the high-frequency component are input into the low-frequency koopman predictor and the high-frequency koopman predictor for prediction respectively, and the prediction results of the low-frequency koopman predictor and the high-frequency koopman predictor are linearly superimposed.

[0095] The specific method of the low-frequency Koopman predictor in step 4 is to train the low-frequency component of the input data according to the model obtained in step 3 , the low frequency component Divide into Duan Dedao ,in, Determine according to the actual situation; Each component is passed through The encoder maps to The hidden space is obtained , through Perform front-to-back displacement to obtain and ,exist and Perform matrix multiplication between them to get the Koopman operator ; Through the koopman operator right Perform a linear transformation to obtain The dynamic recursion results ,Will The decoder maps back to the sequence dimension to obtain the prediction result of the low-frequency component .

[0096] The specific method of the high-frequency Koopman predictor in step 4 is to train the high-frequency components of the input data according to the model obtained in step 3 , the high frequency component Mapped by the encoder Latent space variables , through the learnable Koopman operator in the latent space right Perform a linear transformation to obtain The dynamic recursion results ,Will The decoder maps back to the sequence dimension to obtain the prediction result of the high-frequency component .

[0097] The specific method of linearly superimposing the prediction results of the low-frequency Koopman predictor and the high-frequency Koopman predictor in step 4 is to linearly superimpose the prediction results of the low-frequency Koopman predictor and the high-frequency Koopman predictor, including: Prediction results with high frequency components Perform linear superposition to obtain the input segment The prediction results .

[0098] Step 5: Repeat steps 3 and 4 to train the model input data set In the above example, we input data for each training segment. The operations of step S3 and step S4 are performed to obtain the corresponding prediction results. , the model adjusts the parameter settings of the internal network structure to make the prediction results With the training input dataset Input snippet The error between them keeps decreasing, and after multiple iterations, a trained model is obtained.

[0099] Step 6: Test the model with the input dataset Input the trained model in step 5, repeat steps 3 and 4, and input each segment The ship motion time history prediction result is obtained by solving the Fourier filter and the Koopman predictor in turn. The specific method of step 6 is as follows: for the input data set of the neural network model test obtained in step 2 , input data for each test segment Input it into the model trained in step S5, repeat the operations of steps S3 and S4, and obtain the corresponding set of prediction results Among them, the prediction results of the rolling history of non-stationary ship motion are as follows: Figure 5 shown.

[0100] The error calculation results of ship motion time history prediction are shown in Table 1. The error statistics of non-stationary ship motion rolling time history prediction are shown in Table 1. Figure 6 shown.

[0101] Table 1 Statistics of ship rolling motion prediction errors

[0102] .

[0103] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principles of the present invention should be covered within the protection scope of the present invention.

Claims

1. A method for predicting non-stationary ship motions in dynamic system modeling. It is characterized in that The method includes: S1: Segment the known ship motion time history data of a certain degree of freedom to obtain the training set D of time history prediction tr and the test set D te ; S2: Establish a neural network model based on the koopa architecture, set the historical input step size back and the advance prediction step size ahead, and tr and the test set D te Construct input and output datasets for the neural network model based on the koopa architecture; S3: According to the obtained koopa-based neural network model training input data set and test input data set, each segment of input data is converted from the time domain to the frequency domain through fast Fourier transform, and high-pass filtering and low-pass filtering are performed respectively according to the filtering threshold to decompose each segment of input data into high-frequency components and low-frequency components; S4: training the low-frequency component and the high-frequency component of the input data according to the obtained neural network model based on the koopa architecture, respectively inputting the low-frequency koopman predictor and the high-frequency koopman predictor for prediction, and linearly superimposing the prediction results of the low-frequency koopman predictor and the high-frequency koopman predictor; S5: Input dataset X for training the neural network model based on koopa architecture tr Each input fragment The prediction results are generated by Fourier filtering and Koopman predictor processing in turn. The neural network model based on the koopa architecture adjusts the parameter settings of the internal network structure to make the prediction results The output dataset Y of the neural network model training based on the koopa architecture tr Output snippet The error between them is continuously reduced, and after multiple iterations, a trained neural network model based on the koopa architecture is obtained; S6: Input dataset X for testing the neural network model based on koopa architecture te Input the trained koopa-based neural network model, each input fragment The ship motion time history prediction result is obtained by Fourier filtering and Koopman predictor respectively.

2. The method for predicting non-stationary ship motions based on dynamic system modeling according to claim 1, It is characterized in that In step S1, the known motion history data of a certain degree of freedom of the ship is: D=[d 1 ,d 2 …d T ] Where, T is the number of data of the ship's historical movement history; The ship's historical movement data is divided into training set D tr =[d 1 ,d 2 …d n ], test set D te =[d n+1 ,d n+2 …d T ], where n is the number of data in the training set, Tn is the number of data in the test set, and the number of data in the training set and the test set is set according to actual needs.

3. The method for predicting non-stationary ship motions based on dynamic system modeling according to claim 2, It is characterized in that In step S2, the training set D tr =[d 1 ,d 2 …d n ]Extracted by sliding window method as well as Among them, back is the input length, ahead is the output length; get The set of input data sets get The set of output data sets The test set D te =[d n+1 ,d n+2 …d T ]Extracted by sliding window method as well as get The set of input data sets get The set of output data sets 4. The method for predicting non-stationary ship motions based on dynamic system modeling according to claim 3, It is characterized in that In step S3, the model is trained on the input dataset For each input data Convert from time domain to frequency domain via Fast Fourier Transform Set the filtering threshold w according to the actual problem requirements k , and according to the filtering threshold w k Will Divide into and Two parts; convert from frequency domain back to time domain through inverse Fourier transform to obtain the low-frequency components of each segment of input data and high frequency components 5. The method for predicting non-stationary ship motions based on dynamic system modeling according to claim 4, It is characterized in that In step S4, the low frequency Koopman predictor comprises: training the low frequency component of the input data according to the obtained model The low frequency component Divide into δ segments to obtain Among them, δ is determined according to the actual situation; Each component in is mapped to the D-dimensional latent space through δ encoders to obtain Γ i tr =[Γ 1 ,Γ 2 … Γ δ ]=[Encoder(l 1 ),Encoder(l 2 ) … Encoder(l δ )], by i tr Perform the front-to-back displacement to obtain Γ i trback =[Γ 1 … Γ δ-1 ]=[Encoder(l 1 ) … Encoder(l δ-1 )] and Γ i trahead =[Γ 2 …Γδ]=[Encoder(l 2 ) … Encoder(l δ )], in Γ i trback With Γ i trahead Perform matrix multiplication between them to get the Koopman operator Through the koopman operator K high For Γ i tr =[Γ 1 ,Γ 2 … Γ δ ] is linearly transformed to obtain Γ i tr The dynamic recursion results Will The decoder maps back to the sequence dimension to obtain the prediction result of the low-frequency component 6. The method for predicting non-stationary ship motions based on dynamic system modeling according to claim 5, It is characterized in that In step S4, the high frequency koopman predictor comprises: training the high frequency components of the input data according to the obtained model The high frequency components Mapped into D-dimensional latent space variables through the encoder In the latent space, the learnable Koopman operator K low right Perform a linear transformation to obtain The dynamic recursion results Will The decoder maps back to the sequence dimension to obtain the prediction result of the high-frequency component 7. The method for predicting non-stationary ship motions based on dynamic system modeling according to claim 6, It is characterized in that In step S4, the prediction results of the low-frequency Koopman predictor and the high-frequency Koopman predictor are linearly superimposed, including: the prediction results of the low-frequency component Prediction results with high frequency components Perform linear superposition to obtain the input segment The prediction results 8. The method for predicting non-stationary ship motions based on dynamic system modeling according to claim 7, It is characterized in that Input dataset for model training In the above example, we input data for each training segment. The operations of step S3 and step S4 are performed to obtain the corresponding prediction results. The model adjusts the parameters of the internal network structure to make the prediction results With the training input data set Y tr Input snippet The error between them keeps decreasing, and after multiple iterations, a trained model is obtained.

9. The method for predicting non-stationary ship motions based on dynamic system modeling according to claim 8, It is characterized in that In step S6, the input data set for the neural network model test Enter data for each test segment Input it into the model trained in step S5, repeat the operations of steps S3 and S4, and obtain the corresponding set of prediction results 10. A non-stationary ship motion prediction system for dynamic system modeling, It is characterized in that The system implements the non-stationary ship motion prediction method for dynamic system modeling as claimed in any one of claims 1 to 9, and the system comprises: The module for obtaining the training set and test set of the time-history forecast is used to segment the time-history data of a certain degree of freedom of the known ship to obtain the training set D of the time-history forecast. tr and the test set D te ; The neural network model input and output data set construction module based on the koopa architecture is used to build a neural network model based on the koopa architecture, set the historical input step size back and the advance prediction step size ahead, and tr and the test set D te Construct input and output datasets for the neural network model based on the koopa architecture; The high-frequency component and low-frequency component decomposition module is used to train the input data set and test the input data set according to the obtained neural network model based on the koopa architecture, convert each segment of input data from the time domain to the frequency domain through fast Fourier transform, and perform high-pass filtering and low-pass filtering respectively according to the filtering threshold, so as to decompose each segment of input data into high-frequency components and low-frequency components; The high- and low-frequency component prediction and linear superposition module is used to train the low-frequency component and high-frequency component of the input data according to the obtained neural network model based on the koopa architecture, input them into the low-frequency koopman predictor and the high-frequency koopman predictor for prediction respectively, and linearly superpose the prediction results of the low-frequency koopman predictor and the high-frequency koopman predictor; The neural network model training module based on the koopa architecture is used to train the neural network model based on the koopa architecture with the input data set X tr Each input fragment The prediction results are generated by Fourier filtering and Koopman predictor processing in turn. The neural network model based on the koopa architecture adjusts the parameter settings of the internal network structure to make the prediction results The output dataset Y of the neural network model training based on the koopa architecture tr Output snippet The error between them is continuously reduced, and after multiple iterations, a trained neural network model based on the koopa architecture is obtained; The module for obtaining the ship motion time history prediction results is used to convert the input data set X of the neural network model test based on the koopa architecture into te Input the trained koopa-based neural network model, each input fragment The ship motion time history prediction result is obtained by Fourier filtering and Koopman predictor respectively.