1. Introduction
Flexible spacecraft attitude control represents a critical yet challenging problem in modern space missions, characterized by rigid–flexible coupling effects, multi-source uncertainties, and stringent performance requirements [
1,
2]. Unlike rigid spacecraft, flexible spacecraft feature large lightweight appendages (such as solar arrays and antenna reflectors) that introduce low-frequency elastic vibrations intrinsically coupled with rigid-body attitude motion, degrading pointing accuracy and risking persistent oscillations during maneuvers [
2].
Recent advances have addressed flexible vibration suppression, disturbance rejection, actuator fault tolerance, and agile maneuvering through disturbance observers, sliding mode control (SMC), input shaping, and prescribed performance control. Observer-based and SMC approaches include Golestani et al.’s fixed-time disturbance observer with prescribed performance control [
1], Shahid et al.’s composite anti-unwinding finite-time adaptive sliding mode with a modal vibration observer [
3], and Dian et al.’s scheduled input shaping with sinusoidal path planning and a nonlinear disturbance observer [
4]. For synchronous maneuver and vibration suppression, He and Cao designed cooperative linear quadratic regulator (LQR) and proportional-derivative (PD) with input shaping [
2], Zhong et al. employed the internal model principle to asymptotically reject sinusoidal disturbances without modal measurements [
5], and Song and Agrawal experimentally validated pulse width pulse frequency (PWPF) modulation with positive position feedback to attenuate thruster-induced vibrations [
6]. Robust and adaptive approaches addressing model uncertainties include Yu et al.’s gain-scheduled
control for large-angle maneuvers [
7], Angeletti et al.’s end-to-end robust design via linear fractional transformation [
8], and Khoroshylov et al.’s adaptive notch-filter strategies for space-based synthetic aperture radar (SAR) platforms [
9].
Deep reinforcement learning (DRL) has emerged as a broader trend in spacecraft guidance, navigation, and control, as surveyed in recent reviews [
10,
11,
12]. Among DRL algorithms, the Twin Delayed Deep Deterministic policy gradient (TD3) [
13] is selected in this work for its deterministic policy formulation well-suited for continuous torque commands, off-policy sample efficiency critical for computationally expensive flexible-body simulations, and twin-critic architecture that mitigates value overestimation bias. TD3 has been extensively applied across aerospace scenarios including unmanned aerial vehicle (UAV) operations [
14,
15,
16,
17,
18], spacecraft attitude control [
19], hypersonic vehicle maneuvering [
20], and aero-engine regulation [
21], with algorithmic modifications such as proportional-integral-derivative (PID)-guided exploration [
19], Steffensen value iteration (SVI) for faster convergence [
22], frame stacking for energy-efficient UAV path planning [
14], and 3D environment encoding for dynamic obstacle avoidance [
16].
More recently, several works have explored the intersection of TD3/DRL with flexible spacecraft dynamics and fault-tolerant control. Shi et al. [
23] applied TD3 to cooperative control of ultra-close flexible spacecraft formation flying. Li et al. [
24] integrated a DRL-based disturbance observer with the fully-actuated system approach for dumbbell-shaped flexible spacecraft. In the direction of fault tolerance, El-Dalahmeh et al. [
25] developed TD3-HD with Hindsight Experience Replay for attitude fault recovery, and Henna et al. [
26] introduced expert-guided exploration for satellite fault-tolerant attitude control. Nevertheless, two gaps remain to be addressed. First, Shi et al. [
23] and Li et al. [
24] address flexible attitude control without considering actuator faults. Second, El-Dalahmeh et al. [
25] and Henna et al. [
26] address fault-tolerant control but treat the spacecraft as rigid, neglecting rigid–flexible coupling dynamics. To the best of the authors’ knowledge, no existing work has simultaneously addressed flexible vibration suppression and actuator fault tolerance within a unified TD3-based framework.
Motivated by this gap, this paper develops an integrated attitude control framework for flexible spacecraft stabilization, capable of simultaneously addressing external disturbances, rigid–flexible coupling dynamics, and actuator faults. The framework employs the TD3 algorithm integrated with adaptive fault-tolerant control.The main contributions of this work are: (1) A hierarchical phased reward function for TD3-based flexible spacecraft attitude control. Unlike prior reward designs that rely solely on attitude error [
27] or lack vibration-aware shaping [
23,
24], the proposed reward comprises four components (base, convergence, smoothness, and terminal) implementing a phased convergence strategy, with the convergence term augmented by observer-estimated flexible modal displacement
to explicitly guide oscillation suppression. (2) A composite fault-tolerant control structure integrating the trained TD3 agent with an adaptive sliding mode fault-tolerant (AFT) compensator, extending the integral-type sliding mode framework of [
28] from rigid to flexible spacecraft. The sliding manifold and AFT compensator are reformulated with rigid–flexible coupling terms (
and
) using observer-estimated modal coordinates.
The organization of this paper is as follows:
Section 1 presents the research background and motivation.
Section 2 presents the flexible spacecraft dynamics, fault model, flexible state observer, and problem statement.
Section 3 establishes the RL training framework.
Section 4 designs the adaptive fault-tolerant controller.
Section 5 verifies the proposed schemes via simulations.
Section 6 concludes this paper by summarizing its main contributions and putting forward prospects for future research.
5. Simulation and Discussion
In this section, the training environment settings are introduced and hyperparameter configurations are summarized in
Table 2. To systematically assess robustness, five evaluation scenarios (S0–S4) form a progressive uncertainty evaluation framework, as summarized in
Table 3. Starting from a noise-free baseline (S0), each subsequent scenario introduces an additional source of non-ideality: measurement noise (S1), non-zero initial angular velocity (S2), parameter mismatch and external disturbance (S3), and finally concurrent actuator faults (S4). Detailed scenario configurations are provided in the notes accompanying
Table 3.
This section validates the proposed control framework through numerical simulations, organized into three parts. First, the training setup, spacecraft physical parameters, and hyperparameter configurations are documented. Second, the trained TD3 agents are evaluated under fault-free conditions (Scenarios S0–S3), comparing the -augmented agent A against the baseline agent to assess the effectiveness of vibration-aware reward shaping. Third, the composite TD3+AFT controller is tested under concurrent actuator faults (Scenario S4) and benchmarked against PD, PD+AFT, and the standalone TD3 agent.
5.1. Training Settings
During the training, each component of the initial attitude
is independently sampled from the uniform distribution over the interval
. No measurement noise, parameter perturbation or fault condition is introduced in the training phase. The environment is treated as ideal except for a sinusoidal disturbance
, as follows:
The frequency
rad/s is chosen to be representative and to maintain the same order of magnitude as Equation (
34). The amplitude
is intentionally set substantially larger than the actual disturbance magnitude. The exaggerated disturbance magnitude and fully randomized phases are designed to expose the agent to a diverse set of disturbance realizations during training, thereby encouraging the learning of robust control policies that generalize beyond the specific disturbance patterns encountered in evaluation.
The inertia matrix
is configured as
Different from [
32], where the off-diagonal components are neglected, this paper takes the inertial coupling into account to better match the practical engineering situation. The flexible parameters are selected with reference to [
31]. The number of flexible modes
m is set as 4, and the coupling matrix
is set as
The flexible modal parameters are given by
where
denotes natural frequencies (rad/s) and
represents corresponding damping ratios.
The training procedure follows the standard TD3 protocol [
13]. At each timestep, the agent observes the state
, selects an action
with exploration noise
, and receives a reward computed by the phased reward function (
13). Transitions are stored in an experience replay buffer of capacity
and sampled uniformly in minibatches for network updates. Training begins after a warm-up phase of 1000 steps to populate the buffer. The complete hyperparameter configuration is listed in
Table 2.
It is worth noting that the later TD3 policy network itself only receives the 6-dimensional state vector
as defined in
Section 3.2; the observer-estimated flexible states are used internally by the environment for reward computation and by the AFT control layer, and are never passed to the RL policy network.
The training is implemented in Python 3.10 using PyTorch 1.12.0. The flexible spacecraft environment is simulated with a fixed-step integration using SciPy’s solve_ivp function with the RK45 method at a time step of s. All simulations are performed on a workstation with an Intel Core i7-13700 CPU and an NVIDIA RTX 3060 GPU; typical training duration is approximately 12 h for 20,000 episodes.
The effectiveness of incorporating the observer-estimated flexible state
into the reward function is verified through an ablation experiment that compares the control performance of two agents trained by different reward functions (
12) and (
13). For clear distinction, the agent trained using the reward function (
12) is designated as agent
, and the agent trained with the reward function (
13) is denoted as agent
A. The reward accumulation of the two agents is visualized in
Figure 2. Both agents exhibit a rapid ascent after approximately 5000 episodes, indicating that the exploration phase transitions into policy exploitation around this point. Agent
produces an overall smoother reward curve, whereas agent
A exhibits slightly larger fluctuations but converges to a higher steady-state reward value. These differences stem from distinct reward structures: Agent
optimizes solely with respect to attitude and angular velocity errors, yielding a simpler and more stationary reward signal; agent
A additionally incorporates the observer-estimated flexible modal displacement
, which enriches the learning signal with vibration-suppression information but simultaneously introduces greater stochasticity due to the coupling between the flexible dynamics and the rigid-body motion. The richer feedback enables agent
A to attain a higher asymptotic reward at the cost of moderately increased training variance.
5.2. Test Scenario Settings
To systematically evaluate agent robustness under progressively challenging conditions, five evaluation scenarios (S0–S4) are constructed as a progressive uncertainty evaluation framework. The complete scenario configurations are summarized in
Table 3, and each scenario is described in detail below.
All five scenarios share a common initial attitude , with a simulation duration of 200 s and a time step of 1 s. The target attitude is zero (, ) in all cases.
Scenario S0 (pure baseline) represents the simplest evaluation condition: no measurement noise, no parameter mismatch, no external disturbance, and no actuator faults. The spacecraft starts from rest () and the controller operates with perfect state information and a perfectly known plant model. This scenario establishes the nominal performance reference against which all subsequent, more challenging scenarios are compared.
Scenario S1 (measurement noise) introduces Gaussian white noise on both the MRP attitude and angular velocity measurements. The noise standard deviations are set to
[
33] and
rad/s [
34]. All other conditions remain identical to S0. This scenario evaluates the agents’ tolerance to realistic sensor imperfections.
Scenario S2 (non-zero initial angular velocity) retains the measurement noise of S1 and additionally assigns a non-zero initial angular velocity rad/s. The spacecraft thus possesses initial kinetic energy at the start of the maneuver, making the attitude reorientation more demanding than the rest-to-rest cases of S0 and S1.
Scenario S3 (parameter mismatch and external disturbance) layers model-plant mismatch and persistent external disturbance on top of the measurement noise of S1. The parameter mismatch perturbs three off-diagonal elements of the moment of inertia matrix (from nominal values
,
to
,
kg m
2), while the flexible coupling matrix
, natural frequencies
, and damping ratios
are all increased by
relative to their nominal values. The external disturbance is a multi-sinusoidal torque adopted from [
35]:
where
rad/s in this work. The initial angular velocity is zero. Scenario S3 represents the most demanding fault-free condition in the evaluation suite.
Scenario S4 (actuator faults) incorporates all the non-idealities of S3—measurement noise, parameter mismatch, and external disturbance—and adds a time-varying actuator fault profile. Each actuator experiences a partial loss-of-effectiveness fault at
s. Subsequently, at
s, these actuators are also subjected to an additive time-varying fault, which is injected into the spacecraft dynamics in an additive manner. The parameters in (
4) are selected as follows:
The efficiency loss and the additive bias together represent a severe fault condition relative to the maximum actuator torque N·m: the actuators lose half of their control effectiveness while being simultaneously subjected to a constant offset of N·m, corresponding to static actuator anomalies such as sudden installation misalignment, mechanical wear, circuit zero-point drift, or long-term aging-induced output bias. The sinusoidal term , introduces a time-varying component into the additive fault term, capturing the fact that actuator faults may not remain constant but can evolve over time—for instance, due to mechanical/electrical periodic perturbations such as reaction wheel bearing periodic friction, thruster jet pulsation, or electromagnetic circuit ripple.
This scenario represents the most challenging condition in the evaluation suite, testing the agents’ resilience to concurrent sensor noise, modeling errors, environmental disturbances, and actuator degradation.
Scenarios S0–S3 are designed to compare the performance of agent A and agent , demonstrating the benefit of incorporating the observer-estimated flexible modal state into the reward function. Scenario S4 serves as the validation platform for the adaptive fault-tolerant (AFT) control framework, where four control schemes are evaluated and compared under concurrent actuator faults.
5.3. Fault-Free Scenarios
The performance of agent
A and agent
under S0–S3 is visualized in
Figure 3,
Figure 4,
Figure 5 and
Figure 6. Each figure presents the time histories of the MRP attitude, angular velocity, control torque output, and flexible modal displacement for both agents in a side-by-side comparison.
Across all four scenarios, agent
A consistently exhibits noticeably cleaner trajectories with reduced oscillations and smaller vibration peaks, whereas agent
often produces persistent back-and-forth chattering in the control output accompanied by sustained flexible-mode excitation. This difference is a direct consequence of the
-augmented reward function (
13): by rewarding the suppression of the observer-estimated modal displacement during training, agent
A learns a policy that inherently avoids control actions that would excite the flexible modes. The resulting closed-loop behavior achieves simultaneous attitude regulation and vibration damping, yielding smoother state trajectories and a cleaner control effort. In contrast, agent
, trained without any vibration-related feedback (
12), optimizes only for attitude errors and may inadvertently induce and sustain flexible oscillations, which manifest as noisier signals and persistent torque chattering.
To provide a quantitative assessment, steady-state performance metrics (computed over
s) of both agents across S0–S3 are summarized in
Table 4. The metrics include the steady-state infinity norms of the MRP attitude (
) and angular velocity (
), the root mean square (RMS) of the flexible modal displacement vector norm (
RMS) as a measure of residual vibration energy, the settling time of the flexible modal displacement (
), and the RMS of the applied control torque (
u RMS) as a measure of control effort. Here
is defined as the earliest time after which the peak absolute modal displacement across all four flexible modes (
) remains permanently below
, i.e., the vibration settling time. “—” denotes failure to converge within the 200 s evaluation horizon.
The quantitative results in
Table 4 reveal several important findings. First, in terms of vibration suppression, agent
A consistently and substantially outperforms agent
across all four scenarios. Compared with agent
, agent
A reduces the
RMS by approximately
(S0),
(S1),
(S2), and
(S3). Correspondingly, compared with agent
, agent
A reduces
(vibration settling time) by
(S0); in all other scenarios, agent
fails to converge within the 200 s evaluation horizon. This demonstrates that the
-augmented reward function (
13) provides a robust and generalizable vibration suppression capability that persists even as non-idealities accumulate.
Second, a consistent trade-off between attitude pointing accuracy and vibration suppression is observed. Although agent A achieves better vibration damping across all scenarios, agent attains marginally better pointing accuracy in S0–S2, at the cost of severely degraded vibration damping. However, in S3, the most demanding fault-free scenario, agent A surpasses agent across all metrics including attitude pointing ( vs. ), indicating that the -guided policy learns a more robust control strategy that does not sacrifice pointing accuracy under compound uncertainties.
Third, the torque expenditure of agent A is moderately higher than that of agent across S1–S2 (e.g., vs. Nm in S1), reflecting the additional control effort required for active vibration suppression. In S3, however, agent A achieves substantially lower torque RMS ( vs. Nm), demonstrating that under compound uncertainties the -guided policy simultaneously delivers superior vibration attenuation and higher control efficiency. In S0, agent A achieves significantly lower torque RMS ( vs. Nm), indicating that in the absence of perturbations, the learned policy achieves both superior vibration attenuation and higher control efficiency.
Overall, the ablation study across S0–S3 confirms that incorporating the observer-estimated flexible modal displacement into the reward function enables the agent to strike a better balance between attitude pointing accuracy and vibration suppression. The resulting policy generalizes effectively across diverse non-ideal conditions at a modest increase in control effort under perturbed scenarios.
5.4. Fault Scenario
Given that agent A demonstrated superior vibration suppression and robust performance across S0–S3 in the ablation study, its trained policy weights are adopted as the TD3 nominal controller in this section. Four control architectures are compared under Scenario S4: (i) pure PD ( with , ), (ii) pure TD3, (iii) PD augmented with the AFT compensator (PD+AFT), and (iv) TD3 augmented with the AFT compensator (TD3+AFT).
To evaluate the adaptability of the proposed control framework under actuator fault conditions, Scenario S4 is employed, whose configuration is detailed in
Section 5.2. This simulation validates the efficacy of the composite control framework proposed in
Section 4.
The simulation outcomes of the four control architectures under S4 are illustrated in
Figure 7. To further provide a quantitative assessment, key performance metrics are summarized in
Table 5.
In
Table 5, all steady-state metrics are computed over
s. Integrated Torque RMS is computed over the full trajectory. Peak
and peak
capture the maximum values over the entire 200 s trajectory. Integrated
RMS is computed over the full trajectory as a proxy for total vibration energy. MRPs converging to
indicates the earliest time after which
remains below
(“—” denotes failure to converge within 200 s).
Several observations can be drawn from the quantitative comparison in
Table 5. First, AFT augmentation is essential for precise convergence under actuator faults: pure PD and pure TD3 both fail to bring the MRP error below
within the 200 s evaluation horizon, whereas TD3+AFT achieves this threshold at 74 s and PD+AFT at 94 s. The proposed TD3+AFT architecture delivers the best overall pointing accuracy, reducing
by a factor of approximately 43.3 relative to pure TD3 (
vs.
) and by a factor of approximately 50.0 relative to pure PD (
vs.
).
Second, TD3 consistently outperforms PD across all transient and steady-state vibration metrics. In steady state, TD3 achieves RMS of compared to for PD, representing a 38.5% reduction. Among AFT-augmented architectures, TD3+AFT achieves lower RMS ( vs. for PD+AFT). In the transient phase, TD3 and TD3+AFT tie for the lowest peak (both ) and integrated RMS (both ), confirming that the learned TD3 policy inherently produces smoother maneuvers with reduced flexible mode excitation.
Third, a comparison between the two AFT-augmented methods shows that TD3+AFT achieves better pointing accuracy, convergence speed, and vibration suppression: 30.5% lower steady-state ( vs. ), 21.3% faster MRP convergence (74 s vs. 94 s), and 11.1% lower steady-state RMS ( vs. ). PD+AFT retains marginal advantages in peak angular velocity (: vs. rad/s) and integrated torque RMS ( vs. N·m), though the differences are small. Overall, the learned TD3 nominal policy coordinates with the AFT compensator more effectively than the fixed-gain PD law, as the RL agent learns to generate control actions that complement the fault-tolerant layer rather than compete with it.
Regarding control effort, all four controllers operate within the
N·m actuator saturation limit stated in
Section 3.2. The steady-state torque RMS values are tightly clustered (
–
N·m), and the integrated torque RMS also remains within a narrow band (
–
N·m). The fact that TD3+AFT achieves substantially superior pointing and vibration performance while expending comparable control effort indicates that both the RL policy and the AFT layer contribute to control efficiency in complementary ways: the TD3 agent provides smooth nominal commands that minimize unnecessary actuation, while the AFT compensator injects targeted corrections only when faults are active.
6. Conclusions
This study focuses on the attitude maneuver problem of flexible spacecraft under external disturbances, flexible dynamics, and actuator faults. An integrated control framework combining TD3-based RL agent with an adaptive fault-tolerant compensator is proposed. Simulation results demonstrate that incorporating the observer-estimated flexible modal displacement into the reward function enables the RL agent to learn active vibration suppression while maintaining competitive attitude accuracy. Under actuator faults, the AFT compensator significantly improves control precision, and the composite TD3+AFT architecture achieves the best pointing accuracy, convergence speed, and vibration suppression among all configurations, while maintaining comparable control effort. The RL agent and AFT compensator operate in a complementary manner: the RL agent provides smooth nominal commands that inherently suppress flexible mode excitation, while the AFT layer injects targeted fault-tolerant corrections when needed.
Future work includes experimental validation on physical testbeds to assess performance under real sensing and actuation imperfections beyond the Gaussian noise models used in the present simulations. Additionally, extending the RL policy to support on-orbit incremental learning would enable real-time adaptation to evolving spacecraft parameters and fault conditions, further improving the controller’s generalization capability in complex operational environments.