A method for ship attitude prediction and shipborne water cannon muzzle angle adjustment

By combining empirical mode decomposition and long-short-term memory neural network to predict ship attitude, and establishing a three-dimensional coordinate system to adjust the muzzle angle, the problem of water cannon strike accuracy under the influence of ship attitude is solved, and efficient and accurate muzzle angle adjustment is achieved. blow.

CN115950395BActive Publication Date: 2024-08-23WUHAN UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210994121.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-18
Publication Date
2024-08-23
Estimated Expiration
2042-08-18

AI Technical Summary

Technical Problem

The high randomness and nonlinear motion of the ship's attitude affect the strike effect of the shipborne water cannon. It is difficult to effectively predict and adjust the muzzle angle to improve accuracy with existing technology.

Method used

A method combining empirical mode decomposition (EMD) and long short-term memory (LSTM) neural network is used to predict ship attitude, and a three-dimensional coordinate system is established to solve the horizontal and pitch angles of the water cannon and the target object, and the muzzle is adjusted based on the prediction results. angle.

Benefits of technology

It effectively improves the accuracy of ship attitude prediction and the water cannon strike effect, and enables the muzzle angle to be adjusted in advance before the ship attitude changes, significantly improving the strike accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115950395B
    Figure CN115950395B
Patent Text Reader

Abstract

The invention discloses a method for ship attitude prediction and shipborne water cannon muzzle angle adjustment, comprising: S1, preprocessing the ship historical attitude data to remove abnormal values ​​and missing values, so as to obtain stable input data; S2, predicting the ship attitude based on a long-term and short-term neural network; S3, establishing a three-dimensional coordinate system for a shipborne water cannon platform and a target object, and solving the horizontal angle and the pitch angle between the water cannon and the target object when the ship is in motion; S4, obtaining a predicted shipborne water cannon muzzle angle based on the ship attitude prediction, and adjusting the water cannon muzzle in vertical and horizontal directions based on the horizontal angle, the pitch angle and the predicted shipborne water cannon muzzle angle; the ship attitude prediction and shipborne water cannon muzzle angle adjustment method of the invention combines empirical mode decomposition with a long-term and short-term neural network, and adjusts the water cannon muzzle angle according to the predicted ship attitude change to improve the striking accuracy of the water cannon platform, so as to achieve early adjustment of the water cannon muzzle before it is affected by the ship attitude.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of ship attitude prediction, and in particular to a method for ship attitude prediction and muzzle angle adjustment of a ship-borne water cannon. Background Art

[0002] The ship's attitude affects the safety of the ship and also has a very important impact on the ship's operations. Ship attitude prediction refers to predicting the attitude changes of the target object in the future based on the current attitude changes of the target object, so as to make the ship's operations better.

[0003] When a ship is sailing on the sea, it will be affected by various external factors such as weather and waves, and its motion posture will inevitably show high randomness and nonlinearity, which will have many adverse effects on the striking effect of ship-borne water cannons. This paper improves the striking accuracy of the water cannon platform from two aspects: predicting the ship's posture and adjusting the water cannon muzzle angle according to the change of the ship's posture. Summary of the invention

[0004] In order to improve the accuracy of ship attitude prediction and solve the problem that the striking effect of a ship-borne water cannon on a target is affected by the ship attitude, the present invention proposes a ship attitude prediction and a ship-borne water cannon muzzle angle adjustment method.

[0005] The present invention discloses a method for ship attitude prediction and shipborne water cannon muzzle angle adjustment, comprising: S1, preprocessing the ship's historical attitude data to remove abnormal values ​​and missing values, so as to obtain stable input data; S2, predicting the ship's attitude based on a long-term and short-term neural network; S3, establishing a three-dimensional coordinate system for a shipborne water cannon platform and a target object, and solving the horizontal angle and pitch angle between the water cannon and the target object when the ship is in motion; S4, obtaining a predicted shipborne water cannon muzzle angle based on the ship attitude prediction, and adjusting the water cannon muzzle in the vertical and horizontal directions based on the horizontal angle, the pitch angle and the predicted shipborne water cannon muzzle angle.

[0006] Furthermore, in step S1, the ship's historical posture data is preprocessed to remove abnormal values ​​and missing values, specifically including: S11, calculating the ship's historical motion posture sample data x(t) to obtain the local minimum and local maximum of the sample data; S12, performing interpolation fitting operations on the obtained local minimum and local maximum values ​​to obtain the mean of the maximum and minimum envelope sequence to obtain the mean sequence m1(t); S13, using Get a new sequence If the new sequence If the necessary conditions of the intrinsic mode function are not met, steps S11-S13 are repeated until the necessary conditions of the intrinsic mode function are met, and the number of repetitions is recorded as k; S14, the first-order IMF component of the historical posture sample data x(t) is Subtract c1(t) from the historical gesture sample data x(t) to obtain a new signal r1(t)=x(t)-c1(t) without high-frequency components; S15, repeat steps S11-S14 for r1(t) to obtain the second IMF component c2(t), and repeat the above process until the nth order IMF component c n (t) or its corresponding remainder r n (t) is less than the preset value, or the residual component r n When (t) is a constant or a monotonic function, the EMD decomposition process stops; S16, the final historical posture sample data x(t) is composed of the n-order IMF component and the residual component r n (t) means

[0007] Furthermore, the input of the long-term short-term neural network at each moment in step S2 consists of three parts, namely, the cell state h at the previous moment t-1 , the cell memory of the previous moment C t-1 And the current input information x t ; Input information x at the current moment t As the input of the long-term and short-term neural network, the outputs of the input gate, forget gate, and output gate of the corresponding long-term and short-term neural network at time t are i t 、f t , o t , where the input gate is used to input the input information x at the current moment t and the cell state h at the previous moment t-1 , the output is added to the cell memory, thereby updating the cell memory to obtain the updated cell memory C t , the output gate is used to input the input information x at the current moment t , the cell state at the previous moment h t-1 and the updated cell memory C t , output the updated cell state h t The forget gate is used to input the cell state h at the previous moment t-1 and the current input information x t , output the forgotten information f t .

[0008] Further, the three-dimensional coordinate system for the ship-borne water cannon platform and the target object is established in step S3, specifically including: S311, the coordinates of the water cannon muzzle are expressed as (x1, y1, z1) in the three-dimensional coordinate system {A}. The coordinate system {A} is translated and rotated to the coordinate system {B}. After the water cannon position is displaced and the orientation changes, the water cannon muzzle is expressed as (x2, y2, z2) in the coordinate system {B}. Then, any point P has the following transformation relationship in the two coordinate systems {A} and {B}, where, is the translation vector used to describe the position of {B} relative to {A}, is the rotation matrix used to describe the orientation of {B} relative to {A}, C P is the transition coordinate change, {C} is the transition coordinate system, {C} and {B} have the same origin, {C} and {A} have the same orientation, transition coordinate change, is the translation vector of {C} relative to {A};

[0009]

[0010] S312. Based on formula (1) and formula (2), solve the coordinates representing the coordinates (x2, y2, z2) in the coordinate system {A}.

[0011] Further, the position of the water cannon muzzle in the three-dimensional coordinate system after the ship's attitude changes, specifically includes: S321, based on the collected ship attitude angle W in the static state static =[w r ,w p ,w y ] T and the ship attitude angle W at time t (t) =[w r (t),w p (t),w y (t)] T , the ship attitude change is ΔW=W (t) -W static =[Δw r (t),Δw p (t),Δw y (t)] T , where w r ,w p ,w y are the pitch angle, roll angle, and bow angle of the ship respectively; S322, the x, y, and z axis displacements of the coordinate system {B} along the coordinate system {A} are measured. A ,y A ,z A ,Right now S323, the coordinate system is rotated by an angle θ corresponding to the axes x, y, and z, then Δw r (t),Δw p (t),Δw y (t) The rotation matrices are:

[0012]

[0013] S324, among which, A P= B P=[x1,y1,z1]T , then after the ship's attitude changes, the coordinates of the water cannon muzzle in the coordinate system {A} S325, the coordinate point of the water cannon muzzle in coordinate system {A} after the ship rotates at any angle around any axis of coordinate system {A} and moves any distance A P = [x2, y2, z2] T .

[0014] Further, the step S3 of solving the horizontal angle and pitch angle between the water cannon and the target object under the motion state of the ship specifically includes: S331, based on the established three-dimensional coordinate system, obtaining the pitch angle α1 and the yaw angle β1 of the water cannon muzzle locking the target object; S332, based on the formula A P z Obtain the water cannon muzzle pitch angle α2 and yaw angle β2 after the water cannon muzzle position changes under the ship motion state; S333, calculate the water cannon muzzle pitch angle Δα that needs to be adjusted t =α2-α1 and yaw angle Δβ t =β2-β1.

[0015] Further, the predicted muzzle angle of the ship-borne water cannon is obtained based on the ship posture prediction in step S4, and the vertical direction of the muzzle of the water cannon is adjusted based on the horizontal angle, the pitch angle and the predicted muzzle angle of the ship-borne water cannon, specifically including: S411, if Δα t =0, no adjustment in vertical direction; S412, if Δα t >0, vertical adjustment downward |Δα t +α t |; S413, if Δα t <0, vertical adjustment upward |Δα t +α t |, where α t It is the predicted muzzle angle of the ship-borne water cannon in the vertical direction calculated after predicting the ship's attitude based on the long-term and short-term neural network.

[0016] Further, the predicted shipborne water cannon muzzle angle is obtained based on the ship posture prediction in step S4, and the horizontal direction of the water cannon muzzle is adjusted based on the horizontal angle, the pitch angle and the predicted shipborne water cannon muzzle angle, specifically including:

[0017] S421, if Δβ t =0, no adjustment in horizontal direction;

[0018] S422, if Δβ t >0, horizontal adjustment clockwise |Δβ t +β t |;

[0019] S422, if Δβ t<0, horizontal counterclockwise adjustment|Δβ t +β t |, where β t It is the predicted muzzle angle of the ship-borne water cannon in the horizontal direction calculated after predicting the ship's attitude based on the long-term and short-term neural network.

[0020] The beneficial technical effects of the present invention are as follows:

[0021] 1. The empirical mode decomposition (EMD) and long short-term memory (LSTM) neural network are used together. Compared with a single model, this combined prediction method can effectively predict the short-term posture of the ship.

[0022] 2. Establish a three-dimensional coordinate system for the target object and the ship-borne water cannon. Based on kinematics, solve the pitch angle and yaw angle of the ship-borne water cannon when it hits the target object when the ship's attitude changes.

[0023] 3. A method for predicting ship attitude and adjusting the muzzle angle of ship-borne water cannon is proposed, which enables the water cannon muzzle to be adjusted in advance before it is affected by the ship attitude. It has achieved good results in actual project applications and has certain engineering significance. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 This is a flow chart of a method for ship posture prediction and shipborne water cannon muzzle angle adjustment according to an embodiment of the present invention;

[0025] Figure 2 It is a schematic diagram of the ship attitude prediction principle based on empirical mode decomposition and long-term and short-term neural network;

[0026] Figure 3 It is the long short-term neural network (LSTM) neuron structure;

[0027] Figure 4 This is a model diagram of ship attitude prediction based on empirical mode decomposition and long-term and short-term neural network;

[0028] Figure 5 This is a comparison chart of the LSTM and EMD-LSTM posture prediction results in an embodiment of the present invention;

[0029] Figure 6 This is a comparison table of LSTM and EMD-LSTM indicators in an embodiment of the present invention.

[0030] Figure 7 It is a diagram showing the change from coordinate system {A} to coordinate system {B} in an embodiment of the present invention.

[0031] Figure 8 This is a diagram of the water cannon coordinate changes affected by the ship's motion posture in an embodiment of the present invention.

[0032] Fig. 9This is a table recording the experimental results in the embodiments of the present invention. DETAILED DESCRIPTION

[0033] In order to further understand the present invention, preferred embodiments of the present invention are described below in conjunction with examples. However, it should be understood that these descriptions are only for further illustrating the features and advantages of the present invention, rather than limiting the claims of the present invention.

[0034] The purpose of the present invention is to propose a method for predicting ship posture and adjusting the muzzle angle of a ship-borne water cannon, so as to solve the problem that the striking effect of a ship-borne water cannon on a target is affected by the ship posture. The invention is described in detail below in conjunction with an embodiment.

[0035] In the following illustrated embodiment of the present invention, the continuous motion attitude data of the ship is collected by an inertial measurement unit (IMU) installed on the ship, such as the pitch angle, roll angle and bow angle of the ship. In each set of data, a total of 12476 data points are selected from 3000 seconds of continuous ship roll angle and pitch angle data. The first 2500 seconds are used as a training data set, and the last 500 seconds are used as a test data set. Figure 1 and Figure 2 As shown, there are a flow chart and a principle schematic diagram of the ship attitude prediction and ship-borne water cannon muzzle angle adjustment method, respectively.

[0036] S1, preprocessing the ship attitude data to obtain input data with outliers and missing values ​​removed;

[0037] S2, ship attitude prediction based on long short-term neural network (LSTM);

[0038] S3, establish a three-dimensional coordinate system for the ship-borne water cannon platform and the target object, and combine kinematics to solve the horizontal angle and pitch angle between the water cannon and the target object when the ship is in motion;

[0039] S4, based on the ship posture prediction, the predicted shipborne water cannon muzzle angle is obtained, and based on the horizontal angle, the pitch angle and the predicted shipborne water cannon muzzle angle, the water cannon muzzle is adjusted in the vertical and horizontal directions.

[0040] The present invention provides a method for predicting ship attitude and adjusting the muzzle angle of a ship-borne water cannon, pre-processes the historical attitude data of the ship to eliminate abnormal values ​​and missing values ​​in the data, and combines long-term and short-term neural networks for prediction, so as to achieve early adjustment of the muzzle of the water cannon when it is affected by the ship attitude.

[0041] In the illustrated embodiment of the present invention, the method steps of the present invention are described one by one.

[0042] S1, preprocess the historical ship attitude data to remove outliers and missing values, so as to obtain stable input data.

[0043] For the ship data collected from the inertial measurement unit, since it will be affected by various environmental factors such as noise during the actual collection process, the data has outliers and missing values, so the data often shows nonlinearity and volatility. In one embodiment of the present invention, the EMD method is used to remove outliers and missing value data for data preprocessing. One of the characteristics of the EMD method is that there is no unified basis function expression. It depends on the signal source itself and can decompose different signals into different basis functions. Therefore, EMD is suitable for processing and analyzing non-stationary signals such as ship motion posture. Specifically, it includes the following steps:

[0044] S11, calculating the measured ship motion attitude sample data x(t), and obtaining the local minimum and local maximum values ​​on the sample data;

[0045] S12, performing interpolation fitting operation on the two obtained extreme values, thereby obtaining the mean of the maximum and minimum envelope sequence, and finally obtaining the mean sequence m1(t);

[0046] S13, use The new sequence obtained is usually the new sequence obtained The two conditions defined by the intrinsic mode function are not met, so the above process needs to be repeated until the average curve approaches zero and then stops. The number of repetitions is recorded as k;

[0047] Among them, there are two necessary conditions for the intrinsic mode function (IMF):

[0048] 1. The number of extreme points and zero crossing points should be equal, or differ by at most one;

[0049] 2. The mean of the upper and lower envelopes of the local maximum and local minimum is 0.

[0050] S14, the first-order IMF component of the original signal, i.e., the ship's historical motion posture sample data x(t), is Subtract c1(t) from the original signal x(t) to obtain a new signal r1(t)=x(t)-c1(t) without high-frequency components.

[0051] S15, repeat the process of obtaining c1(t) for r1(t) to obtain the second IMF component c2(t), and repeat the above process until the nth order IMF component c n (t) or the remainder r n (t) is less than a preset value; or the residual component r n When (t) is a constant or a monotonic function, the EMD decomposition process stops;

[0052] S16, the final original sequence x(t) consists of the n-order IMF component and the residual component r n(t) means

[0053] In practical applications, in order to ensure the validity of the ship attitude prediction results, the attitude data generated within 5 seconds of the acquisition target is entered into the attitude prediction data queue. If there are too many abnormal values ​​and missing values, the attitude prediction will not be started until 200 data are met.

[0054] S2, ship attitude prediction based on long-term and short-term neural network.

[0055] The input of the LSTM structure at each moment consists of three parts, including the cell state h at the previous moment t-1 and cell memory C t-1 And the current input information x t . Let the current input information be x t , then the outputs of the input gate, forget gate, and output gate at time t are i t 、f t , o t , the result is as follows Figure 3 The LSTM structure is shown in the figure.

[0056] The current input information x t As the input of the long-term and short-term neural network, the outputs of the input gate, forget gate, and output gate of the corresponding long-term and short-term neural network at time t are i t 、f t , o t , where the input gate is used to input the input information x at the current moment t and the cell state h at the previous moment t-1 , the output is added to the cell memory, thereby updating the cell memory, as shown in equations (1)-(3),

[0057] i t =σ(w ki x t +w hi h t-1 +b i ) (1)

[0058] g t =σ(w xg x t +w hg h t-1 +b g ) (2)

[0059] C t =f t C t-1 +i t g t (3)

[0060] Among them, C t For updated cell memory.

[0061] The output gate is used to input the input information x at the current moment t , the cell state at the previous moment h t-1 and the updated cell memory C t , output the updated cell state, as shown in formula (4),

[0062] h t =o t tanh(C t ) (4)

[0063] The forget gate is used to input the cell state h at the previous moment t-1 and the current input information x t , output the forgotten information, as shown in formula (5),

[0064] f t =σ(w kf x t +w hf h t-1 +b f ) (5)

[0065] Where: σ is the Sigmod function; b f 、b i 、b o are the biases of the forget gate, input gate, and output gate respectively, w kf 、w ki 、w k0 are the weights of the forget gate, input gate, and output gate respectively.

[0066] In order to verify the effect of ship attitude prediction, the mean absolute percentage error (MAPE) and root mean square error (RMSE) are used as evaluation indicators of ship attitude prediction results. The formulas are:

[0067] At the same time, in order to illustrate the technical effect, the results of the EMD-LSTM model are compared with those of the LSTM model. Figure 4 The ship attitude prediction model diagram based on empirical mode decomposition and long-term and short-term neural network is shown in the figure. The prediction results are as follows Figure 5 The comparison of LSTM and EMD-LSTM posture prediction results is shown in the figure.

[0068] Compared with the LSTM model, the average absolute percentage errors of the roll angle, pitch angle, and bow angle of the EMD-LSTM model were reduced by 4.25%, 4.0%, and 4.33%, respectively, and the root mean square errors were reduced by 0.0501, 0.0211, and 0.0296, respectively. Figure 6 The LSTM and EMD-LSTM indicator comparison table is shown.

[0069] S3, establish a three-dimensional coordinate system for the ship-borne water cannon platform and the target object, and solve the horizontal angle and pitch angle between the water cannon and the target object when the ship is in motion;

[0070] S31, establish a three-dimensional coordinate system for the ship-borne water cannon platform and the target object:

[0071] In the implementation of the present invention, the principle of obtaining coordinates by muzzle change based on kinematics is mainly adopted.

[0072] It is known that the coordinates of the water cannon muzzle in the three-dimensional coordinate system {A} are expressed as (x1, y1, z1). Assuming that the position of the water cannon muzzle in the coordinate system is relatively fixed, the coordinate system {A} is changed to the coordinate system {B} through rotation and displacement, and the water cannon muzzle is expressed as (x2, y2, z2) in the coordinate system {B}. Solve the coordinates of the coordinates (x2, y2, z2) in the coordinate system {A}, as follows: Figure 7 The change from coordinate system {A} to coordinate system {B} is shown in the diagram, and the solution process is as follows.

[0073] Taking the ship-borne water cannon platform as an example, we now consider the case where the target object is stationary, and measure the horizontal angle and pitch angle between the water cannon and the target object under the influence of the ship's motion posture. A three-dimensional coordinate system {A} is established with the center point of the photoelectric and water cannon platform as the origin. After the platform position swings, the coordinate system {A} changes to the coordinate system {B} through rotation and translation.

[0074] In order to solve the problem of calculating the pitch angle and yaw angle of the water cannon when striking the target when the ship is moving, the relevant kinematic steps are introduced, and the specific steps are as follows.

[0075] S311, during the coordinate translation process, the original translation coordinate system of the water monitor platform is assumed to be {A}, and the coordinate system after translation is {B}. {A} and {B} have the same orientation but their origins do not coincide. Use the position vector Describe its position relative to {A}, called is the translation vector of {B} relative to {A}.

[0076] S312, during the rotation of the water monitor coordinate system, the orientations of the coordinate systems {A} and {B} are different but the origins coincide. Use the rotation matrix Describes the position of {B} relative to {A}. The same point p has the following relationship in the {A}{B} coordinate system:

[0077] S313, in general, the coordinate system {B} and the coordinate system {A} have different orientations and origins. That is, the water monitor position not only has displacement changes, but also has orientation changes. For any point P, the following transformation relationship exists in the two coordinate systems {A} and {B}:

[0078] S314, the formula in S313 can be regarded as a composite change of coordinate translation and rotation. In fact, a transition coordinate system {C} is defined so that {C} and {B} have the same origin and {C} and {A} have the same orientation. The transition coordinate change can be obtained from the formula in S313:

[0079] S315, the relationship between coordinate system {A} and coordinate system {B} can be obtained from the formula in S312

[0080] S315, based on the above formula, solve the coordinates representing the coordinates (x2, y2, z2) in the coordinate system {A}.

[0081] In addition, the position of the water cannon muzzle in the three-dimensional coordinate system after the ship's attitude changes can be obtained based on the ship's attitude angle collected by the inertial measurement unit (IMU), including:

[0082] S321, based on the collected ship attitude angle W in the static state static =[w r ,w p ,w y ] T and the ship attitude angle W at time t (t) =[w r (t),w p (t),w y (t)] T , the ship attitude change is ΔW=W (t) -W static =[Δw r (t),Δw p (t),Δw y (t)] T , where w r ,w p ,w y They are the ship's pitch angle, roll angle, and bow angle respectively;

[0083] S322, measure the x, y, z axis displacement x of coordinate system {B} along coordinate system {A} A ,y A ,zA ,Right now

[0084] S323, the coordinate system is rotated by an angle θ corresponding to the axes x, y, and z, then Δw r (t),Δw p (t),Δw y (t) The rotation matrices are:

[0085]

[0086] S324, among which, A P= B P=[x1,y1,z1] T , then after the ship's attitude changes, the coordinates of the water cannon muzzle in the coordinate system {A}

[0087] S325, the coordinate point of the water cannon muzzle in coordinate system {A} after the ship rotates at any angle around any axis of coordinate system {A} and moves any distance A P = [x2, y2, z2] T .

[0088] exist Figure 8 As shown in the diagram of the water cannon coordinate change affected by the ship's motion posture, point A is the target object, point E is the coordinate point of the water cannon muzzle after the position change, ∠α2 is the pitch angle of the water cannon muzzle after the position change, and ∠β2 is the yaw angle of the water cannon muzzle after the position change.

[0089] Step S4 specifically includes adjusting the muzzle angle of the ship-borne water cannon based on the long-term and short-term neural network, specifically including analyzing the vertical direction and horizontal direction of the muzzle. The position relationship before and after the change is as follows Figure 8 The water cannon coordinate changes affected by the ship's motion posture are shown in the figure. For the calculation of the angle adjustment of the ship's water cannon muzzle, first calculate the pitch angle of the water cannon muzzle locking the target object. and yaw angle Then calculate the water cannon muzzle pitch angle α2 and yaw angle β2 after the position change. The water cannon coordinate change affected by the ship's motion posture Figure 8 It can be seen that AC=|x2-x3|, CD=|y2-y3|, x2=x1cosθ-y1sinθ+x A y2=x1sinθ-y1cosθ+x A 、z3=z1+z A , you can get

[0090] The elevation angle Δα of the water cannon muzzle needs to be adjusted tand yaw angle β t are Δα t =α2-α1, Δβ t =β2-β1.

[0091] If Δα t =0, no adjustment in vertical direction; if Δα t >0, vertical adjustment downward |Δα t +α t |; If Δα t <0, vertical adjustment upward |Δα t +α t |.

[0092] If Δβ t =0, no adjustment in the horizontal direction; if Δβ t >0, horizontal adjustment clockwise |Δβ t +β t |; If Δβ t <0, horizontal counterclockwise adjustment|Δβ t +β t |.

[0093] In the actual experiment, when the water cannon muzzle posture changed, the muzzle adjustment method was not used to hit the target object, and the average error distance between the water column's impact point and the target object was about 3.1 meters. When the muzzle adjustment method was used to hit the target object, the average error distance between the water column's impact point and the target object was about 1.2 meters. Since the muzzle posture changed while the muzzle was adjusted. Using the muzzle adjustment method based on posture prediction, adjustments were made before the muzzle posture changed, so the average error distance between the water column's impact point and the target object could be reduced to about 0.2 meters, and the strike effect was significantly improved. The results are shown below. Fig. 9 The experimental results are shown in the table.

[0094] The above embodiments are only used to help understand the method and core idea of ​​the present invention. It should be noted that, for those skilled in the art, several improvements and modifications can be made to the present invention without departing from the principles of the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. A method for predicting ship attitude and adjusting the muzzle angle of a ship-borne water cannon. It is characterized in that include: S1, preprocess the historical ship attitude data to remove outliers and missing values, so as to obtain stable input data; S2, ship attitude prediction based on long-term and short-term neural networks; S3, establish a three-dimensional coordinate system for the ship-borne water cannon platform and the target object, and solve the horizontal angle and pitch angle between the water cannon and the target object when the ship is in motion; Among them, a three-dimensional coordinate system is established for the ship-borne water cannon platform and the target object, including: S311, the water cannon muzzle coordinates are expressed in the three-dimensional coordinate system {A} as (x 1 ,y 1 ,z 1 ) The coordinate system {A} is transformed to the coordinate system {B} through translation and rotation. After the water monitor position is displaced and azimuth is changed, the water monitor muzzle is expressed as (x 2 ,y 2 ,z 2 ), then any point P has the following transformation relationship in the two coordinate systems {A} and {B}, where is the translation vector used to describe the position of {B} relative to {A}, is the rotation matrix used to describe the orientation of {B} relative to {A}, C P is the transition coordinate change, {C} is the transition coordinate system, {C} and {B} have the same origin, {C} and {A} have the same orientation, transition coordinate change, is the translation vector of {C} relative to {A}; S312, based on formula (1) and formula (2), solve the coordinate (x 2 ,y 2 ,z 2 ) represents coordinates in coordinate system {A}; The position of the water cannon muzzle in the three-dimensional coordinate system after the ship's attitude changes, specifically including: S321, based on the collected ship attitude angle W in the static state static =[w r ,w p ,w y ] T and the ship attitude angle W at time t (t) =[w r (t),w p (t),w y (t)] T , the ship attitude change is ΔW=W (t) -W static =[Δw r (t),Δw p (t),Δw y (t)] T , where w r ,w p ,w y They are the ship's pitch angle, roll angle, and bow angle respectively; S322, measure the x, y, z axis displacement x of coordinate system {B} along coordinate system {A} A ,y A ,z A ,Right now S323, the coordinate system is rotated by an angle θ corresponding to the axes x, y, and z, then Δw r (t),Δw p (t),Δw y (t) Its rotation matrices are: S324, among which, A P= B P = [x 1 ,y 1 ,z 1 ] T , then after the ship's attitude changes, the coordinates of the water cannon muzzle in the coordinate system {A} S325, the coordinate point of the water cannon muzzle in coordinate system {A} after the ship rotates at any angle around any axis of coordinate system {A} and moves any distance A P = [x 2 ,y 2 , z 2 ] T ; The method of solving the horizontal angle and the pitch angle between the water cannon and the target object when the ship is in motion specifically includes: S331, based on the established three-dimensional coordinate system, obtain the pitch angle α of the water cannon muzzle locking the target object 1 and yaw angle β 1 ; S332, based on the formula AP z Obtain the elevation angle α of the water cannon muzzle after the water cannon muzzle position changes in the state of ship motion 2 and yaw angle β 2 ; S333, calculate the elevation angle Δα that needs to be adjusted for the water cannon muzzle t =α 2 -α 1 and yaw angle Δβ t =β 2 -β 1 ; S4, based on the ship posture prediction, the predicted shipborne water cannon muzzle angle is obtained, and based on the horizontal angle, the pitch angle and the predicted shipborne water cannon muzzle angle, the water cannon muzzle is adjusted in the vertical and horizontal directions.

2. The method for ship attitude prediction and shipborne water cannon muzzle angle adjustment as claimed in claim 1, It is characterized in that In step S1, the ship historical attitude data is preprocessed to remove outliers and missing values, specifically including: S11, calculating the sample data x(t) of the historical motion posture of the ship to obtain the local minimum and local maximum of the sample data; S12, interpolation fitting operation is performed on the obtained local minimum and local maximum values, so as to obtain the mean of the maximum and minimum envelope sequence, and obtain the mean sequence m 1 (t); S13, use Get a new sequence If the new sequence If the necessary conditions of the intrinsic mode function are not met, steps S11-S13 are repeated until the necessary conditions of the intrinsic mode function are met, and the number of repetitions is recorded as k; S14, the first-order IMF component of the historical posture sample data x(t) is Subtract c from the historical posture sample data x(t) 1 (t), and obtain a new signal r without high-frequency components. 1 (t) = x(t) - c 1 (t); S15, for r 1 (t) Repeat steps S11-S14 to obtain the second IMF component c 2 (t), repeat the above process until the nth order IMF component c n (t) or its corresponding remainder r n (t) is less than the preset value, or the residual component r n When (t) is a constant or a monotonic function, the EMD decomposition process stops; S16, the final historical posture sample data x(t) is composed of the n-order IMF component and the residual component r n (t) means 3. The method for ship attitude prediction and shipborne water cannon muzzle angle adjustment as claimed in claim 1, It is characterized in that The input of the long-term short-term neural network at each moment in step S2 consists of three parts: the cell state h at the previous moment t-1 , the cell memory of the previous moment C t-1 And the current input information x t ; The current input information x t As the input of the long-term and short-term neural network, the outputs of the input gate, forget gate, and output gate of the corresponding long-term and short-term neural network at time t are i t 、f t , o t , where the input gate is used to input the input information x at the current moment t and the cell state h at the previous moment t-1 , the output is added to the cell memory, thereby updating the cell memory to obtain the updated cell memory C t , The output gate is used to input the input information x at the current moment t , the cell state at the previous moment h t-1 and updated cell memory C t , output the updated cell state h t The forget gate is used to input the cell state h at the previous moment t-1 and the current input information x t , output the forgotten information f t .

4. The method for ship attitude prediction and shipborne water cannon muzzle angle adjustment as claimed in claim 1, It is characterized in that The step S4 obtains the predicted muzzle angle of the ship-borne water cannon based on the ship posture prediction, and adjusts the vertical direction of the muzzle of the water cannon based on the horizontal angle, the pitch angle and the predicted muzzle angle of the ship-borne water cannon, specifically including: S411, if Δα t =0, no adjustment in vertical direction; S412, if Δα t >0, vertical adjustment downward |Δα t +α t |; S413, if Δα t <0, vertical adjustment upward |Δα t +α t |, where α t It is the predicted muzzle angle of the ship-borne water cannon in the vertical direction calculated after predicting the ship's attitude based on the long-term and short-term neural network.

5. The method for ship attitude prediction and shipborne water cannon muzzle angle adjustment as claimed in claim 1, It is characterized in that The step S4 obtains the predicted muzzle angle of the ship-borne water cannon based on the ship posture prediction, and adjusts the horizontal direction of the muzzle of the water cannon based on the horizontal angle, the pitch angle and the predicted muzzle angle of the ship-borne water cannon, specifically including: S421, if Δβ t =0, no adjustment in horizontal direction; S422, if Δβ t >0, horizontal adjustment clockwise |Δβ t +β t |; S422, if Δβ t <0, horizontal counterclockwise adjustment|Δβ t +β t |, where β t It is the predicted muzzle angle of the ship-borne water cannon in the horizontal direction calculated after predicting the ship's attitude based on the long-term and short-term neural network.