Manuscript Offprint
arXiv:2610.06407Reinforcement Learning-Based 3D Beam Adaptation for Underwater Wireless Optical Communication with AUVs
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Viviana Centritto Arrojo, Ama Bandara, Sergi Abadal, Evgenii Vinogradov
Nanonetworking Center in Catalunya, Universitat Politècnica de Catalunya, Barcelona, Spain
Abstract—Underwater Wireless Optical Communications (UWOC) provide essential high data rates for Autonomous Underwater Vehicles (AUVs), but reliable connectivity is critically affected by transmitter-receiver misalignment. This work addresses the beam pointing problem for a moving AUV subject to unknown ocean currents through a Deep Reinforcement Learning (DRL) framework. We develop a comprehensive 3D UWOC channel model incorporating depth-dependent attenuation, turbulence, and a discrete-ray method to accurately quantify geometric and misalignment losses. The resulting agent jointly optimizes beam steering and divergence angles, learning a policy that prioritizes continuous link maintenance. Evaluated using real oceanographic data, the framework's performance is assessed via the excess outage metric, which isolates outages occurring exclusively due to pointing errors. Relative to perfect alignment between nodes, the proposed method bounds this metric to 8.5% under ocean current-free tracking conditions and limits it to 16.2% when subjected to current-induced drift. The findings obtained in this work confirms that DRL-enabled beam control is capable of adaptive tracking and mitigating link outages in dynamic underwater environments.
Index Terms—underwater wireless optical communications, 3D beam adaptation, deep reinforcement learning.
I. INTRODUCTION
UWOC has emerged as an essential technology for high-capacity underwater links, overcoming the severe attenuation of radio frequency (RF) signals and the bandwidth limitations of acoustic systems [1]. Characterized by high data rates and low latency, UWOC is a relevant solution for integrating underwater networks into beyond 5G and 6G ecosystems [2].
Nevertheless, the underwater environment presents a channel plagued by impairments, leading to severe problems of pointing accuracy [3]. While environmental factors degrade signal quality, a lack of alignment between the transmitter and receiver can produce a complete link outage. This alignment is further compromised by ocean currents, which introduce drift and jitter, resulting in significant positional uncertainty [2], [4]. In this context, there is a need for autonomous systems capable of processing high amounts of heterogeneous information to make optimal real-time decisions. The objective of such systems is to ensure the reliability of the communication link in harsh dynamic environments.
Recent literature has demonstrated the efficacy of reinforcement learning (RL) algorithms in addressing UWOC pointing challenges. Romdhane and Kaddoum [5] proposed a dynamic RL beam width orientation and adaptation framework. This was achieved by implementing model-free Q-learning and State-Action-Reward-State-Action (SARSA) algorithms to optimize link performance for underwater nodes. To improve upon reactive approaches, the work in [6] integrates Long Short-Term Memory (LSTM) with Deep-Q Networks (DQNs), leveraging the LSTM to predict vessel displacement based on historical wave data, and enabling the DQN agent to optimize both the beam divergence and steering angles. Furthermore, to maintain a seabed-to-vessel link disrupted by waves, the authors in [7] propose a two-agent DRL framework. The system divides the tracking tasks temporally: one agent updates the beam's azimuth and elevation over longer intervals, while a second agent preemptively fine-tunes the divergence at every time slot to ensure coverage.
However, prior studies largely rely on 2D spatial models or focus on surface-bound receivers disrupted by surface waves. By treating the underwater channel as a homogeneous environment, they cannot model depth-dependent variations in attenuation, turbulence and noise. Consequently, 3D tracking for submerged, mobile AUVs remains unresolved. We propose a dynamic 3D DRL framework that incorporates vertical link characteristics and underwater current-induced positional uncertainty. To accurately quantify geometric and pointing losses, our approach evaluates the individual optical rays failing to reach the receiver aperture.
Therefore, the main contributions of this work are: (i) characterization of the 3D UWOC environment; and (ii) design and evaluation of a RL-based DQN control framework that maintains beam alignment and link quality.

(a)

(b)
Fig. 1. UWOC system model. (a) 3D downlink setup between the fixed and mobile AUVs. (b) Geometric representation of the controllable beam steering and divergence angles.
any location using polar and azimuthal angles. To maintain the communication link, the tracks the -AUV's trajectory by adjusting the beam steering and divergence angles. However, because underwater currents perturb the from its original trajectory, we represent these disturbances as depth-dependent velocity components, namely a northward velocity (y-direction) and an eastward velocity (x-direction) [4].
The DRL framework is depicted in Fig. 2, where a RL agent at the -AUV governs the steering and divergence mechanisms. Based on state observations, the agent selects actions that interact with the UWOC environment. During training, the environment evaluates these actions and returns a reward signal reflecting the agent's efficiency. The following assumptions are considered: (i) both AUVs are initialized with knowledge of the starting positions and planned waypoints; (ii) each vehicle is equipped with an Inertial Measurement Unit (IMU) for onboard position and velocity estimation; (iii) since the AUVs can operate collaboratively, they exchange state information via a bidirectional UWOC link. While this work focuses on the -side agent, the same procedure can be performed at the -AUV when the communication roles are reversed.
To validate the proposed framework, we evaluate our model under two distinct operational scenarios. The first is a current-free environment that assumes zero positional uncertainty. The second scenario introduces a dynamic drift caused by ocean currents, forcing the agent to continuously update the 's position estimates based on historical and environmental data.
III. DRL IMPLEMENTATION
The DRL model maintains a consistent action space, reward function, and UWOC environment across both scenarios, which differ solely in their state space formulation.
A. State space vector
Under the current-free scenario, is represented as , which encompasses 11 variables tailored to address the tracking problem. However, to model the drift caused by ocean currents, we leverage the Hybrid Coordinate Ocean Model (HYCOM) [8] to generate a dataset of the dynamics influencing the -AUV's trajectory. This requires expanding the agent's observation space to incorporate the environmental data. The augmented consists of 24 continuous variables divided into two branches, and , introducing 13 new components. This decoupling separates the beam dynamics from environmental uncertainties, as detailed in Table I.

Fig. 2. DRL framework illustrating the closed-loop interaction between the agent and UWOC environment. The -AUV agent optimizes the beam steering and divergence angles based on the tracking and environmental states.
TABLE I FEATURES DEFINING STATE SPACE VECTORS
| Vector | Component | Description |
|---|---|---|
| Receiver position at time and in spherical angles () | ||
| Received optical power at time and the previous time step. | ||
| Beam parameters at time : Agent's beam parameter settings (). | ||
| Total Dimension | 11 components | |
| Depth of the receiver at time step . | ||
| Sea surface elevation. | ||
| Cyclical day encoding vector. | ||
| Cyclical hour encoding vector. | ||
| Water x-y velocity from 3 and 24 hours prior. | ||
| Water temperature and salinity from 3 hours prior. | ||
| Time step of the episode. | ||
| Total Dimension | 13 components | |
B. Action space
The agent operates within a discrete action space comprising 27 distinct actions representing every possible combination of increasing, decreasing, or maintaining the beam controllable parameters: the steering angles ( and ) for the pointing direction, and the divergence angle for the beam width. At each time step, the agent updates each parameter via an action selected from [up, keep, down] with step sizes

Fig. 3. Geometric constraint of based on the spatial overlap between the beam radius and the aperture radius .
mrad, and mrad. To compute Q-values for these 27 actions, the current-free scenario uses a standard Multilayer Perceptron (MLP), while the induced-current case employs a two-tower MLP to independently process and .
C. Reward function
To maintain a robust link while penalizing pointing errors, we define the reward function as
where denotes the positional misalignment between the optical beam center and the -AUV aperture center, and is the aperture radius. This approach prioritizes alignment efficiency, defined as the ratio of the instantaneous Signal-to-Noise Ratio to the maximum possible at a given depth , eliminating the depth-dependence signal attenuation inherent to the underwater channel. The reward is subject to a geometrical constraint, as illustrated in Fig. 3. If exceeds the sum of and , the -AUV fails to capture any optical power. To discourage this outcome, the agent receives a penalty of . Notably, while represents a fixed hardware constraint, is controlled by the agent.
IV. UWOC ENVIRONMENT: CHANNEL MODELING
The electrical signal received at the photodetector is modeled as , where denotes the transmitted optical power, is the photodetector responsivity, is the overall channel loss coefficient, and represents the additive noise components. This loss is decomposed as , which respectively account for channel attenuation , turbulence , geometric spreading , and pointing losses [9].
A. Channel attenuation
The attenuation model is based on Koutsonas et al. [10]. It follows Beer-Lambert Law (BLL), which states that power decays exponentially with respect to the propagation distance and attenuation coefficient [2]. Depending on water type and depth , this coefficient is the sum of the absorption and scattering coefficients [11]. Both and are based on the Haltrin model [12]. The absorption coefficient is modeled by accounting for the individual contributions of several aquatic constituents, each scaled by its concentration [12, Eq. (1)]
where the subscripts w, phy, g, and n denote pure water, chlorophyll-dominated phytoplankton [13], colored dissolved organic material, and non-algal suspended particles [14], respectively. In this work, only pure water and chlorophyll are considered as the main absorption components. Furthermore, the scattering coefficient is calculated as the summation of scattering contributions from pure sea water , small particles and large organic particles [12, Eq. (2)]
where and represent the effective concentrations of these particles as estimated by [12, Eq. (14)]
The chlorophyll concentration is linked to and . To capture the vertical heterogeneity of the water column induced by the Deep Chlorophyll Maximum (DCM), is modeled using a Gaussian vertical profile. This profile is parameterized by the surface background chlorophyll concentration and its vertical gradient , the chlorophyll peak depth , the integrated peak biomass , and the DCM layer thickness [15, Eq. (7)]
By adjusting , the model simulates four distinct water types: pure sea water ( ), clear ocean ( ), coastal ( ) and harbor ( ) [10], [15].
B. Turbulence
As shown in Fig. 4a, the turbulence model divides the water column into K discrete layers with each layer characterized by its thickness , and scintillation index . Under weak turbulence conditions, the turbulence loss is modeled as a cascaded fading channel where the total fading coefficient is the product of the independent layer coefficients [16, Eq. (1)]
Since each is a lognormal random variable, is inherently lognormal. This parameter is determined using a multi-step procedure based on [16].
- Characterization of the turbulence environment: Temperature and salinity profiles are extracted from HYCOM [8]. Using these profiles, the density ratio is computed as [16, Eq. (19)]
where and are the vertical gradients of temperature and salinity, respectively. The parameter represents the thermal expansion coefficient and is the saline contraction coefficient of each layer; both are calculated using the Gibbs-SeaWater (GSW) Oceanographic Toolbox [17].
- Calculation of the scintillation index : Each layer's scintillation index is derived from its Rytov variance [18, Eq. (19)]
which requires numerical integration over the normalized path distance and spatial frequency [18, Eq. (20)]
where the key auxiliary parameters include the optical wavenumber , the modified Nikishov spatial power spectrum for a Gaussian beam through the -th layer , and both the Fresnel ratio and estimated curvature parameter evaluated at that layer's upper boundary.
- Estimation of the total turbulence fading coefficient: Assuming statistically independent fading across the layers, we determine the total scintillation index by summing the individual log-variances of each discrete layer [16, Eq. (3)]
Finally, we stochastically generate as
where the mean logarithmic amplitude is normalized to ensure a unity power expectation [16].
C. Geometric spreading and pointing losses
The laser beam profile is modeled using discrete rays. Fig. 4b illustrates the initial ray trajectories, defined by spherical angles to reproduce a Gaussian intensity profile with a divergence angle [9]. These rays are then projected onto the plane at depth , yielding intersection points . Geometric loss arises from the spatial spreading of the rays over the propagation distance. For a ray to be detected, the distance of the -th ray's intersection point to the center of the Rx-AUV aperture must be bounded by the receiver radius .
The proportion of rays failing to meet this condition quantifies the combined effect of geometric and pointing losses.
D. Noise model
To account for the primary noise components specific to the oceanic environment, we define the total noise variance as the sum of three independent variances: ambient solar background , dark current , and thermal [19], [20]. Among these, often constitutes the most significant source of interference [14]. This variance is calculated as a function of the electronic charge , the sensitivity , the bandwidth and the background solar power [20, Eq. (4), Eq (5)]

(a)

(b)
Fig. 4. UWOC channel impairments. (a) Cascaded turbulence model with depth-dependent layers . (b) Discrete-ray method to calculate geometric spreading and pointing losses.
TABLE II UWOC SIMULATION PARAMETERS AND DRL HYPERPARAMETERS
| Category | Parameter | Current free | Current induced |
|---|---|---|---|
| DRL | Learning rate | ||
| Batch size | 64 | 128 | |
| Update frequency | 100 | 200 | |
| Replay buffer | 50,000 | 100,000 | |
| ε-decay | |||
| UWOC | Chlorophyll | 0.005 | |
| Wavelength λ | 530 nm | ||
| aperture | 0.2 m | ||
where depends on the 's field of view (FOV), aperture radius, and the upwelling solar radiance at the 's depth.
V. RESULTS
The assessment of the proposed framework begins with a tailored training phase, utilizing 15,000 episodes for the current-free scenario and 30,000 episodes for the current-induced case. Each 10-s episode comprises 100 discrete steps divided into 0.1-s decision intervals. At the start of every episode, a unique trajectory is generated via an interpolated 3D random walk, bounded between 1 and in depth with simulated AUV velocities ranging from 0.6 to . The scenario specific DRL hyperparameters and the share UWOC simulation parameters are summarized in Table II.
Following training, we evaluate the system on unseen trajectories. Fig. 5 illustrates a first test episode under positional certainty conditions, where the -AUV trajectory is closely followed by the agent's beam-steered path, despite minor path oscillations caused by the discrete step decision-making process. A second test episode assesses the system's resilience to

Fig. 5. First test episode under current-free conditions, showing the trajectory of the -AUV through the planned waypoints (blue) alongside the tracking path of the Tx-AUV (green).
ocean currents. As shown in Fig. 6a, the -AUV path deviates from its planned path due current-induced drift. Nevertheless, the agent actively tracks the drifting target, demonstrating the successful integration of environmental data. Because this continuous drift degrades alignment efficiency and causes the beam to progressively deviate from the receiver aperture, the agent autonomously increases the beam divergence to maintain connectivity. Fig. 6b illustrates this adaptive response, which yields a more diffuse beam over time.
To further analyze the agent’s dynamic beam management capabilities under drift conditions, we evaluate a third test episode, depicted in Fig. 7. At 2.5 s, the positional misalignment remains tightly within the overlap region defined in Fig. 3, specifically below . Leveraging this precise alignment, the agent narrows the beam to maximize the received power, achieving -21.82 dBm. Beyond 3.5 s, tracking stability deteriorates and the agent responds through increasing beam divergence to preserve the communication link.
Moving beyond individual test cases, the agent's overall performance is assessed across 1,500 unseen episodes by measuring the percentage of simulation time experiencing communication outages (SNR < 10 dB). To isolate outages caused by depth-dependent channel effects, which are beyond the agent's control, we compare the agent's per-episode outage duration against a baseline that assumes perfect -AUV tracking. The difference between both is the excess outage metric, which quantifies the fraction of simulation time where connectivity is lost exclusively due to pointing errors. As depicted in Fig. 8, the histograms for both scenarios are positively skewed with the primary peak located at the lower bound, corresponding to episodes with zero tracking-induced signal loss. Under current-free conditions, the mean excess outage is 8.5%, indicating that, on average, pointing errors account for 0.8 s of signal loss during the total 10-second simulation. However, in current-induced trajectories, this metric increases to 16.2%. This performance degradation reflects the increased complexity of the task, as the agent must simultaneously manage pointing control, estimate current-induced drift, and predict the -AUV's actual position.

(a)

(b)
Fig. 6. Second test episode under induced-current conditions. (a) Actual -AUV trajectory (blue) deviating from the planned trajectory (dotted black), alongside the beam path (green). (b) Evolution of beam alignment at different time steps, where the agent increases beam divergence to maintain connectivity.
VI. Conclusion
This work presented a 3D DRL framework to address transmitter-receiver misalignment between mobile AUVs. To model this environment, we developed a 3D UWOC channel incorporating depth-dependent impairments, and a discrete-ray mechanism to simulate pointing loss. Evaluating 1,500 trajectories, we assessed the framework using the excess outage metric, which strictly accounts for the pointing accuracy of the agent. Under positional certainty, the agent successfully tracked the , limiting the mean excess outage to 8.5% when compared to ideal conditions without pointing errors. In the scenario where the 's trajectory is perturbed by ocean currents, the system constrained this metric to 16.2%. These results demonstrate that the agent learned a baseline policy to estimate oceanic drift and preserve link reliability by simultaneously controlling beam direction and divergence.

Fig. 7. Third test episode illustrating the positional misalignment relative to , demonstrating that the agent narrows the beam when alignment is precise.
ACKNOWLEDGMENT
This research is supported by the AVALON project under European Union’s European Defence Fund under Grant Agreement No. 101168152 and by the Spanish Ministry of Science, Innovation and Universities MICIU/AEI/10.13039/501100011033 through the Ramón y Cajal grant RYC2024-051003-1.
REFERENCES
[1] A. Gorodilov, I. Zhilin, A. Sakhnini, J. Simonjan, and I. Akyildiz, "Unisdm proof of concept: A multimode software defined modem for underwater communications," in 2025 IEEE Wireless Communications and Networking Conference (WCNC), 2025, pp. 1–3.
[2] N. Saeed, A. Celik, T. Y. Al-Naffouri, and M.-S. Alouini, “Underwater optical wireless communications, networking, and localization: A survey,” Ad hoc networks, vol. 94, p. 101935, 2019.
[3] Z. Vali, A. Gholami, D. G. Michelson, Z. Ghassemlooy, M. Omoomi, and H. Noori, “Use of gaussian beam divergence to compensate for misalignment of underwater wireless optical communication links,” IET Optoelectronics, vol. 11, no. 5, pp. 171–175, 2017.
[4] S. Shakeera, V. B. N. Jyothi, and H. Venkataraman, “ML-based techniques for prediction of ocean currents for underwater vehicles,” in 2023 11th International Symposium on Electronic Systems Devices and Computing (ESDC), vol. 1. IEEE, 2023, pp. 1–6.
[5] I. Romdhane and G. Kaddoum, “A reinforcement-learning-based beam adaptation for underwater optical wireless communications,” IEEE Internet of Things Journal, vol. 9, no. 20, pp. 20 270–20 281, 2022.
[6] T. Ishida, C. B. Naila, and H. Okada, “Adaptive beam steering and divergence control for underwater optical wireless communication using reinforcement learning,” IEEE Photonics Journal, 2025.
[7] H. Shin, S. Baek, and Y. Song, “Multidimensional beam optimization in underwater optical wireless communication based on deep reinforcement learning,” IEEE Internet of Things Journal, vol. 11, no. 17, pp. 28 623–28 634, 2024.
[8] Naval Research Laboratory, “Global ocean forecast system (gofs) 3.1,” Dataset, 2014–2021. [Online]. Available: https://www.hycom.org/dataserver/gofs-3pt1/analysis
[9] W. Cox and J. Muth, “Simulating channel losses in an underwater optical communication system,” Journal of the Optical Society of America A, vol. 31, no. 5, pp. 920–934, 2014.
[10] E. Koutsonas, A. Pitilakis, O. Tsilipakos, T. A. Tsiftsis, and A. A. A. Boulogeorgos, “Performance analysis of underwater optical wireless communications under the joint impact of disorientation and misalignment,” in Proceedings of the 20th European Conference on Antennas and Propagation (EuCAP 2026), March 2026, accepted for publication.
[11] N. G. Jerlov, Marine optics. Elsevier, 1976, vol. 14.
[12] V. Haltrin, “Chlorophyll-based model of seawater optical properties,” Journal of Applied Optics, vol. 38, no. 33, pp. 6826–6832, 1999.

Fig. 8. Assessment of the DRL agent's tracking accuracy across 1,500 episodes for both operational scenarios.
[13] R. Deng, Y. He, Y. Quin, Q. Cheng, and L. Chen, “Pure water absorption coefficient measurement after eliminating the impact of suspended substance in spectrum from 400 nm to 900 nm,” Journal of Remote Sensing, pp. 1007–4619, 2012.
[14] L. J. Johnson, “Optical property variability in the underwater optical wireless channel,” Ph.D. dissertation, University of Warwick, 2015.
[15] J. Utiz, H. Clustré, A. Morel, and S. Hoooker, “Vertical distribution of phytoplankton communities in open ocean: An assessment based on surface chlorophyll,” Journal of Geophysical Research, vol. 111, pp. 1–23, 2006.
[16] M. Elamassie and M. Uysal, “Vertical underwater visible light communication links: Channel modeling and performance analysis,” IEEE Transactions on Wireless Communications, vol. 19, no. 10, pp. 6948–6959, 2020.
[17] IOC, SCOR, and IAPSO. (2011) TEOS-10 Software: Gibbs Seawater (GSW) Oceanographic Toolbox. Intergovernmental Oceanographic Commission, Scientific Committee on Oceanic Research, and International Association for the Physical Sciences of the Oceans. [Online]. Available: https://www.teos-10.org/software.htm
[18] S. Tayebnaimi and K. Kiasaleh, “Scintillation index analysis for multi-wavelength gaussian beams in turbulent underwater channels,” Optical Engineering, vol. 63, no. 12, pp. 128 105–128 105, 2024.
[19] M. M. Zayed and M. Shokair, “Modeling and simulation of optical wireless communication channels in iout considering water types turbulence and transmitter selection,” Scientific Reports, vol. 15, no. 1, 2025.
[20] Y. Mahmutoğlu, C. Albayrak, and K. Türk, “Investigation of underwater wireless optical communication channel capacity for different environment and system parameters,” Hittite Journal of Science and Engineering, vol. 7, no. 4, pp. 279–285, 2020.