Skip to Content
ActuatorsActuators
  • Article
  • Open Access

9 September 2026

24 Pages

Off-Policy Inverse Q-Learning Algorithm with Unobservable States

,
,
,
,
and
1
School of Automation, Guangxi University of Science and Technology, Liuzhou 545006, China
2
Guangxi Key Laboratory of Logistics Unmanned Aircraft Technology for Transportation Industry, Liuzhou 545006, China
3
School of Computer and Science, Guangdong University of Finance, Guangzhou 510520, China
4
School of Art and Design, Wuhan Institute of Technology, Wuhan 430205, China

Abstract

To address the problem of an unknown performance index in discrete-time (DT) linear systems with unobservable states, this paper investigates the output-feedback inverse reinforcement learning (IRL) problem and proposes a data-driven output-feedback off-policy inverse Q-learning algorithm. The proposed method relies solely on input–output trajectory data from an expert system. It does not require a system-dynamics model or state information to identify the unknown cost function and learn an optimal control policy. First, for cases where the system dynamics and the target control gain are known, we propose a model-based method. Building on this foundation, we further develop a model-free method that does not require a system-dynamics model or state information. The proposed algorithm uses state reconstruction to transform the state-feedback Q-function equation into an input–output form. Simulations using an F-16 aircraft model demonstrate that the learner system can approximate the expert trajectories and effectively reconstruct the performance-index function.

1. Introduction

With the advancement of optimal control theory, it has become possible to design control strategies based on known system models and performance indexes [1]. However, precise models and performance indexes for real world systems are often difficult to obtain, which makes the direct application of traditional optimal-control methods challenging [2,3]. Reinforcement learning, as a significant advancement in this field, relaxes the requirements for system models and allows control strategies to be learned incrementally through interaction with the environment. Nevertheless, it also relies on a predefined and well-designed cost function. When the performance index cannot be clearly defined, both approaches face fundamental challenges.
To address this issue, inverse reinforcement learning (IRL) [4,5], also known as imitation learning, was proposed. It reconstructs the latent cost function from expert demonstration data. Unlike traditional reinforcement learning, IRL can infer the underlying objective function by observing the expert’s optimal behaviour [6,7,8]. However, most existing research focuses on state-feedback scenarios and typically assumes that the system state is fully observable. Only [9,10] address the issue of unobservable system states. Xue et al. [9] proposed an algorithm based on static output-feedback control for continuous-time systems under external disturbances. However, this method employs a double-loop iterative structure, requiring repeated updates of the control policy and cost function in both inner and outer loops, resulting in high computational complexity. In recent years, IRL has been extensively studied in random systems [11,12,13,14,15], dynamic systems [16,17,18,19], and trajectory emulation [20,21,22]. It has gradually been integrated with methods such as data-driven control [21] and inverse optimal control, forming a class of important tools capable of simultaneously explaining expert behaviour and recovering control laws.
Related advances in control and optimization have also considered resilience and cooperation in complex networked systems. Adaptive fuzzy resilient decentralized control has been investigated for nonlinear large-scale cyber-physical systems under denial-of-service attacks [23]. Bilateral cooperative control has also been studied for nonlinear multi-agent systems with state and output quantization [24]. These studies highlight the importance of robustness to communication constraints, external attacks, quantization effects, and incomplete information. However, the existing literature has generally relied on prescribed system models and controller structures, whereas the present work focuses on data-driven inverse Q-learning for discrete-time linear systems with unobservable states.
Motivated by the above problems, this paper investigates a class of DT linear systems with unobservable states and focuses on the output-feedback inverse Q-learning problem. In contrast to existing IRL methods, the algorithm proposed in this paper does not rely on system state parameters and can be applied to output-feedback scenarios where the state is completely unobservable. First, for conditions where the system dynamics and the target control gain are known, a model-based IRL method is developed to reconstruct an output weighting matrix equivalent to the performance criterion underlying the expert policy. On this basis, by using the state reconstruction technique, the off-policy Q-function equation in the state-feedback form is transformed into an output-feedback form that depends only on expert input–output data. Furthermore, a model-free output-feedback off-policy inverse Q-learning algorithm is proposed. The proposed algorithm does not require the system dynamics or state information and is capable of reconstructing the unknown cost function and learning the control policy solely from the expert system’s input–output trajectories.
Figure 1 outlines the proposed framework, in which a model-based IRL scheme is initially developed and subsequently generalized to a model-free method using accessible input–output measurements. The main contributions of this paper are summarized as follows:
(1) For discrete-time linear systems with inaccessible state variables, a model-based IRL framework is initially constructed. Provided that the plant model and the target feedback gain are known, the framework recovers an equivalent output weighting matrix associated with the expert performance criterion. Theoretical results are then derived to verify both the convergence of the learning process and the stability of the resulting closed-loop system.
(2) Compared with existing IRL methods, the algorithm proposed in this paper does not rely on system state parameters and can be applied to output-feedback scenarios where the state is completely unobservable. Furthermore, unlike previous work on IRL for DT systems [10,25], this study constructs an off-policy algorithm by introducing an auxiliary term. We then conduct a theoretical analysis of the algorithm’s convergence and unbiasedness. Notably, the unbiasedness has not been addressed in existing IRL literature [9,10,16,25,26,27].
Figure 1. Overall framework of the proposed inverse Q-learning method for DT systems with unobservable states. The expert system generates input–output demonstration data. Based on the model-based IRL framework and the state reconstruction mechanism, the proposed model-free output-feedback off-policy inverse Q-learning algorithm reconstructs the equivalent output weight and learns a control gain close to the expert policy.
The organization of the paper is as follows. The problem formulation and the inverse reinforcement learning objective are introduced in Section 2. A model-based IRL design, together with its theoretical analysis, is given in Section 3. Section 4 presents the model-free output-feedback off-policy inverse Q-learning approach and discusses both its implementation and analytical results. Simulation examples are provided in Section 5, and the paper is concluded thereafter.

2. Problem Formulation

Consider a linear DT learner system with an unobservable state:
x ( k + 1 ) = A x ( k ) + B u ( k ) , y ( k ) = C x ( k ) .
where x ( k ) ∈ R n is the system state, u ( k ) ∈ R m is the control input, and y ( k ) ∈ R q is the system output. A ∈ R n × n is the state matrix, B ∈ R n × m is the input matrix, and C ∈ R q × n is the output matrix.
The corresponding expert system is described as
x T ( k + 1 ) = A x T ( k ) + B u T ( k ) , y T ( k ) = C x T ( k ) .
where x T ( k ) ∈ R n is the target state, u T ( k ) ∈ R m is the target control input, and y T ( k ) ∈ R q is the target system output. State matrix A, input matrix B, and output matrix C are the same as the learner system (1).
Remark 1.
The learner system (1) and the expert system (2) share the same system dynamics.
Assumption 1.
The matrix C is full-rank. The pair ( A , B ) is controllable, and the pair ( A , C ) is observable.
For expert systems, the following target cost function should be considered:
V T * ( x T ( k ) ) = min u T ( k ) ∑ j = k ∞ y T T ( j ) Q T y T ( j ) + u T T ( j ) R T u T ( j )
where Q T T = Q T ∈ R q × q and R T T = R T ∈ R m × m are target weight matrices. Equation (3) describes the output-feedback optimal control problem corresponding to the expert system. Since the system state cannot be directly measured, the state will be reconstructed in the subsequent sections using input–output data.
Under the optimal control framework, the target optimal control law of the expert system (2) can be expressed as
u T ( k ) = − K T x T ( k )
where K T denotes the optimal control gain, which satisfies
K T = ( R T + B T P T B ) − 1 ( B T P T A )
where P T T = P T ∈ R n × n > 0 satisfies the following target DT algebraic Riccati equation (ARE):
P T = A T P T A + C T Q T C − A T P T B ( R T + B T P T B ) − 1 B T P T A .
Substituting K T in (5) into (6) yields
( A − B K T ) T P T ( A − B K T ) + K T T R T K T + C T Q T C − P T = 0 .
Equation (7) shows that, under the optimal control strategy, the cost function of the expert system satisfies the corresponding ARE, thereby providing a theoretical foundation for the formulation of subsequent IRL problems.
Assumption 2.
The target weights Q T and R T of the expert system (2), as well as the corresponding optimal control gain K T , are unknown to the learner (1).
Assumption 3.
The input–output trajectories u T ( k ) and y T ( k ) of the expert system (2) are available to the learner (1), while the states x T ( k ) of both the expert system and the learner system (1) cannot be observed.
Definition 1
(Equivalent Weight). Given any R = R T ∈ R m × m > 0 , if there exists a Q ∈ R q × q ≥ 0 such that the cost function determined by ( Q , R ) yields the same K T as the expert (2), then Q is called an equivalent weight of Q T , and the corresponding cost function is said to be equivalent to the target cost function (3) of the expert system.
Definition 2
(IRL Problem). The objective of IRL is to reconstruct, based only on the input–output trajectory data ( y T ( k ) , u T ( k ) ) of the expert system (2), a set of cost-function weight parameters that are equivalent in terms of the target cost function, such that the learner system (1) can not only recover the unknown cost function but also generate the same optimal control policy as that of the expert system (2).
Definition 3.
If there exists a sufficiently small constant σ > 0 such that a matrix or vector X satisfies
∥ X − X * ∥ ≤ σ
then X is called an approximate solution of X * .

3. Model-Based IRL Algorithm

To address the aforementioned IRL problem, this section proposes a model-based method. A model-based IRL algorithm is firstly formulated to reconstruct the output weight matrix that equates to the target cost function (3). Furthermore, the algorithm is analysed to serve as the theoretical foundation for subsequent model-free algorithm.

3.1. Optimal Control with Output Feedback and Cost Weighting

For the learner system (1), consider the following infinite-time cost function
V ( x ( k ) ) = ∑ j = k ∞ y ( j ) T Q y ( j ) + u ( j ) T R u ( j )
where Q = Q T ∈ R q × q > 0 denotes the output weight matrix, and R = R T ∈ R m × m > 0 denotes the input weight matrix. In contrast to expert system (2), the objective of a learner system (1) is to solve the following cost function within the framework of optimal control.
V * ( x ( k ) ) = min u ( k ) ∑ j = k ∞ y ( j ) T Q y ( j ) + u ( j ) T R u ( j ) .
When the learner system (1) operates under the optimal control policy, its control input can be expressed as
u ( k ) = − K x ( k ) .
In particular, the control gain K satisfies
K = ( R + B T P B ) − 1 B T P A
where P = P T ∈ R n × n > 0 satisfies the following DT ARE:
P = A T P A + C T Q C − A T P B ( R + B T P B ) − 1 B T P A .
Furthermore, substituting (12) into (13) yields
( A − B K ) T P ( A − B K ) + K T R K + C T Q C − P = 0 .

3.2. Design of Model-Based IRL Algorithms

The objective is to construct a model-based IRL algorithm, given ( A , B , C ) and K T , for reconstructing the output weight matrix that minimizes the target cost function (3) of an expert system (2). Before we proceed with the algorithm design, the following lemma is stated.
Lemma 1.
Let R > 0 for the learner system (1). If matrices Q and P both satisfy (14) and
( A − B K ) T P ( A − B K ) + K T R K + C T Q C − P − ( K − K T ) T R ( K − K T ) = 0 ,
then the control gain K obtained is equal to the target control gain K T .
Proof. 
Since Q and P satisfy both (14) and (15), subtracting (14) from (15) yields
( K − K T ) T R ( K − K T ) = 0 ,
then
K = K T .
The proof is completed.    □
Based on Lemma 1, a model-based IRL algorithm is proposed. Given an arbitrary symmetric positive definite matrix R, a learning rate α ∈ ( 0 , 1 ] , an initial output weight matrix Q 0 , and an initial control gain K 0 , let the iteration number be i = 0 , 1 , 2 , … . Before designing the algorithm, we present the steps as follows.
(1) 
Policy evaluation P i .
As the algorithm iterates, Equation (14) is rewritten as
( A − B K i ) T P i ( A − B K i ) + K i T R K i + C T Q i C − P i = 0 .
(2) 
Output weight adjustment Q i + 1 .
Once P i has been obtained, a correction term corresponding to inverse optimal control [28] is introduced, and the output weight matrix Q i + 1 is updated using Equation (14). Let
Q i = C T Q i C = P i − ( A − B K i ) T P i ( A − B K i ) − K i T R K i + ( K i − K T ) T R ( K i − K T ) .
Correcting the coupling term between the current Q i in (19) and the Q i in (15) to Q i + 1 gives
C T Q i + 1 C = ( 1 − α ) C T Q i C + α Q i .
The pair ( A , B ) is controllable; the pair ( A , C ) is observable; and matrix C has full row rank. Substitute (15) and (19) into (20), then multiply ( C C T ) − 1 C C and C T ( C C T ) − 1 by the left-hand and right-hand sides, respectively, to obtain
Q i + 1 = Q i − α ( C C T ) − 1 C ( C T Q i C − Q ¯ i ) C T ( C C T ) − 1 = Q i + α ( C C T ) − 1 C ( K i − K T ) T R ( K i − K T ) C T ( C C T ) − 1 .
(3) 
Control policy update K i + 1 .
Evaluate P i using the current policy, and update the control policy K i + 1
K i + 1 = ( R + B T P i B ) − 1 B T P i A .
Then set i = i + 1 and repeat (18)–(22) until the convergence condition ∥ K i + 1 − K i ∥ ≤ σ is satisfied, where σ > 0 is a predefined sufficiently small tolerance. The procedure of the model-based IRL algorithm is given in Algorithm 1.
Algorithm 1 Model-Based IRL Algorithm
1:
Initialization. Given R > 0 and α ∈ ( 0 , 1 ] , initialize the algorithm with a reward weighting matrix Q 0 ≥ 0 and a stabilizing gain K 0 , and set i = 0 .
2:
Evaluate P i as (18).
3:
Correct Q i + 1 by (21).
4:
Update K i + 1 by (22).
5:
Update i = i + 1 , and repeat Step 1 until the stopping criterion ∥ K i + 1 − K i ∥ ≤ σ is satisfied, where σ > 0 is a prescribed tolerance.

3.3. Theoretical Analysis of Algorithm 1

This subsection presents theoretical results concerning the convergence and stability of the proposed algorithm.
Theorem 1
(Convergence of Algorithm 1). Given Q 0 ≥ 0 , R > 0 , and α ∈ ( 0 , 1 ] , if the system ( A , C ) is observable, the sequence { Q i } will converge to some equivalent weight Q (see Definition 2), and Algorithm 1 will terminate within a finite number of steps under the given threshold condition.
Proof. 
Following the convergence analysis reported in [4,26,29], one can conclude that Algorithm 1 requires only a finite number of iterations for the update of Q i to stop.
Multiply the left-hand side and right-hand side of (21) by C T and C, respectively, to obtain
C T Q i + 1 C = ( 1 − α ) C T Q i C + α C T Q i C + ( K i − K T ) T R ( K i − K T ) = C T Q i C + α C T ( C C T ) − 1 C ( K i − K T ) T R ( K i − K T ) C T ( C C T ) − 1 C .
Let
Σ i = C T ( C C T ) − 1 C ( K i − K T ) T R ( K i − K T ) C T ( C C T ) − 1 C .
Equation (23) can be written as
C T ( Q i + 1 − Q i ) C = α Σ i .
Because Σ i ≥ 0 , there is
Q i + 1 ≥ Q i ≥ … ≥ Q 1 ≥ 0 , i = 0 , 1 , …
That is, { Q i } is monotonically increasing. This follows from (25):
C T Q i + 1 C = α Σ i + α Σ i − 1 + … + α Σ 0 + C T Q 0 . C
From the Riccati equation theory [30], P i varies monotonically with Q i , and the associated gain K i is consequently adjusted. It is also known that the target gain K T may correspond to infinitely many equivalent weighting matrices Q. Hence, we aim to identify a particular equivalent matrix Q e such that
∥ Q i − Q e ∥ ≤ η
and
∥ K i − K T ∥ ≤ σ
and the algorithm stops.
It follows from (26) that
C T Q C ≥ ∥ C T Q i + 1 C ∥ − η 0 ( η , C ) = ∥ α Σ i + … + α Σ 0 + C T Q 0 C ∥ − η 0 ,
and it can be further shown that
C T Q C ≥ α ( i + 1 ) σ 2 λ min ( R + B T P B ) − η 0 ,
Therefore,
i ≤ ∥ C T Q C ∥ + η 0 ( η , C ) α σ 2 λ min R − 1 .
According to Definition 1, Q i is monotonically increasing and ∥ Q i ∥ is bounded. Therefore, Algorithm 1 converges within a finite number of steps, and the obtained control gain approaches K T . The proof is completed.    □
Remark 2.
As discussed after Theorem 1, the equivalent output weight matrix is generally non-unique. Different choices of R and Q 0 may yield different converged matrices Q ∞ , while the resulting pair ( Q ∞ , R ) generates the same optimal policy K T . In practice, R = I and Q 0 = λ I with a small λ > 0 provide a simple default choice for stable and monotonic convergence. In particular, Q 0 = 0 and R = I can be used as a convenient minimum-norm selection criterion.
Theorem 2
(Stability of the closed-loop system). At every iteration step of Algorithm 1, the closed-loop system of the learner system (1) is stable.
Proof. 
Given an initial Q 0 and R > 0 , the closed-loop stability of the system must be ensured [31] to prove that
V i ( x ( k + 1 ) ) − V i ( x ( k ) ) ≤ 0 .
If we define the Lyapunov function corresponding to the ith iteration as
V i ( x ( k ) ) = x T ( k ) P i x ( k ) ,
then there is
V i ( x ( k + 1 ) ) − V i ( x ( k ) ) = x T ( k ) ( A − B K i ) T P i ( A − B K i ) − P i x ( k ) ,
where P i > 0 ; combining Equations (18) and (35) yields
V i ( x ( k + 1 ) ) − V i ( x ( k ) ) = − x T ( k ) K i T R K i + C T Q i C x ( k ) .
Since R > 0 and Q i ≥ 0 , it follows that
K i T R K i + C T Q i C ≥ 0 ,
and thus,
V i ( x ( k + 1 ) ) − V i ( x ( k ) ) ≤ 0 .
Consequently, the stability of the learner system (1) is guaranteed throughout the entire iterative process. This completes the proof.    □

4. Model-Free Output-Feedback Off-Policy Inverse Q-Learning Algorithm

In practical control systems, uncertainty in the system model limits the effectiveness of model-based methods. Moreover, unobservable states make it difficult to implement traditional control strategies that rely on full-state information. To address these issues, building upon Algorithm 1, we propose a data-driven, output-feedback method that reconstructs the unknown target cost function using only input–output data from the expert system (2).

4.1. Establishment of Off-Policy Q-Function Equation

For the ith iteration, multiply the left side of (18) by x T T ( k ) and the right side by x T ( k ) , resulting in
x T T ( k ) ( A − B K i ) T P i ( A − B K i ) x T ( k ) + x T T ( k ) K i T R K i x T ( k ) + x T T ( k ) C T Q i C x T ( k ) − x T T ( k ) P i x T ( k ) = 0 .
Define the expert’s state Q-function as
Q i ( x T ( k ) , P i ) = x T T ( k ) P i x T ( k ) = ( A x T ( k ) + B K i x T ( k ) ) T P i ( A x T ( k ) + B K i x T ( k ) ) + x T T ( k ) C T Q i C x T ( k ) + x T T ( k ) K i T R K i x T ( k ) = x T ( k ) K i x T ( k ) T H i x T ( k ) K i x T ( k ) = x T T ( k ) W i T H i W i x T ( k ) .
where
W i = I − K i
and
H i = H ( x x ) i H ( x u ) i H ( u x ) i H ( u u ) i = A T P i A + C T Q i C A T P i B B T P i A R + B T P i B ;
the block matrix is defined as
H ( x x ) i = A T P i A + C T Q i C ∈ R n × n , H ( x u ) i = A T P i B ∈ R n × m , H ( u x ) i = B T P i A ∈ R m × n , H ( u u ) i = B T P i B + R ∈ R m × m .
Next, we construct the off-policy equation using the off-policy method [32]. The original expert system (2) is rewritten as
x T ( k + 1 ) = A c x T ( k ) + B u T ( k ) + K i x T ( k )
where A c = A − B K i , u i = − K i x T ( k ) denotes the auxiliary control input for system (2), while u T ( k ) denotes the target control input.
Multiplying the left-hand side and right-hand side of (14) by x T T ( k ) and x T ( k ) , respectively, and substituting (40) and (44) into it, one obtains
x T T ( k ) W i T H i W i x T ( k ) ( x T ( k + 1 ) − B ( u T ( k ) + K i x T ( k ) ) ) T P i ( x T ( k + 1 ) − B ( u T ( k ) + K i x T ( k ) ) ) = x T T ( k ) C T Q i C x T ( k ) + x T T ( k ) K i T R K i x T ( k ) .
Substituting P i = W i T H i W i from (40) into (45) and expanding the quadratic form on the left-hand side, one obtains
x T T ( k ) W i T H i W i x T ( k ) − x T T ( k + 1 ) W i T H i W i x T ( k + 1 ) + 2 x T T ( k + 1 ) P i B u T ( k ) + K i x T ( k ) − u T ( k ) + K i x T ( k ) T B T P i B u T ( k ) + K i x T ( k ) = x T T ( k ) C T Q i C x T ( k ) + x T T ( k ) K i T R K i x T ( k ) .
It follows from (40) and (42) that
Q i ( x T ( k ) , P i ) = x T T ( k ) H ( x x ) i x T ( k ) + 2 x T T ( k ) H ( x u ) i u T ( k ) + u T T ( k ) H ( u u ) i u T ( k ) .
It follows from Q-functions (40) and (47) that
x T T ( k ) H ( x x ) i x T ( k ) + 2 x T T ( k ) H ( x u ) i u T ( k ) + u T T ( k ) H ( u u ) i u T ( k ) = x T T ( k ) C T Q i C x T ( k ) + u T T ( k ) R u T ( k ) + x T T ( k + 1 ) P i x T ( k + 1 ) .
Combining this with (41) and (48) yields
x T T ( k ) H ( x x ) i x T ( k ) − x T T ( k + 1 ) H ( x x ) i x T ( k + 1 ) + 2 x T T ( k ) H ( x u ) i u T ( k ) + 2 x T T ( k + 1 ) H ( x u ) i K i x T ( k + 1 ) − u T T ( k ) H ( u u ) i u T ( k ) − x T T ( k + 1 ) K i T H ( u u ) i K i x T ( k + 1 ) = x T T ( k ) C T Q i C x T ( k ) + u T T ( k ) R u T ( k ) .
Thus the off-policy Q-function equation is obtained. Using the least-squares method and the expert state-input data x T ( k ) and u T ( k ) , Equation (49) yields a unique solution ( H ( x x ) i , H ( x u ) i , H ( u x ) i H ( u u ) i ) without knowledge of the system dynamics.

4.2. Design of a Output-Feedback Off-Policy Inverse Q-Learning Algorithm

We now proceed to design a model-free method based on the aforementioned off-policy Q-function Equation (49). First, using a state reconstruction method, the off-policy Q-function Equation (49) is transformed into an input–output off-policy Q-function equation. We then iteratively update the output-reward weights Q i and control gains K i based on this input–output Q-function.
As shown in Assumption 3, x T ( k ) is unobservable, whereas u T ( k ) and y T ( k ) are available. By introducing the lemma from Reference [33], the input and output data u T ( k ) and y T ( k ) are used to represent the Q-function without using the state x T ( k ) .
Lemma 2.
If Assumption 1 holds, the system state x T ( k ) at time k can be expressed in terms of the measurable input and output sequences from ( k − N ) to ( k − 1 ) , as shown below:
x T ( k ) = M y y ¯ k − 1 , k − N + M u u ¯ k − 1 , k − N
where N ≤ n is the upper bound of the observability index of the system, while u ¯ k − 1 , k − N ∈ R m × N and y ¯ k − 1 , k − N ∈ R s × N , respectively, denote the stacked input and output data vectors,
u ¯ k − 1 , k − N = u T T ( k − 1 ) u T T ( k − 2 ) … u T T ( k − N ) T , y ¯ k − 1 , k − N = y T T ( k − 1 ) y T T ( k − 2 ) … y T T ( k − N ) T .
The coupling matrix is defined as
M u = U N − A N ( V N T V N ) − 1 V N T G N , M y = A N ( V N T V N ) − 1 V N T
and
V N = ( C A N − 1 ) T … ( C A ) T C T T
U N = B A B … A N − 1 B
G N = 0 C B C A B … C A N − 2 B 0 0 C B … C A N − 3 B ⋮ ⋮ ⋮ ⋱ ⋮ 0 … … 0 C B 0 0 0 … 0 .
where V N is the observable matrix, U N is the control matrix representing the control inputs, and G N is the Toeplitz matrix. Therefore, the state x T ( k ) can be expressed in terms of the input–output data as
x T ( k ) = M z T ( k )
where
z T ( k ) = u ¯ k − 1 , k − N y ¯ k − 1 , k − N T , M = M u M y .
By using the input–output data description (56) of the operating state to describe the state feedback Q-function (40), it is possible to obtain the input–output Q-function as follows:
Q i ( z T ( k ) , P i ) = z T ( k ) T M T W i T H i W i M z T ( k ) .
The input–output Q-function matrix is further defined as
H ¯ i = H ¯ ( x x ) i H ¯ ( x u ) i H ¯ ( u x ) i H ¯ ( u u ) i
where H ¯ i = H ¯ i T ∈ R f × f , f = m N + q N + m , and the block matrix is defined as follows:
H ¯ ( x x ) i = M T ( A T P i A + C T Q i C ) M ∈ R ( m + q ) N × ( m + q ) N , H ¯ ( x u ) i = M T A T P i B ∈ R ( m + q ) N × m , H ¯ ( u x ) i = B T P i A M ∈ R m × ( m + q ) N , H ¯ ( u u ) i = B T P i B + R ∈ R m × m .
Taking into account (22) and (59), the optimal control gain K ¯ i T of the input–output Q function can be expressed as
K ¯ i + 1 = K i + 1 M .
Here, K i + 1 denotes the state feedback gain, while K ¯ i + 1 denotes the equivalent output-feedback gain acting on z T ( k ) ; it follows from the block structure of the state-dependent Q-function matrix H i that
K i + 1 = H ( u u ) i − 1 H ( u x ) i .
Therefore, there is
K ¯ i + 1 = K i + 1 M = H ( u u ) i − 1 H ( u x ) i M = H ¯ ( u u ) i − 1 H ¯ ( u x ) i .
By introducing probing noise into the auxiliary control input, u ^ T ( k ) = u T ( k ) + ϵ ( k ) , and substituting it into (49), the output-feedback off-policy Q-function equation can be obtained as
z T T ( k ) H ¯ ( x x ) i z T ( k ) − z T T ( k + 1 ) H ¯ ( x x ) i z T ( k + 1 ) + 2 z T T ( k ) H ¯ ( x u ) i u ^ T ( k ) + 2 z T T ( k + 1 ) H ¯ ( x u ) i K ¯ i z T ( k + 1 ) + u ^ T T ( k ) H ¯ ( u u ) i u ^ T ( k ) − z T T ( k + 1 ) K ¯ i T H ¯ ( u u ) i K ¯ i z T ( k + 1 ) = y T T ( k ) Q i y T ( k ) + u ^ T T ( k ) R u ^ T ( k )
where ϵ ( k ) represents the probing noise, while K i ¯ denotes the output-feedback control gain corresponding to the input–output Q-function. Without prior information on the system dynamics, the components ( H ¯ ( x x ) i , H ¯ ( x u ) i , H ¯ ( u x ) i H ¯ ( u u ) i ) are estimated using the least-squares method by solving Equation (64).
Next, as in Algorithm 1 for correcting Q i + 1 , multiply both sides of (21) by M z T ( k ) and substitute y T ( k ) = C x T ( k ) :
y T T ( k ) Q i + 1 y T ( k ) = y T T ( k ) Q i y T ( k ) + α u ^ T ( k ) + K ¯ i z T ( k ) − ϵ ( k ) T R ( u ^ T ( k ) + K ¯ i z T ( k ) − ϵ ( k ) ) ,
where K ¯ i + 1 is updated iteratively according to (63). Finally, repeat the above steps until the convergence condition ∥ K i + 1 − K i ∥ < σ is satisfied; otherwise, set i = i + 1 and proceed to (64). The above computational procedure is summarized in Algorithm 2.
Algorithm 2 Model-Free Output-Feedback Off-Policy Inverse Q-Learning Algorithm
1:
Initialization: Given R > 0 , initialize the algorithm with a reward weighting matrix Q 0 ≥ 0 and a stabilizing gain K 0 , and set i = 0 .
2:
Evaluate H ¯ ( x x ) i , H ¯ ( x u ) i , H ¯ ( u x ) i , H ¯ ( u u ) i by (65).
3:
Improve Q i + 1 as (65).
4:
Update K ¯ i + 1 by (63).
5:
Update i = i + 1 , and repeat Step 1 until the stopping criterion ∥ K ¯ i + 1 − K ¯ i ∥ ≤ σ is satisfied, where σ > 0 is a prescribed tolerance.
Remark 3.
Lemma 2 reveals that the system state x T ( k ) can be reconstructed from past input–output data. The parameter N is the observability index, which represents the minimum number of past output samples needed to uniquely determine the current state.

4.3. Implementation of the Model-Free Algorithm

This subsection shows the implementation of steps (64) and (65) of Algorithm 2. The implementation of this algorithm primarily utilizes the following Kronecker product:
a T W b = ( b T ⊗ a T ) vec ( W ) .
Using the Kronecker product in (66), estimate H ¯ ( x x ) i , H ¯ ( x u ) i , H ¯ ( u x ) i , H ¯ ( u u ) i via (64), where (64) is rewritten as
z T T ( k ) ⊗ z T T ( k ) − z T T ( k + 1 ) ⊗ z T T ( k + 1 ) vec ( H ¯ ( x x ) i ) + 2 u ^ T T ( k ) ⊗ z T T ( k ) + K ¯ i z T ( k + 1 ) ⊗ z T T ( k + 1 ) vec ( H ¯ ( x u ) i ) + u ^ T T ( k ) ⊗ u ^ T T ( k ) − ( K ¯ i z T ( k + 1 ) ) T ⊗ ( K ¯ i z T ( k + 1 ) ) T vec ( H ¯ ( u u ) i ) = y T T ( k ) Q i y T ( k ) + u ^ T T ( k ) R u ^ T ( k ) .
Using a set of sample data indexed by l ∈ Z + ,
ϕ i = ϕ i 1 ϕ i 2 … ϕ i l T
ψ i = Z ( x x ) 1 Z ( x u ) 1 Z ( u u ) 1 Z ( x x ) 2 Z ( x u ) 2 Z ( u u ) 2 ⋮ ⋮ ⋮ Z ( x x ) l Z ( x u ) l Z ( u u ) l .
The scalar term corresponding to the lth sample is defined as
ϕ i l = y T T ( k + l − 1 ) Q i y T ( k + l − 1 ) + u ^ T T ( k + l − 1 ) R u ^ T ( k + l − 1 ) ,
Z ( x x ) l = z T T ( k + l − 1 ) ⊗ z T T ( k + l − 1 ) − z T T ( k + l ) ⊗ z T T ( k + l ) , Z ( x u ) l = 2 u ^ T T ( k + l − 1 ) ⊗ z T T ( k + l − 1 ) + ( K ¯ i z T ( k + l ) ) T ⊗ z T T ( k + l ) , Z ( u u ) l = u ^ T T ( k + l − 1 ) ⊗ u ^ T T ( k + l − 1 ) − ( K ¯ i z T ( k + l ) ) T ⊗ ( K ¯ i z T ( k + l ) ) T .
Then, considering (68)–(71), (67) can be rewritten as
ψ i vec ( H ¯ ( x x ) i ) vec ( H ¯ ( x u ) i ) vec ( H ¯ ( u u ) i ) T = ϕ i .
For (72), using the batch least-squares (BLS) method, one can determine from (68) that
vec ( H ¯ ( x x ) i ) vec ( H ¯ ( x u ) i ) vec ( H ¯ ( u u ) i ) T = ( ψ i T ψ i ) − 1 ψ i T ϕ i
where the total number of unknown parameters corresponding to vec ( H ¯ ( x x ) i ) , vec ( H ¯ ( x u ) i ) , and vec ( H ¯ ( u u ) i ) is required to satisfy l ≥ ( ( m + s ) N ) 2 + ( m + s ) N m + m 2 . Therefore, in order to guarantee a unique solution to (73), the persistence of excitation condition must be satisfied, and at least l ≥ ( ( m + s ) N ) 2 + ( m + s ) N m + m 2 sampling steps are required. Similar to (66), (65) can be rewritten as
( y T T ( k ) ⊗ y T T ( k ) ) T vec ( Q i + 1 ) = y T T ( k ) Q i y T ( k ) + α u ^ T ( k ) + K ¯ i z T ( k ) − ϵ ( k ) T R u ^ T ( k ) + K ¯ i z T ( k ) − ϵ ( k ) .
To further utilize multiple groups of sampled data to perform batch least-squares estimation of Q i + 1 , the right-hand side of (74) corresponding to the pth sample group is denoted by ξ p . By stacking the regression vectors corresponding to p consecutive groups of sampled data, one obtains the batch data matrix, denoted by η p , and then one has
ξ p = α u ^ T ( k + p − 1 ) + K ¯ i z T ( k + p − 1 ) − ϵ ( k + p − 1 ) T × R u ^ T ( k + p − 1 ) + K ¯ i z T ( k + p − 1 ) − ϵ ( k + p − 1 ) + y T T ( k + p − 1 ) Q i y T ( k + p − 1 )
and
η p = y T T ( k ) ⊗ y T T ( k ) y T T ( k + 1 ) ⊗ y T T ( k + 1 ) ⋮ y T T ( k + p − 1 ) ⊗ y T T ( k + p − 1 ) .
where p ∈ Z + denotes the number of sample data groups.
After multiple sets of sample data are stacked, a batch of linear equations relating to the parameters to be estimated can be formulated and solved using the BLS method; rewriting (74) yields
vec ( Q i + 1 ) = ( η p T η p ) − 1 η p T ξ p .
In particular, Q i + 1 is a symmetric positive definite matrix with q ( q + 1 ) 2 distinct elements, and at least p ≥ q ( q + 1 ) 2 samples are required to solve (74).
After multiple sets of sample data are stacked, a system of linear equations involving vec ( Q i + 1 ) can be formulated, and the latest output weight matrix Q i + 1 can be obtained using a least-squares approach.
Remark 4.
In Algorithm 2, the dimension of the regressor z T ( k ) is ( m + q ) N , and so the number of unknowns in the input–output Q-function matrix H ¯ i grows quadratically with N. The per-iteration complexity of the batch least-squares solution is O ( ( ( m + q ) N + m ) 3 ) , since the matrix to be inverted has dimension d = ( ( m + q ) N + m ) ( ( m + q ) N + m + 1 ) / 2 . Therefore, choosing N as the observability index balances reconstruction accuracy and computational efficiency.
Remark 5.
It should be noted that, in order to satisfy the persistence of excitation condition for the BLS problem [32], the auxiliary control input is injected with probing noise in Algorithm 2. This ensures sufficient excitation of the regression data, such that the parameter matrices can be uniquely identified. The unbiasedness of the algorithm after the introduction of probing noise will be rigorously analysed in the subsequent subsection.

4.4. Theoretical Analysis of Algorithm 2

In this subsection, some theoretical results are presented for the proposed algorithm, primarily concerning its unbiasedness and convergence.
Theorem 3
(Unbiasedness of Algorithm 2). In Algorithm 2, by injecting probing noise into the control input u ^ T ( k ) , the solutions of ( H ¯ ( x x ) i , H ¯ ( x u ) i , H ¯ ( u u ) i ) obtained from (64) and Q i + 1 obtained from (65) are unbiased, H ^ ( x x ) i = H ¯ ( x x ) i , H ^ ( x u ) i = H ¯ ( x u ) i , H ^ ( u u ) i = H ¯ ( u u ) i , Q ^ i = Q i .
Proof. 
When the control input is injected with probing noise, we have
u ^ T ( k ) = u T ( k ) + ϵ ( k ) .
According to Lemma 2, Equation (49) is equivalent to (64) and is derived from (44). Therefore, we revisit (44) to analyse the unbiasedness of Algorithm 2. Assume that the control input u ^ T ( k ) with injected probing noise leads to biased estimates H ^ i and Q ^ i from (64) and (65), respectively. By substituting u ^ T ( k ) = u T ( k ) + ϵ ( k ) and the biased estimates H ^ i into (44), one obtains
x T T ( k ) W i T H ^ i W i x T ( k ) − x T T ( k + 1 ) W i T H ^ i W i x T ( k + 1 ) + 2 x T T ( k + 1 ) P ^ i B u ^ T ( k ) + K i x T ( k ) − ϵ ( k ) − B ( u T ( k ) + K i x T ( k ) − ϵ ( k ) ) T P ^ i B ( u T ( k ) + K i x T ( k ) − ϵ ( k ) ) = x T T ( k ) C T Q i C x T ( k ) + x T T ( k ) K i T R K i x T ( k ) .
If one substitutes P i = W i T H i W i into the terms involving ϵ ( k ) and cancelling the common terms, it follows that
x T T ( k ) W i T H ^ i W i x T ( k ) − x T T ( k + 1 ) W i T H ^ i W i x T ( k + 1 ) + 2 x T T ( k + 1 ) P ^ i B u T ( k ) + K i x T ( k ) − B ( u ^ T ( k ) + K i x T ( k ) ) T P ^ i B ( u ^ T ( k ) + K i x T ( k ) ) = x T T ( k ) C T Q i C x T ( k ) + x T T ( k ) K i T R K i x T ( k ) .
By comparing the state feedback (44) without probing noise and the state feedback (71) with probing noise, it can conclude that H ^ i = H i . Furthermore, by combining this with the one-to-one correspondence between the input–output form and the state feedback form, it follows that
H ^ ( x x ) i = H ¯ ( x x ) i , H ^ ( x u ) i = H ¯ ( x u ) i , H ^ ( u u ) i = H ¯ ( u u ) i .
This implies that, after probing noise is introduced, (65) does not introduce bias into Q i ( z T ( k ) , P i ) .
y T T ( k ) Q ^ i + 1 y T ( k ) = y T T ( k ) Q ^ i y T ( k ) + α u T ( k ) + K ¯ i z T ( k ) T R u T ( k ) + K ¯ i z T ( k ) .
Thus, it follows that Q ^ i + 1 = Q i + 1 . Then, Algorithm 2 is unbiased with respect to the probing noise. This concludes the proof. □
Theorem 4
(Convergence of Algorithm 2). Given an initial matrix Q 0 > 0 , and ( A , Q 0 C ) is observable, the sequences { Q i } , { K i } , and { H i } generated by Algorithm 2 converge to the limit matrices Q ∞ , K ∞ , and H ∞ , respectively.
Proof. 
The core of this proof is to establish the mathematical equivalence between Algorithm 2 and the model-based Algorithm 1, whose convergence has been proven in Theorem 1. We demonstrate that every computational step in Algorithm 2 is an algebraically identical transformation of the corresponding step in Algorithm 1, performed solely using input–output data.
The proof proceeds by analysing the three main steps of both algorithms.
Step 1: Equivalence of the Policy Evaluation Steps.
In Algorithm 2, the policy evaluation step solves for the input–output Q-function blocks ( H ¯ ( x x ) i , H ¯ ( x u ) i , H ¯ ( u u ) i ) using (64). By Lemma 2, x T ( k ) = M z T ( k ) , and from (59) and (60), H ¯ i = M T H i M . Substituting these into (64) transforms it back into the state-feedback off-policy Equation (49). Reversing the off-policy transformation from (44) to (49) yields the state Q-function form:
Q i ( x T ( k ) , P i ) = x T ( k ) − K i x T ( k ) T H i x T ( k ) − K i x T ( k ) .
By using P i = W i T H i W i from (40) with W i = [ I − K i ] T and substituting the block structure of H i from (42), we obtain exactly the Lyapunov Equation (18). Therefore, solving (64) in Algorithm 2 is equivalent to solving (18) in Algorithm 1.
Step 2: Equivalence of the Policy Improvement (Weight Update) Steps.
In Algorithm 2, the output weight update is given by (65). Using u ^ T ( k ) = u T ( k ) + ϵ ( k ) , u T ( k ) = − K T x T ( k ) , x T ( k ) = M z T ( k ) , K ¯ i = K i M from (61), and y T ( k ) = C x T ( k ) , the correction term becomes u ^ T ( k ) + K ¯ i z T ( k ) − ϵ ( k ) = ( K i − K T ) x T ( k ) . Substituting this into (65) yields
x T T ( k ) C T Q i + 1 C x T ( k ) = x T T ( k ) C T Q i C x T ( k ) + α x T T ( k ) ( K i − K T ) T R ( K i − K T ) x T ( k ) .
Since x T ( k ) is arbitrary, we obtain
C T Q i + 1 C = C T Q i C + α ( K i − K T ) T R ( K i − K T ) .
Pre-multiplying by ( C C T ) − 1 C and post-multiplying by C T ( C C T ) − 1 yields exactly the model-based update (21). Thus, (65) in Algorithm 2 is equivalent to (21) in Algorithm 1.
Step 3: Equivalence of the Control Policy Updates.
In Algorithm 2, the control gain is updated using (63): K ¯ i + 1 = H ¯ ( u u ) i − 1 H ¯ ( u x ) i . From (60), H ¯ ( u u ) i = B T P i B + R and H ¯ ( u x ) i = B T P i A M . Substituting these into (63) yields
K ¯ i + 1 = ( R + B T P i B ) − 1 B T P i A M .
Given K ¯ i + 1 = K i + 1 M from (61) and given that M is full column rank, cancelling M on both sides yields exactly the model-based gain update (22).
We have demonstrated that Step 1, Step 2, and Step 3 of Algorithm 2 are mathematically equivalent to Step 1, Step 2, and Step 3 of Algorithm 1, respectively. Therefore, Algorithm 2 is structurally equivalent to Algorithm 1. Furthermore, Theorem 3 has established that the probing noise injected in Algorithm 2 does not introduce any bias. Since Theorem 1 guarantees the convergence of Algorithm 1, it follows directly that Algorithm 2 also converges to ( Q ∞ , K ¯ ∞ , H ¯ ∞ ) . □
Remark 6.
It should be pointed out that the output weight matrix Q ∞ obtained by Algorithm 2 does not necessarily coincide with the target weight matrix Q T . However, the resulting output-feedback control gain K ∞ can approximate the target expert control gain K T .
This indicates that the solution to the IRL problem is generally non-unique; different cost functions may correspond to the same or similar optimal control policies.

5. Simulation

To verify the effectiveness of the proposed algorithms, the F-16 aircraft autopilot function is adopted as an example, and the simulation results of both algorithms are presented. Regarding the F-16 aircraft autopilot model in [31,32,34], the system has three states x = [ α , q , δ e ] T , where α denotes the angle of attack, q denotes the pitch rate, and δ e denotes the elevator deflection angle. The dynamics of the learner system (1) and the expert system (2) are as follows:
A = 0.906488 0.0816012 − 0.0005 0.074349 0.90121 − 0.000708383 0 0 0.132655 B = − 0.00150808 − 0.0096 0.867345 , C = 1 0.1 − 0.5 .
The target output weight and input weight of the expert system are set as Q T = 1 and R T = 1 , respectively. Under the expert control policy, the optimal feedback gain is obtained as
K T = − 0.4293 − 0.1221 0.02492 ,
and the corresponding state weighting matrix is given by
C T Q T C = 1 0.1 − 0.5 0.1 0.01 − 0.05 − 0.5 − 0.05 0.25 .
The initial output weight of the learner system is set as Q 0 = 0 , the input weight is R = 1 , and the initial state is given by
x ( 0 ) = x T ( 0 ) = 10 10 − 3 T .

5.1. Simulation Results for Algorithm 1

This subsection presents the results of Algorithm 1. Algorithm 1 is implemented under the condition that the system dynamics matrices A, B, and C are known, and the expert optimal feedback gain K T is available. Figure 2 illustrates the convergence performance of P i , Q i , and K i in Algorithm 1. It can be observed from Figure 3 that, as the number of iterations increases, the performance matrices of the learner system gradually converge. After the algorithm converges, the learned output weight is obtained as
Q ∞ = 0.9142 .
The control gain and state weighting matrix are given by
K ∞ = − 0.4001 − 0.1147 0.0231 ,
C T Q ∞ C = 0.9649 0.09665 − 0.4824 0.0965 0.0096 − 0.0482 − 0.4824 − 0.0482 0.2412 .
Specifically, the P matrix of the expert system and the P T matrix ultimately learned by the learner are
P = 8.5491 5.5134 − 0.5444 5.5134 4.5822 − 0.0645 − 0.5444 − 0.0645 0.2449
P T = 8.7815 5.6536 − 0.5637 5.6536 4.6970 − 0.0667 − 0.5637 − 0.0667 0.2538
Figure 2. Convergence process of P i , K i and Q i using Algorithm 1.
Figure 3. The learner trajectory ( x ( k ) , u ( k ) , y ( k ) ) and expert trajectory ( x T ( k ) , u T ( k ) , y T ( k ) ) for Algorithm 1.
Figure 2 shows a trajectory comparison between the expert system (2) and the learner system (1) under the same initial condition. Here, x T ( k ) , u T ( k ) , and y T ( k ) denote the state trajectory, control input trajectory, and output trajectory of the expert system (2), respectively, while x ( k ) , u ( k ) , and y ( k ) denote those of the learner system (1).
It can be seen that, after convergence, the trajectories of the learner system (1) closely match those of the expert system (2), which verifies the effectiveness of Algorithm 1.

5.2. Simulation Results for Algorithm 2

This subsection reports the results of Algorithm 2. In contrast to Algorithm 1, Algorithm 2 operates without access to the system dynamics or state information. In the simulation, the input–output data vector z T ( k ) is constructed, and the state-feedback Q-function equation is transformed into the input–output form using the reconstruction relation x T ( k ) = M z T ( k ) .
For reproducibility, the initial output-weight matrix and the input-weight matrix are set to Q 0 = 0 and R = 1 , respectively. The batch least-squares estimation uses 43 consecutive data samples, and the algorithm is terminated when K ¯ i + 1 − K ¯ i F ≤ 10 − 4 . The common initial condition for the expert and learner systems is
x ( 0 ) = x T ( 0 ) = 10 10 − 3 T .
The probing signals used for the sensitivity analysis are specified separately below, while all other simulation settings remain unchanged.
The convergence performance of Q i and K ¯ i in Algorithm 2 is shown in Figure 4. The converged values of Q ∞ and K ¯ ∞ are given by
K ¯ ∞ = 0.0217 , − 0.7160 , 0.4800 , − 1.6526 , − 1.3257 , − 0.1469
Q ∞ = 0.9142 .
Figure 4. Convergence process of K i and Q i using Algorithm 2.
Using the state-reconstruction relation, the corresponding state-feedback control gain is obtained as
K ∞ = − 0.4001 , − 0.1147 , 0.0231 .
Similarly, Figure 5 presents the trajectory comparison between the expert system (2) and the learner system (1) under Algorithm 2. Under the same initial condition, the trajectories of the learner system (1) can closely approximate those of the expert system (2). This indicates that Algorithm 2 can effectively reconstruct the performance index of the expert system without relying on a system model or state information and can learn a control policy close to that of the expert system (2).
H ¯ x x = 0.1781 − 0.6948 0.4310 − 1.6507 1.2069 − 0.1319 − 0.6932 134.7494 − 108.5490 309.7877 − 291.5275 33.2234 0.4325 − 108.5505 87.6898 − 249.5126 235.4112 − 26.8387 − 1.6498 309.7880 − 249.5147 712.2173 − 670.1239 76.3672 1.2089 − 291.5273 235.4117 − 670.1239 632.0192 − 72.0510 − 0.1324 33.2229 − 26.8387 76.3672 − 72.0510 8.2144 , H ¯ x u = H ¯ u x T = 0.0256 − 0.8431 0.5651 − 1.9460 1.5610 − 0.1730 T , H ¯ u u = 1.1775
Figure 5. The learner trajectory ( u ( k ) , y ( k ) ) and expert trajectory ( u T ( k ) , y T ( k ) ) for Algorithm 2.
The Q-function matrix partition ( H ¯ x x , H ¯ x u , H ¯ u x , H ¯ u u ) is given by (86).
Furthermore, Figure 6 shows the convergence process of the block matrices of the input–output Q-function matrix in Algorithm 2. Specifically, the convergence errors of H ¯ ( x x ) i , H ¯ ( x u ) i , H ¯ ( u x ) i , and H ¯ ( u u ) i gradually decrease and converge to a small neighbourhood of zero as the number of iterations increases. This demonstrates that the iteration process can effectively identify the Q-function matrix from the collected input–output data. Therefore, the convergence of the Q-function matrix further verifies the effectiveness and feasibility of the proposed model-free output-feedback off-policy inverse Q-learning algorithm.
Figure 6. Convergence process of H ¯ ( x x ) i , H ¯ ( x u ) i , H ¯ ( u x ) i ,   a n d   H ¯ ( u u ) i using Algorithm 2.
To investigate the influence of the probing-noise amplitude on the parameter estimation, three bounded multisine probing signals are considered:
ϵ 1 ( k ) = 0.1 sin ( 1.009 k ) + cos 2 ( 0.538 k ) + sin ( 0.9 k ) + cos ( 100 k ) , ϵ 2 ( k ) = 0.2 sin ( 1.009 k ) + cos 2 ( 0.538 k ) + sin ( 0.9 k ) + cos ( 100 k ) , ϵ 3 ( k ) = 0.3 sin ( 1.009 k ) + cos 2 ( 0.538 k ) + sin ( 0.9 k ) + cos ( 100 k ) .
The results in Table 1 show that Algorithm 2 converges under all three probing signals. The learned control gains remain close to the expert gain K T , with gain errors of 0.0294 , 0.0303 , and 0.0304 , respectively. The iteration steps further indicate the convergence efficiency of Algorithm 2 at different probing-noise amplitudes.
Table 1. Learned control gains at different probing-noise amplitudes.

5.3. Comparison with the Output-Feedback RL-Based Optimal Control Method

In this subsection, the F-16 aircraft system is again used as an example for algorithm comparison, where Algorithm 2 presented in this paper is compared with the DT optimal control method based on output-feedback Q-learning proposed in [35]. In that work [35], the weight matrix for the cost function (3) must be specified manually in advance. Consequently, it can only address the problem of optimal reinforcement learning control under a known cost function.
Figure 5 and Figure 7 show the comparison results between the RL-based optimal control method and our method in terms of output trajectory imitation performance. It can be observed that, using our method, the learner demonstrates superior imitation performance and is able to learn the optimal output-feedback control law without relying on system models or state information. In contrast, manually assigned cost function weights require constant adjustment, which may result in system performance failing to converge to the optimal control law as rapidly. Through imitation learning, satisfactory imitation performance can be guaranteed.
Figure 7. Simulations of the trajectories u and y were performed using an optimal control method based on RL.
To quantitatively evaluate the trajectory imitation performance, the integral absolute error (IAE) and mean square error (MSE) are calculated for both the output and control-input trajectories. Quantitative comparison of trajectory imitation performance is shown in Table 2. They are defined as
IAE y = ∑ k = 1 N y T ( k ) − y ( k ) , MSE y = 1 N ∑ k = 1 N y T ( k ) − y ( k ) 2 , IAE u = ∑ k = 1 N u T ( k ) − u ( k ) , MSE u = 1 N ∑ k = 1 N u T ( k ) − u ( k ) 2 .
Table 2. Quantitative comparison of trajectory imitation performance.

6. Conclusions

This paper investigated the output-feedback inverse Q-learning problem for DT linear systems with unobservable states and proposed a data-driven output-feedback off-policy inverse Q-learning algorithm. First, a model-based IRL algorithm was presented as the basic framework. Building on this framework, a model-free output-feedback IRL algorithm was developed using only expert input–output trajectory data and without requiring a system model. Theoretical analysis demonstrated that the proposed algorithm achieves convergence and closed-loop stability under appropriate conditions. Finally, the effectiveness of the proposed algorithm was verified through simulation examples, with results indicating that the learner can closely approximate the cost function structure and control performance of the expert system.
Compared with existing IRL methods, the approach has overcome the reliance of traditional state-feedback methods on the measurability of system states, enabling inverse Q-learning to be applied in output-feedback scenarios where states cannot be directly measured. Future work may further consider extending the proposed method to more general nonlinear systems and multi-agent game scenarios, conducting experimental validation on actual control objects, and combining robust data-estimation and H ∞ control techniques with the proposed framework to improve its robustness against measurement noise and model uncertainties.

Author Contributions

Z.L.: funding acquisition and supervision. L.Z.: methodology and writing (original draft). X.D.: software and validation. H.F.: data curation and visualization. X.L.: writing (review and editing). P.L.: investigation and resources. All authors have read and agreed to the published version of the manuscript. The co-authors finish the proofreading.

Funding

This work was funded by the National Natural Science Foundation of China (Grant No. 62363002), the 2025 Hubei Provincial Key Laboratory Directed Commission Project (Basic Research Platform Program, Grant No. 2025CSA090), the Doctoral Foundation of Guangxi University of Science and Technology (Grant No. Z1009), and the Innovation Project of Guangxi Graduate Education (Grant No. JGY2025299).

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Conflicts of Interest

The authors declare no conflicts of interest.

Nomenclature

The main symbols used throughout this paper are summarized below.
Main symbols used in this paper
SymbolDescription
kDiscrete-time index.
Q , R Output-weight and input-weight matrices for the learner cost function.
Q T , R T Weight matrices of the expert cost function.
Q i Estimated output-weight matrix at iteration i.
Q ∞ Converged output-weight matrix.
P i Cost-function matrix at iteration i.
K i State-feedback control gain at iteration i.
K T Expert optimal state-feedback gain.
K ¯ i Output-feedback control gain at iteration i.
MState-reconstruction matrix.
z T ( k ) Reconstructed input–output data vector at time k.
H ¯ ( x x ) i State-data quadratic block of the Q-function matrix.
H ¯ ( x u ) i State-data/input cross-term block.
H ¯ ( u x ) i Input/state-data cross-term block.
H ¯ ( u u ) i Input quadratic block.
ϵ ( k ) Probing signal injected into the auxiliary control input.
α Learning rate.
σ Stopping tolerance.
∥ · ∥ F Frobenius norm.
vec ( · ) Vectorization operator.

References

  1. Lewis, F.L.; Vrabie, D.; Syrmos, V.L. Optimal Control; John Wiley & Sons: Hoboken, NJ, USA, 2012. [Google Scholar]
  2. Zhao, D.B.; Shao, K.; Zhu, Y.H.; Li, D.; Chen, Y.R.; Wang, H.T.; Liu, D.R.; Zhou, T.; Wang, C.H. Review of deep reinforcement learning and discussions on the development of computer Go. Kongzhi Lilun Yu Yingyong/Control Theory Appl. 2016, 33, 701–717. [Google Scholar]
  3. Zhang, H.G.; Zhang, X.; Yan-Hong, L.; Jun, Y. An overview of research on adaptive dynamic programming. Acta Autom. Sin. 2013, 39, 303–311. [Google Scholar] [CrossRef] [Scilit]
  4. Abbeel, P.; Ng, A.Y. Apprenticeship learning via inverse reinforcement learning. In Proceedings of the Twenty-first International Conference on Machine Learning, Banff, AB, Canada, 4–8 July 2004; p. 1. [Google Scholar]
  5. Zhifei, S.; Joo, E.M. A review of inverse reinforcement learning theory and recent advances. In Proceedings of the 2012 IEEE Congress on Evolutionary Computation; IEEE: Piscataway, NJ, USA, 2012; pp. 1–8. [Google Scholar]
  6. Ng, A.Y.; Russell, S. Algorithms for inverse reinforcement learning. In Proceedings of the Icml, Stanford, CA, USA, 29 June–2 July 2000; Volume 1, p. 2. [Google Scholar]
  7. Ab Azar, N.; Shahmansoorian, A.; Davoudi, M. From inverse optimal control to inverse reinforcement learning: A historical review. Annu. Rev. Control 2020, 50, 119–138. [Google Scholar] [CrossRef] [Scilit]
  8. Self, R.; Abudia, M.; Kamalapurkar, R. Online inverse reinforcement learning for systems with disturbances. In Proceedings of the 2020 American Control Conference (ACC); IEEE: Piscataway, NJ, USA, 2020; pp. 1118–1123. [Google Scholar]
  9. Xue, W.; Lian, B.; Fan, J.; Chai, T.; Lewis, F.L. Inverse reinforcement learning for trajectory imitation using static output feedback control. IEEE Trans. Cybern. 2023, 54, 1695–1707. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  10. Lian, B.; Xue, W.; Lewis, F.L.; Davoudi, A. Inverse Q-learning using input–output data. IEEE Trans. Cybern. 2023, 54, 728–738. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  11. Wu, Z.; Sun, L.; Zhan, W.; Yang, C.; Tomizuka, M. Efficient sampling-based maximum entropy inverse reinforcement learning with application to autonomous driving. IEEE Robot. Autom. Lett. 2020, 5, 5355–5362. [Google Scholar] [CrossRef] [Scilit]
  12. Lian, B.; Xue, W.; Lewis, F.L.; Chai, T. Inverse reinforcement learning for adversarial apprentice games. IEEE Trans. Neural Netw. Learn. Syst. 2021, 34, 4596–4609. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  13. Cao, K.; Xie, L. Game-theoretic inverse reinforcement learning: A differential pontryagin’s maximum principle approach. IEEE Trans. Neural Netw. Learn. Syst. 2022, 34, 9506–9513. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  14. Self, R.; Abudia, M.; Mahmud, S.N.; Kamalapurkar, R. Model-based inverse reinforcement learning for deterministic systems. Automatica 2022, 140, 110242. [Google Scholar] [CrossRef] [Scilit]
  15. Liu, W.; Wu, R.; Si, J.; Huang, H. A new robotic knee impedance control parameter optimization method facilitated by inverse reinforcement learning. IEEE Robot. Autom. Lett. 2022, 7, 10882–10889. [Google Scholar] [CrossRef] [Scilit]
  16. Xue, W.; Kolaric, P.; Fan, J.; Lian, B.; Chai, T.; Lewis, F.L. Inverse reinforcement learning in tracking control based on inverse optimal control. IEEE Trans. Cybern. 2021, 52, 10570–10581. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  17. Self, R.; Coleman, K.; Bai, H.; Kamalapurkar, R. Online observer-based inverse reinforcement learning. IEEE Control Syst. Lett. 2020, 5, 1922–1927. [Google Scholar] [CrossRef] [Scilit]
  18. Clarke, S.G.; Byeon, S.; Hwang, I. A low complexity approach to model-free stochastic inverse linear quadratic control. IEEE Access 2022, 10, 9298–9308. [Google Scholar] [CrossRef] [Scilit]
  19. Lian, B.; Kartal, Y.; Lewis, F.L.; Mikulski, D.G.; Hudas, G.R.; Wan, Y.; Davoudi, A. Anomaly detection and correction of optimizing autonomous systems with inverse reinforcement learning. IEEE Trans. Cybern. 2022, 53, 4555–4566. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  20. Choi, S.; Kim, S.; Jin Kim, H. Inverse reinforcement learning control for trajectory tracking of a multirotor UAV. Int. J. Control Autom. Syst. 2017, 15, 1826–1834. [Google Scholar] [CrossRef] [Scilit]
  21. Ho, J.; Ermon, S. Generative adversarial imitation learning. Adv. Neural Inf. Process. Syst. 2016, 29, 4565–4573. [Google Scholar]
  22. Lian, B.; Xue, W.; Xie, Y.; Lewis, F.L.; Davoudi, A. Off-policy inverse Q-learning for discrete-time antagonistic unknown systems. Automatica 2023, 155, 111171. [Google Scholar] [CrossRef] [Scilit]
  23. Zhao, Z.; Wang, T.; Peng, F.; Yu, J. Adaptive Fuzzy Resilient Decentralized Control for Nonlinear Large-Scale CPSs Under DoS Attacks. IEEE Trans. Fuzzy Syst. 2024, 32, 5899–5909. [Google Scholar] [CrossRef] [Scilit]
  24. Zhao, Z.; Wang, T.; Yu, J.; Basin, M.V. Bilateral Cooperative Control of Nonlinear Multiagent Systems With State and Output Quantification. IEEE Trans. Cybern. 2025, 55, 2949–2957. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  25. Xue, W.; Lian, B.; Kartal, Y.; Fan, J.; Chai, T.; Lewis, F.L. Model-free inverse H-infinity control for imitation learning. IEEE Trans. Autom. Sci. Eng. 2024, 22, 5661–5672. [Google Scholar] [CrossRef] [Scilit]
  26. Lian, B.; Xue, W.; Lewis, F.L.; Chai, T. Inverse reinforcement learning for multi-player noncooperative apprentice games. Automatica 2022, 145, 110524. [Google Scholar] [CrossRef] [Scilit]
  27. Wu, H.; Hu, Q.; Zheng, J.; Dong, F.; Ouyang, Z.; Li, D. Discounted Inverse Reinforcement Learning for Linear Quadratic Control. IEEE Trans. Cybern. 2025, 55, 1995–2007. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  28. Xue, W.; Lian, B.; Fan, J.; Kolaric, P.; Chai, T.; Lewis, F.L. Inverse reinforcement Q-learning through expert imitation for discrete-time systems. IEEE Trans. Neural Netw. Learn. Syst. 2021, 34, 2386–2399. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  29. Lian, B.; Donge, V.S.; Lewis, F.L.; Chai, T.; Davoudi, A. Data-driven inverse reinforcement learning control for linear multiplayer games. IEEE Trans. Neural Netw. Learn. Syst. 2022, 35, 2028–2041. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  30. Bittanti, S.; Laub, A.J.; Willems, J.C. The Riccati Equation; Springer: Berlin/Heidelberg, Germany, 1991; pp. 131–162. [Google Scholar]
  31. Li, J.; Yuan, D.; Ding, Z. Optimal tracking control for discrete-time systems by model-free off-policy Q-learning approach. In Proceedings of the 2017 11th Asian Control Conference (ASCC); IEEE: Piscataway, NJ, USA, 2017; pp. 7–12. [Google Scholar]
  32. Al-Tamimi, A.; Lewis, F.L.; Abu-Khalaf, M. Model-free Q-learning designs for linear discrete-time zero-sum games with application to H-infinity control. Automatica 2007, 43, 473–481. [Google Scholar] [CrossRef] [Scilit]
  33. Kiumarsi, B.; Lewis, F.L.; Jiang, Z.P. H-infinity control of linear discrete-time systems: Off-policy reinforcement learning. Automatica 2017, 78, 144–152. [Google Scholar] [CrossRef] [Scilit]
  34. Lewis, F.L.; Vamvoudakis, K.G. Reinforcement learning for partially observable dynamic processes: Adaptive dynamic programming using measured output data. IEEE Trans. Syst. Man Cybern. Part B (Cybern.) 2010, 41, 14–25. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  35. Rizvi, S.A.A.; Lin, Z. Output Feedback Q-Learning Control for the Discrete-Time Linear Quadratic Regulator Problem. IEEE Trans. Neural Netw. Learn. Syst. 2019, 30, 1523–1536. [Google Scholar] [CrossRef] [Scilit] [PubMed]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.