Next Article in Journal
HDCA: Heterogeneous Dual-Path Contrastive Architecture for Action Recognition
Previous Article in Journal
Ship Target Detection in SAR Imagery Based on Band Recombination and Multi-Scale Feature Enhancement
Previous Article in Special Issue
Cooperative NOMA with RIS Assistance for Short-Packet Communications Under Hardware Impairments
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

STAR-RIS-Enabled AOA Positioning Algorithm

1
Key Laboratory of Information and Communication Systems, Ministry of Information Industry, Beijing Information Science and Technology University, Beijing 100101, China
2
Key Laboratory of Modern Measurement & Control Technology, Ministry of Education, Beijing Information Science and Technology University, Beijing 100101, China
*
Author to whom correspondence should be addressed.
Electronics 2025, 14(23), 4729; https://doi.org/10.3390/electronics14234729
Submission received: 6 November 2025 / Revised: 24 November 2025 / Accepted: 29 November 2025 / Published: 30 November 2025

Abstract

Positioning technology based on 5G networks has been deeply integrated into everyday life. Despite this, severe non-line-of-sight (NLOS) conditions in wireless signal environments can cause signal obstructions, negatively impacting the precision and dependability of positioning services. This paper introduces an innovative algorithm called Simultaneously Transmitting and Reflecting Reconfigurable Intelligent Surface Non-Line-of-Sight Angle of Arrival (STAR-RIS NLOS AOA) to address these challenges. The algorithm initially develops a system model named 5G STAR-RIS localization (GSL). By integrating STAR-RIS into the system, the model effectively overcomes the challenges of positioning in NLOS scenarios. The inclusion of STAR-RIS not only boosts the system’s adaptability but also meets the positioning requirements for users on both sides of the reflective surface simultaneously. The algorithm then utilizes the Root-MUSIC algorithm for estimating user coordinates. An optimization problem is formulated based on these estimations, with the goal of reducing the gap between estimated and real coordinates. To address this optimization, the Inertia Weight Whale Optimization Algorithm is employed, providing high-precision estimations of users’ three-dimensional positions. Simulations reveal that the proposed Simultaneously Transmitting and Reflecting Reconfigurable Intelligent Surface Non-Line-of-Sight Angle of Arrival (SRNA) algorithm substantially outperforms conventional algorithms in positioning performance across different signal-to-noise ratio contexts. Specifically, in challenging NLOS situations, the SRNA algorithm can cut positioning errors by 50% to 62%, demonstrating its outstanding capability and efficiency in addressing the difficulties presented by NLOS conditions within 5G-based positioning systems.

1. Introduction

In the context of continuous advancements in information technology, positioning technology has become deeply embedded in various facets of daily life [1,2], playing an indispensable role in sectors such as smartphone navigation, logistics and supply chain management, smart homes, and autonomous driving technology [3,4]. The advent of 5G positioning technology has markedly improved the quality of positioning services. This technology not only substantially increases the accuracy and response speed of positioning but also provides users with a safer and more convenient navigation experience [5,6,7,8]. Consequently, 5G-based wireless positioning technology has emerged as a prominent area of scientific inquiry, demonstrating extensive application prospects. It not only assumes the crucial responsibility of technological innovation but also signifies immense practical importance and future potential [9,10].
The integration of 5G positioning technology into daily life underscores its essential role in enhancing navigation and logistical operations, holding transformative potential for multiple industries. As this technology continues to evolve, its implications extend beyond mere improvements in accuracy and speed; it paves the way for innovative applications that can significantly impact societal trends. The ongoing research and development in this field are critical to unlocking new capabilities, further solidifying its importance in shaping the future of positioning solutions across diverse sectors.
In 5G wireless localization, conventional methods rely on key parameters like time of arrival (TOA), time difference of arrival (TDOA), angle of arrival (AoA), and received signal strength (RSS) [11,12,13,14]. TOA requires strict time synchronization but can provide high accuracy in line-of-sight environments; TDOA eliminates the need for absolute time synchronization through time difference measurements, thereby reducing system complexity; AoA utilizes antenna arrays to estimate signal direction and does not require time synchronization, but it is significantly affected by multipath effects; RSS is simple to implement and low-cost, but it is susceptible to environmental interference and offers relatively lower accuracy. Among these, AoA stands out as a robust choice for challenging environments, particularly under non-line-of-sight (NLOS) conditions. Its core advantage lies in providing direct geometric spatial relationships without requiring strict time synchronization between transceivers, a common hurdle in practical deployments. While multipath effects can pose challenges, the intrinsic direction-finding capability of AoA makes it a powerful tool for localization where path obstructions are prevalent. Given these general advantages, AoA is particularly suitable for STAR-RIS-assisted systems. Moreover, the structure of STAR-RIS naturally aligns with the directional signal manipulation required for AoA estimation, making it a natural fit for enhancing positioning accuracy in scenarios where multipath and signal blockage are prevalent. As a complementary source of directional information, AoA can significantly enhance overall positioning performance in complex environments when integrated with other technologies [15].
Kutluyil D et al. [13] put forward a method for optimizing sensor placement for 2D AoA target positioning under a Gaussian prior assumption. This approach employs D- and A-optimality criteria, together with an approximate Bayesian analysis of the Fisher information matrix, to figure out the best way to arrange the sensors. Specifically, it ensures that the sensors are positioned along the narrow axis of the prior covariance error ellipse.
Furthermore, research expands into maneuvering target tracking, presenting an innovative closed-form projection algorithm designed to enhance sensor trajectories while adhering to turning rate limitations. Simulation results show that this algorithm outperforms traditional numerical search methods in tracking performance. Wang Z et al. [16] proposed an optimal three-station TDOA base station placement method based on signal beam constraints, examining the influence of receiver station positions on positioning accuracy. By establishing a polar coordinate positioning error model, they revealed the relationship between positioning error and the angle between the target and receiver stations. The critical values of a quarter angle and a fifth angle were used to optimize base station positions, determining that measuring stations should be positioned on boundaries or angle bisectors. The results of simulations illustrate the efficacy of this method across various scenarios, offering a practical solution to target positioning challenges while considering the limitations imposed by signal beams. By effectively addressing these constraints, the proposed approach provides valuable insights and contributes to advancements in accurate target positioning in complex environments. Sihao Z et al. [17] designed a novel TOA system that achieves user equipment positioning and synchronization through a Periodically Asymmetric Ranging Network (PARN). The system consists of primary anchor nodes, secondary anchor nodes, and user equipment, employing Kalman filtering for virtual synchronization and ML methods for simultaneous positioning and synchronization. The experiments prove the system’s high precision in clock bias estimation and positioning synchronization, demonstrating its feasibility and superiority in practical applications. However, modern wireless communication systems face challenges such as signal attenuation due to complex geographical environments and object obstruction, multipath propagation, and interference, which severely impact positioning accuracy. Traditional positioning technologies find it difficult to meet high precision demands. Introducing intelligent reflecting surfaces as a solution provides ways to flexibly adjust reflection signal paths, optimize communication environments, overcome obstruction effects, enhance signal strength and coverage, and significantly improve communication efficiency and positioning accuracy, meeting increasing safety and reliability requirements.
Intelligent reflecting surfaces [18,19,20] have significantly addressed communication challenges between base stations and mobile devices in NLOS environments, making them essential for advancing next-generation wireless communication technologies. As a result, these surfaces have attracted considerable attention in recent years. Among the various categories of intelligent reflecting surfaces [21,22,23,24], STAR-RIS is distinguished by its ability to simultaneously reflect and refract incident signals, showcasing exceptional performance in omnidirectional positioning contexts.
Unlike conventional reconfigurable intelligent surfaces (RISs) that only support signal reflection, STAR-RIS provides unique bidirectional signal manipulation capabilities, which are particularly advantageous in positioning systems requiring full-space coverage. This capability allows STAR-RIS to serve users on both sides of the surface, effectively addressing NLOS challenges where users and base stations are obstructed by physical barriers. By independently controlling reflection and transmission coefficients, STAR-RIS enables precise beamforming tailored to user locations, thereby enhancing angle estimation and overall positioning accuracy. This makes STAR-RIS not only a promising technology for next-generation communication systems but also a key enabler for high-precision localization in complex environments. This key innovation means that each STAR-RIS unit can simultaneously process incident signals in two distinct modes: reflection mode for users on the same side as the signal source and transmission mode for users on the opposite side. This bidirectional functionality delivers three significant practical advantages in positioning systems: (1) full-space coverage through 360-degree service provision to users on both sides of the surface, effectively addressing NLOS challenges where users and base station are separated by physical obstacles; (2) independent beam optimization via separate control of reflection and transmission coefficients (amplitude and phase), enabling precise beamforming tailored to users’ specific locations on either side; and (3) cost-effective deployment by replacing traditional RIS pairs with a single STAR-RIS panel while maintaining equivalent coverage with reduced hardware costs and implementation complexity. In our positioning system, this bidirectional capability is particularly valuable, as it allows simultaneous service for multiple users distributed on both sides of the STAR-RIS, significantly enhancing positioning availability in complex NLOS environments.
This characteristic makes STAR-RIS particularly advantageous in addressing the complexities associated with NLOS scenarios and furthering the development of advanced communication systems. He J et al. [25,26] proposed an innovative positioning system that achieves three-dimensional positioning both indoors and outdoors through STAR-RIS. As a novel reconfigurable intelligent surface, STAR-RIS can provide bidirectional communication functionality, enhancing the system’s coverage and positioning accuracy through its unique transmission and reflection capabilities. Further research on STAR-RIS will undoubtedly contribute to the enhancement of wireless communication networks and their applications in various challenging environments.
The development of angle-of-arrival (AoA) estimation technology has evolved from early-phase interferometry methods [27] to subspace-based algorithms such as MUSIC and ESPRIT. It is worth noting that, in addition to these algorithmic advances, a number of pure hardware-based AoA estimation schemes have also emerged. For example, Avitabile et al. [28] proposed a full-hardware AoA estimation system that directly performs angle estimation in hardware through modular analog and digital circuits, providing a hardware solution for adaptive beamforming that does not rely on software algorithms. Such hardware-oriented work offers an important technical path for low-power real-time positioning of IoT devices. The enhanced solution proposed in this paper, based on STAR-RIS and optimization algorithms, complements these efficient hardware platforms and aims to further improve positioning performance in complex NLOS scenarios through advanced signal processing. In this study, the Root-MUSIC algorithm was selected due to its closed-form solution capability under uniform linear array (ULA) configurations, high computational efficiency, and robust performance in handling coherent signals. This choice is particularly suitable for STAR-RIS-assisted positioning systems, as the ULA structure of the STAR-RIS aligns well with the foundational assumptions of the Root-MUSIC algorithm. However, as wireless positioning systems advance toward higher accuracy and more complex scenarios, traditional algorithms increasingly reveal limitations in addressing challenges, such as massive MIMO, high mobility, and Integrated Sensing and Communication (ISAC). As indicated by recent studies, tensor decomposition-based unified frameworks can integrate channel estimation and target parameter estimation into a single mathematical structure, significantly improving the utilization efficiency of spectral and hardware resources [29]. Meanwhile, research on 6G-oriented terahertz ISAC systems demonstrates that reconfigurable all-digital architectures implemented on specialized hardware such as FPGAs provide essential technical support for low-power and real-time processing [30]. Zhang et al. proposed an intelligent reflecting surface-assisted TDOA-AOA collaborative localization method, which employs the MUSIC algorithm for the high-precision angle of arrival estimation and integrates the Chan algorithm with an enhanced snake optimizer to significantly improve positioning accuracy and robustness in non-line-of-sight environments [31].
Therefore, this study adopts Root-MUSIC as the foundational algorithm, aiming to establish a reliable performance benchmark for STAR-RIS-assisted positioning systems while also laying a theoretical groundwork for the subsequent adoption of more advanced reconfigurable processing architectures. The remainder of this paper is organized as follows. Section 2 elaborates on the system model for STAR-RIS-assisted 5G positioning. Section 3 introduces the proposed core methodology—the SRNA algorithm, comprising Root-MUSIC-based AoA estimation and an inertial weight-enhanced Whale Optimization Algorithm for position refinement. Section 4 validates the performance of the proposed framework through numerical simulations with comparative analysis against conventional approaches. Finally, Section 5 concludes this paper and outlines potential research directions.
The primary contributions of this study are outlined as follows:
  • A STAR-RIS-based positioning system model, termed 5G STAR-RIS location (GSL), is developed. It includes a base station, multiple STAR-RIS units, and several users. In this model, NLOS conditions exist between the base station and users, with users located on both sides of the STAR-RIS. Signals are reflected to the base station solely via the STAR-RIS, greatly improving positioning in complex environments. This model offers a robust framework for enhancing accuracy where traditional methods are limited, advancing wireless communication technology. Further analysis and testing may yield valuable insights for real-world applications.
  • An AoA positioning algorithm using STAR-RIS technology is designed, estimating user positions via the Root-MUSIC algorithm. A mathematical optimization problem is formulated to minimize the Euclidean distance between estimated and true coordinates, thereby boosting accuracy. This method uses advanced computational techniques to improve localization reliability in challenging NLOS environments. By overcoming traditional limitations, the algorithm represents a significant advance in wireless positioning technology. Further research may provide deeper understanding of achieving higher precision and real-time adaptability;
  • The SWOA is introduced to address the previously mentioned optimization problem. The algorithm initially incorporates the social behavior model of whales for global search, subsequently dynamically adjusting and implementing adaptive strategies to improve convergence speed and accuracy across varying environments while preserving diversity, effectively mitigating the risk of local optima. This innovative approach not only enhances the overall performance of the optimization process but also ensures robustness against the challenges posed by complex search landscapes. By maintaining a balance between exploration and exploitation, the SWOA aims to provide a reliable solution to the optimization challenges inherent in positioning algorithms, ultimately contributing to more accurate user localization in practical applications. Further investigations of the SWOA’s performance may reveal additional insights into its effectiveness across diverse scenarios;
  • The simulation results demonstrate that the proposed SRNA positioning algorithm exhibits superior positioning performance over traditional positioning algorithms in various SNR conditions, especially in complex NLOS environments. Specifically, the positioning errors are reduced by up to 50–62% relative to traditional algorithms.

2. System Model

As illustrated in Figure 1, the GSL model comprises a multi-antenna base station and two single-antenna user terminals. And according to W ( W 3 )   S T A R R I S , the two single-antenna users are located on either side of S T A R R I S . The base station is equipped with a uniform linear array (ULA) of B antennas, the set of these antennas is denoted as T = T 1 , T 2 , , T b , T B , b = 1 , , B , and the distance between the antennas is d. S T A R R I S is equipped with a ULA consisting of S units. The unit of S T A R R I S w is denoted as U w = U 1 w , U 2 w , , U s w , , U S w , s = 1 , , S .
The refraction and reflection functions of the S T A R R I S are achieved based on two independent phase shifters, with each phase shifter represented by a phase control matrix. STAR-RIS represents an advanced reconfigurable intelligent surface, for which its hardware architecture primarily integrates the following four key components: a metasurface unit array composed of numerous subwavelength-scale electromagnetic elements arranged periodically, with each unit capable of independently manipulating the phase, amplitude, and polarization state of incident electromagnetic waves; reconfigurable control elements, typically employing active components such as varactor diodes, PIN diodes, or MEMS switches, to dynamically reconfigure the electromagnetic properties of each unit via external bias voltages; an intelligent control module, often integrating FPGAs or microprocessors, which compute and generate the required phase control matrices in real time based on channel state information and system demands; and a power management unit that provides stable electrical power to the control circuits and active components. (Multiple S T A R R I S units work in time division, meaning that only one S T A R R I S operates at any given time. The base station sends positioning reference signals, which are reflected or refracted by the S T A R R I S to reach the user equipment. The user equipment estimates the angle of departure (AOD) of the reflected or refracted beams from different S T A R R I S units and uses geometric relationships to estimate the user’s position. The signal transmission and processing methods for each reflection or refraction path are the same; therefore, for simplicity, the subscript w will be omitted in the following descriptions.) Its reflection phase shift matrix is represented as Ω 1 = d i a g ( e j θ 1 t , e j θ 2 t , , e j θ S t ) . The refraction phase-shift matrix is represented as Ω 2 = d i a g ( e j θ 1 r , e j θ 2 r , , e j θ S r ) , where d i a g ( . ) represents the diagonal matrix Ω S × S , and θ s t , θ s r represents the phase shift of the reflection or refraction of U s w on S T A R R I S w , θ s t , θ s r 0 , 2 π . Define S T A R R I S w as the energy-splitting coefficient for the reflection, denoted by ε 1 , and the energy splitting coefficient for the refraction is defined as ε 2 ; both satisfy ε 1 2 + ε 2 2 = 1 . The location of the base station is represented as ( x B , y B , z B ) , and the location of user i is represented as ( x i , y i , z i ) , ( i = 1 , 2 ) . The position of S T A R R I S w is represented as ( x w , y w , z w ) , and the position of the base station and S T A R R I S w is known, while the positions of the two users are unknown. It is assumed that the two users cannot directly receive the signals transmitted by the base station (BS); hence, the users can only receive signals reflected (or refracted) by S T A R R I S (i.e., NLOS links). Among them, the position estimated by the signal reflected by S T A R R I S is U E 1 , and the position estimated by the signal refracted by S T A R R I S is U E 2 .
(1) B S S T A R R I S w channel
The channel parameter matrix H B , S w B × S from the BS to the w-th S T A R R I S w can be expressed as [32]
H B , S w = ρ B , S w e j 2 π f τ B , S w a B , S w ( ϕ B , S w , θ B , S w ) ,
where f is the carrier frequency, and ρ B , S w is the spatial path loss of the signal. τ B , S w is the time for the signal to reach S T A R R I S w . a B , S w ( ϕ B , S w , θ B , S w ) is the direction vector from the base station to S T A R R I S w . The direction vector is represented in the following form:
a B , S w ( ϕ B , S w , θ B , S w ) = 1 , e j 2 π d λ cos θ cos ϕ , , e ( S 1 ) j 2 π d λ cos θ cos ϕ T ,
(2) S T A R R I S w U E i channel
The channel parameter matrix h S w , i H S × 1 , i = 1 , 2 between S T A R R I S w and U E i can be expressed as follows:
h S w , i = ρ s w , i e j 2 π f τ S w , i a S w ( ϕ S w , i , θ S w , i ) ,
where ρ s w , i represents the free-space path loss from S T A R R I S w to U E i , τ s w , i is the time when the signal reaches U E i , and a S w ( ϕ S w , i , θ S w , i ) is the direction vector from S T A R R I S w to the user, which can be expressed as follows:
a S w ( ϕ S w , i , θ S w , i ) = 1 , e j 2 π d λ sin θ cos ϕ , , e ( S 1 ) j 2 π d λ sin θ cos ϕ T ,
where ϕ S w , i denotes the azimuth angle in the horizontal plane, and θ S w , i represents the elevation angle.
(3) B S S T A R R I S w U E i channel
The total channel H B , U i B × S for communication from the base station B S to U E i through S T A R R I S w can be expressed as follows:
H B , U i = H B , S w Ω i h S w , i H ,
where Ω i , i 1 , 2 denotes the reflection (or refraction) matrix that characterizes the interaction between S T A R R I S w and U E i .
When the base station (BS) transmits a known signal w, only one S T A R R I S is operational during a specified time period. At time slot t, let y i represent the signal received by U E i , which can be specifically expressed as follows:
y i = ε i P H B , S Ω i h S , i H w + n i , i = 1 , 2 ,
where n i is the additive Gaussian white noise of σ 2 , and P is the transmission power of the base station.

3. SRNA Algorithm

3.1. Angle Estimation

To ensure the accurate estimation of user positions, the Root-MUSIC algorithm is employed to determine the azimuth and elevation angles of arrival at the S T A R R I S for two users. The covariance matrix for the received signals is expressed as follows:
R y = E y i y i H ,
This formulation provides a critical framework for analyzing the spatial characteristics of the signals, enabling precise angle estimation. By accurately modeling the received signals, the algorithm significantly enhances the robustness and reliability of the positioning system, ultimately contributing to improved overall performance in complex communication environments. By conducting the eigenvalue decomposition of the covariance matrix of the received signals, one can obtain following:
R y = E s Λ s E s H + E n Λ n E n H ,
where E s is the feature vector matrix of the signal subspace, and E n is the feature vector matrix of the noise subspace. Construct the objective function as follows:
f ( z ) = 1 p H ( z ) E n E n H p ( z ) ,
where
p ( z ) = 1 , z , z 2 , , z s 1 T ,
z = e j ω ,
Transform the objective function into the form of polynomial roots:
f ( z ) = p H ( z ) E n E n H p ( z ) ,
Find the roots of polynomial f ( z ) and select the N roots that are closest to the unit circle. Based on the obtained roots z, the calculation formula for the pitch angle can be expressed as follows:
θ S w , i = arg sin ( λ 2 π d arg ( z i ) ) , i = 1 , 2 ,
where λ is the wavelength of the signal, and d is the inter-element spacing of the array. The calculation formula for the horizontal plane direction angle is as follows:
ϕ S w , i = tan 1 ( z ) ( z ) ,

3.2. User Location Estimation

The user’s location p i = p x i , p y i , p z i T can be obtained based on the estimated AOD of several reflection or refraction beams and the positional relationship between S T A R R I S and B S . The position of S T A R R I S w is s w = s w , x , s w , y , s w , z T , and the position of B S is b = b x , b y , b z T . The direction vector from U E i to S T A R R I S w is e w , i = e w , x i , e w , y i , e w , z i T , and this can be concluded based on geometric relationships:
θ S w , i = arctan e w , z i e w , x i 2 + e w , y i 2 ,
ϕ S w , i = arctan e w , y i e w , x i ,
where e w , x i = p x i s w , x i , e w , y i = p y i s w , y i , and e w , z i = p z i s w , z i .
By combining the observed values of AOA and the geometric relationships, the following linear equation can be established:
c w , i = tan ϕ S w , i , 1 , tan θ S w , i T ,
d w , i = tan ϕ w s , i · s w , x s w , y + tan θ S w , i · s w , z ,
For all W  S T A R R I S , combining all the equations into matrix form yields the following:
C i = c 1 , i , c 2 , i , , c W , i T ,
d i = d 1 , i , d 2 , i , , d W , i T ,
The linear equation is constructed as follows:
C i p i = d i ,
The user position can be obtained by solving the equation using the least squares method:
p i = ( C i T C i ) 1 C i T d i ,

3.3. SWOA

The inertial weight-enhanced Whale Optimization Algorithm (SWOA) employed in this study constitutes an improvement over the standard WOA. Originally introduced by Mirjalili and Lewis in 2016 [33], the standard WOA simulates humpback whales’ bubble-net feeding behavior through three main phases: encircling prey, bubble-net attacking, and random search. Our enhancement incorporates a linearly decreasing inertial weight mechanism, a strategy previously demonstrated in optimization domains such as Particle Swarm Optimization to effectively balance global exploration and local exploitation capabilities. The primary distinction between SWOA and standard WOA lies in the introduction of the inertial weight factor ω into the position update equations (see Equations (26)–(29)), which enhances global search capacities during initial iterations while enabling more refined local search in later stages. To find the optimal solution for the Inertia Weight Whale Optimization Algorithm, we construct a fitness function F ( x , y , z ) following the principle of minimizing the total discrepancies between each estimated point and its matching real position. By computing these differences one by one and then reducing their overall sum, we seek to pinpoint the individual that shows the closest match between the actual and estimated values. The fitness (error distance) function is formulated as follows:
F ( x , y , z ) = min n = 1 N ( p x i j x ) 2 + ( p y i j y ) 2 + ( p z i j z ) 2 ,
where N denotes the number of experiments conducted: n = 1, 2, …, N.

3.3.1. Initialization Step

First, initialize the positions of the whale group by randomly generating a set of candidate solutions, where each solution represents a possible position of a user. The initialization formula for the whale group positions is as follows:
x i ( 0 ) = L B + ( UB LB ) × r a n d ,
where x i ( 0 ) denotes the spatial location of the i-th whale individual at the starting iteration. L B and UB denote the lower and upper bounds of the search space, respectively, while r a n d represents a uniformly distributed random variable on the interval [0, 1].

3.3.2. Position Update Formula

The behavior of whales is divided into three types: encircling prey, bubble-net attacking (development stage), and searching for prey (exploration stage). The first two parts achieve local optimization through a contraction encirclement mechanism, while the searching prey stage conducts global optimization through random search. By incorporating a hybrid inertia weight strategy, it can better balance global exploration and local development, improving the algorithm’s convergence speed and global search development capabilities. The whale population navigates according to the position of the optimal individual. The position updating process is governed by an inertia weight, which introduces the feature of smooth position transitions. First, we calculate the coefficient vector:
A = 2 a · r a n d a , C = 2 · r a n d ,
where a is the coefficient vector used to control the search range and convergence speed of the whale individuals, gradually decreasing from 2 to 0 during the iterative process; a = 2 2 t T max , where t is the current iteration count, and T max is the maximum iteration count.
The position update formula with the introduction of inertia weight is as follows:
x ( t + 1 ) = ω · x ( t ) + ( 1 ω ) · ( x * ( t ) A · C · x * ( t ) x ( t ) ) ,
where ω is the inertia weight, and x * ( t ) is the position of the current optimal solution.
When choosing the spiral ascent path, the whale generates a spiral movement based on the distance to the prey. The formula for its spiral movement is as follows:
x ( t + 1 ) = ω · x ( t ) + ( 1 ω ) · x * ( t ) x ( t ) · e b t · cos ( 2 π t ) + x * ( t ) ,
where b is the spiral shape constant. The selection formula for surrounding or spiraling is the following:
x ( t + 1 ) = ω · x ( t ) + ( 1 ω ) · x * ( t ) A · C · x * ( t ) x ( t ) ω · x ( t ) + ( 1 ω ) · x * ( t ) x ( t ) · e b t · cos ( 2 π t ) + x * ( t ) if p < 0.5 if p 0.5 ,
where p is randomly selected within the range 0 , 1 , determining whether to choose the surrounding or spiral path.
If an individual in the whale pod does not find the optimal prey position, the algorithm will choose a random search, and the formula for updating the random search position is as follows:
x ( t + 1 ) = ω · x ( t ) + ( 1 ω ) · x r a n d A · C · x r a n d x ( t ) ,
where x r a n d denotes a randomly sampled position within the search space.

3.3.3. Adjustment of Inertia Weight

After each iteration, it is necessary to dynamically adjust the inertia weight to balance exploration and exploitation capabilities. The formula for adjusting the inertia weight is as follows:
ω = ω max ω max ω min · t T max ,
where ω max and ω min are the maximum and minimum values of the inertia weight, respectively.
In summary, the comprehensive process of the SRNA algorithm (Table 1) is outlined as follows:

4. Simulation Results and Analysis

This article utilizes the MATLAB simulation platform to establish a three-dimensional space measuring 50 m × 50 m × 20 m, thereby verifying the effectiveness of the SWOA algorithm. Accompanied by a Rician fading channel with a K-factor of 3 dB. Shadow fading follows a log-normal distribution with a standard deviation of 8 dB, while multipath effects are simulated through a six-path Rayleigh fading channel exhibiting a delay spread of 100 ns. The Rician channel model is selected to simulate a hybrid channel environment containing both a dominant line-of-sight path and multiple scattered paths, which represents a more general scenario compared to pure NLOS or LOS conditions. The shadow-fading standard deviation of 8 dB is chosen based on typical measured values in urban macrocellular environments, simulating medium-scale signal variations caused by buildings and other large obstacles. In this article, the speed of light is set as c = 3 × 10 8   m / s . The quantity of antennas deployed at the B S is set to w = 8 , the carrier frequency is f = 3.5   GHz , the quantity of S T A R R I S is I = 4 , and the coordinate of S T A R R I S 1 is (10 m, 13 m, 13.5 m). The coordinate of S T A R R I S 2 is (18m, 15m, 13.5m), the coordinate of S T A R R I S 3 is (15 m, 10 m, 13.5 m), and the coordinate of S T A R R I S 4 is (20 m, 8 m, 13.5 m). The number of reflection units K for each S T A R R I S is four. The coordinate of B S is (0 m, 0 m, 20 m). The spacing of each S T A R R I S unit is d = λ 2 . This configuration adheres to the standard setup for uniform linear arrays, effectively preventing grating lobes and optimizing beamforming performance. Meanwhile, the actual deployment spacing between different STAR-RIS panels is determined according to their respective coordinate positions. The bandwidth is 20 MHz, the number of carriers is 16, the amplitude reflection coefficient is γ i n = 1 , and the population size is configured as N = 100 , while the maximum iteration count is set to T max = 50 .
Figure 2 illustrates the simulation outcomes comparing the fitness levels of diverse algorithms throughout distinct iteration numbers. Within this graphical representation, the horizontal axis signifies the iteration count, whereas the vertical axis corresponds to the associated fitness levels. Specifically, the blue curve illustrates the GA (Genetic Algorithm), the red curve relates to the SO (Snake Optimizer) algorithm, and the yellow curve signifies the proposed SNRA algorithm. It is evident that the error distances for all algorithms consistently decrease as the number of iterations increases, ultimately converging to unique values. Significantly, the SNRA algorithm investigated in this research exhibits a reduced convergence error distance when compared to both the GA and SO, thereby validating its superior performance. The findings elucidated in Figure 2 exemplify the comparative efficacy of the algorithms in question, revealing significant trends in fitness levels as influenced by iteration counts. The progressive reduction in error distances across all algorithms implies a robust performance, reinforcing the validity of the iterative optimization methods employed here.
As depicted in Figure 3, the simulation compares the three-dimensional localization results of estimated unknown nodes with those of actual nodes at a signal-to-noise ratio of 20 dB. Within the designated area, 45 known nodes are uniformly distributed throughout the environment. In the figure, the black symbol signifies the actual location of the user to be positioned, while the blue symbol signifies the location of the user estimated by the proposed SNRA algorithm. The figure distinctly illustrates that the positions estimated by the SNRA algorithm predominantly correspond with actual user positions. This observation corroborates the assertion that the proposed algorithm attains a high degree of localization accuracy.
These results highlight the effectiveness of the SNRA algorithm in accurately determining user positions, thus validating its application in scenarios requiring precise localization. The significant proximity of the estimated positions to the actual locations reflects the robustness of the algorithm against environmental variations and potential signal interferences. Further analysis will delve into the implications of these findings and their relevance for future advancements in localization technology.
The simulation results presented in Figure 4 compare the localization errors associated with varying numbers of STAR-RIS at a fixed signal-to-noise ratio. In this figure, the x-axis denotes the quantity of STAR-RIS elements, whereas the y-axis represents the localization error. This figure distinctly demonstrates that with the increment in the number of STAR-RIS elements, the localization error of the SNRA algorithm exhibits a gradual decline. The augmentation in STAR-RIS elements enables a more efficient implementation of the Root-MUSIC algorithm, thereby yielding more precise estimated coordinates and improving localization accuracy via the proposed SNRA algorithm. These findings underline the importance of the number of STAR-RIS in achieving precise localization. The enhanced performance observed with an increasing number of STAR-RIS underscores the proposed SNRA algorithm’s capability to leverage improved system components and algorithms.
As illustrated in Figure 5, the simulation investigates the variation patterns of localization errors across varying signal-to-noise ratios. The abscissa axis represents the SNR, whereas the ordinate axis denotes the associated localization error. The circular, square, and triangular markers represent the curves of the GA, SO, and SNRA algorithm, respectively. This graphical representation distinctly shows that an increase in SNR leads to a subsequent reduction in localization error. This trend can be attributed to the improved quality of communication transmission associated with a higher SNR ratio, which consequently enhances localization accuracy. Significantly, the SNRA algorithm demonstrates substantial superiority over both the GA and SO. In particular, at an SNR of 30 dB, the SNRA algorithm exhibits a localization error of 0.9129 m, whereas the GA algorithm shows an error of 1.8257 m, and the SO algorithm presents an error of 1.4606 m. These results demonstrate that the localization error of the proposed SNRA algorithm is reduced by up to 50% and 62% relative to the GA and SO algorithms, respectively. This substantiates the effectiveness of the SNRA algorithm proposed in the current study. The comprehensive analysis of localization errors presented at various SNR highlights the importance of optimizing communication systems to enhance localization performance. Such findings not only illustrate the direct relationship between SNR and localization accuracy but also provide critical insights for future research aimed at improving localization strategies in diverse environments.

5. Conclusions

This study successfully developed a non-line-of-sight angle-of-arrival localization algorithm based on STAR-RIS, providing a new approach to tackle complex localization challenges in 5G environments. By combining the Root-MUSIC algorithm with the whale optimization algorithm, the method significantly improves localization accuracy and computational efficiency. In simulation tests, the proposed algorithm demonstrates exceptional performance under various signal-to-noise ratio conditions, showing a marked advantage over traditional localization algorithms. Particularly in complex non-line-of-sight environments, the bidirectional transmission characteristics of STAR-RIS are fully utilized, effectively addressing signal attenuation and path loss issues to enhance localization quality. This research provides a solid theoretical and practical foundation for the future exploration of high-precision localization technologies, advancing the application prospects of intelligent reflecting surfaces in communication systems. By optimizing the power distribution of reflected and refracted signals, this paper presents an innovative solution for the precision and efficiency of wireless localization, offering broad application potential in 5G and subsequent communication technologies. While simulation results validate the theoretical superiority of the proposed algorithm, several key discrepancies are anticipated during real-world implementation: Channel non-idealities including more complex multipath effects, time-varying characteristics, and non-stationary noise may lead to moderately higher positioning errors than simulation outcomes; hardware impairments such as quantization errors in STAR-RIS elements, response inconsistencies, and transceiver nonlinearities will inevitably affect system performance; deployment complexities involving installation positioning, orientation calibration, and coexistence with other systems present additional implementation challenges; and dynamic environment adaptability requirements differ significantly from the static assumptions in simulations, necessitating enhanced real-time adaptation capabilities in practical scenarios. Future work will focus on addressing these practical challenges to facilitate the transition from theoretical research to real-world applications.

Author Contributions

Conceptualization, H.H. and Y.Z.; methodology, H.H. and Y.Z.; validation, H.H.; formal analysis, H.H.; investigation, H.H.; writing—original draft preparation, H.H. and Y.Z.; supervision, Y.Z.; funding acquisition, Y.Z. All authors have read and agreed to the published version of this manuscript.

Funding

This work was supported in part by the Beijing Science and Technology Project (Grant No. Z211100004421009) and in part by the National Natural Science Foundation of China (Grant No.: 62301058).

Data Availability Statement

The original contributions presented in the study are included in this article; further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no competing interests.

References

  1. Bach, S.-H.; Yi, S.-Y. Constrained Least-Squares Trilateration for Indoor Positioning System Under High GDOP Condition. IEEE Trans. Ind. Inform. 2024, 20, 4550–4558. [Google Scholar] [CrossRef]
  2. Li, X.; Tan, Y.; Shen, Z.; Li, X.; Zhou, Y. GNSS-Based Cooperative Instantaneous Precise Positioning Aided by Multi-Epoch and Multi-Agent Associations. IEEE Trans. Veh. Technol. 2024, 73, 7771–7784. [Google Scholar] [CrossRef]
  3. Liu, J.; Huang, W.; Guo, B. Conjugated-Point Positioning Method Based on Multiview Images. IEEE Trans. Geosci. Remote Sens. 2023, 61, 5604611. [Google Scholar] [CrossRef]
  4. Wang, Z.; Chen, X.; Li, H.; Zhang, Y.; Wang, Q. PoE-Enabled Visible Light Positioning Network with Low Bandwidth Requirement and High Precision Pulse Reconstruction. IEEE J. Indoor Seamless Position. Navig. 2024, 2, 1–11. [Google Scholar] [CrossRef]
  5. Bi, S.; Li, K.; Hu, S.; Ni, W.; Wang, C.; Wang, X. Detection and Mitigation of Position Spoofing Attacks on Cooperative UAV Swarm Formations. IEEE Trans. Inf. Forensics Secur. 2024, 19, 1883–1895. [Google Scholar] [CrossRef]
  6. Wang, Q.; Fan, S.; Zhang, Y.; Gao, W.; Wei, J.; Wang, Y. A Novel Adaptive Sliding Observation-Based Cooperative Positioning Algorithm Under Factor Graph Framework for Multiple UUVs. IEEE Trans. Ind. Inform. 2023, 19, 8743–8753. [Google Scholar] [CrossRef]
  7. Pan, J.; Li, B.; Zhang, H.; Gao, F.; Li, X.; Zhou, G. Self-Calibration of INS/Odometer Integrated Navigation System with a Large Initial Position Error. IEEE Sens. J. 2024, 24, 11048–11056. [Google Scholar] [CrossRef]
  8. Yang, X.; Mai, J.; Chen, S.; Zhang, Y.; Ning, C.; Zhong, L. Fast LS Image Matching and Vision-Based DIG Measurement for LSM’s Positioning. IEEE Trans. Ind. Inform. 2024, 20, 6000–6008. [Google Scholar] [CrossRef]
  9. Zhu, Z.; Zhao, C.; Xi, Y. Micro-Vision Super-Resolution Restoration and Positioning Based on Ultraprecision Machining Topography Guidance. IEEE Trans. Instrum. Meas. 2024, 73, 5033711. [Google Scholar] [CrossRef]
  10. Park, K.-M.; Lee, B.-h.; Lee, E.; Kim, S.-C.; Choi, J. GPS-Aided Automatic Site Survey Method for WiFi RTT-Based Positioning. IEEE Trans. Veh. Technol. 2023, 72, 13120–13129. [Google Scholar] [CrossRef]
  11. Gur, E.; Amar, A.; Sabach, S. A dual-based first-order algorithm for ToA asynchronous localization and synchronization. Signal Process. 2025, 206, 108934. [Google Scholar] [CrossRef]
  12. Liao, Y.; Wang, Y. Source Localization using TDOA Based on Improved Snake Optimizer. Circuits Syst. Signal Process. 2024, 43, 5237–5261. [Google Scholar] [CrossRef]
  13. Kutluyil, D. Optimal Geometries for AOA Localization in the Bayesian Sense. Sensors 2022, 22, 9802. [Google Scholar] [CrossRef] [PubMed]
  14. Wu, C.; Wong, C.I.; Wang, Y.; Chen, X.; Zhang, L. Experimental Study of Bluetooth Indoor Positioning Using RSS and Deep Learning Algorithms. Mathematics 2024, 12, 1386. [Google Scholar] [CrossRef]
  15. Ruan, H.; Sun, P.; Dong, Y.; Tahaei, H.; Fang, Z. An Overview of LoRa Localization Technologies. Comput. Mater. Contin. 2025, 82, 1645–1680. [Google Scholar] [CrossRef]
  16. Wang, Z.; Hu, D.; Huang, J.; Li, X.; Chen, Y. Optimal Station Placement Method for Three-Station TDOA Localization Under Signal Beam Constraint. Wirel. Pers. Commun. 2023, 132, 110–149. [Google Scholar] [CrossRef]
  17. Zhao, S.; Zhang, X.-P.; Cui, X.; Lu, M. A New TOA Localization and Synchronization System with Virtually Synchronized Periodic Asymmetric Ranging Network. IEEE Internet Things J. 2021, 8, 9030–9044. [Google Scholar] [CrossRef]
  18. Zhu, Y.; Mao, B.; Kato, N. On a Novel High Accuracy Positioning with Intelligent Reflecting Surface and Unscented Kalman Filter for Intelligent Transportation Systems in B5G. IEEE J. Sel. Areas Commun. 2024, 42, 68–77. [Google Scholar] [CrossRef]
  19. Zhou, T.; Xu, K.; Shen, Z.; Xie, W.; Zhang, D.; Xu, J. AoA-Based Positioning for Aerial Intelligent Reflecting Surface-Aided Wireless Communications: An Angle-Domain Approach. IEEE Wirel. Commun. Lett. 2022, 11, 761–765. [Google Scholar] [CrossRef]
  20. Meng, K.; Wu, Q.; Chen, W.; Li, D. Cooperative Cellular Localization with Intelligent Reflecting Surface: Design, Analysis and Optimization. IEEE Trans. Commun. 2024, 72, 2974–2988. [Google Scholar] [CrossRef]
  21. Peng, X.; Hu, X.; Gao, J.; Jin, R.; Chen, X.; Zhong, C. Integrated Localization and Communication for IRS-Assisted Multi-User mmWave MIMO Systems. IEEE Trans. Commun. 2024, 72, 4725–4740. [Google Scholar] [CrossRef]
  22. Zhang, Z.; Wang, Y.; Li, H.; Chen, X.; Liu, K. Multiple Intelligent Reflecting Surfaces Collaborative Wireless Localization System. IEEE Trans. Wirel. Commun. 2025, 24, 134–148. [Google Scholar] [CrossRef]
  23. Lu, Z.; Zhao, Y.; Xu, C.-Z. RCSIL: RIS-Assisted Cooperative Channel State Information Localization for V2X System. IEEE Internet Things J. 2025, 12, 1016–1031. [Google Scholar] [CrossRef]
  24. Yu, F.; Zhang, C.; Quek, T.Q.S. STAR-RIS-Enabled Simultaneous Indoor-and-Outdoor Communication Networks: A Stochastic Geometry Approach. IEEE Trans. Wirel. Commun. 2024, 23, 18053–18069. [Google Scholar] [CrossRef]
  25. He, J.; Fakhreddine, A.; Alexandropoulos, G.C. Simultaneous Indoor and Outdoor 3D Localization with STAR-RIS-Assisted Millimeter Wave Systems. In Proceedings of the 2022 IEEE 96th Vehicular Technology Conference (VTC2022-Fall), London, UK, 26–29 September 2022; pp. 1–6. [Google Scholar]
  26. He, J.; Fakhreddine, A.; Alexandropoulos, G.C. STAR-RIS-enabled simultaneous indoor and outdoor 3D localization: Theoretical analysis and algorithmic design. IET Signal Process. 2023, 17, e12209. [Google Scholar] [CrossRef]
  27. MacDonald, V.H.; Schultheiss, P.M. Optimum Passive Bearing Estimation in a Spatially Incoherent Noise Environment. J. Acoust. Soc. Am. 1969, 46, 37–43. [Google Scholar] [CrossRef]
  28. Avitabile, G.; Florio, A.; Coviello, G. Angle of Arrival Estimation Through a Full-Hardware Approach for Adaptive Beamforming. IEEE Trans. Circuits Syst. II 2020, 67, 3033–3037. [Google Scholar] [CrossRef]
  29. Zhang, R.; Cheng, L.; Wang, S.; Lou, Y.; Gao, Y.; Wu, W.; Ng, D.W.K. Integrated Sensing and Communication with Massive MIMO: A Unified Tensor Approach for Channel and Target Parameter Estimation. IEEE Trans. Wirel. Commun. 2024, 23, 8571–8587. [Google Scholar] [CrossRef]
  30. Zhang, R.; Wu, W.; Chen, X.; Gao, Z.; Cai, Y. Terahertz Integrated Sensing and Communication-Empowered UAVs in 6G: A Transceiver Design Perspective. IEEE Veh. Technol. Mag. 2025. [Google Scholar] [CrossRef]
  31. Zhang, Y.; Liu, C.; Gang, Y.; Wang, Y. TDOA-AOA Localization Algorithm for 5G Intelligent Reflecting Surfaces. Electronics 2024, 13, 4347. [Google Scholar] [CrossRef]
  32. Yildirim, I.; Basar, E. Channel Modelling in RIS-Empowered Wireless Communications. In Intelligent Reconfigurable Surfaces (IRS) for Prospective 6G Wireless Networks; IEEE: Piscataway, NJ, USA, 2023; pp. 123–148. [Google Scholar]
  33. Mirjalili, S.; Lewis, A. The Whale Optimization Algorithm. Adv. Eng. Softw. 2016, 95, 51–67. [Google Scholar] [CrossRef]
Figure 1. GSL system model.
Figure 1. GSL system model.
Electronics 14 04729 g001
Figure 2. Fitness varies with the number of iterations.
Figure 2. Fitness varies with the number of iterations.
Electronics 14 04729 g002
Figure 3. Three-dimensional localization result graph.
Figure 3. Three-dimensional localization result graph.
Electronics 14 04729 g003
Figure 4. Localization error analysis of various algorithms with different STAR-RIS counts.
Figure 4. Localization error analysis of various algorithms with different STAR-RIS counts.
Electronics 14 04729 g004
Figure 5. Localization error analysis of algorithms under different signal-to-noise ratios.
Figure 5. Localization error analysis of algorithms under different signal-to-noise ratios.
Electronics 14 04729 g005
Table 1. SRNA algorithm procedure.
Table 1. SRNA algorithm procedure.
StepOperation
1.Set the population size N, the maximum number of iterations T max
2.Obtain the estimated position of U E through Equation (22);
initialize the population;
calculate the fitness value of each U E position;
determine the best position.
4.while  t < T max
5.    for each individual
6.        Calculate parameters a , A , C , l , and p
7.        if  p < 0.5
8.            if  | A | < 1
9.                Update position using Equation (26)
10.            else
11.                Update position using Equation (29)
12.            end if
13.        else
14.            Update position using Equation (27)
15.        end if
16.    end for
17.Boundary constraint processing;
recalculate fitness value of user positions
18.Greedy selection
19.Update the best user position
20. t = t + 1
21.end while
Output: ( x , y , z )
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.

Share and Cite

MDPI and ACS Style

Hao, H.; Zhang, Y. STAR-RIS-Enabled AOA Positioning Algorithm. Electronics 2025, 14, 4729. https://doi.org/10.3390/electronics14234729

AMA Style

Hao H, Zhang Y. STAR-RIS-Enabled AOA Positioning Algorithm. Electronics. 2025; 14(23):4729. https://doi.org/10.3390/electronics14234729

Chicago/Turabian Style

Hao, Hongyi, and Yuexia Zhang. 2025. "STAR-RIS-Enabled AOA Positioning Algorithm" Electronics 14, no. 23: 4729. https://doi.org/10.3390/electronics14234729

APA Style

Hao, H., & Zhang, Y. (2025). STAR-RIS-Enabled AOA Positioning Algorithm. Electronics, 14(23), 4729. https://doi.org/10.3390/electronics14234729

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop