A zero-sum game-based ship tracking and control method using data-driven and physical-driven hybrid reinforcement learning.
The hybrid reinforcement learning method integrates physical and data-driven models to enhance ship tracking accuracy and adaptability in complex marine environments, addressing the limitations of traditional ship motion control technologies.
Patent Information
- Application Number
- JP2026183644
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2026-01-21
- Filing Date
- 2026-08-04
- Publication Date
- 2026-12-03
- Estimated Expiration
- 2046-08-04
AI Technical Summary
Existing ship motion control technologies face challenges in accurately and efficiently navigating complex marine environments due to the high reliance on physical models, which require extensive testing and are costly, and data-driven methods that lack interpretability and generalization, leading to safety and reliability issues.
A ship tracking and control method using data-driven and physical-driven hybrid reinforcement learning, integrating a recurrent neural network with a ship physical model, and applying Lyapunov backstepping and zero-sum game theory to construct a hybrid model that optimizes control strategies for unknown disturbances.
This approach enhances ship tracking accuracy and adaptability to complex marine conditions by maintaining physical interpretability and stability, optimizing feedback control, and tolerating random ocean disturbances, ensuring stable tracking even in unknown environments.
Smart Images

Figure 0007960442000001_ABST
Abstract
Description
[Technical Field]
[0001] The present invention relates to the technical field of ship motion control, and more particularly to a ship tracking control method based on a zero-sum game using data-driven and physical-driven hybrid reinforcement learning. [Background technology]
[0002] As electronic information technology becomes deeply integrated into ships, the field of ship motion control has encountered unprecedented development opportunities and built a solid technological foundation. In particular, the continuous and iterative advancements in sensor technology and Internet of Things technology have provided a powerful impetus for ships to automatically sense, accurately collect, and transmit multidimensional information such as their own motion state in real time. Deeply integrating this multi-source heterogeneous information and data acquired in real time into existing control technology systems will undoubtedly become a core driving force for innovation and advancement of ship motion control technology, leading to a leap towards intelligence and bringing new possibilities to the precise control of ships in complex marine environments.
[0003] Ships must continuously face the coupled effects of complex ocean disturbances such as wind, waves, and currents during navigation. The interaction between the controller and external disturbances constitutes a typical "zero-sum game" relationship, where the controller's core objective is to minimize tracking errors, while the disturbance's "counter-objective" is to maximize errors. This presents serious challenges to navigation safety and operational efficiency, demanding higher requirements for the interference tolerance and dynamic counter-control performance of ship control systems. The introduction of game theory offers a new perspective on solving this counter-control problem. By organically integrating game theory with optimal control theory and reinforcement learning, a dynamic counter-optimization framework for controllers and disturbances can be constructed, enabling the resolution of optimal control strategies in worst-case disturbance strategies. This fusion technology approach provides a solid theoretical foundation and reliable technical assurance for the intelligent transformation of ship motion control, helping to realize safe, efficient, and accurate autonomous navigation of ships in complex ocean environments.
[0004] At the same time, in existing ship motion control technologies, most solutions rely on physical models to construct their control frameworks. However, the core parameters of ship physical models must be obtained through extensive, costly, and long-term tank and shipboard testing, and achieving absolute accuracy is difficult due to the complexity of the marine environment and the coupled characteristics of ship dynamics. This practical bottleneck significantly hinders the efficiency and performance improvement of research and development in ship control technology. Although there are some studies that attempt to implement control using data-driven approaches, such methods generally suffer from inherent drawbacks such as high reliance on high-quality data, low physical interpretability, and insufficient generalization ability to complex operating conditions, making it difficult to meet the requirements of safety and reliability in ship navigation. Therefore, by organically integrating the physical laws inherent in ship physical models with the adaptive advantages of data-driven approaches, and constructing a control method that combines physical interpretability and dynamic adaptive compensation functions, it is possible not only to avoid the limitations of a single modeling method but also to improve control accuracy, possessing significant research value and future potential for engineering applications. [Overview of the Initiative] [Problems that the invention aims to solve]
[0005] To overcome the above technical problems, the present invention provides a ship tracking and control method based on a zero-sum game using data-driven and physical-driven hybrid reinforcement learning. [Means for solving the problem]
[0006] To achieve the above objective, the technical solutions of the present invention are as follows.
[0007] A ship tracking and control method based on a zero-sum game using data-driven and physics-driven hybrid reinforcement learning, specifically, Step S1 involves obtaining a ship physical model that takes into account unknown wind, wave, and current disturbances, input constraints, and unknown dynamics. Step S2 involves constructing a data-driven / physical-driven hybrid model by combining a recurrent neural network with a ship physical model, Step S3 defines an ideal control input for a data-driven / physical-driven hybrid model based on the Lyapunov backstepping method, obtains a track tracking error using the data-driven / physical-driven hybrid model based on a preset desired ship track, constructs a ship virtual controller based on the track tracking error, obtains a ship speed error using the ship virtual controller, defines intermediate parameters for optimal feedback control design, differentiates the ship speed error, and then obtains a rewritten ship speed error derivative by combining it with the ideal control input based on the intermediate parameters, designs a ship feedforward controller based on the rewritten ship speed error derivative, defines a Lyapunov function based on the track tracking error and ship speed error, and further obtains the derivative of the Lyapunov function by differentiation. Step S4 involves defining an error system based on the derivative of the Lyapunov function, constructing a performance index function by combining the error system with zero-sum game theory, constructing the Hamilton-Jacobi-Isaacs equations based on the performance index function, and obtaining the optimal feedback controller and worst-case disturbance strategy. Step S5 involves approximating the optimal performance index function using a fuzzy logic system, obtaining output estimates for the optimal feedback controller and worst-case disturbance strategy, and further constructing the neural network weight update rate of the fuzzy logic system based on the output estimates for the optimal feedback controller and worst-case disturbance strategy. Step S6 includes constructing the final ideal controller for a ship by using a feedforward controller for the ship and output estimates of an optimal feedback controller and a worst-case disturbance strategy in combination, based on the neural network weight update rate, constraining the control inputs of the final ideal controller for the ship by input constraints in the ship's physical model, obtaining the actual control inputs, and further realizing ship tracking control based on a zero-sum game using data-driven / physical-driven hybrid reinforcement learning based on the actual control inputs.
[0008] Furthermore, the expression of the ship physical model described in S1 is: [Equation] wherein, in the formula, η represents a position vector consisting of the x-coordinate, y-coordinate, and yaw angle Ψ of the ship in the inertial coordinate system, η=[x,y,Ψ] T v represents a velocity vector consisting of the forward speed u, lateral drift speed ν, and yaw angular velocity r of the ship in the hull-fixed coordinate system, v=[u,ν,r] T J(Ψ) represents a coordinate system transformation matrix, J(Ψ)∈R 3×3 τ represents a control vector consisting of the actual control forward force τ that the ship can directly execute u , lateral drift force τ ν and yaw moment τ r , τ=[τ u ,τ ν ,τ r T τ w =[τ wu ,τ wν ,τ wr T represents a disturbance vector consisting of the lateral disturbance force τ of the ship due to wind, waves, and tidal currents in the hull-fixed coordinate system wu , longitudinal disturbance force τ wν and yaw-direction disturbance moment τ wr , τ w =[τ wu ,τ wν ,τ wr T satisfies [Equation] [Equation] represents a positive constant that is the upper limit of τ w , M represents a matrix consisting of the ship's mass inertia and hydrodynamic added inertia, M∈R 3×3 C(v) represents a Coriolis matrix, C(v)∈R 3×3 D represents a hydrodynamic damping parameter matrix, D∈R3×3 Here, T represents the transpose, and R represents the real number space.
number
number
number
number
[0009] Furthermore, S2 specifically means, Step S21 is to obtain a nominal dynamics model that does not consider input constraints based on a ship physical model,
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
[0010] Furthermore, S3 specifically means, Step S31 defines the ideal control input for a data-driven / physical-driven hybrid model based on the Lyapunov backstepping method, The expression for the ideal control input is: a=a f +a0 * +τ w * And, In the formula, a f This shows the output of the feedforward controller, a0 * This indicates the output of the optimal feedback controller, τ w * Step S31 shows the output of the worst-case disruption strategy, Step S32 involves obtaining the ship's track tracking error based on a defined data-driven / physical-driven hybrid model, η e =η-η d In the formula, η e This indicates the track tracking error, η dindicates the track reference signal, η d =[x d ,y d ,Ψ d ] T Step S32, Step S33 involves differentiating the track tracking error to obtain the track tracking error derivative, and then rewriting the track tracking error derivative into the following equation based on a data-driven / physical-driven hybrid model,
number
number
number
number
number
number
number
number
number
number
number
number
[0011] Furthermore, S4 specifically means, In the derivative of the Lyapunov function
number
number
number
number
number
number
[0012] Further, the step S5 specifically includes: approximating an optimal performance index function using a fuzzy logic system, step S51, wherein an expression of the optimal performance index function is [Equation] wherein κ represents an ideal weight, c * satisfies [Equation] represents an error of a neural network weight, [Equation] represents an estimated value of κ [Equation] , φ c * (v c ) represents a fuzzy basis function, and ε e (v c ) represents an approximation error, step S51; and e based on step S51, calculating a partial derivative ∇U of the approximated optimal performance index function with respect to v (v e ) * e Step S52 to obtain )
number
number
number
number
number
number
number
number
number
number
number
number
[0013] Furthermore, S6 specifically means, Step S61 involves constructing the final ideal controller for a ship by using a feedforward controller for a ship, an optimal feedback controller, and an output estimate of the worst-case disturbance strategy in combination, based on the neural network weight update rate.
number
[0014] This invention provides a ship tracking and control method based on a zero-sum game using a data-driven and physical-driven hybrid reinforcement learning approach. Its beneficial effects are as follows:
[0015] Firstly, by deeply integrating the physical model with navigation data such as ship speed, we will construct a data-driven / physical-driven hybrid model called "physical mechanism + data compensation." This model not only fully maintains the interpretability and stability of the physical model, but also effectively avoids the problem of data-driven methods depending on high-quality data, enabling efficient and stable control without relying on precise ship parameters.
[0016] Secondly, by hierarchically designing the ship's feedforward controller using the Lyapunov backstepping method based on a data-driven and physical-driven hybrid model, we achieve accurate tracking of the ship's nominal dynamics and build a solid foundation for the stability of the closed-loop system.
[0017] Thirdly, by organically integrating zero-sum game differential theory and adaptive dynamic programming based on fuzzy logic systems, we simultaneously optimize the optimal feedback controller and worst-case disturbance strategy, constructing a dynamic counter-framework for controllers and disturbances. This framework accurately captures the essence of the "zero-sum game" between controllers and complex disturbances, enabling the resolution of optimal feedback control in the worst-case disturbance strategy. This significantly improves the ship's adaptability and disturbance tolerance to random ocean disturbances, ensuring stable tracking of the target course even in complex scenarios where its physical constraints and dynamic characteristics are completely unknown.
[0018] Fourthly, by integrating the tracking capability of feedforward control, the optimization capability of optimal feedback control, and the counter-adaptive capability of worst-case disturbance strategies, the ideal control input is obtained, and further, after physical constraint processing, actual control commands that can be directly executed are generated. By deeply integrating data-driven and physical-driven hybrid drive, zero-sum game, and reinforcement learning, this invention not only solves the challenges of accuracy and robustness in ship tracking control in complex marine environments, but also promotes the advancement of smart and self-adaptive ship tracking control systems, providing reliable technical support for autonomous ship operations. [Brief explanation of the drawing]
[0019] To more clearly describe embodiments of the present invention or technical solutions of the prior art, the drawings necessary for describing the embodiments or prior art will be briefly described below. However, the drawings described below are merely examples of embodiments of the present invention, and those skilled in the art will be able to conceive of other drawings based on these drawings without requiring any creative effort. [Figure 1] Figure 1 is a flowchart of the zero-sum game-based ship tracking and control method using data-driven and physical-driven hybrid reinforcement learning according to the present invention. [Figure 2] Figure 2 is a schematic diagram showing the error between the actual model and the data-driven / physical-driven hybrid model in this embodiment. [Figure 3]Figure 3 is a simulation diagram showing the tracking effect in the ship's position coordinates (x,y) in this embodiment. [Figure 4] Figure 4 is a simulation diagram showing the results of the ship in this embodiment tracking the reference signal in the x, y, and Ψ directions, respectively. [Figure 5] Figure 5 is a simulation diagram showing the convergence result of the weight norm of the fuzzy logic system in this embodiment. [Figure 6] Figure 6 is a simulation diagram showing the convergence results of the RNN weight norm and feedback term parameters in this embodiment. [Figure 7] Figure 7 is a simulation diagram showing the results of the ship's forward force, lateral flow force, and yaw moment controller in this embodiment. [Figure 8] Figure 8 is a simulation diagram showing the results of the worst-case ship disturbance strategy in this embodiment. [Modes for carrying out the invention]
[0020] To further clarify the object, technical solution, and advantages of the embodiments of the present invention, the technical solution of the embodiments of the present invention will be clearly and completely described below with reference to the drawings of the embodiments. Of course, the embodiments described are only a part of the embodiments of the present invention, not all of them. Any other embodiments that a person skilled in the art can obtain based on the embodiments of the present invention without requiring inventive work are all within the scope of the protection of the present invention.
[0021] This embodiment provides a ship tracking and control method based on a zero-sum game using data-driven and physics-driven hybrid reinforcement learning. Specifically, as shown in Figure 1, it includes the following steps.
[0022] S1: Obtain a 3-degree-of-freedom ship physical model that takes into account unknown wind, wave, and current disturbances, input constraints, and unknown dynamics. Specifically, the expressions for the ship physical model, i.e., the ship's kinematics and dynamics models, are as follows.
number
number
number
number
[0023] Furthermore, the matrices J(Ψ), M, D, and C(v) are expressed by the following equations, respectively.
number
number
[0024] The aforementioned input constraints, i.e., physical constraints that take into account the actual controller, are defined by the following equation.
number
number
number
[0025] S2: Construct a data-driven / physical-driven hybrid model by combining a recurrent neural network with a ship physical model. In this example, velocity and attitude data are collected using Doppler logging based on a ship physical model, and this is combined with a recurrent neural network to construct a data-driven / physical-driven hybrid model. Specifically, this includes the following steps.
[0026] S21: Based on the ship's physical model, obtain a nominal dynamics model that does not consider input constraints.
number
[0027] S22: Based on the Stone-Weierstrass theorem, the nominal dynamics model of a ship is rewritten to the following equation depending on the RNN basis function.
number
number
number
number
[0028] S23: Estimated RNN weights
number
number
number
number
number
number
number
number
number
[0029] In this embodiment, S23 further includes the following:
[0030] Modeling error
number
number
number
[0031] Derivative of the aforementioned modeling error
number
number
number
[0032] The expression for the updating rule of the estimated RNN weights is as follows:
number
number
[0033] the estimated gain parameter of the nonlinear feedback term [Equation] The expression of the update law is as follows. [Equation] In the equation, Q represents a preset positive definite matrix.
[0034] S24: Based on the ship approximate dynamics system and the ship physical model, construct a 3-degree-of-freedom data-driven and physics-driven composite model that considers unknown external environmental disturbances without considering input constraints. [Equation]
[0035] S3: Based on the Lyapunov backstepping method, define the ideal control input of the data-driven and physics-driven composite model, obtain the trajectory tracking error using the data-driven and physics-driven composite model based on the preset desired ship trajectory, further construct a ship virtual controller based on the trajectory tracking error, obtain the ship velocity error through the ship virtual controller, define intermediate parameters for optimal feedback control design, differentiate the ship velocity error, combine it with the ideal control input based on the intermediate parameters to obtain a rewritten ship velocity error derivative, design a ship feedforward controller based on the rewritten ship velocity error derivative, define a Lyapunov function based on the trajectory tracking error and the ship velocity error, and further obtain the derivative of the Lyapunov function through differentiation.
[0036] This S3 specifically includes the following steps.
[0037] S31: Based on the Lyapunov backstepping method, define the ideal control input of the data-driven and physics-driven composite model, The expression of the ideal control input is as follows. a=af +a0 * +τ w * Wherein, a f represents the output of the feedforward controller, a0 * represents the output of the optimal feedback controller, and τ w * represents the output of the worst disturbance strategy.
[0038] S32: Obtain the wake tracking error of the ship based on the defined data-driven and physics-driven composite model. η e =η-η d Wherein, η e represents the wake tracking error, η d represents the wake reference signal, and η d =[x d ,y d ,Ψ d T .
[0039] S33: Differentiate the wake tracking error to obtain the derivative of the wake tracking error, and further rewrite the derivative of the wake tracking error into the following formula based on the data-driven and physics-driven composite model. [Equation] Wherein, [Equation] represents the first derivative of η e ,η d .
[0040] S34: Design a ship virtual controller based on the rewritten derivative of the wake tracking error. [Equation] Wherein, c1 represents the control design parameter, c1>0, and v d represents the output of the ship virtual controller.
[0041] S35: Obtain the ship speed error based on the ship virtual controller and the data-driven and physics-driven hybrid model, and define intermediate parameters for optimal feedback control design. The expression of the intermediate parameter is as follows: [Equation] In the formula, v e represents the ship speed error, [Equation] represents the intermediate variable.
[0042] S36: Differentiate the ship speed error to obtain the derivative of the ship speed error, and further combine it with the ideal control input based on the intermediate parameters to obtain the rewritten derivative of the ship speed error. [Equation] In the formula, [Equation] represents the first derivative of v d , [Equation] represents the first derivative of v e .
[0043] S37: Obtain the rewritten derivative of the ship speed error, further perform stability analysis on the rewritten derivative of the ship speed error, and design a ship feedforward controller. [Equation] In the formula, c2 represents the control design parameter, c2>0, and a f represents the output of the ship feedforward controller.
[0044] S38: To prove the stability analysis proposed in step S36, define the Lyapunov function V1 based on the track tracking error and the ship speed error.
number
number
number
[0045] S4: Based on the derivative of the Lyapunov function, define the error system; based on the error system, combine it with zero-sum game theory to construct a performance index function; based on the performance index function, construct the Hamilton-Jacobi-Isaacs equations to obtain the optimal feedback controller and worst-case disturbance strategy.
[0046] Specifically, S4 includes the following steps:
[0047] S41: Based on differential game theory, the error system is defined by combining it with the last term in the derivative based on the Lyapunov function.
number
[0048] S42: Based on the error system, we combine it with zero-sum game theory to define a performance index function in zero-sum games.
number
[0049] S43: Based on the Nash-Pontryagin maximum / minimum principle, a unique solution (a0 * ,τ w * The condition for the existence of ) is that a unique saddle point exists, and the optimal performance index function U * (v e ) is defined by the following formula.
number
[0050] S44: Based on the performance index function described above, the Hamilton function of the error system is defined, and its expression is defined as follows.
number
number
[0051] S45: Construct the Hamilton-Jacobi-Isaacs equations based on the performance index function, and obtain the optimal feedback controller and worst-case disturbance strategy using gradient descent.
number
[0052] S5: Approximate the optimal performance index function using a fuzzy logic system and obtain output estimates for the optimal feedback controller and worst-case disruption strategy. In this embodiment, based on the differential game framework described above, the Nash equilibrium of the output estimates for the optimal feedback controller and worst-case disruption strategy is realized by approximating the solution of the HJI equation using a fuzzy logic system. Furthermore, the neural network weight update rate of the fuzzy logic system is constructed based on the output estimates for the optimal feedback controller and worst-case disruption strategy.
[0053] Specifically, S5 includes the following steps:
[0054] S51: Approximate the optimal performance index function using a fuzzy logic system. The expression for this optimal performance index function is as follows:
number
number
number
number
[0055] Based on S52:S51, the approximated optimal performance index function ve Partial derivative ∇U * (v e ) obtain.
number
[0056] S53: Weight κ c * Estimated value
number
number
number
[0057] Partial derivative ∇U described in S54:S52 * (v e Substituting this into the optimal feedback controller and worst-case disturbance strategy in S45, and the Hamilton-Jacobi-Isaacs equations in S44, we obtain the following equation.
number
number
number
number
number
[0058] S55: The output estimates of the optimal feedback controller and worst-case disturbance strategy are substituted into the error system in S41 to obtain the rewritten error system.
number
[0059] S56: Neural network weight update rate of a fuzzy logic system that minimizes the rewritten Hamilton-Jacobi-Isaacs equations using gradient descent based on a rewritten error system.
number
number
[0060] S6: Based on the neural network weight update rate, the final ideal controller for the ship is constructed by using the output estimates of the ship's feedforward controller, optimal feedback controller, and worst-case disturbance strategy in combination. The control inputs of the ship's final ideal controller are constrained by input constraints in the ship's physical model, and the actual control inputs are obtained. Furthermore, based on the actual control inputs, ship tracking control based on a zero-sum game using data-driven / physical-driven hybrid reinforcement learning is realized. In this embodiment, ship track tracking is realized by fusing the feedforward controller, optimal feedback controller, and worst-case disturbance strategy, and obtaining directly executable actual control commands after constraint processing. Specifically, S6 includes the following steps.
[0061] S61: Based on the neural network weight update rate, the ultimate ideal controller for a ship is constructed by using a feedforward controller for ships in combination with output estimates of the optimal feedback controller and worst-case disturbance strategy.
number
number
[0062] S62: By constraining the control inputs of the ship's final ideal controller through input constraints in the ship's physical model, the actual control inputs are obtained, and based on the actual control inputs, ship tracking control based on a zero-sum game using data-driven / physical-driven hybrid reinforcement learning is realized. That is, ship track tracking control based on a zero-sum game when the random disturbances of the marine environment, the ship's own physical constraints, and dynamic characteristics are completely unknown is realized.
[0063] This embodiment further includes step S7, which uses Lyapunov theory to prove the input state stability of a zero-sum game-based ship tracking control method using a data-driven / physical-driven hybrid reinforcement learning model, and that all signals within the closed-loop system are ultimately uniformly bounded.
[0064] Specifically, in order to more easily prove stability, we make the following assumptions.
[0065] Assumption 1: The RNN reconstruction error ε is bounded, and its upper and lower bounds are the modeling error.
number
number
[0066] Assumption 2: On a compact set Ω,
number
number
number
number
[0067] Theorem 1: For a ship tracking control system that considers disturbances from unknown winds, waves, and currents, input constraints, and unknown dynamics, by selecting appropriate parameters based on Lyapunov theory, it is possible to ensure that all signals within a closed-loop system are ultimately uniformly bounded and that the tracking error converges in an optimal manner, through the action of a data-driven / physical-driven hybrid model for ships, RNN weight adaptation rules, a feedforward controller, an output estimate of the optimal feedback controller, an output estimate of the worst-case disturbance strategy, and the weight adaptation rules of a fuzzy logic system.
[0068] Lemma 1: (Young's inequality) Any x, y ∈ R n For this, the following inequality holds:
number
[0069] Proof of Theorem 1: S71: To prove that the data-driven / physical-driven hybrid model and RNN weights for ships are ultimately uniformly bounded, we construct a Lyapunov function V2. The expression for the Lyapunov function is as follows:
number
[0070] S72: Differentiate the Lyapunov function V2, and further, the modeling error derivative.
number
number
number
number
[0071] By using the monotonically increasing nature of the RNN basis functions, assumption 1, and lemma 1 (Young's inequality) in step S22, we can obtain the following inequality.
number
[0072] These are the Lyapunov function derivatives
number
number
[0073] therefore,
number
[0074] S73: Next, we prove that the weights of the data-driven / physical-driven combined ship error system and the fuzzy logic system are ultimately uniformly bounded. Hamiltonian function in step S54
number
number
[0075] Therefore, the equality in S73 is the weight adaptation rule for the fuzzy logic system in step S55.
number
number
[0076] S74: A new Lyapunov function V is constructed based on the Lyapunov function V1 for the feedforward control design in step S38. The expression for this Lyapunov function V is as follows:
number
number
[0077] S75: Based on Assumption 2, we will explain the scaling process using one of its terms as an example.
number
number
number
[0078] therefore,
number
[0079] Compared to the prior art, the method described in this embodiment has the following advantages.
[0080] Firstly, the method described in this embodiment constructs a data-driven / physical-driven hybrid model for ships by deeply integrating the a priori physical laws inherent in the ship's physical model with ship speed data collected by sensors. This model not only maintains the interpretability and stability of the physical model but also effectively avoids the problem of data-driven methods relying on high-quality data, enabling efficient and stable control without relying on precise ship parameters, and significantly reducing the engineering application barriers and implementation costs of the technology.
[0081] Secondly, the method described in this embodiment constructs a dynamic controller-disruption mechanism using a zero-sum game framework, and employs reinforcement learning and fuzzy logic systems to achieve optimal control solutions in worst-case disruption strategies, thereby significantly improving the ship's ability to adapt to complex disturbances such as wind, waves, and currents.
[0082] Thirdly, the method described in this embodiment enables ship tracking in unknown and complex marine environments by conducting simulation experiments using the MATLAB platform and designing an optimal zero-sum game controller. The system controller is more closely adapted to actual navigation practices, further verifying the effectiveness and rationality of the method described in this embodiment.
[0083] To verify the effectiveness of the method described in this embodiment, this embodiment conducts a computer simulation study in MATLAB. The parameter settings are as follows:
[0084] For the simulation, we will select CyberShipII from the Norwegian University of Science and Technology. This vessel has a mass of 23.8 kg, a length of 1.255 m, and a width of 0.29 m. When designing the data-driven / physical-driven hybrid model, we will use the following parameters: Γ1=[1,0.2,0.3;0.2,1,0.5;0.3,0.5,1], Γ2=[1,0.2,0.1;0.2,1,0.3;0.1,0.3,1], Γ3=2, Γ4=[0.2,0.1,0.1;0.1,0.1,0.2;0.1,0.1,0.2], Q=1, P=1.2I 3×3 Initial values of RNN weights
number
number
number
number
number
number
number
number
[0085] The simulation experiment results are shown in the figures. Figure 2 is a schematic diagram showing the error between the actual model and the data-driven / physical-driven hybrid model, confirming that the error converges well to a bounded vicinity centered on the origin. Figure 3 shows the trajectory tracking effect on the position coordinate (x,y) plane, confirming from the results that the output position signal can quickly track the reference signal. Figure 4 visually shows the tracking effect from three dimensions of position (x,y) and course Ψ. Figure 5 shows the convergence curve of the weight norm of the fuzzy logic system, confirming from the results that the weight norm can stably converge to a fixed value. Figure 6 shows the convergence process of the RNN weight norm and feedback term parameters, confirming that both the weight norm and parameters in the figure can converge to stable values. Figure 7 shows the change curve of the actual control input of the ship, showing that the control signal is relatively stable. Figure 8 shows the change curve of the worst-case disturbance strategy. Simulation results verify the effectiveness of the method described in this embodiment, showing that a zero-sum game controller designed based on the control system can effectively track a ship's voyage and rapidly converge to a residual set with relatively small tracking errors. This fully explains the good trackability of the output of the data-driven / physical-driven hybrid ship tracking system, further verifying the effectiveness and rationality of the method described in this embodiment.
[0086] In summary, the method described in this embodiment constructs a three-degree-of-freedom ship physical model that takes into account input constraints, unknown wind, wave, and current disturbances, and unknown dynamics. It collects important navigation data such as the ship's speed and attitude using Doppler logging and combines this with the data learning capabilities of a recurrent neural network to construct a data-driven / physical-driven hybrid model that combines physical interpretability and data adaptive compensation capabilities. Based on this model, it hierarchically designs a ship's feedforward controller using the Lyapunov backstepping method to achieve accurate tracking of the ship's nominal dynamics. Furthermore, it simultaneously optimizes the optimal feedback controller and worst-case disturbance strategy using adaptive dynamic programming based on zero-sum game differential theory and fuzzy logic systems, constructing a dynamic counter-framework for the controller and disturbances. Finally, it fuses feedforward control, optimal feedback control, and worst-case disturbance strategy to obtain an ideal control input, and further obtains a directly executable actual control input through physical constraints, thereby realizing ship track tracking control when random disturbances, its own physical constraints, and dynamic characteristics are completely unknown in a marine environment. The method described in this embodiment overcomes the limitations of conventional single modeling methods by deeply integrating data and physics, enabling efficient and stable control without relying on precise ship parameters. Furthermore, by organically combining zero-sum games and reinforcement learning, it significantly improves the ship's adaptability and resilience to complex disturbances, promoting the smartening and sophistication of ship tracking and control systems, and providing a reliable technical solution for accurate ship tracking and control in diverse scenarios such as coastal operations and ocean transport.
[0087] Finally, it should be noted that the above embodiments are merely for illustrating, and not limiting, the technical solutions of the present invention. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art will understand that it is still possible to modify the technical solutions described in the above embodiments or to substitute some or all of the technical features. Such modifications or substitutions will not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A ship tracking and control method based on a zero-sum game using data-driven and physics-driven hybrid reinforcement learning, specifically, Step S1 involves obtaining a ship physical model that takes into account unknown wind, wave, and current disturbances, input constraints, and unknown dynamics. Step S2 involves constructing a data-driven / physical-driven hybrid model by combining a recurrent neural network with a ship physical model, Step S3 involves defining an ideal control input for a data-driven / physical-driven hybrid model based on the Lyapunov backstepping method, obtaining a track tracking error using the data-driven / physical-driven hybrid model based on a preset desired ship track, constructing a virtual ship controller based on the track tracking error, obtaining a ship speed error using the virtual ship controller, defining intermediate parameters for optimal feedback control design, differentiating the ship speed error and then obtaining a rewritten ship speed error derivative by combining it with the ideal control input based on the intermediate parameters, designing a ship feedforward controller based on the rewritten ship speed error derivative, defining a Lyapunov function based on the track tracking error and ship speed error, and further obtaining the derivative of the Lyapunov function by differentiation. Step S4 involves defining an error system based on the derivative of the Lyapunov function, constructing a performance index function by combining the error system with zero-sum game theory, constructing the Hamilton-Jacobi-Isaacs equations based on the performance index function, and obtaining the optimal feedback controller and worst-case disturbance strategy. Step S5 involves approximating the optimal performance index function using a fuzzy logic system, obtaining output estimates for the optimal feedback controller and worst-case disturbance strategy, and further constructing the neural network weight update rate of the fuzzy logic system based on the output estimates for the optimal feedback controller and worst-case disturbance strategy. A method for controlling a ship based on a zero-sum game using data-driven and physics-driven hybrid reinforcement learning, characterized by comprising: step S6: constructing the final ideal controller for a ship by using a feedforward controller for a ship and output estimates of an optimal feedback controller and a worst-case disturbance strategy in combination based on the neural network weight update rate; constraining the control input of the final ideal controller for the ship by input constraints in the ship's physical model to obtain the actual control input; and further realizing ship tracking control based on a zero-sum game using data-driven and physics-driven hybrid reinforcement learning based on the actual control input.
2. The expression for the ship's physical model described in S1 is: [Number 163] And, In the formula, η represents the position vector consisting of the x-coordinate, y-coordinate, and yaw angle Ψ of the ship in the inertial coordinate system, where η = [x, y, Ψ] T v represents the velocity vector consisting of the forward speed u, lateral drift velocity ν, and yaw angular velocity r of the ship in the hull-fixed coordinate system, where v = [u, ν, r] T J(Ψ) represents the coordinate system transformation matrix, where J(Ψ) ∈ R 3×3 τ represents the control vector consisting of the actual control forward force τ that can be directly executed by the ship u lateral drift force τ ν and yaw moment τ r where τ = [τ u , τ ν , τ r T τ w = [τ wu , τ wν , τ wr T represents the disturbance vector consisting of the lateral disturbance force τ of the ship due to wind, waves, and tidal currents in the hull-fixed coordinate system wu longitudinal disturbance force τ wν and yaw-direction disturbance moment τ wr where τ w = [τ wu , τ wν , τ wr T is [Number 164] Satisfying the conditions, [Number 165] is τ w Herein lies a positive constant that is the upper limit of M, where M is a matrix consisting of ship mass inertia and hydrodynamic additional inertia, and M∈R 3×3 Therefore, C(v) represents the Coriolis matrix, and C(v)∈R 3×3 D represents the hydrodynamic damping parameter matrix, where D∈R 3×3 Here, T represents the transpose, and R represents the real number space. [Number 166] This shows the first derivative of η and v, The aforementioned input constraints are: [Number 167] Defined by, In the formula, τ l This shows the control force at each degree of freedom in the ship's physical model, τ l , l = u, ν, r, a l This represents the ideal control inputs in the longitudinal, transverse, and yaw directions of the ship. [Number 168] This indicates the maximum control input in each degree of freedom of the ship. [Number 169] The ship tracking control method based on a zero-sum game using data-driven / physical-driven hybrid reinforcement learning according to claim 1, characterized in that represents the minimum value of the control input in each degree of freedom of the ship.
3. Specifically, S2 refers to, Step S21 is to obtain a nominal dynamics model that does not consider input constraints based on a ship physical model, [Number 170] In the equation, a represents the ideal control input vector in the longitudinal, transverse, and yaw directions of the ship, where a = [a u , a ν , a r ] T Step S21, Step S22 is to rewrite the nominal dynamics model of the ship according to the RNN basis function, based on the Stone-Weierstrass theorem, [Number 171] In the formula, κ j * ,j=1,2,3,4 represents the ideal weights of the RNN basis functions. [Number 172] Satisfying the conditions, [Number 173] This shows the estimated weights of the RNN network. [Number 174] The ∈ R represents the error between the ideal weights and weight estimates of the RNN basis functions, ε represents the reconstruction error, and ε∈R 3 And φ(v) represents a vector consisting of RNN basis functions, where φ(v) = [φ 1 (v), φ 2 (v), φ 3 (v) T And φ i (v), i = 1, 2, 3 are monotonically increasing RNN basis functions in step S22, Step S23 involves constructing a ship approximation dynamics system based on a rewritten nominal dynamics model, [Number 175] During the ceremony, [Number 176] This shows the estimated values of a data-driven / physical-driven hybrid model of a ship. [Number 177] Satisfying the conditions, [Number 178] ξ represents the modeling error, ξ represents the reconstruction error compensation feedback term, and P represents the gain coefficient of the linear feedback term, where P∈R 3×3 And, [Number 179] This shows the estimated gain parameter of the nonlinear feedback term. [Number 180] And δ * This shows the gain parameter of an ideal nonlinear feedback term, [Number 181] This shows the gain parameter error of the nonlinear feedback term. [Number 182] Step S23 shows the first derivative of, Step S24 involves constructing a data-driven / physical-driven hybrid model based on a ship approximation dynamics system and the ship physical model, [Number 183] A ship tracking control method based on a zero-sum game using data-driven / physical-driven hybrid reinforcement learning according to claim 2, comprising step S24, wherein the method is characterized by including step S24.
4. Specifically, S3 refers to: Step S31 defines the ideal control input for a data-driven / physical-driven hybrid model based on the Lyapunov backstepping method, The expression for the ideal control input is: a = a f +a 0 * +τ w * And, In the formula, a f This shows the output of the feedforward controller, a 0 * This indicates the output of the optimal feedback controller, τ w * Step S31 shows the output of the worst-case disruption strategy, Step S32 involves obtaining the ship's track tracking error based on a defined data-driven / physical-driven hybrid model, or e =h-h d In the formula, η e This indicates the track tracking error, η d indicates the track reference signal, η d = [x d , y d ,Ψ d ] T Step S32 is, Step S33 involves differentiating the track tracking error to obtain the track tracking error derivative, and then rewriting the track tracking error derivative into the following equation based on a data-driven / physical-driven hybrid model, [Number 184] During the ceremony, [Number 185] is η e η d Step S33 shows the first derivative of, Step S34, which involves designing a ship virtual controller based on the rewritten track tracking error derivative, [Number 186] In the formula, c 1 This indicates the control design parameters, c 1 > 0, v d Step S34 shows the output of the ship virtual controller, Step S35 involves acquiring the ship speed error based on a ship virtual controller and a data-driven / physical-driven hybrid model, and defining intermediate parameters for optimal feedback control design, wherein the expression for the intermediate parameters is: [Number 187] And, In the formula, v e This indicates the error in ship speed. [Number 188] Step S35 shows the intermediate variable, Step S36 involves differentiating the ship speed error to obtain the ship speed error derivative, and further obtaining a rewritten ship speed error derivative by combining it with an ideal control input based on intermediate parameters, [Number 189] During the ceremony, [Number 190] is v d We show the first derivative of, [Number 191] is v e Step S36 shows the first derivative of, Step S37, a ship feedforward controller, is designed based on the rewritten ship speed error derivative, [Number 192] In the formula, c 2 This indicates the control design parameters, c 2 > 0, a f Step S37 shows the output of a marine feedforward controller, Based on the track tracking error and ship speed error, the Lyapunov function V 1 Define, [Number 193] year, Furthermore, the Lyapunov function V 1 Differentiating this gives the derivative of the Lyapunov function. [Number 194] Obtain, [Number 195] The ship tracking control method based on a zero-sum game using data-driven / physical-driven hybrid reinforcement learning according to claim 3, comprising step S38.
5. Specifically, S4 refers to, In the derivative of the Lyapunov function [Number 196] Step S41 is to define the term as an error system, [Number 197] Step S41, Step S42 defines a performance index function in a zero-sum game based on an error system in combination with zero-sum game theory, [Number 198] In the formula, t represents the time parameter, ζ represents the discount rate, and a 0 represents the allowable control input, Θ, R, and Λ represent the positive definite gain matrix, and Θ = Θ T > 0, R = R T > 0, Λ = Λ T Step S42 is >0, Based on the Nash-Pontryagin maximum / minimum principle, a unique solution (a) can be found in zero-sum games. 0 * , τ w * The condition for the existence of ) is that a unique saddle point exists, and the optimal performance index function U * (v e Step S43, in which ) is defined by the following formula, [Number 199] Step S43, Based on the aforementioned performance index function, we define the Hamilton function of the error system and define its expression as follows: [Number 200] where ∇U(v e ) denotes the partial derivative of U(v e ) with respect to v e , and ∇ T U(v e ) denotes the transpose of ∇U(v e ). Optimal performance index function U based on Hamilton's function * (v e Depending on the circumstances, we obtain the Hamilton-Jacobi-Isaacs equations, [Number 201] wherein ∇U * (v e ) represents U * (v e ) with respect to v e Step S44 indicating a partial derivative with respect to Step S45 involves constructing the Hamilton-Jacobi-Isaacs equations based on a performance index function and obtaining the optimal feedback controller and worst-case disturbance strategy using the gradient descent method, [Number 202] A ship tracking control method based on a zero-sum game using data-driven / physical-driven hybrid reinforcement learning according to claim 4, comprising step S45, wherein the method is characterized by including step S45.
6. Specifically, S5 refers to: Step S51 involves approximating the optimal performance index function using a fuzzy logic system, wherein the expression for the optimal performance index function is: [Number 203] And, In the formula, κ c * This shows the ideal weights, [Number 204] Satisfying the conditions, [Number 205] This shows the error in the neural network weights. [Number 206] is κ c * The estimated value of φ is shown. c (v e ) shows the fuzzy basis function, ε c (v e ) is step S51 which shows the approximation error, Based on S51, the approximated optimal performance index function v e Partial derivative ∇U * (v e Step S52 to obtain ) [Number 207] In the formula, ∇φ c (v e ) is φ c (v e ) of v e We show the partial derivatives with respect to ∇ε c (v e ) is ε c (v e ) of v e Step S52 shows the partial derivatives with respect to, weight κ c * Estimated value [Number 208] Based on this, the evaluation network is determined, and based on S52, the partial derivatives of the optimal performance index function are estimated. [Number 209] Step S53 to obtain, [Number 210] Step S53, Partial derivative ∇U as described in S52 * (v e Substituting this into the optimal feedback controller and worst-case disturbance strategy in S45, and the Hamilton-Jacobi-Isaacs equations in S44, we obtain the following equation: [Number 211] In the formula, ε HBJ This shows the reconstruction residuals. [Number 212] E represents the intermediate parameter. [Number 213] And ∇ε c ∇ε c (v e It is an abbreviation for, Similarly, the partial derivative estimates obtained in S53 [Number 214] Substitute this into the optimal feedback controller and worst-case disturbance strategy in S45, and the Hamilton-Jacobi-Isaacs equation in S54 to estimate the output of the optimal feedback controller. [Number 215] , output estimate of worst-case disruption strategy [Number 216] , and obtain the rewritten Hamilton-Jacobi-Isaacs equations, [Number 217] Step S54, Step S55 involves substituting the output estimates of the optimal feedback controller and the worst-case disturbance strategy into the error system in S41 to obtain the rewritten error system, [Number 218] Step S55, The neural network weight update rate of a fuzzy logic system that minimizes the rewritten Hamilton-Jacobi-Isaacs equations using gradient descent based on a rewritten error system. [Number 219] Step S56 for constructing, [Number 220] The method for tracking and controlling a ship based on a zero-sum game using data-driven and physical-driven hybrid reinforcement learning according to claim 5, characterized in that it includes step S56 in which β represents the weight learning rate and β > 0.
7. Specifically, S6 refers to, Step S61 involves constructing the final ideal controller for a ship by using a feedforward controller for a ship, an optimal feedback controller, and an estimated output of the worst-case disturbance strategy in combination, based on the neural network weight update rate. [Number 221] Step S61, The method for controlling a ship based on a zero-sum game using data-driven / physical-driven hybrid reinforcement learning, according to claim 6, comprising step S62, which involves constraining the control input of the ship's final ideal controller by input constraints in the ship's physical model, obtaining the actual control input, and realizing ship tracking control based on a zero-sum game using data-driven / physical-driven hybrid reinforcement learning based on the actual control input.
Citation Information
Patent Citations
Unmanned surface vehicle trajectory tracking control device and method based on nonlinear control theory
CN103955218A
Underactuated unmanned ship fault-tolerant control method based on zero sum differential game
CN117784619A
JPP7813794B
