A method and system for predicting maneuvering motion of unmanned boat based on time-varying parameter modeling

By using the adaptive direction forgetting recursive least squares method to process time-varying parameters in the unmanned boat dynamics model, the problems of parameter time-varying and insufficient excitation are solved, and efficient and stable control motion prediction and model accuracy improvement are achieved.

CN117610293BActive Publication Date: 2024-10-22HUAZHONG UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311624517.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-29
Publication Date
2024-10-22
Estimated Expiration
2043-11-29

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively handle the problems of time-varying parameters and insufficient excitation in the unmanned vehicle dynamics model, resulting in model prediction errors and insufficient stability.

Method used

Adopting a method based on time-varying parameter modeling, using the adaptive direction forgetting recursive least squares method, combined with the forward speed, lateral speed, bow angular speed, acceleration, rudder angle and propeller pulse width modulation value of the unmanned vessel, through Obtain data from multiple manipulation experiments to build and optimize the manipulation dynamics model to ensure the stability and adaptability of model parameters.

Benefits of technology

It achieves effective identification and stable prediction of time-varying parameters, avoids scale effects, improves model accuracy and generalization, and ensures fast tracking when parameters change rapidly and stability when changes are slow.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117610293B_ABST
    Figure CN117610293B_ABST
Patent Text Reader

Abstract

The present invention provides a method and system for predicting the maneuvering motion of an unmanned boat based on time-varying parameter modeling, which belongs to the technical field of unmanned boat motion modeling and prediction. The method comprises: constructing a maneuvering dynamics model of the unmanned boat; obtaining an identification data source through maneuvering tests of the unmanned boat on multiple voyages; converting the maneuvering dynamics model of the unmanned boat into a form to be identified, solving the parameters to be identified using an adaptive directional forgetting recursive least squares method; and predicting the maneuvering motion using the maneuvering dynamics model obtained by parameter identification. The present invention can ensure the stability of the identification result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of unmanned boat motion modeling and prediction, and more specifically, relates to an unmanned boat maneuvering motion prediction method and system based on time-varying parameter modeling. Background Art

[0002] In terms of ship control and digitalization, an accurate mathematical model of unmanned boats is crucial. Traditional methods for solving the dynamic model of unmanned boats include empirical formula method, constrained model test method, numerical calculation method and system identification algorithm. The empirical formula method is limited by the ship types involved in establishing the database, and cannot obtain accurate results for newly designed ship types. The constrained model test method can obtain almost all the hydrodynamic derivatives in the dynamic model, but its test requirements are high, time-consuming and labor-intensive, and will be affected by the scale effect, affecting the accuracy of the real ship model. The numerical calculation method can accurately calculate the hydrodynamic derivatives in the dynamic model and the related coupling coefficients of the ship-propeller-rudder, but it is more dependent on computer hardware, and more test conditions are required to obtain a full set of hydrodynamic derivatives, so it is more time-consuming. The system identification algorithm uses the actual data of the system to establish a mathematical model, effectively avoiding the scale effect, and saving time and economic costs. Summary of the invention

[0003] The least squares identification algorithm is a classic system identification algorithm, which obtains identification parameters by minimizing the prediction error criterion function, but the identification result is non-time-varying and is not suitable for the case where the parameters are time-varying. In view of the defects of this algorithm, the purpose of the present invention is to provide an unmanned boat maneuvering motion prediction method and system based on time-varying parameter modeling, aiming to solve the problem of time-varying parameters and insufficient excitation during the identification process.

[0004] To achieve the above object, on the one hand, the present invention provides a method for predicting the maneuvering motion of an unmanned boat based on time-varying parameter modeling, which specifically includes the following steps:

[0005] The unmanned boat's forward speed, lateral speed, bow angular velocity, forward acceleration, lateral acceleration and bow angular acceleration are used to build the unmanned boat's maneuvering dynamics model in combination with the unmanned boat's rudder angle, the pulse width modulation value transmitted by the propeller and the parameters to be identified.

[0006] The identification data source is obtained through the maneuvering tests of the unmanned boats on multiple voyages; wherein the identification data source includes the forward speed and forward acceleration, lateral speed and lateral acceleration, bow angular velocity and bow angular acceleration of the unmanned boat, the rudder angle of the unmanned boat and the pulse width modulation value transmitted by the propeller; and the maneuvering dynamics model of the unmanned boat is converted into the form to be identified, and the parameters to be identified are solved by using the adaptive directional forgetting recursive least squares method; wherein the range of the rudder angle of the maneuvering test covers the steering gear performance of the actual rudder;

[0007] The control dynamics model obtained by parameter identification is used to predict the control motion.

[0008] Further preferably, the form to be identified of the maneuvering dynamics model of the unmanned boat is:

[0009]

[0010]

[0011]

[0012]

[0013] Among them, u, v, and r are the forward speed, lateral speed, and bow angular speed of the unmanned boat changing with time. are the forward acceleration, lateral acceleration and bow angular acceleration of the unmanned boat over time; δ is the rudder angle of the unmanned boat; PWM is the pulse width modulation value of the propeller input, a 11 ~a 35 are the parameters to be identified in the maneuvering dynamics model of the unmanned boat.

[0014] Further preferably, the method for obtaining the identification data source is:

[0015] Obtain identification maneuvering data for multiple voyages through turning and Z-type tests, where the range of rudder angles in the maneuvering test covers the steering gear performance of the actual boat;

[0016] Connect the identification and operation data of multiple voyages end to end to form a mixed identification data source.

[0017] Further preferably, the maneuvering motion prediction method is: given the forward speed, lateral speed, bow angular velocity of the unmanned boat and the forward acceleration, lateral acceleration and bow angular acceleration of the unmanned boat at the initial moment, the rotation speed and rudder angle of the propeller during navigation are input into the maneuvering dynamics model obtained by parameter identification, assuming that the unmanned boat performs uniform linear motion in each time step, and the dynamic equation iteration method is used to obtain the maneuvering motion trajectory of the unmanned boat.

[0018] On the other hand, the present invention provides an unmanned boat maneuvering motion prediction system based on time-varying parameter modeling, comprising:

[0019] The construction module of the maneuvering dynamics model is used to construct the maneuvering dynamics model of the unmanned boat by using the forward speed, lateral speed, bow angular velocity and forward acceleration, lateral acceleration and bow angular acceleration of the unmanned boat, combined with the rudder angle of the unmanned boat, the pulse width modulation value transmitted by the thruster and the parameters to be identified;

[0020] The module for obtaining the identification data source is used to obtain the identification data source through the maneuvering test of the unmanned boat on multiple voyages; wherein the identification data source includes the forward speed and forward acceleration, lateral speed and lateral acceleration, bow angular velocity and bow angular acceleration of the unmanned boat, the rudder angle of the unmanned boat and the pulse width modulation value transmitted by the propeller; wherein the range of the rudder angle of the maneuvering test covers the steering gear performance of the actual rudder;

[0021] The module for solving the parameters to be identified is used to convert the maneuvering dynamics model of the unmanned boat into the form to be identified, and solve the parameters to be identified by using the adaptive directional forgetting recursive least squares method;

[0022] The control motion prediction module is used to predict the control motion using the control dynamics model obtained by parameter identification.

[0023] Further preferably, the form to be identified of the maneuvering dynamics model of the unmanned boat is:

[0024]

[0025]

[0026]

[0027]

[0028] Among them, u, v, and r are the forward speed, lateral speed, and bow angular speed of the unmanned boat changing with time. are the forward acceleration, lateral acceleration and bow angular acceleration of the unmanned boat over time; δ is the rudder angle of the unmanned boat; PWM is the pulse width modulation value of the propeller input, a 11 ~a 35 are the parameters to be identified in the maneuvering dynamics model of the unmanned boat.

[0029] Further preferably, the method for obtaining the identification data source is:

[0030] Obtain identification maneuvering data for multiple voyages through turning and Z-type tests, where the range of rudder angles in the maneuvering test covers the steering gear performance of the actual boat;

[0031] Connect the identification and operation data of multiple voyages end to end to form a mixed identification data source.

[0032] Further preferably, the maneuvering motion prediction method is: given the forward speed, lateral speed, bow angular velocity of the unmanned boat and the forward acceleration, lateral acceleration and bow angular acceleration of the unmanned boat at the initial moment, the rotation speed and rudder angle of the propeller during navigation are input into the maneuvering dynamics model obtained by parameter identification, assuming that the unmanned boat performs uniform linear motion in each time step, and the dynamic equation iteration method is used to obtain the maneuvering motion trajectory of the unmanned boat.

[0033] In a third aspect, the present application provides an electronic device comprising: at least one memory for storing programs; and at least one processor for executing the programs stored in the memory. When the program stored in the memory is executed, the processor is used to execute the method described in the first aspect or any possible implementation of the first aspect.

[0034] In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a processor, the processor executes the method described in the first aspect or any possible implementation of the first aspect.

[0035] In a fifth aspect, the present application provides a computer program product. When the computer program product runs on a processor, the processor executes the method described in the first aspect or any possible implementation of the first aspect.

[0036] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

[0037] In general, the above technical solution conceived by the present invention has the following beneficial effects compared with the prior art:

[0038] The present invention provides an unmanned boat maneuvering motion prediction method and system based on time-varying parameter modeling. When establishing the unmanned boat dynamics model, an adaptive directional forgetting recursive least squares algorithm is used to effectively identify the time-varying model parameters. Directional decomposition ensures the stability of the algorithm when the parameter excitation is insufficient. Adaptive forgetting can effectively adapt to the speed of parameter change, reduce the forgetting factor when the change speed is fast, quickly track the parameter change, and increase the forgetting factor when the speed changes slowly, thereby ensuring the stability of the identification result.

[0039] The present invention provides a method and system for predicting the maneuvering motion of an unmanned boat based on time-varying parameter modeling. When acquiring the data to be identified, the actual boat maneuvering data is used to avoid the influence of scale effect. When constructing the data set to be identified, multiple groups of maneuvering test data are mixed and used to improve the model accuracy and generalization.

[0040] The present invention provides a method and system for predicting the maneuvering motion of an unmanned boat based on time-varying parameter modeling, and provides a complete process from experiment to modeling, which provides useful assistance for the maneuvering modeling, control and digital simulation of unmanned boats, and has certain theoretical and engineering practice value. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1It is a flow chart of a method for modeling and predicting the maneuvering motion of an unmanned boat for time-varying parameter identification provided by an embodiment of the present invention;

[0042] Figure 2 It is a 30°Z-type track diagram during an actual test provided by an embodiment of the present invention;

[0043] Figure 3 It is a comparison diagram of the 30° Z-type predicted forward speed in the comparison between the prediction provided by the embodiment of the present invention and the actual test;

[0044] Figure 4 It is a comparison diagram of the 30° Z-type predicted lateral velocity in the comparison between the prediction provided by the embodiment of the present invention and the actual test;

[0045] Figure 5 It is a comparison diagram of the 30°Z-type predicted bow angular velocity in the comparison between the prediction provided by the embodiment of the present invention and the actual test;

[0046] Figure 6 It is a comparison diagram of the 30°Z-type predicted track in the comparison between the prediction provided by the embodiment of the present invention and the actual test. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0048] The term "and / or" in this article is a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The symbol " / " in this article indicates that the associated objects are in an or relationship, for example, A / B means A or B.

[0049] The terms "first" and "second" in the specification and claims herein are used to distinguish different objects rather than to describe a specific order of the objects. For example, a first response message and a second response message are used to distinguish different response messages rather than to describe a specific order of the response messages.

[0050] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0051] In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more than two. For example, multiple processing units refer to two or more processing units, etc.; multiple elements refer to two or more elements, etc.

[0052] The present invention provides a method and system for predicting the maneuvering motion of an unmanned boat based on time-varying parameter modeling. A data set is obtained through actual ship tests, and a parameter identification method is adopted to obtain a dynamic model, thereby enabling efficient and accurate acquisition of the dynamic model of the unmanned boat.

[0053] Example

[0054] To achieve the above purpose, Figure 1 As shown, on the one hand, the present invention provides a method for predicting the maneuvering motion of an unmanned boat based on time-varying parameter modeling, comprising the following steps:

[0055] Step 1: Establish the maneuvering dynamics model of the unmanned boat:

[0056]

[0057] Among them, u, v, and r are the forward speed, lateral speed, and bow angular speed of the unmanned boat, respectively. are the forward acceleration, lateral acceleration and bow angular acceleration of the unmanned boat respectively; δ is the rudder angle of the unmanned boat; PWM is the pulse width modulation value of the propeller input, a 11 ~a 35 are the parameters to be identified of the maneuvering dynamics model of the unmanned boat;

[0058] Step 2: Obtain the maneuvering test data of the unmanned boat to be identified; the test types are Z-type and rotation tests, and the test angles cover the performance of the steering gear. Taking the 30° Z-type test image as an example, the test trajectory image is as follows: Figure 2 As shown;

[0059] Step 3: Write formula (1) into the form to be identified, as shown in formula (6), and use the adaptive directional forgetting recursive least squares method to solve formula (6) and obtain the parameter a 11 ~a 35 Complete the parameter identification of the nonlinear model of the unmanned boat;

[0060] Step 4: Use the nonlinear model of the time-varying unmanned boat obtained by parameter identification to predict maneuverability and compare it with the actual test. Figure 3 to Figure 6 The comparison diagram of simulation and test for 30°Z type is shown in Figure 2. Figures 3 to 6 It can be seen that the test value is basically consistent with the calculated value, which shows that the unmanned boat maneuvering motion prediction method based on time-varying parameter identification provided by the present invention can quickly adapt to parameter changes and ensure the stability of the identification results.

[0061] Further preferably, the maneuvering dynamics model of the unmanned boat established in step 1 is derived according to the following process:

[0062] Step 1.1: Establish a general horizontal plane dynamics model for unmanned boats:

[0063]

[0064] Among them, X H , Y H and N H are the Ox and Oy axis hydrodynamic forces and moments acting on the boat body; the variables with subscripts P and R are the forces and moments on the propeller and rudder; u, v, and r are the forward speed, lateral speed, and bow angular velocity of the unmanned boat, respectively. are the forward acceleration, lateral acceleration and bow angular acceleration of the unmanned boat respectively; m x 、m y is the additional mass of the Ox and Oy axes; I zz is the moment of inertia about the Oz axis; J zz is the additional moment of inertia about Oz;

[0065] Step 1.2: Expand the hull hydrodynamic force and moment into the following form:

[0066]

[0067] Among them, u, v, and r are the forward speed, lateral speed, and bow angular speed of the unmanned boat, respectively. are the forward acceleration, lateral acceleration and bow angular acceleration of the unmanned boat respectively; X uu is the partial derivative of the forward hydrodynamic force with respect to the square of the forward velocity; X vv is the partial derivative of the forward hydrodynamic force with respect to the square of the lateral velocity; X rr is the partial derivative of the forward hydrodynamic force with respect to the square of the bow angular velocity; Y v is the partial derivative of the lateral hydrodynamic force with respect to the lateral velocity; Y v|v| is the partial derivative of the lateral hydrodynamic force with respect to the square of the lateral velocity; Y r is the partial derivative of the lateral hydrodynamic force to the bow angular velocity; Y r|r| is the partial derivative of the lateral hydrodynamic force with respect to the lateral velocity; N r is the partial derivative of the bow moment with respect to the bow angular velocity; N r|r| is the partial derivative of the bow moment with respect to the square of the bow angular velocity; N v is the partial derivative of the bow moment with respect to the lateral velocity; N v|v| is the partial derivative of the bow moment with respect to the square of the lateral velocity;

[0068] Step 1.3: Expand the hydrodynamic force and torque on the propeller into the following form:

[0069]

[0070] Among them, k1 is the propeller correlation coefficient, u is the forward speed of the UAV onboard coordinate system, PWM and PWM0 are the pulse width modulation value and its median value of the propeller input.

[0071] Step 1.4: Expand the hydrodynamic forces and moments on the rudder into the following form:

[0072]

[0073] Among them, k2~k4 are the correlation coefficients of the rudder, u is the forward speed of the UAV onboard coordinate system, and δ is the rudder angle

[0074] Step 1.5: Substitute formulas (3) to (5) into formula (2), and Put it alone on the left side of the equation and write the coefficient before the measured data as a 11 ~a 35 The final nonlinear dynamic model can be obtained in the form of formula (1);

[0075] Further preferably, in step 2, the data required for identification are obtained through maneuvering tests, i.e., turning and Z-type tests. The range of the maneuvering test rudder angle covers the steering gear performance of the actual boat. The maneuvering data of multiple voyages are connected end to end to form a mixed identification data source. The data obtained from the test include u, v, r, PWM, δ;

[0076] Further preferably, in step 3, formula (1) is written into a form to be identified:

[0077]

[0078] Among them, y(t), As shown in formula (3):

[0079]

[0080]

[0081]

[0082] Measurement data matrix;

[0083] The specific derivation of using the adaptive directional forgetting recursive least squares algorithm to solve θ(t) is as follows:

[0084] The least squares algorithm determines the parameter θ to be identified by minimizing the sum of squares of the estimation error:

[0085]

[0086] The algorithm assigns the same weight to all measurements. However, when the parameters vary, the past measurements accumulate more, which will make the optimization target insensitive to the new parameters, that is, the so-called data saturation phenomenon. Therefore, the idea of ​​exponential forgetting is introduced to add an exponentially decaying forgetting factor λ to the past measurement errors, so that more recent measurements have a greater weight, which improves the algorithm's sensitivity to changes in the identification parameter θ(t):

[0087]

[0088] As the measured value is farther from the current time t, the impact of its measurement error on the optimization target will decrease exponentially, so that the change of parameters can be tracked. The overall estimation error is recorded as J EF :

[0089]

[0090] To J EF The derivative is:

[0091] make We can get:

[0092] Writing the parameter expression of the exponential forgetting least squares algorithm in a recursive form can avoid multiple calculations of past information, so let:

[0093]

[0094]

[0095] For R(t) and f(t), they have the following properties:

[0096]

[0097]

[0098] For the coefficient The recursive form is as follows:

[0099]

[0100] For the information matrix R(t), it consists of two parts R(t-1) and The former is the accumulated motivational information, which is forgotten in an exponential form under the effect of the forgetting factor; is the latest information at the current moment; in order to ensure the meaning of inverting R(t), R(t) needs to remain positive, so the data is required to meet continuous excitation;

[0101] Decompose the information matrix R(t-1) into two disjoint parts:

[0102] R(t-1)=R1(t-1)+R2(t-1) (18)

[0103] Among them, R1(t-1) represents the part that has not been continuously stimulated, that is, the part to be retained; R2(t-1) represents the part that has been continuously stimulated;

[0104] New information can be To decompose R(t-1) to determine the forgotten part, first R1(t-1) should satisfy the following formula:

[0105]

[0106] R1(t-1)≥0, R2(t-1)≥0 (20)

[0107] So the retained part should be consistent with the new information Orthogonal, it can be deduced that the forgotten part should satisfy:

[0108]

[0109] In the idea of ​​directional forgetting, the forgotten information should be supplemented by new information, so it can be considered that R2(t-1) is related to The rank of is the same, from which we can calculate the expression of R2(t-1):

[0110]

[0111] By applying the forgetting effect to R2(t-1), we can get the update formula of the information matrix R(t-1):

[0112]

[0113] According to the prediction error, the adaptive forgetting factor is designed, and the posterior error can be written as:

[0114]

[0115] When ε(t) is large, a smaller forgetting factor is required to ensure the tracking of parameter changes. When ε(t) is small, a larger forgetting factor is required to ensure the stability of the parameters. The forgetting factor can be expressed as follows:

[0116] λ(t)=λ min +(1-λ min ) -γε(t) (25)

[0117] Among them, γ is a constant, λ min is the lower limit of the forgetting factor set;

[0118] Further preferably, in step 4, by solving the dynamic model, given the speed and acceleration at the initial moment, the input information of the propeller and the rudder during the navigation process, assuming that it performs uniform linear motion in each time step, the manipulation motion trajectory of the unmanned boat can be obtained by using the dynamic equation iteration method. The input information of the propeller is the speed of the propeller; the input information of the rudder is the rudder angle; the acceleration and speed at the initial moment.

[0119] On the other hand, the present invention provides an unmanned boat maneuvering motion prediction system based on time-varying parameter modeling, comprising:

[0120] The construction module of the maneuvering dynamics model is used to construct the maneuvering dynamics model of the unmanned boat by using the forward speed, lateral speed, bow angular velocity and forward acceleration, lateral acceleration and bow angular acceleration of the unmanned boat, combined with the rudder angle of the unmanned boat, the pulse width modulation value transmitted by the thruster and the parameters to be identified;

[0121] The identification data source acquisition module is used to acquire the identification data source through the maneuvering test of the unmanned boat on multiple voyages; wherein the identification data source includes the forward speed and forward acceleration, lateral speed and lateral acceleration, bow angular velocity and bow angular acceleration of the unmanned boat, the rudder angle of the unmanned boat and the pulse width modulation value transmitted by the propeller; the range of the rudder angle of the maneuvering test covers the steering gear performance of the actual rudder;

[0122] The module for solving the parameters to be identified is used to convert the maneuvering dynamics model of the unmanned boat into the form to be identified, and solve the parameters to be identified by using the adaptive directional forgetting recursive least squares method;

[0123] The control motion prediction module is used to predict the control motion using the control dynamics model obtained by parameter identification.

[0124] Further preferably, the form to be identified of the maneuvering dynamics model of the unmanned boat is:

[0125]

[0126]

[0127]

[0128]

[0129] Among them, u, v, and r are the forward speed, lateral speed, and bow angular speed of the unmanned boat changing with time. are the forward acceleration, lateral acceleration and bow angular acceleration of the unmanned boat over time; δ is the rudder angle of the unmanned boat; PWM is the pulse width modulation value of the propeller input, a 11 ~a35 are the parameters to be identified in the maneuvering dynamics model of the unmanned boat.

[0130] Further preferably, the method for obtaining the identification data source is:

[0131] Obtain identification maneuvering data for multiple voyages through turning and Z-type tests, where the range of rudder angles in the maneuvering test covers the steering gear performance of the actual boat;

[0132] Connect the maneuvering data of multiple voyages end to end to form a mixed identification data source.

[0133] Further preferably, the maneuvering motion prediction method is: given the forward speed, lateral speed, bow angular velocity of the unmanned boat and the forward acceleration, lateral acceleration and bow angular acceleration of the unmanned boat at the initial moment, the rotation speed and rudder angle of the propeller during navigation are input into the maneuvering dynamics model obtained by parameter identification, assuming that the unmanned boat performs uniform linear motion in each time step, and the dynamic equation iteration method is used to obtain the maneuvering motion trajectory of the unmanned boat.

[0134] In summary, compared with the prior art, the present invention has the following advantages:

[0135] The present invention provides an unmanned boat maneuvering motion prediction method and system based on time-varying parameter modeling. When establishing the unmanned boat dynamics model, an adaptive directional forgetting recursive least squares algorithm is used to effectively identify the time-varying model parameters. Directional decomposition ensures the stability of the algorithm when the parameter excitation is insufficient. Adaptive forgetting can effectively adapt to the speed of parameter change, reduce the forgetting factor when the change speed is fast, quickly track the parameter change, and increase the forgetting factor when the speed changes slowly, thereby ensuring the stability of the identification result.

[0136] The present invention provides a method and system for predicting the maneuvering motion of an unmanned boat based on time-varying parameter modeling. When acquiring the data to be identified, the actual boat maneuvering data is used to avoid the influence of scale effect. When constructing the data set to be identified, multiple groups of maneuvering test data are mixed and used to improve the model accuracy and generalization.

[0137] The present invention provides a method and system for predicting the maneuvering motion of an unmanned boat based on time-varying parameter modeling, and provides a complete process from experiment to modeling, which provides useful assistance for unmanned boat maneuvering modeling, control and ship digitization, and has certain theoretical and engineering practice value.

[0138] It should be understood that the above-mentioned device is used to execute the method in the above-mentioned embodiment. The implementation principle and technical effect of the corresponding program module in the device are similar to those described in the above-mentioned method. The working process of the device can refer to the corresponding process in the above-mentioned method, which will not be repeated here.

[0139] Based on the method in the above embodiment, an embodiment of the present application provides an electronic device. The device may include: at least one memory for storing programs and at least one processor for executing the programs stored in the memory. When the program stored in the memory is executed, the processor is used to execute the method described in the above embodiment.

[0140] Based on the method in the above embodiment, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a processor, the processor executes the method in the above embodiment.

[0141] It is understood that the processor in the embodiments of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.

[0142] The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.

[0143] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.

[0144] It should be understood that the various numerical numbers involved in the embodiments of the present application are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application.

[0145] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for predicting the maneuvering motion of an unmanned boat based on time-varying parameter modeling, characterized in that: The following steps are involved: The unmanned boat's forward speed, lateral speed, bow angular velocity, forward acceleration, lateral acceleration and bow angular acceleration are used to build the unmanned boat's maneuvering dynamics model in combination with the unmanned boat's rudder angle, the pulse width modulation value transmitted by the propeller and the parameters to be identified. The identification data source is obtained through the maneuvering tests of the unmanned boats on multiple voyages; wherein the identification data source includes the forward speed and forward acceleration, lateral speed and lateral acceleration, bow angular velocity and bow angular acceleration of the unmanned boat, the rudder angle of the unmanned boat and the pulse width modulation value transmitted by the propeller; and the maneuvering dynamics model of the unmanned boat is converted into the form to be identified, and the parameters to be identified are solved by using the adaptive directional forgetting recursive least squares method; wherein the range of the rudder angle of the maneuvering test covers the steering gear performance of the actual rudder; The control dynamics model obtained by parameter identification is used to predict the control motion; Among them, the hydrodynamic force and torque expression of the propeller in the maneuvering dynamics model of the unmanned boat is: The hydrodynamic force and torque expressions of the rudder in the maneuvering dynamics model of the unmanned boat are: Among them, k1 is the propeller correlation coefficient, u is the forward speed of the UAV onboard coordinate system, PWM is the pulse width modulation value of the propeller input; δ is the rudder angle; k2~k4 are the correlation coefficients of the rudder; The form to be identified of the maneuvering dynamics model of the unmanned boat is: Among them, u, v, and r are the forward speed, lateral speed, and bow angular speed of the unmanned boat changing with time. are the forward acceleration, lateral acceleration and bow angular acceleration of the unmanned boat over time; a 11 ~a 35 are the parameters to be identified of the maneuvering dynamics model of the unmanned boat; Among them, R(t) is the information matrix at time t, including R(t-1) and R(t-1) is the incentive information, which is forgotten exponentially under the effect of the forgetting factor; The latest information at the current moment; The information matrix R(t-1) at time t-1 is decomposed into two non-intersecting parts: R(t-1) = R1(t-1) + R2(t-1) Among them, R1(t-1) represents the part that has not been continuously stimulated; R2(t-1) represents the part that has been continuously stimulated; The expression of R2(t-1) is: By applying the forgetting factor to R2(t-1), we get the update formula of the information matrix R(t-1): Among them, λ is the forgetting factor.

2. The unmanned boat maneuvering motion prediction method according to claim 1, characterized in that: The method for obtaining the identification data source is: Obtain identification maneuvering data for multiple voyages through turning and Z-type tests, where the range of rudder angles in the maneuvering test covers the steering gear performance of the actual boat; Connect the identification and operation data of multiple voyages end to end to form a mixed identification data source.

3. The unmanned boat maneuvering motion prediction method according to claim 1, characterized in that: The control motion prediction method is as follows: given the forward speed, lateral speed, bow angular velocity of the unmanned boat at the initial moment, as well as the forward acceleration, lateral acceleration and bow angular acceleration of the unmanned boat, the rotation speed and rudder angle of the propeller during navigation are input into the control dynamics model obtained by parameter identification. Assuming that the unmanned boat performs uniform linear motion in each time step, the control motion trajectory of the unmanned boat is obtained by the iterative method of the dynamic equation.

4. An unmanned boat maneuvering motion prediction system based on the unmanned boat maneuvering motion prediction method according to claim 1, characterized in that: include: The construction module of the maneuvering dynamics model is used to construct the maneuvering dynamics model of the unmanned boat by using the forward speed, lateral speed, bow angular velocity and forward acceleration, lateral acceleration and bow angular acceleration of the unmanned boat, combined with the rudder angle of the unmanned boat, the pulse width modulation value transmitted by the thruster and the parameters to be identified; The module for obtaining the identification data source is used to obtain the identification data source through the maneuvering test of the unmanned boat on multiple voyages; wherein the identification data source includes the forward speed and forward acceleration, lateral speed and lateral acceleration, bow angular velocity and bow angular acceleration of the unmanned boat, the rudder angle of the unmanned boat and the pulse width modulation value transmitted by the propeller; wherein the range of the rudder angle of the maneuvering test covers the steering gear performance of the actual rudder; The module for solving the parameters to be identified is used to convert the maneuvering dynamics model of the unmanned boat into the form to be identified, and solve the parameters to be identified by using the adaptive directional forgetting recursive least squares method; The control motion prediction module is used to predict the control motion using the control dynamics model obtained by parameter identification.

5. The unmanned boat maneuvering motion prediction system according to claim 4, characterized in that: The form to be identified of the maneuvering dynamics model of the unmanned boat is: Among them, u, v, and r are the forward speed, lateral speed, and bow angular speed of the unmanned boat changing with time. are the forward acceleration, lateral acceleration and bow angular acceleration of the unmanned boat over time; δ is the rudder angle of the unmanned boat; PWM is the pulse width modulation value of the propeller input, a 11 ~a 35 are the parameters to be identified in the maneuvering dynamics model of the unmanned boat.

6. The unmanned boat maneuvering motion prediction system according to claim 4 or 5, characterized in that: The method for obtaining the identification data source is: Obtain identification maneuvering data for multiple voyages through turning and Z-type tests, where the range of rudder angles in the maneuvering test covers the steering gear performance of the actual boat; Connect the identification and operation data of multiple voyages end to end to form a mixed identification data source.

7. The unmanned boat maneuvering motion prediction system according to claim 4 or 5, characterized in that: The control motion prediction method is as follows: given the forward speed, lateral speed, bow angular velocity of the unmanned boat at the initial moment, as well as the forward acceleration, lateral acceleration and bow angular acceleration of the unmanned boat, the rotation speed and rudder angle of the propeller during navigation are input into the control dynamics model obtained by parameter identification. Assuming that the unmanned boat performs uniform linear motion in each time step, the control motion trajectory of the unmanned boat is obtained by the iterative method of the dynamic equation.

8. A computer-readable storage medium storing a computer program, wherein when the computer program is executed on a processor, the processor is caused to execute the method according to any one of claims 1 to 3.

9. A computer program product, characterized in that When the computer program product runs on a processor, the processor is enabled to execute the method according to any one of claims 1 to 3.