Skip to Content
ElectronicsElectronics
  • Feature Paper
  • Article
  • Open Access

6 October 2026

22 Pages

Learning to Configure Passive RIS on High-Altitude Platform Stations for Energy-Efficient IoT Communications

,
and
1
School of Computer Science and Engineering, College of Digital Convergence, Yeungnam University, Gyeongsan 38541, Republic of Korea
2
Department of Electrical Engineering, Yeungnam University, Gyeongsan 38541, Republic of Korea
*
Authors to whom correspondence should be addressed.

Abstract

Internet of Things (IoT) devices operating in remote, rural, or disaster-affected areas often suffer from blocked or weak connections to terrestrial Base Stations (BSs). This paper proposes a High Altitude Platform Stations (HAPSs)-assisted uplink architecture in which a passive Reconfigurable Intelligent Surface (RIS) mounted on HAPS creates a virtual Line-of-Sight (LoS) link between ground IoT devices and the BS. To maximize Energy Efficiency (EE), we optimize the discrete RIS phase-shift configuration under dynamic wireless channel conditions. The resulting optimization problem is combinatorial and computationally expensive for real-time operation. To address this challenge, we formulate RIS phase-shift selection as a single-step Markov Decision Process (MDP); formally a contextual bandit; and develop a Deep Q-Network (DQN)-style action-value estimator that directly predicts near-optimal phase-shift codewords from channel state observations, eliminating the need for online exhaustive search. The proposed DQN is evaluated against a fixed-phase RIS scheme and and a codebook-constrained exhaustive-search benchmark. Simulation results show that the DQN converges within a few thousand training episodes, achieves EE within 10% of the exhaustive-search solution, and improves EE by more than 150% over the fixed-phase baseline while requiring only a single neural network, fixed-cost neural-network inference for online decision making, in contrast to the codebook-size-dependent search cost of exhaustive search.

1. Introduction

The Internet of Things (IoT) is projected to connect tens of billions of low-power sensing and actuation devices across agriculture, environmental monitoring, logistics, smart-grid metering, and disaster-response applications over the coming decade [1,2]. A large fraction of these devices are deployed in geographically remote, sparsely populated, or infrastructure-poor regions where terrestrial Base Station (BS) coverage is patchy, obstructed by terrain and foliage, or simply absent. Even where a terrestrial BS exists nearby, IoT devices are commonly battery-powered and transmit-power-limited, so any additional path loss incurred by Non-Line-of-Sight (NLoS) propagation, shadowing, or long link distances can push the device below its energy budget or below the BS sensitivity threshold. The result is a persistent uplink coverage-energy gap: data that is sensed at the edge often cannot be reliably and efficiently delivered to the network [3,4].
Two complementary technology trends have emerged to close this gap. The first is the use of Non-Terrestrial Networks (NTN)s; Low Earth Orbit (LEO) satellites, High Altitude Platform Stations (HAPS)s, and Uncrewed Aerial Vehicles (UAV); to provide wide-area, quasi-Line-of-Sight (LoS) aerial coverage that bypasses ground-level obstructions. Among these, HAPSs occupy a unique middle ground: stationed in the stratosphere at altitudes of roughly 17–25 km, they offer a footprint of hundreds to thousands of square km with propagation delay far lower than LEO satellites and quasi-static geometry that avoids the frequent handovers required by fast-moving satellite constellations [5,6,7]. The second trend is the use of Reconfigurable Intelligent Surfaces (RIS)s; planar arrays of low-cost, near-passive reflecting elements whose phase response can be electronically tuned; to reshape the wireless propagation environment without requiring active Radio Frequency (RF) chains, power amplifiers, or additional spectrum [8]. When these two trends are combined, HAPSs carrying a large passive RIS payload becomes an extremely attractive aerial relay: it can synthesize a controllable virtual LoS path between a ground device and a terrestrial BS by coherently combining the reflected signal, all while consuming only a small amount of control power per RIS element and without amplifying noise, unlike an active relay.
However, realizing the full potential of a HAPS-mounted passive RIS in an IoT uplink setting introduces a challenging real-time control problem. The RIS phase-shift vector must be configured so that the cascaded IoT-RIS-BS channel adds constructively at the BS receiver, which in principle requires Channel State Information (CSI) and a re-optimization of the phase-shift vector every time the device location, fading realization, or scheduled device changes. When the RIS employs a realistic discrete phase-shift resolution (e.g., 1–2 bits per element) and the number of elements M is large, the number of candidate configurations can be enormous, and finding the Energy Efficiency (EE)-maximizing configuration by exhaustive or alternating optimization at every coherence interval is computationally prohibitive for a large-scale HAPS-RIS system that must serve many devices with low latency. This motivates a data-driven, learning-based approach that can be trained offline and then executed online with a single low-complexity inference step; precisely the appeal of Deep Reinforcement Learning (DRL), and specifically of the Deep Q-Network (DQN) architecture, which learns an action-value function over a discrete action space (here, a codebook of candidate phase-shift vectors) from interaction with the environment.

1.1. Related Work

RIS-assisted wireless communication. RIS has attracted substantial research interest as a means of engineering the radio propagation environment at near-zero energy cost per element [9,10,11]. Early works established the fundamentals of passive beamforming design, showing that jointly optimizing the active precoder at the transmitter and the passive phase-shift matrix at the RIS can yield substantial gains in received SNR, sum rate, and EE relative to RIS-free baselines [9,12]. Subsequent studies extended RIS-assisted designs to multi-user systems, physical-layer security, Simultaneous Wireless Information and Power Transfer (SWIPT), and discrete phase-shift constraints that better reflect practical low-cost RIS hardware [10,13]. Because RIS elements are passive reflectors rather than active transceivers, RIS-assisted links are particularly attractive for energy- and hardware-constrained IoT nodes, which cannot bear the power or complexity overhead of an active relay.
We note that fully passive RIS is not the only option for mitigating the compounded path loss of a long cascaded IoT-HAPS-BS link: active-RIS architectures, which embed low-cost, low-power reflection-type amplifiers within each (or a subset of) unit cells to provide a small amount of signal amplification alongside phase control, have been proposed as an intermediate solution between fully passive surfaces and conventional active relays, and can partially offset the double path-loss penalty inherent to any passive reflecting surface [14]. Such designs trade a modest increase in per-element power consumption for improved effective SNR, and could be particularly relevant for the long HAPS-to-ground and HAPS-to-BS links considered in this paper. Recent circuit-level demonstrations support the premise that this power increase can be kept small: In [15], they design and fabricate an active RIS unit cell combining a phase-reconfigurable element with a compact reflection amplifier, characterizing the practical trade-off between amplifier gain and the phase shifter own insertion/return loss; In [16], they report a reflection amplifier exploiting tunnel-diode negative resistance that achieves 34 dB of gain from only 45 μW of bias power, illustrating the low end of the achievable power budget for per-element amplification; and in [17] and in [18] they develop circuit-based models and joint phase/gain optimization frameworks for tunnel-diode-based reflection amplification at the unit-cell level, deriving the achievable negative-resistance range and the associated per-element power-consumption model.
Beyond the point-to-point link-gain improvement exploited in this paper, RIS has more broadly been proposed as a core enabler of integrated and green Internet-of-Everything (IoE) architectures, where passive reconfigurable surfaces jointly support communication, sensing, and security functions while keeping the network energy footprint low [12,19]. The HAPS-mounted passive RIS considered here can, therefore, be viewed as an aerial instance of this broader multifunctional design philosophy, in which the same passive hardware that improves the uplink EE of a single device could, in principle, be time-shared or jointly reused for sensing or physical-layer security tasks.
Aerial and non-terrestrial RIS deployments. A parallel line of work has explored mounting RIS elements on aerial platforms, UAV, satellites, and HAPS; to obtain a controllable, near-LoS reflecting surface that is not constrained by ground-level clutter [20,21,22]. HAPSs in particular have been highlighted in the NTN literature as a cost-effective complement to terrestrial and satellite infrastructure, offering wide coverage, low round-trip latency compared with LEO constellations, and a quasi-static geometry that simplifies beam and phase-shift management [23,24]. Several studies have examined HAPS-mounted RIS or reflect-array designs for enhancing coverage and capacity in rural and disaster-recovery scenarios, but most existing analyses assume continuous phase-shift resolution and full instantaneous CSI, and rely on iterative alternating-optimization or semidefinite-relaxation solvers whose per-slot complexity limits their applicability to fast time-varying or large-scale deployments.
Learning-based RIS control. To reduce the online computational burden of RIS phase-shift optimization, a growing body of work has applied Machine Learning (ML) and Reinforcement Learning (RL) techniques to learn phase-shift policies directly from channel observations [25,26]. DQNs, in particular, are well suited to systems with a finite, discretized phase-shift codebook, since the RIS control problem can then be cast as selecting one action (codeword) from a finite set based on the current channel state, which matches the standard DQN formulation for discrete-action Markov Decision Process (MDP) [27,28]. Related work has used DQN and other DRL algorithms (e.g., actor-critic, and multi-agent RL variants) to optimize RIS phase shifts for sum-rate maximization, secrecy-rate maximization, and EE in terrestrial RIS-assisted networks [25,26], generally reporting that learned policies approach the performance of exhaustive or alternating-optimization benchmarks while incurring substantially lower online inference cost. However, the majority of these studies focus on ground-level RIS deployments and multi-antenna cellular users rather than aerial HAPS–RIS relays serving low-power, single-antenna IoT devices, and comparatively few works jointly examine the effect of RIS size, transmit power, and network load on the EE gap between a learned policy and the true combinatorial optimum.
Positioning of this work. This paper differs from the above literature in three respects. First, we specifically target the HAPS-mounted passive RIS uplink scenario for energy- and hardware-constrained IoT devices, where the direct IoT-to-BS link is assumed blocked or too weak, and the RIS is the sole means of establishing connectivity. Second, we adopt a lightweight DQN architecture trained entirely on cascaded-channel state features (magnitude and phase of the effective per-element channel), and we explicitly benchmark it not only against a RIS-agnostic fixed-phase baseline but also against a true codebook-constrained exhaustive-search upper bound evaluated over the same discrete phase-shift codebook, allowing us to quantify the exact optimality gap of the learned policy rather than relying on a heuristic baseline alone. Third, we conduct a broad sensitivity study across IoT transmit power, RIS element count M (with full retraining at each M), number of concurrently scheduled devices K, and IoT-to-HAPS horizontal distance, to characterize how the DQN-to-upper-bound gap and the DQN-to-fixed-phase gain evolve across the operating envelope of a realistic HAPS-RIS-IoT deployment.

1.2. Contributions

The main contributions of this paper are summarized as follows.
  • We formulate the online RIS phase-shift selection problem as a single-step MDP in which the state is a normalized representation of the cascaded IoT-RIS-BS channel, the action is the selection of one phase-shift codeword from a fixed codebook, and the reward is the instantaneous EE achieved under the selected codeword. We show that this formulation reduces the general sequential RIS-control problem to a contextual-bandit-like decision that a DQN-style action-value estimator can learn efficiently, while noting explicitly that the resulting decision problem is a contextual bandit rather than a temporally-coupled control problem that a DQN agent can learn efficiently.
  • We design and train a DQN agent—implemented as a two-hidden-layer multilayer perceptron with ReLU activations, trained with experience replay and the Adam optimizer—that maps the observed cascaded channel state directly to the EE-maximizing phase-shift codeword in a single forward pass, eliminating the need for online combinatorial search or CSI-based convex optimization at inference time.
  • We benchmark the proposed DQN policy against (i) a fixed, RIS-agnostic all-zero phase-shift configuration, and (ii) an exhaustive-search policy that evaluates the full discrete codebook and constitutes a codebook-constrained exhaustive-search upper bound. Through extensive Monte Carlo simulations, we show that the trained DQN converges within a few thousand training episodes and achieves EE within approximately 10% of the codebook-constrained exhaustive-search upper bound while improving EE by over 150% relative to the fixed-phase baseline, while replacing the sequential per-codeword search of exhaustive search with a single parallelizable forward pass, at comparable or lower cost depending on the codebook size and target inference hardware, at a fraction of the online computational cost.

1.3. Paper Organization

The remainder of this paper is organized as follows. Section 2 describes the system model, including the network topology, channel model, RIS phase-shift model, and the EE performance metric. Section 3 formulates the EE-maximization problem and its MDP reformulation. Section 4 presents the proposed DQN-based phase-shift optimization framework, including the network architecture, the training algorithm, and a complexity analysis. Section 5 describes the fixed-phase and exhaustive-search benchmark schemes. Section 6 presents the simulation setup and a detailed discussion of the numerical results. Finally, Section 7 concludes the paper.

2. System Model

2.1. Network Topology

We consider an uplink IoT communication scenario consisting of three logical entities, illustrated in Figure 1: (i) a set of single-antenna, battery-powered ground IoT devices distributed over a wide geographic area at horizontal distances between d min and d max from the sub-platform point; (ii) a passive RIS with M reconfigurable reflecting elements, mounted on a HAPS hovering at a fixed altitude h HAPS ; and (iii) a single-antenna terrestrial BS located at a horizontal distance d bs from the HAPS sub-platform point. We assume that the direct IoT-to-BS link is either fully blocked (e.g., by terrain, foliage, or the curvature of the Earth at long range) or subject to such severe path loss that it cannot reliably close the link budget at the IoT device’s power budget; this is a common and realistic assumption in the RIS literature for scenarios in which the RIS is deployed precisely because the direct link is unusable [9]. Consequently, all uplink data must traverse the cascaded IoT-RIS-BS path.
Figure 1. System model illustration.
The RIS is passive: each element re-radiates the incident signal with a tunable phase shift but without power amplification, so the only energy expended by the RIS is a small control/biasing power per element (typically on the order of 1 mW for varactor- or PIN-diode-based unit cells). The HAPS is assumed quasi-stationary over the timescale of interest, consistent with station-keeping HAPS platforms that maintain their position within a few hundred meters for hours to days [23,29], so the HAPS-to-BS geometry (and hence the corresponding path loss) is fixed, while the IoT-to-RIS geometry varies with the device being served.
Remark on phase coherence versus station-keeping. We emphasize that station-keeping accuracy at the scale of hundreds of meters governs only the large-scale path-loss and steering-angle terms; it does not by itself guarantee phase coherence of the reflected signal, since at the carrier frequency f c = 2  GHz used the wavelength is λ = c / f c ≈ 15  cm, so HAPS position or attitude perturbation as small as a fraction of λ can shift each RIS element effective phase by a non-negligible fraction of 2 π and thereby degrade the coherent combination even while the platform remains within its nominal station-keeping envelope. The present model implicitly assumes that such sub-wavelength position/attitude jitter is either negligible or is tracked and compensated by the RIS control loop on a timescale faster than the channel-observation interval used to compute the state; neither assumption is validated in this paper.

2.2. Channel Model

Let h ∈ C M × 1 denote the channel between a given IoT device and the M-element RIS, and let g ∈ C M × 1 denote the channel between the RIS and the terrestrial BS. Both links are modeled as Rician fading channels, reflecting the fact that the RIS is elevated above ground-level clutter and, therefore, experiences a strong, geometry-dependent LoS component together with a weaker diffuse scattering component. Denoting the Rician K-factor by K f , the IoT–RIS channel is generated as:
h = 1 PL 1 K f K f + 1 a ( θ iot ) + 1 K f + 1 n 1 ,
and the RIS–BS channel is generated analogously as:
g = 1 PL 2 K f K f + 1 a ( θ bs ) + 1 K f + 1 n 2 ,
where, n 1 , n 2 ∼ CN ( 0 , I M ) are independent complex Gaussian vectors representing the NLoS scattering component, and a ( θ ) is the LoS steering vector of a uniform linear RIS array with half-wavelength element spacing d elem = λ / 2 :
[ a ( θ ) ] m = exp j 2 π λ m d elem sin θ , m = 0 , 1 , … , M − 1 ,
with, λ = c / f c the carrier wavelength. The elevation angles are computed from the platform geometry as θ iot = arctan ( d iot / h HAPS ) for the IoT device and θ bs = arctan ( d bs / h HAPS ) for the BS, where d iot and d bs are the respective horizontal ground distances from the HAPS sub-platform point. The large-scale path loss terms PL 1 and PL 2 in (1) and (2) follow a log-distance model referenced to a distance d 0 :
PL ( d ) [ dB ] = PL 0 + 10 α log 10 d d 0 ,
where, PL 0 is the reference path loss at distance d 0 , α is the path-loss exponent for the air-to-ground link, and d is the three-dimensional slant distance, computed as d = d horiz 2 + h HAPS 2 for both the IoT–RIS link ( d horiz = d iot ) and the RIS–BS link ( d horiz = d bs ).
All numerical results in Section 6 use a single fixed Rician factor K f = 6 (Table 1), representative of an elevated RIS with a dominant, geometry-driven LoS component. The qualitative behavior of the proposed framework is expected to be robust to this choice: lowering K f increases the relative weight of the diffuse term n 1 , n 2 , which (i) reduces the achievable array gain of any fixed phase-shift codeword, including the exhaustive-search optimum, so the absolute EE of all three schemes would shift downward, and (ii) increases the channel-to-channel variability that the DQN state vector must capture, which we expect to modestly widen the DQN-to-exhaustive-search gap because a fixed codebook becomes less able to closely match an increasingly random channel. Conversely, a larger K f should tighten the gap, since the optimal codeword becomes closer to a deterministic function of the IoT/BS geometry alone.
Table 1. Default System and Training Parameters.

2.3. RIS Phase-Shift Model

Each RIS element m ∈ { 1 , … , M } applies a discrete phase shift ϕ m drawn from a uniformly quantized set of L phase levels:
ϕ m ∈ Φ = 0 , 2 π L , 4 π L , … , 2 π ( L − 1 ) L ,
which, reflects realistic low-cost RIS hardware implemented with a finite number of bias states (e.g., L = 4 corresponds to 2-bit phase quantization per element). The joint phase-shift configuration of the RIS is denoted by θ = [ ϕ 1 , … , ϕ M ] T ∈ Φ M , and the corresponding RIS reflection matrix is Θ = diag ( e j ϕ 1 , … , e j ϕ M ) . Because Φ M grows exponentially with M, we restrict the RIS to select its configuration from a fixed codebook C = { θ 1 , … , θ A } ⊂ Φ M of size A, generated offline by independently and uniformly sampling each of the A − 1 non-trivial codewords’ M phase entries from Φ (Monte Carlo codebook design), with θ 1 = 0 reserved as a null/fixed configuration that requires no RIS control at all. We fix the codebook size to A = 64 across all experiments, for consistency of the DQN output-layer dimension and of the exhaustive-search online cost across the RIS-size sweep; we discuss the resulting codebook-coverage caveat below.
Remark on hardware non-idealities. The reflection model Θ = diag ( e j ϕ 1 , … , e j ϕ M ) used throughout this paper assumes an ideal unit-modulus reflection coefficient at every discrete phase state ϕ m ∈ Φ . In practical PIN-diode- or varactor-based RIS unit cells, the achievable reflection amplitude is generally phase-state-dependent, and additional circuit-level non-idealities such as insertion loss, mutual coupling between adjacent elements, and quantization/bias noise can further reduce the effective array gain relative to the ideal model assumed. Recent circuit-level studies of these non-idealities and their impact on system-level communication metrics for RIS could be incorporated into the channel model by replacing the ideal e j ϕ m term with a state-dependent complex gain β m ( ϕ m ) e j ϕ m , β m ( ϕ m ) ∈ ( 0 , 1 ] , at the cost of an enlarged/non-uniform effective codebook. We adopt the ideal model in this paper for tractability and comparability with the RIS-control literature cited in Section 1.1. Recent work has begun to close this gap directly: In [30], an explicit link between unit-cell circuit parameters and system-level communication metrics for both continuous and quantized RIS phase states, quantifying the additional performance loss that circuit-level non-idealities introduce beyond ideal phase quantization alone; and in [31] show, for RIS-assisted hybrid mmWave MIMO systems with joint transceiver and RIS hardware impairments, that such impairments induce an irreducible mean-square-error floor and a corresponding average-rate saturation effect in the high-SNR regime.

2.4. Signal Model and Achievable Rate

Under configuration θ , the cascaded IoT-RIS-BS channel is:
η ( θ ) = ∑ m = 1 M e j ϕ m h m g m = g T Θ h ,
where, h m and g m are the m-th entries of h and g , respectively. The effective channel power gain is | η ( θ ) | 2 , and the received SNR at the BS is:
SNR ( θ ) = P t | η ( θ ) | 2 σ 2 ,
where, P t is the IoT device transmit power and σ 2 = N 0 · B · 10 NF / 10 is the thermal-plus-receiver-noise power referred to bandwidth B, thermal noise N 0 , and BS receiver noise figure NF . The achievable Shannon rate under configuration θ is then:
R ( θ ) = B log 2 1 + SNR ( θ ) .

2.5. Power Consumption and Energy-Efficiency Metric

The EE metric adopted in this paper is a link-level, per-device quantity that accounts for the power expended at the two physical entities that lie on the data path between a given IoT device and the BS, the IoT device itself, and the RIS elements it is reflected through. Specifically, the total power comprises the RF transmit power P t radiated by the IoT device, the baseline circuit power P c of the IoT device transceiver hardware, and the aggregate RIS control power M P ris , where P ris is the power consumed by biasing a single RIS element into its selected phase state. We deliberately exclude from this link-level metric the energy consumed by CSI acquisition/feedback, RIS control-link signaling, DQN inference at the HAPS payload, and other HAPS-side baseband processing, because these are shared, amortized costs incurred once per coherence interval and allocated across all devices scheduled through the same RIS in that interval, rather than costs attributable to any single device uplink transmission. Consequently, EE ( θ ) should be read as a device-level EE conditioned on a given RIS configuration, not as a system-level EE that internalizes the shared control-plane overhead; we make this distinction explicit here to avoid ambiguity, and we quantify the CSI-acquisition overhead separately in the new remark added to Section 3.2. The total power consumed on this link-level boundary is, therefore:
P tot = P t + P c + M P ris ,
and the EE (in bits/Joule) achieved under RIS configuration θ is defined as:
EE ( θ ) = R ( θ ) P tot .
Because P tot in (9) does not depend on the chosen configuration θ for a fixed M, maximizing EE ( θ ) over θ ∈ C is equivalent, for a fixed M, to maximizing the achievable rate R ( θ ) , i.e., to maximizing the cascaded channel gain | η ( θ ) | 2 ; however, P tot does depend on M, which is why increasing the RIS size trades off improved channel gain against increased RIS control power, and this trade-off is a central quantity of interest when EE (rather than raw throughput) is the design objective. We stress that a full system-level EE—one that also charges CSI pilot/feedback overhead, RIS control-signaling power, and DQN (or exhaustive-search) inference energy against the delivered throughput—is a distinct and in general smaller quantity than EE ( θ ) . Because the control-plane overhead differs qualitatively between the exhaustive-search scheme and the trained DQN which requires the same CSI observation but only a single forward pass, incorporating it explicitly would likely widen, not narrow, the practical advantage of the DQN policy.

3. Problem Formulation

3.1. EE Maximization Problem

For a given channel realization ( h , g ) , the RIS controller (co-located with, or in a control link to, the HAPS payload) seeks the codeword θ ⋆ ∈ C that maximizes the IoT device uplink EE:
θ ⋆ = arg max θ ∈ C EE ( θ ) = arg max θ ∈ C B log 2 1 + P t | g T Θ h | 2 / σ 2 P t + P c + M P ris .
Problem (11) is a discrete, combinatorial optimization over the finite but potentially large codebook C . When A = | C | is small, (11) can be solved exactly by exhaustive search, evaluating EE ( θ ) for every θ ∈ C and selecting the maximizer; this is the approach used by the exhaustive-search upper-bound benchmark. However, exhaustive search must be repeated every time the channel changes—i.e., every time a different IoT device is scheduled, or the same device channel changes due to fading—so its online complexity scales as O ( A ) channel-gain evaluations per decision. For a HAPS–RIS system that must serve many devices with low latency, and for larger, higher-resolution codebooks that would be needed to approach the true continuous-phase optimum, this per-decision cost becomes a practical bottleneck. This motivates replacing the online search in (11) with a function approximator that has been trained offline to map a channel observation directly to a near-optimal codeword, which is the role played by the DQN agent proposed in this paper.

3.2. MDP Reformulation

We reformulate the per-slot decision problem (11) as an MDP defined by the tuple ( S , A , P , r , γ ) , where the state and action spaces are defined below and the environment is contextual: each episode presents a fresh, independently drawn channel realization, so that the decision problem reduces to a sequence of independent single-step contextual-bandit decisions rather than a temporally coupled control problem, which is consistent with the fact that RIS phase-shift decisions for a newly scheduled device do not causally affect the channel or reward of subsequently scheduled devices.
State space. At the beginning of each decision episode, the environment draws an IoT device location uniformly at random within [ d min , d max ] and generates the corresponding channel realization ( h , g ) according to (1) and (2). The agent observes a state vector constructed from the element-wise cascaded channel h ⊙ g ∈ C M (where ⊙ denotes the Hadamard product), rather than from h and g separately, since it is precisely this element-wise product that determines how each RIS element phase shift affects the coherent combination in (6). Specifically, letting c = h ⊙ g , the state is:
s = | c | ∥ | c | ∥ 2 ; ∠ c π ∈ R 2 M ,
i.e., the concatenation of the ℓ 2 -normalized element-wise magnitudes and the π -normalized element-wise phase angles of c . Normalizing the magnitude vector removes the (irrelevant to the shape of the optimal phase pattern) overall path-loss scale from the state representation, while normalizing the phase angles to [ − 1 , 1 ] keeps all input features on comparable numerical ranges, both of which are standard practice for stabilizing neural-network training [27].
Remark on CSI acquisition overhead. Both the exhaustive-search benchmark and the proposed DQN policy are evaluated under the common assumption of perfect, instantaneous knowledge of the cascaded element-wise channel c = h ⊙ g used to form the state s . In practice, because the RIS is passive and has no RF chains of its own, estimating the M individual cascaded coefficients requires either (i) a dedicated channel-estimation protocol in which the RIS elements are toggled through a set of known probing patterns while the IoT device transmits pilots, at a training overhead that grows with M (and, for multi-user scheduling, with the number of devices sharing the RIS), or (ii) compressive/parametric estimation techniques that exploit the LoS-dominated steering-vector structure to reduce this overhead below O ( M ) pilots. This pilot and feedback cost is common to both benchmarks compared in this paper and is, therefore, orthogonal to the relative DQN-vs-exhaustive-search comparison that is our main focus; however, it is not negligible in absolute terms for a HAPS serving many low-power, duty-cycled IoT devices, and it is not included in the online-inference complexity.
Action space. The action space is the codebook index set A = { 1 , 2 , … , A } , where selecting action a corresponds to applying RIS configuration θ a ∈ C .
Reward function. Upon taking action a in state s (equivalently, applying configuration θ a to channel ( h , g ) ), the environment returns the (scaled) instantaneous EE achieved:
r ( s , a ) = EE ( θ a ) ρ ,
where, ρ is a fixed reward-scaling constant used purely for numerical conditioning of the neural network gradient updates.
Episodic, single-step structure and discount factor. Because each episode presents an independently drawn channel and terminates immediately after one action is taken (there is no state transition induced by the agent own action; the next device channel is independent of the current decision), the return of episode t collapses to the immediate reward, G t = r ( s t , a t ) , and the effective discount factor is γ = 0 . This special structure means the MDP is, formally, a contextual bandit.
Remark on the DQN/contextual-bandit formulation. We retain the DQN architecture and training loop for this single-step decision problem for three reasons, rather than adopting a simpler supervised-regression or lookup-table alternative. First, casting the problem as a contextual bandit solved by a neural action-value estimator lets us reuse standard, well-understood DQN machinery with no architectural change other than removing the target network and setting γ = 0 ; this keeps the method a direct special case of, and readily extensible to, the temporally-coupled multi-device/mobility scenarios, without requiring a second, unrelated pipeline to be developed later. Second, unlike a static lookup table, the learned Q ( s , a ; w ) is a continuous function of the 2 M -dimensional normalized channel state and, therefore, interpolates across the continuum of channel realizations induced by the random IoT device location and Rician fading, which a table indexed by discretized channel bins cannot do without an exponentially growing table size as M increases. Third, framing action selection as arg max a Q ( s , a ) gives a direct, drop-in replacement for the exhaustive-search arg max θ ∈ C EE ( θ ) , which simplifies the complexity comparison.
Remark on the equivalence to supervised reward regression. Since, γ = 0 and every episode draws an independent channel realization, the temporal-difference, for the taken action is simply the observed reward itself, with no bootstrapping term. Algorithm 1 is, therefore, as executed, already mathematically equivalent to an online supervised regressor that fits Q ( s , a ; w ) to the scalar label r ( s , a ) = EE ( θ a ) / ρ for the single action a sampled under an ε -greedy behavior policy, using experience replay only to decorrelate consecutive minibatch samples. Framing the problem as a DQN rather than as supervised regression, therefore, contributes no additional representational power in this single-step setting; the two are the same estimator trained with the same loss. What the DQN adds is (i) the ε -greedy schedule, which controls which state-action pairs are observed during training and, therefore, the coverage of the learned function over S × A , and (ii) an architecture and training loop that requires no modification when γ > 0 .
Algorithm 1 DQN Training for RIS Phase-Shift Selection.
  1:
Input: system parameters ( C , M, A); training options ( N ep , H 1 , H 2 , N buf , N batch , ε start , ε end , η lr , ρ )
  2:
Initialize Q-network weights w (He initialization); initialize Adam moment estimates to zero
  3:
Initialize replay buffer D ← ∅ with capacity N buf
  4:
for episode t = 1 , … , N ep  do
  5:
Draw IoT distance d t ∼ Unif [ d min , d max ] ; generate ( h t , g t ) via (1)–(2)
  6:
Compute state s t via (12); compute ε t via (17)
  7:
if  rand ( ) < ε t  then
  8:
a t ← random action in { 1 , … , A }                                                                    ▹ explore
  9:
else
10:
a t ← arg max a Q ( s t , a ; w )                                                                               ▹ exploit
11:
end if
12:
Compute EE ( θ a t ) via (10); r t ← EE ( θ a t ) / ρ
13:
Push ( s t , a t , r t ) into D (overwrite oldest if full)
14:
if  | D | ≥ N batch  then
15:
Sample mini-batch { ( s i , a i , r i ) } i = 1 N batch ∼ D uniformly
16:
Forward-pass batch through Q ( · , · ; w ) (vectorized, (15))
17:
Compute loss (16) (masked to taken actions only)
18:
Update w via one Adam step with learning rate η lr
19:
end if
20:
[Logging only] Evaluate greedy DQN, fixed-phase, and exhaustive-search EE on ( h t , g t )
21:
end for
22:
Output: trained Q-network Q ( · , · ; w )

3.3. Objective

The agent goal is to learn a (deterministic, greedy) policy π : S → A that maximizes the expected reward over the distribution of IoT device locations and fading realizations:
π ⋆ = arg max π E ( h , g ) r s , π ( s ) ,
which, given the reward definition (13), is equivalent to learning a channel-to-codeword mapping that approximates the per-slot optimizer of (11) without performing an online search over C .

4. Proposed DQN-Based Phase-Shift Optimization

4.1. Q-Function Approximation

Standard Q-learning seeks the optimal action-value function Q ⋆ ( s , a ) = E [ r ( s , a ) ] (using γ = 0 , from which the optimal policy follows as π ⋆ ( s ) = arg max a Q ⋆ ( s , a ) . Since the state space S = R 2 M is continuous, we approximate Q ⋆ ( s , a ) with a deep neural network Q ( s , a ; w ) parameterized by weights w , following the DQN framework of [27]. The network takes the 2 M -dimensional state vector s of (12) as input and outputs A Q-values, one per codebook entry, so that action selection requires only a single forward pass and an arg max over A scalar outputs.

4.2. Network Architecture

The Q-network is implemented as a fully connected multilayer perceptron (MLP) with two hidden layers:
z 1 = W 1 s + b 1 , a 1 = ReLU ( z 1 ) , z 2 = W 2 a 1 + b 2 , a 2 = ReLU ( z 2 ) ,   q = W 3 a 2 + b 3 ,
where, W 1 ∈ R H 1 × 2 M , W 2 ∈ R H 2 × H 1 , and W 3 ∈ R A × H 2 , with H 1 = H 2 = 64 hidden units per layer in our configuration, and ReLU ( x ) = max ( x , 0 ) applied element-wise. The output layer is linear (no activation), consistent with standard DQN design, since q represents unconstrained Q-value estimates. Weights are initialized as, W ℓ ∼ N ( 0 , 2 / fan - in ℓ ) , appropriate for ReLU networks, and biases are initialized to zero.

4.3. Experience Replay and Training

To break the correlation between consecutive samples and to reuse past experience efficiently, the agent maintains a circular replay buffer D of capacity N buf that stores tuples ( s i , a i , r i ) collected during training. At each training episode t:
  • A new IoT device location and channel realization ( h t , g t ) are drawn, and the state s t is computed via (12).
  • With probability ε t , a random action a t ∼ Unif { 1 , … , A } is taken; otherwise the greedy action a t = arg max a Q ( s t , a ; w ) is taken.
  • The environment returns reward r t per (13), and the transition ( s t , a t , r t ) is pushed into the replay buffer D .
  • Once | D | ≥ N batch , a mini-batch of N batch transitions is sampled uniformly at random from D , and the network weights w are updated by one step of Adam [32] (learning rate η lr ) on the squared temporal-difference loss restricted to the taken actions:
    L ( w ) = 1 N batch ∑ i = 1 N batch Q ( s i , a i ; w ) − r i 2 ,
    where, since γ = 0 , the target for the taken action is simply the observed reward r i itself, and no separate target network is required (the usual DQN target network exists to stabilize bootstrapped multi-step targets, which are not present in this single-step formulation). The gradient of (16) is backpropagated only through the Q ( s i , a i ; w ) term actually taken for each sample, leaving the other A − 1 output units of that sample forward pass untouched by the update, consistent with standard DQN loss masking.

4.4. Exploration Schedule

The exploration rate ε t follows a linear decay from an initial value ε start to a floor value ε end over the first ⌊ 0.8 N ep ⌋ training episodes:
ε t = max ε end , ε start − ( ε start − ε end ) · t ⌊ 0.8 N ep ⌋ ,
after which ε t = ε end for the remaining 20 % of training, ensuring the agent spends the majority of early training exploring the codebook broadly (since with ε start = 1 the first decisions are purely random) while spending later training predominantly exploiting its learned policy, with a small residual exploration rate ε end > 0 retained throughout to continue refining the Q-estimates of rarely visited state-action regions.

4.5. Training Algorithm

Algorithm 1 summarizes the complete training procedure. On every episode, in addition to updating the network, we also evaluate (without updating the network) the current greedy DQN policy, the fixed-phase baseline, and the codebook-constrained exhaustive-search upper bound on the same freshly drawn channel realization; this per-episode evaluation is used purely for logging the training convergence behavior and has no effect on the gradient updates.

4.6. Online Inference and Complexity Analysis

After training, the DQN agent is deployed by fixing w and executing the greedy policy π ( s ) = arg max a Q ( s , a ; w ) online. The per-decision inference cost of the DQN policy is a single forward pass through the MLP of (15), which requires:
C DQN = O 2 M H 1 + H 1 H 2 + H 2 A ,
multiply-accumulate operations, independent of any re-optimization over the codebook. In contrast, the exhaustive-search benchmark must, for every new channel realization, evaluate EE ( θ a ) for all a = 1 , … , A , each evaluation requiring O ( M ) operations to compute the cascaded channel (6), for a total online cost of:
C ES = O ( A M ) .
For the configuration used in our simulations ( M = 8 , A = 64 , H 1 = H 2 = 64 ), C DQN ≈ 2 · 8 · 64 + 64 · 64 + 64 · 64 = 9216 multiply-accumulates versus C ES ≈ 64 · 8 = 512 complex-valued channel evaluations (each itself requiring several real multiply-accumulates for the complex product and magnitude-squared operation). We note that for the specific default configuration used in this paper ( M = 8 , A = 64 , H 1 = H 2 = 64 ) the raw operation count of C DQN ≈ 9216 multiply-accumulates is in fact larger than the C ES ≈ 64 × 8 = 512 complex channel-gain evaluations required by exhaustive search; a single codeword evaluation is cheap for small M, so at this operating point exhaustive search is not computationally disadvantaged relative to the DQN in terms of raw arithmetic. Moreover, C DQN itself contains an H 2 A output-layer term and, therefore, also scales linearly with the codebook size A, exactly as C ES = O ( A M ) does; enlarging or refining the codebook changes the DQN output dimension and requires retraining the final layer (at minimum) rather than leaving inference cost unchanged. For a fixed, already-trained network, online DQN inference replaces A sequential per-codeword channel-gain evaluations, each requiring the element-wise product and complex magnitude-squared operations, with a single, fully parallel matrix-vector forward pass whose cost is dominated by H 1 H 2 , once A ≲ H 1 . The advantage we can substantiate is: (i) the DQN requires no re-derivation or re-evaluation for each of the A codewords online; all A codewords are implicitly compiled into the trained weights w ; so its cost does not require sequentially materializing Θ a h for a = 1 , … , A ; and (ii) for scenarios in which A must grow substantially to approach the continuous-phase optimum, or in which the true optimizer is a continuous alternating-optimization/SDR solver rather than a finite-codebook search, the fixed-topology DQN forward pass remains a single cheap inference at the cost of retraining offline when the design changes.

5. Benchmark Schemes

To quantify the effectiveness of the proposed DQN-based phase-shift selection policy, we compare it against two benchmark schemes that bound its performance from below and from above, respectively.

5.1. Fixed Phase Shift (Lower-Complexity Baseline)

The fixed-phase baseline applies a single, channel-independent RIS configuration θ 1 = 0 (all-zero phase shift) to every device and every channel realization, i.e., it never adapts to the instantaneous channel state at all. This represents the simplest possible RIS deployment—effectively treating the RIS as an uncontrolled, static reflector—and serves as a reference point that isolates the pure gain attributable to intelligent, channel-adaptive phase-shift control (whether by exhaustive search or by the learned DQN policy) from the passive reflection gain that the RIS provides even without any optimization. Its EE is obtained directly from (10) with θ = θ 1 .

5.2. Exhaustive Search (Upper Bound)

The exhaustive-search benchmark evaluates EE ( θ a ) for every codeword θ a ∈ C , a = 1 , … , A , on the current channel realization and selects the true maximizer:
θ ES = arg max θ a ∈ C EE ( θ a ) .
Because (20) is solved exactly (rather than approximately) over the same discrete codebook C available to the DQN agent, the exhaustive-search EE is, by construction, an upper bound on the EE achievable by any policy restricted to selecting a codeword from C —including the DQN policy—for every channel realization. This is what makes exhaustive search a rigorous “upper bound” benchmark, as opposed to a merely strong heuristic: no codebook-constrained policy can outperform it on average. The online complexity is, C ES = O ( A M ) per decision as derived in (19), is, however, incurred at every channel realization, which is the key practical drawback that the DQN policy is designed to eliminate.

6. Simulation Setup and Numerical Results

6.1. Simulation Environment

All results in this section are obtained from a full re-implementation of the system model of Section 2, the MDP/DQN training procedure of Section 4 (Algorithm 1), and the benchmark schemes of Section 5, executed with a fixed random seed for reproducibility. The default simulation parameters, matching a realistic sub-6 GHz HAPS-assisted IoT deployment, are summarized in Table 1.
Codebook coverage caveat. We emphasize that A = 64 is held fixed across the entire M ∈ { 4 , 8 , 16 , 32 , 64 } sweep for consistency of the DQN architecture and of the exhaustive-search cost across the sweep. For M = 64 and L = 4 phase levels, the full discrete configuration space Φ M contains 4 64 ≈ 3.4 × 10 38 codewords, so the A = 64 randomly sampled codewords evaluated represents an infinitesimally small fraction of that space ( A / L M ≈ 1.9 × 10 − 37 at M = 64 ). Both the DQN and the exhaustive-search benchmark are, therefore, compared only within this fixed, small codebook at every value of M. Enlarging A with M would be required to make a fair claim about scalability of the achievable EE itself, as opposed to scalability of the DQN-to-exhaustive-search gap within a fixed small codebook.
We further acknowledge that every result in Section 6 uses a single realization of the Monte-Carlo-sampled codebook C per value of M, so the reported EE, the DQN-to-exhaustive-search gap, and the DQN-to-fixed-phase gain are all conditioned on that specific codebook draw. Because C is shared by both the exhaustive-search benchmark and the DQN, a codebook that happens to sample the state space poorly would depress both curves together, which is consistent with the gaps we report remaining small and stable across the sweeps used in results; however, this does not rule out that the absolute EE values, and possibly the size of the residual gap, are sensitive to the particular codebook realization.

6.2. Convergence of the DQN Agent

Figure 2 shows the evolution of the EE achieved by the greedy DQN policy over the course of training, alongside the codebook-constrained exhaustive-search upper bound and the fixed-phase baseline evaluated on the same per-episode channel realization. At the start of training (high exploration rate ε t ≈ 1 ), the DQN greedy-policy EE is highly variable and, on average, far below the upper bound, since the Q-network has not yet learned a meaningful mapping from channel state to codeword. As training proceeds and ε t decays according to (17), the DQN moving-average EE climbs steadily and tracks the exhaustive-search upper-bound curve increasingly closely, while remaining consistently above the fixed-phase baseline once a modest number of episodes have elapsed. By the final training episodes, the DQN curve has largely converged and sits close to, but consistently slightly below, the upper-bound curve; exactly the behavior expected of a function approximator that is learning to imitate the exhaustive-search decision rule from reward feedback alone.
Figure 2. Convergence of the proposed DQN agent; compared against the codebook-constrained exhaustive-search upper bound and the fixed-phase baseline evaluated on the same per-episode channel realizations.

6.3. EE Versus IoT Transmit Power

Figure 3 shows the average EE of the three schemes as the IoT transmit power P t is varied from 0 to 26 dBm. Results are averaged over 150 independent channel realizations, using the same channel set for all schemes and power levels, while the trained DQN agent is kept fixed (i.e., not retrained for each P t ). All three schemes exhibit a concave EE-versus-power relationship, with a peak around 14–16 dBm. This behavior follows from (7) and (10): at low transmit powers, increasing P t significantly improves the achievable rate, causing EE to rise. At higher powers, however, the rate increases only logarithmically while total power consumption continues to grow linearly, resulting in diminishing EE and an eventual decline beyond the optimal operating point. This highlights the well-known trade-off between throughput and energy consumption, indicating that operating at maximum transmit power is not EE-optimal. The DQN and exhaustive-search curves remain closely aligned across the entire power range and attain their maxima at nearly the same transmit power, which is expected rather than a demonstration of neural-network generalization; P t enters EE ( θ ) only as a common multiplicative/additive scaling of the SNR and of P tot across all codewords θ ∈ C for a fixed channel realization, so the ranking of codewords by EE—and hence the arg-max codeword selected by both exhaustive search and, ideally, the DQN—does not depend on P t at all. The state vector fed to the DQN does not include P t , so no policy generalization across P t is actually being exercised by this experiment; sweeping P t with a network trained at a single reference power instead serves as a consistency check that the trained policy codeword ranking remains close to optimal once re-evaluated at operating points other than the one used implicitly during training, and as a system-level EE-vs-power characterization in its own right. In contrast, the fixed-phase baseline consistently achieves lower EE than both adaptive schemes, confirming the importance of RIS adaptation for efficiently utilizing the available transmit-power budget.
Figure 3. Average EE versus IoT transmit power.

6.4. EE Versus Number of RIS Elements

Figure 4 investigates the impact of the number of RIS elements, M ∈ 4 , 8 , 16 , 32 , 64 , on EE. Since both the codebook C and the optimal phase configuration depend on M, the DQN agent is retrained from scratch for each value of M. The performance of all three schemes is then averaged over 100 independent channel realizations per configuration. As M increases, the achievable array gain in (6) improves, leading to higher EE for both the exhaustive-search and DQN-based schemes. However, the RIS control-power term M P ris in (9) also grows linearly with M, resulting in diminishing EE gains as the array size increases. This reflects the fundamental trade-off between RIS beamforming gain and hardware power consumption in energy-efficient RIS design. Across all tested values of M, the DQN closely tracks the codebook-constrained exhaustive-search upper bound despite the increasing state dimension ( 2 M ) and the growing complexity of the underlying optimization problem. This indicates that the proposed DQN framework scales effectively to larger RIS arrays within the considered range.
Figure 4. Average EE versus the number of RIS elements M, with the DQN agent retrained for each value of M.

6.5. Aggregate Throughput Under Independent, Orthogonal Per-Device RIS Optimization

Figure 5 illustrates how the aggregate uplink throughput varies with the number of scheduled IoT devices, K ∈ [ 1 , 50 ] , under a time/frequency-orthogonal access scheme. Each device is assigned a dedicated resource unit, and the RIS is configured according to the EE-maximizing codeword selected by the corresponding scheme for that device’s channel realization. As expected, the aggregate throughput increases approximately linearly with K because the devices are scheduled orthogonally and, therefore, contribute independent rate terms to the sum. The DQN curve remains close to the codebook-constrained exhaustive-search upper bound across the entire range of K, confirming that the near-optimal per-device EE observed in the single-device experiments is preserved when the same, independently applied single-device policy is invoked once per orthogonally scheduled device. We stress that this experiment does not constitute a multi-user scaling result in the sense of joint RIS optimization: because devices occupy orthogonal time/frequency resources and the RIS configuration for each device is re-optimized independently, with no shared time/frequency resource, no scheduling coupling, and no joint RIS-configuration decision across devices, the linear growth of aggregate throughput with K follows directly from summing K independent per-device rate terms, and is not evidence that the DQN (or exhaustive search) scales to a genuinely coupled multi-user RIS optimization problem, in which a single RIS configuration must simultaneously serve multiple devices with conflicting phase requirements. The fixed-phase baseline consistently achieves lower aggregate throughput than both adaptive schemes, and the absolute gap grows with K simply because the per-device EE/rate loss of a non-adaptive RIS configuration accumulates linearly across an increasing number of independently served devices.
Figure 5. Aggregate uplink throughput versus the number of scheduled IoT devices K.

6.6. EE Versus IoT-to-HAPS Horizontal Distance

Figure 6 shows the average EE as a function of the IoT device horizontal distance from the HAPS sub-platform point, ranging from 0.5 km to 50.5 km in 5 km increments. Results are averaged over 100 independent channel realizations at each distance. As expected, EE decreases with increasing distance for all three schemes. This trend follows from the path-loss model in (4): larger distances increase path loss, reducing the cascaded channel gain and consequently the achievable SNR and rate in (7) and (8). Small fluctuations around the overall trend are attributable to the finite number of Monte Carlo realizations and the randomness of the Rician fading process. The performance ordering remains consistent across the entire distance range, with exhaustive search achieving the highest EE, followed by the DQN and fixed-phase schemes. Moreover, the relative DQN-to-upper-bound gap, 1 − EE DQN / EE ES , is small at short-to-moderate IoT-to-HAPS horizontal distances, but widens substantially at the far end of the tested range: near d iot ≈ 50 km, EE DQN is approximately 1.4 × 10 4 bits/Joule against EE ES ≈ 2.7 – 2.8 × 10 4 bits/Joule, i.e., a relative gap of approximately 48–50%, roughly five to eight times larger than the gap at short range. We attribute the growing gap to the combination of (i) a fixed-size codebook C ( A = 64 ) that was not re-sampled or re-optimized for the long-range, lower-SNR regime, so its finite angular and phase resolution captures a shrinking fraction of the EE-relevant codeword space as the effective channel SNR drops, and (ii) training episodes drawn uniformly over d iot ∈ [500, 20,000] m, which under-represents the 20–50 km tail relative to its share of the horizontal-distance axis used for the sweep, biasing the trained policy toward the better-represented shorter-range channels. EE decreases with increasing distance for all three schemes, following the path-loss model, and the performance ordering is preserved across the full distance range; however, the DQN-to-exhaustive-search relative gap is not constant and instead grows markedly at the longest distances tested, reaching roughly 48–50% near 50 km versus ∼6–10% at short range. This indicates a generalization limitation of the trained policy toward the tail of the training distribution rather than a uniformly robust codeword-selection capability, and it suggests that either (a) resampling training episodes to better represent long-range, low-SNR channels, or (b) training a distance-conditioned or mixture-of-experts policy, would be needed to close this gap.
Figure 6. Average EE versus IoT device horizontal distance from the HAPS footprint.

6.7. Sensitivity to DQN Hyperparameters

To assess how sensitive the reported near-optimality of the DQN policy is to the specific hyperparameter choices in Table 1, we retrained the agent from the same fixed default system configuration ( M = 8 , A = 64 ) under seven hyperparameter variations: two alternative hidden-layer widths ( H 1 = H 2 = 32 and H 1 = H 2 = 128 , versus the default 64), two alternative Adam learning rates ( η lr = 2 × 10 − 3 and η lr = 1 × 10 − 4 , versus the default 5 × 10 − 4 ), and two alternative mini-batch sizes ( N batch = 32 and N batch = 256 , versus the default 128), holding the total number of training episodes fixed at N ep = 4000 in every case. Each configuration was evaluated over 100 independent post-training channel realizations, and the resulting DQN-to-upper-bound gap and DQN-to-fixed-phase gain are reported in Table 2.
Table 2. Sensitivity of DQN Performance to Training Hyperparameters.
Three trends emerge from Table 2. First, the network width (32 versus 64 versus 128 hidden units per layer) has only a marginal effect on the converged optimality gap for this problem size, suggesting that the default 64-64 architecture already has ample capacity to represent the required channel-to-codeword mapping for M = 8 and A = 64 , and that further widening the network mainly increases training and inference cost, without a commensurate accuracy benefit; this is consistent with the complexity analysis, where C DQN scales linearly with H 1 and H 2 . Second, the learning rate has a substantially larger effect than network width: reducing η lr from the default 5 × 10 − 4 to 1 × 10 − 4 roughly doubles the optimality gap (from 6.2 % to 12.6 % ) and reduces the fixed-phase gain from 104.7 % to 90.6 % , because the smaller step size does not allow the Q-network to fully converge within the fixed 4000-episode training budget; conversely, increasing η lr to 2 × 10 − 3 leaves the final gap only mildly degraded, indicating that the training procedure tolerates a moderately aggressive learning rate better than an overly conservative one, given a fixed episode budget. Third, mini-batch size exhibits a similar pattern: the smaller batch of 32 samples yields a visibly worse gap ( 8.8 % ) than the default 128 or the larger 256, likely reflecting noisier gradient estimates per update that are only partially compensated by the fact that more updates occur per unit of data collected. Overall, these results indicate that the reported near-upper-bound performance of the proposed DQN policy is reasonably robust to moderate hyperparameter perturbations, with the learning rate and, to a lesser extent, the mini-batch size being the most consequential choices for a fixed training budget; this is a useful practical guideline for practitioners deploying this framework on new HAPS–RIS configurations.

7. Conclusions

This paper investigated a RIS mounted HAPS-assisted IoT architecture to improve the connectivity between ground IoT devices and a terrestrial BS under blocked or weak direct links. We formulated the discrete RIS phase-shift optimization problem as a MDP and proposed a DQN to efficiently select near-optimal phase-shift configurations from channel state observations. Compared with a fixed-phase RIS scheme and an exhaustive-search benchmark, the proposed DQN achieved EE within approximately 10% of the codebook-constrained exhaustive-search upper bound while improving EE by more than 150% over the fixed-phase baseline, requiring only a single neural network inference for online decision making. These results demonstrate that DQN-based RIS control provides a practical low-complexity approach for energy-efficient HAPS-assisted IoT communications. Future work will consider extending the proposed framework (i) to joint multi-user RIS optimization under shared time/frequency resources, rather than the independently-repeated per-device decisions studied here; (ii) to mobility-aware environments with temporally correlated channels, in which the single-step contextual-bandit formulation would need to be generalized to a genuinely sequential MDP with γ > 0 ; (iii) to robustness against imperfect and delayed CSI, including an explicit accounting of the pilot/feedback overhead; (iv) to cooperative architectures spanning multiple HAPS-mounted RIS payloads, which would allow the same learning-based control philosophy to be applied to network-level, rather than single-link, EE optimization; and (v) to circuit-level RIS non-idealities and phase-error/robustness analysis under realistic HAPS keeping; and (vi) replacing the fully passive RIS with an active-RIS or hybrid passive/active architecture to partially compensate the compounded IoT–HAPS–BS path loss, at the cost of a modest per-element power budget increase.

Author Contributions

Conceptualization, A.N. and T.K.; simulations, A.N. and T.K.; writing—original draft preparation, A.N. and T.K.; writing—review and editing, A.N. and S.B.R.; supervision, S.B.R. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the Basic Science Research Program through the National Research Foundation of Korea (NRF) funded by the Ministry of Education (RS-2021-NR060120), by the BK21 FOUR of the National Research Foundation of Korea (NRF) funded by the Ministry of Education (2120251015517), and by the NRF grant funded by the Korea government (MSIT) (RS-2022-NR069161).

Data Availability Statement

The simulation results and configuration details supporting the findings of this study are available from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Jamshed, M.A.; Ali, K.; Abbasi, Q.H.; Imran, M.A.; Ur-Rehman, M. Challenges, applications, and future of wireless sensors in Internet of Things: A review. IEEE Sens. J. 2022, 22, 5482–5494. [Google Scholar] [CrossRef] [Scilit]
  2. Sinha, S. State of IoT 2025: Number of Connected IoT Devices Growing 14% to 21.1 Billion Globally. IoT Analytics. 2025. Available online: https://iot-analytics.com/number-connected-iot-devices/ (accessed on 30 July 2026).
  3. Nauman, A.; Kim, S.W. An Intelligent Energy-Aware Framework for 6G-Enabled Non-Terrestrial IoT via Reinforcement Learning. Sensors 2026, 26, 4057. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  4. Teixeira, T.A.; Nascimento, L.B.; Cavalcante, W.; Ono, I.M.; Gomes, R.C.; Printes, A.L.; Sobrinho, A.M.; Torné, I.G. Development and Experimental Validation of an Autonomous IoT-Based Monitoring System for Real-Time Water Quality Assessment in the Amazon River. Sensors 2026, 26, 3967. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  5. Cui, B.; Cai, S.; Wang, L.; Zhang, Z.; Wang, F. Reinforcement Learning-Based Cloud-Aware HAPS Trajectory Optimization in Soft-Switching Hybrid FSO/RF Cooperative Transmission System. Sensors 2026, 26, 948. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  6. Jamshed, M.A.; Kaushik, A.; Dobre, O.A.; Zhang, Y.J.A.; Lin, X. Guest editorial: Unveiling the cosmic connection: Ai’s pivotal role in bridging terrestrial and non-terrestrial networks. IEEE Wirel. Commun. 2025, 32, 18–19. [Google Scholar] [CrossRef] [Scilit]
  7. Jamshed, M.A.; Haq, B.; Mohsin, M.A.; Nauman, A.; Yanikomeroglu, H. Artificial intelligence, ambient backscatter communication and non-terrestrial networks: A 6g commixture. IEEE Internet Things Mag. 2025, 8, 88–94. [Google Scholar] [CrossRef] [Scilit]
  8. Su, B.; Fang, H.; Zhao, J. Reconfigurable Intelligent Surface-Based Physical Layer Authentication Enhancement. Sensors 2026, 26, 4024. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  9. Wu, Q.; Zhang, R. Towards smart and reconfigurable environment: Intelligent reflecting surface aided wireless network. IEEE Commun. Mag. 2019, 58, 106–112. [Google Scholar] [CrossRef] [Scilit]
  10. Basar, E.; Di Renzo, M.; De Rosny, J.; Debbah, M.; Alouini, M.S.; Zhang, R. Wireless communications through reconfigurable intelligent surfaces. IEEE Access 2019, 7, 116753–116773. [Google Scholar] [CrossRef] [Scilit]
  11. Hassouna, S.; Jamshed, M.A.; Ur Rehman, M.; Imran, M.A.; Abbasi, Q.H. Configuring reconfigurable intelligent surfaces using a practical codebook approach. Sci. Rep. 2023, 13, 11869. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  12. Jamshed, M.A.; Shin, W.; Kaushik, A.; Toka, M.; Shakir, M.Z.; Dash, S.P.; Dardari, D. Synergizing airborne non-terrestrial networks and reconfigurable intelligent surfaces-aided 6G IoT. IEEE Internet Things Mag. 2023, 7, 46–52. [Google Scholar] [CrossRef] [Scilit]
  13. Wu, Q.; Zhang, R. Beamforming optimization for wireless network aided by intelligent reflecting surface with discrete phase shifts. IEEE Trans. Commun. 2019, 68, 1838–1851. [Google Scholar] [CrossRef] [Scilit]
  14. Hassouna, S.; Jamshed, M.A.; Rains, J.; Kazim, J.U.R.; Rehman, M.U.; Abualhayja, M.; Mohjazi, L.; Cui, T.J.; Imran, M.A.; Abbasi, Q.H. A survey on reconfigurable intelligent surfaces: Wireless communication perspective. IET Commun. 2023, 17, 497–537. [Google Scholar] [CrossRef] [Scilit]
  15. Rao, J.; Zhang, Y.; Tang, S.; Li, Z.; Chiu, C.Y.; Murch, R. An active reconfigurable intelligent surface utilizing phase-reconfigurable reflection amplifiers. IEEE Trans. Microw. Theory Tech. 2023, 71, 3189–3202. [Google Scholar] [CrossRef] [Scilit]
  16. Amato, F.; Peterson, C.W.; Degnan, B.P.; Durgin, G.D. A 45 μW bias power, 34 dB gain reflection amplifier exploiting the tunneling effect for RFID applications. In Proceedings of the 2015 IEEE International Conference on RFID (RFID); IEEE: New York, NY, USA, 2015; pp. 137–144. [Google Scholar]
  17. Gavriilidis, P.; Mishra, D.; Smida, B.; Basar, E.; Yuen, C.; Alexandropoulos, G.C. Active reconfigurable intelligent surfaces: Circuit modeling and reflection amplification optimization. IEEE Open J. Commun. Soc. 2025, 6, 5693–5711. [Google Scholar] [CrossRef] [Scilit]
  18. Tasci, R.A.; Gavriilidis, P.; Basar, E.; Alexandropoulos, G.C. Active RISs: Modeling and Optimization. In Reconfigurable Intelligent Surfaces for Wireless Communications: Modeling, Architectures, and Applications; Springer: Berlin/Heidelberg, Germany, 2026; pp. 227–268. [Google Scholar]
  19. Shi, W.; Xu, W.; You, X.; Zhao, C.; Wei, K. Intelligent reflection enabling technologies for integrated and green Internet-of-Everything beyond 5G: Communication, sensing, and security. IEEE Wirel. Commun. 2022, 30, 147–154. [Google Scholar] [CrossRef] [Scilit]
  20. Mei, H.; Yang, K.; Liu, Q.; Wang, K. 3D-trajectory and phase-shift design for RIS-assisted UAV systems using deep reinforcement learning. IEEE Trans. Veh. Technol. 2022, 71, 3020–3029. [Google Scholar] [CrossRef] [Scilit]
  21. Azizi, A.; Farhang, A. RIS meets aerodynamic HAPS: A multi-objective optimization approach. IEEE Wirel. Commun. Lett. 2023, 12, 1851–1855. [Google Scholar] [CrossRef] [Scilit]
  22. Jamshed, M.A.; Mohsin, M.A.; Zhang, H.; Haq, B.; Kaushik, A.; Di, B.; Jiang, W. Reconfigurable Holographic Surfaces and Near Field Communication for Non-Terrestrial Networks: Potential and Challenges. IEEE Wirel. Commun. 2026, 33, 66–73. [Google Scholar] [CrossRef] [Scilit]
  23. Jamshed, M.A.; Kaushik, A.; Manzoor, S.; Shakir, M.Z.; Seong, J.; Toka, M.; Shin, W.; Schellmann, M. A tutorial on non-terrestrial networks: Towards global and ubiquitous 6G connectivity. Found. Trends Netw. 2025, 14, 160–253. [Google Scholar] [CrossRef] [Scilit]
  24. Mishra, D.; Johansson, H. Channel estimation and low-complexity beamforming design for passive intelligent surface assisted MISO wireless energy transfer. In Proceedings of the ICASSP 2019 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP); IEEE: New York, NY, USA, 2019; pp. 4659–4663. [Google Scholar]
  25. Huang, C.; Mo, R.; Yuen, C. Reconfigurable intelligent surface assisted multiuser MISO systems exploiting deep reinforcement learning. IEEE J. Sel. Areas Commun. 2020, 38, 1839–1850. [Google Scholar] [CrossRef] [Scilit]
  26. Yang, H.; Xiong, Z.; Zhao, J.; Niyato, D.; Xiao, L.; Wu, Q. Deep reinforcement learning-based intelligent reflecting surface for secure wireless communications. IEEE Trans. Wirel. Commun. 2020, 20, 375–388. [Google Scholar] [CrossRef] [Scilit]
  27. Mnih, V.; Kavukcuoglu, K.; Silver, D.; Rusu, A.A.; Veness, J.; Bellemare, M.G.; Graves, A.; Riedmiller, M.; Fidjeland, A.K.; Ostrovski, G.; et al. Human-level control through deep reinforcement learning. Nature 2015, 518, 529–533. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  28. Sutton, R.S.; Barto, A.G.; Barto, A. Reinforcement Learning: An Introduction; MIT Press: Cambridge, UK, 1998; Volume 1. [Google Scholar]
  29. Alfattani, S.; Jaafar, W.; Hmamouche, Y.; Yanikomeroglu, H.; Yongaçoglu, A.; Đào, N.D.; Zhu, P. Aerial platforms with reconfigurable smart surfaces for 5G and beyond. IEEE Commun. Mag. 2021, 59, 96–102. [Google Scholar] [CrossRef] [Scilit]
  30. Lioce, S.; Avitabile, G.; Florio, A.; Saucez, D.; Dabbous, W. The impact of the circuit non-idealities on the system-level communication metrics in reconfigurable intelligent surfaces. In Proceedings of the 2025 IEEE 16th Latin America Symposium on Circuits and Systems (LASCAS); IEEE: New York, NY, USA, 2025; Volume 1, pp. 1–5. [Google Scholar]
  31. Gong, S.; Xing, C.; Liu, H.; Zhao, X.; Wang, J.; An, J.; Quek, T.Q. Hardware-impaired RIS-assisted mmWave hybrid systems: Beamforming design and performance analysis. IEEE Trans. Commun. 2023, 71, 2317–2334. [Google Scholar] [CrossRef] [Scilit]
  32. Kingma, D.P.; Ba, J. Adam: A method for stochastic optimization. arXiv 2014, arXiv:1412.6980. [Google Scholar]
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.