Abstract
To achieve a green and sustainable wireless communication network, the reconfigurable intelligent surface (RIS) technology has emerged as an emerging technology. The RIS-assisted mmWave massive MIMO vehicle-to-everything (V2X) communications can support enhanced V2X applications for connected and automated vehicles. The design of RIS-assisted mmWave V2X communications is though not exempt of challenges as a result of fast time-varying propagation and highly dynamic vehicular networks and topologies. To address some of these challenges, we propose an attention-deep reinforcement learning jointly beamforming based on tensor decomposition for RIS-assisted mmWave massive MIMO system to improving the safety and traffic efficiency of cooperative automated driving. The received signal of the vehicle is decomposed into four-dimensional tensors and study the channel, frequency and time attention (CFTA) algorithm using the low order tensor characteristics of mmWave channels. This algorithm can extract the frequency and time characteristics of the channel, and obtain the millimeter wave characteristic channel between the corresponding base station (BS) and the vehicles. The problem of jointly optimization of beamforming matrix at the BS and the phase shift matrix on the RIS is constructed and solved using deep reinforcement learning (DRL). Unlike traditional alternating optimization methods, the integration of DRL techniques into the optimal design of the system enables the observation of immediate rewards, learning from the environment and improving it to obtain optimal solutions to high-dimensional jointly beamforming optimization problems ultimately. The simulation results show that the proposed algorithm has meaningful performance compared with other methods.
Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.Avoid common mistakes on your manuscript.
Introduction
The deep integration of wireless communication technology, artificial intelligence (AI) and big data technology has led to the rapid development of information technology, driving the evolution of 5G towards 6G. In recent years, millimeter-wave massive multiple input multiple output (MIMO) wireless communication systems have generated a research boom in academia and industry as a promising technology due to their ability to support massive amounts of mobile data traffic and wireless connectivity [1,2,3,2,]. To achieve a green and sustainable wireless communication network, the reconfigurable intelligent surface (RIS) technology [4, 5] has emerged as an emerging technology in the sight of scholars, which could combine with millimeter-wave massive MIMO wireless communications to form a new RIS-assisted millimeter-wave massive MIMO system model with unique quasi-passive, software-programmable, easy-to-deploy, low-cost and low-energy characteristics. In [6], the authors considered a hybrid RIS-assisted MIMO-OFDM operating in the millimeter-wave band, and established a connection between RIS technology and millimeter-wave hybrid MIMO systems. In the latest RIS research work, unlike the conventional RIS [7], proposed an emerging scheme for integrating stacked intelligent metasurfaces (SIMs), with transceivers to support HMIMO communication for 6G to achieve considerable spatial gain, which also gives a rich inspiration for the subsequent development of this work.
In the V2X millimeter-wave massive MIMO systems, millimeter-waves faced serious multipath effects and fading losses during transmission. Multipath effects lead to fading phenomena, signal fading limits the distance that wireless signals can transmit, and reflections and refraction from large objects such as buildings are unavoidable factors [8]. Therefore, millimeter-wave communication was usually carried out using massive MIMO technology transmitting narrow beams. However, the transmission performance of a narrow beam was dependent on beam alignment, which exacerbated the frequent channel estimation in communication systems, and it became more difficult to obtain accurate channel state information (CSI) and beam alignment in dynamic V2X scenarios. As an artificial electromagnetic surface structure with programmable electromagnetic properties developed from metamaterial technology, RIS could be deployed on the surface of large buildings, roadside units and other objects in the wireless communication environment to build an intelligent programmable wireless environment, which is expected to break through the barriers of traditional wireless communication [9,10,11,12,13].
Recent works have discussed the potent-ials and challenges of RIS-assisted wireless communications (see, e.g. [9, 14, 15], and references therein). Among the several open issues, we highlight the acquisition of transmit beamforming at the BS and the phase shifts on the RIS. In existing studies, the widely adopted communication metrics include achievable rate[16], spectral efficiency [17], or energy efficiency [18]. For reflecting RIS-assisted multiple input single output (MISO) systems, an alternating optimization method was proposed in [19] to solve the joint design of local optimal transmit beamforming at the BS and the phase shifts on the RIS. In [20, 21], various optimization techniques were designed to maximize a reflecting RIS-assisted MIMO system with only one legitimate receiver and one eavesdropper. To maximize sum rate and energy efficiency, a zero-forcing (ZF) based algorithm employed at the BS was used in [22, 23] to obtain the phase shift using stochastic gradient descent (SGD) search and sequential fractional programming, which in turn jointly optimized the transmit beamforming and phase shift [24]. divided the channel training phase into several periods and proposed a random configuration and a Euclidean distance maximization based configuration that can generate suitable RIS reflection coefficient training sets, then directly estimated the effective superposition channels of direct links and all reflection links, constituting a low-complexity channel estimation and passive beamforming framework.
In wireless communications research over the past decade, tensor modeling has been successfully applied to solve various signal processing problems [25,26,27,28]. Tensor-based signal processing benefits from the powerful uniqueness of tensor decomposition, while exploiting the multidimensional nature of the signals and communication channels transmitted/received. In [29], it is shown that the received signals in RIS-assisted MIMO communication systems could be written as a 3-way tensor admitting a canonical polyadic (CP) decomposition. In [30], the authors related the channel estimation problem for RIS-assisted MIMO systems to fitting the PARAFAC model to a 3-way tensor. They derived two methods for simple pilot-assisted channel estimation algorithms (namely, KRF and BALS) and the analytical expressions of the CRB [31]. extends the TRICE framework by [32] and proposed a TenRICE framework using the CP tensor decomposition method in the RIS-assisted millimeter-wave MIMO system. Double-RIS was deployed in a MIMO system to solve the channel estimation and design problem based on an alternating least squares (ALS) approach using the tensor structure of the received signal [33]. Using the channel sparse angular and delay domains, a Sparse Bayesian Learning (SBL) model with tensor structure was introduced to reconstruct the complete cascade channel and derive the Cramer-Rao lower bound (CRLB) in [34].
Recently, researchers have argued that AI will be at the heart of future wireless communication systems (e.g., 6G and beyond) [35,36,37,38], its ability to solve mathematically intractable non-linear non-convex problems and the explosive growth of massive data computation problems has caused scholars to use AI techniques to solve design and optimization problems in wireless communication systems. In [35, 36], deep learning (DL) was used to obtain the beamforming matrix for MIMO systems by establishing a mapping relationship between the channel information and the precoding design. In addition to this, attention mechanisms were also widely used in DL. The attention module could optimize the weighting of input features by minimizing recognition errors and enhancing important information. In [39], Woo et al. proposed a convolutional block attention module that implements channel attention and spatial attention to enhance the critical part of the input features [40]. proposed a time–frequency attention (TFA) mechanism that learns valuable channel, frequency and time feature to improve automatic modulation recognition (AMR) performance. Deep Reinforcement Learning (DRL) was also used in wireless communication systems to improve the learning speed of neural networks in DL [27, 29, 37,38,39,40]. Reference [38] maximizing SINR using DRL by jointly design of beamforming, power control, and interference coordination non-convex optimization problems. Jointly design of transmit beam and reflection phase shift to maximize the sum rate of MISO systems via DRL in [41]. To address the problems of poor robustness of DRL to diverse channels and excessive overhead of DRL’s interaction with the actual environment [42], proposed a DRL algorithm based on location-aware imitation environmental network (IEN). Meanwhile [43], provides further prospective considerations for multi-RIS-empowered wireless communication and leverages the independence between the system design parameter configuration and the future state of the wireless environment to propose an efficient multi-armed bandits approaches for sum rate maximization. Unlike mmwave channels [44], uses multiple RISs for terahertz bands using DRL to counteract propagation losses to constitute a novel hybrid beamforming scheme for multi-hop RISs-assisted communication networks. In summary, DRL is very beneficial for wireless communication systems dealing with time variation. The remainder of this paper is summarized as follows:
-
1.
In "System model and channel model", RIS-assisted V2X millimeter-wave massive MIMO system utilizing a switchable RIS, which controls the reflecting elements on the RIS with a micro-controller depending on the wireless environment and gives system model and channel model.
-
2.
In "Tensor decomposition and problem formulation", utilizing CP tensor decomposition to link the system with jointly optimized transmit beamforming at the BS and reflecting phase shifts on the RIS, and the optimization problem is given.
-
3.
In "Jointly beamforming based attention-DRL", an attention-DRL-based algorithm for jointly optimized the transmit beamforming at the BS and reflecting phase shifts on the RIS is proposed. A channel–frequency–time attention (CFTA) framework is proposed to extract critical temporal and frequency features in the channel and utilize a DRL-based algorithm for optimization.
-
4.
Numerical simulation results and conclusions are given in "Simulation results and analysis" and "Conclusion", respectively.
Notations: For a given matrix \({\mathbf{A}}\), \({\mathbf{A}}^{{\text{T}}}\) and \({\mathbf{A}}^{{\text{H}}}\) denotes its transpose and the conjugate transpose (Hermitian), respectively. The Khatri-Rao product is denoted as \(\diamondsuit\). Moreover, \(diag(a)\) forms a diagonal matrix \({\mathbf{A}}\) by putting the entries of the input vector \(a\) in its main diagonal. \({\mathbf{A}}^{(t)}\) is the value of \({\mathbf{A}}\) at time \(t\).\({\text{ Re}} \{ {\mathbf{A}}\}\) and \({\text{Im}} \{ {\mathbf{A}}\}\) denote the real part and imaginary part of a complex number \({\mathbf{A}}\), respectively.
System model and channel model
In the section, a system model and channel models for RIS-assisted V2X millimeter-wave massive MIMO system are introduced.
System model
In such system, we deploy a BS at the roadside, a RIS on the exterior surface of a high building and multiple vehicles, as shown in Fig. 1. The BS has \(N_{T}\) transmitting antennas and communicates with \(K\) vehicles which has \(N_{R}\) receiving antennas every vehicle, where \(N_{T} \ge N_{R}\), and RIS has \(N_{S}\) passively reflecting elements and one micro-controller. It is assumed that the direct communication link from the BS to the vehicles suffers from severe signal blockage due to the wireless communication environment, therefore, in this paper, we utilize the RIS as a relay and the communication link of the system model only consists of a cascade channel from the BS to the RIS, and from the RIS to the vehicles, the direct signal transmissions between the BS and the vehicles are assumed to be negligible. As the RIS is essentially a passively reflecting array and could control the phase of the sub-arrays on the RIS with a micro-controller depending on the wireless environment. We assume that for all vehicles the channel matrix is known.
The considered RIS-assisted V2X millimeter-wave massive MIMO system comprised of \(N_{T}\) transmitting antenna BS simultaneously communicating \(K\) vehicles, which have \(N_{R}\) receiving antennas. RIS is equipped with \(N_{S}\) reflecting elements and one micro-controller, which is attached to a building’s facade
In a time-slotted transmission, we assume that the RIS aligns its phase shifts as a function of the time \(n = 1, \ldots ,T\). The received signal of the vehicles during \(T\) time slots is formulated as
where \(y_{n} \in {\mathbb{C}}^{{N_{R} \times 1}}\) denotes the received signal at the time index \(n \in {\mathcal{N}}\),which is positive integer. The phase shifts vector at time \(n\) is defined as \(s_{n} \triangleq [s_{{ne^{{j\phi_{1} ,n}} }}^{1} ,s_{{ne^{{j\phi_{2} ,n}} }}^{2} ,...,s_{{ne^{{j\phi_{{N_{S} }} ,n}} }}^{{N_{S} }} ]^{\text{T}} \in {\mathbb{C}}^{{N_{S} \times 1}}\).\(x_{n}\) denotes the vector embodying the transmitted pilot symbol at time \(n\),where \(\phi_{{n_{S} }} \in (0,2\pi ]\) and \(s_{n}^{{N_{S} }} \in \{ 0,1\}\) controls the ON–OFF state of the corresponding elements of the RIS at time \(n\).\(g_{n} \in {\mathbb{C}}^{{N_{T} \times 1}}\) is the beamforming vector applied at the BS.\(w_{n}\) denotes the complex additive white Gaussian noise (AWGN) with the zero mean and entries of variance \(\sigma_{n}^{2}\).And we assume that the channel matrix from the BS to the reflecting RIS denotes \({\mathbf{H}}_{{\mathbf{T}}} \in {\mathbb{C}}^{{N_{S} \times N_{T} }}\) and the channel matrix from the reflecting RIS to the sensing target vehicles denotes \({\mathbf{H}}_{{\mathbf{R}}} \in {\mathbb{C}}^{{N_{R} \times N_{S} }}\).
Different from the perfectly stable block fading model, time-varying fading channels are considered, where the fading coefficient varies from symbol to symbol. Then the received signal at time \(n\) of the \(k^{{{\text{th}}}}\) vehicles is represented as
where \(y_{k,n}\) denotes the received signal at the \(k^{{{\text{th}}}}\) vehicles.\({\mathbf{H}}_{{k,{\mathbf{R}}}}\) denotes the channel matrix from the RIS to the \(k^{{{\text{th}}}}\) vehicles.
For the sake of problem optimization meaningfully, we have done this by stacking \(\{ y_{k,n} ,n = 1,...,T\}\) into a matrix. The received signals could be written as
where \({\mathbf{Y}}_{k} = [y_{k,1} ,y_{k,2} , \ldots ,y_{k,n} ,...,y_{k,T} ] \in {\mathbb{C}}^{{N_{R} \times T}}\), \(D_{k} ({\mathbf{S}}) \triangleq {\text{diag}}(s_{k,n} )\) denotes a diagonal matrix of the RIS phase shift matrix \({\mathbf{S}}\), and \({\mathbf{S}} \triangleq [s_{k,1} ,s_{k,2} , \ldots ,s_{k,n} ,...,s_{k,T} ] \in {\mathbb{C}}^{{N_{S} \times T}}\).The pilot symbol matrix is \({\mathbf{X}} \triangleq [x_{k,1} ,x_{k,2} , \ldots ,x_{k,n} ,...,x_{k,T} ]^{\text{T}} \in {\mathbb{C}}^{{T \times N_{T} }}\),\({\mathbf{W}}_{k} \triangleq [w_{k,1} ,w_{k,2} , \ldots ,w_{k,n} ,...,w_{k,T} ]^{\text{T}} \in {\mathbb{C}}^{{N_{R} \times T}}\) denotes AWGN matrix, and the beamforming matrix regards \({\mathbf{G}} \in {\mathbb{C}}^{{N_{T} \times T}}\).
Channel model
Due to the high mobility of vehicles in the RIS-assisted V2X millimeter-wave massive MIMO system, the fading components are distinct for each symbol index \(n\), and the Doppler frequency determines the correlation function across different symbols in the time domain. The challenging time-varying system model in this treatise is that the coherence time is confined to the duration of a single symbol [45, 46]. As shown in Fig. 1, the BS, RIS and vehicles are each marked separately with 3D coordinates, which denote, respectively, as \((x_{B} ,y_{B} ,z_{B} )\), \((x_{R} ,y_{R} ,z_{R} )\) and \((x_{V} ,y_{V} ,z_{V} )\).
In the subsection, suppose that the cascade link from BS to RIS and RIS to vehicles present only a line-of-sight (LoS) link. Besides, the frequency offset of the LoS path is induced by the movement of the vehicles. Then, the channel models \({\mathbf{H}}_{{\mathbf{T}}}\) from BS to RIS and \({\mathbf{H}}_{{\mathbf{R}}}\) from RIS to vehicles could be separately formulated as
where \(L_{T}\) and \(L_{R}\) are, respectively, denote the total numbers of paths for BS to RIS and RIS to vehicles, respectively. \(g_{T}^{l}\) and \(g_{R}^{l}\) are, respectively, denote the path gains of the direct LOS for the \(l^{th}\) path of these channel with \(\Delta f_{T}\) and \(\Delta f_{R}\) are respectively denote the frequency offset of \({\mathbf{H}}_{{\mathbf{T}}}\) and \({\mathbf{H}}_{{\mathbf{R}}}\),which could be formulated as \(\Delta f_{T} = f_{d} \cos (\phi_{0}^{T} )\) and \(\Delta f_{R} = f_{d} \cos (\phi_{0}^{R} )\).The normalized maximum Doppler frequency of the cascade link is given by \(f_{d} = \frac{{vf_{c} }}{{cf_{s} }}\), where \(v\) represents the sensing target vehicles’ velocity and \(c\) represent the speed of light,\(f_{c}\) and \(f_{s}\) represent the carrier frequency and the symbol rate. And where the angle between the LOS and the direction of movement of vehicles are evaluated by \(\phi_{0}^{T} = \arctan \frac{{y_{B} - y_{R} }}{{x_{B} - x_{R} }}\) and \(\phi_{0}^{R} = \arctan \frac{{y_{R} - y_{V} }}{{x_{R} - x_{V} }}\) respectively.
Note that, the azimuth and elevation AoAs are evaluated in conformity with 3D coordinates of BS to RIS channel matric \({\mathbf{H}}_{{\mathbf{T}}}\) as \(\theta^{t} = \arccos \frac{{z_{B} - z_{R} }}{{d^{BR} }}\) and \(\varphi^{t} = \arctan \frac{{y_{B} - y_{R} }}{{x_{B} - x_{R} }}\),where the distance of BS to RIS \(d^{BR}\) is represented as \(d^{BR} = \sqrt {(x_{B} - x_{R} )^{2} + (y_{B} - y_{R} )^{2} + (z_{B} - z_{R} )^{2} }\). The azimuth and elevation AODs are evaluated in conformity with 3D coordinates of RIS to vehicles channel matric \({\mathbf{H}}_{{\mathbf{R}}}\) as \(\theta^{r} = \arccos \frac{{z_{V} - z_{R} }}{{d^{RV} }}\) and \(\varphi^{r} = \arctan \frac{{y_{V} - y_{R} }}{{x_{V} - x_{R} }}\),where the distance of RIS to vehicles \(d^{RV}\) is represented as \(d^{RV} = \sqrt {(x_{V} - x_{R} )^{2} + (y_{V} - y_{R} )^{2} + (z_{V} - z_{R} )^{2} }\).
Furthermore, the RIS is regarded to be comprised of \(N_{S}\) passively reflecting elements, where a uniform planar array (UPA) is adopted, as well as for the UPA horizontally with \(N_{v}\) elements and vertically with \(N_{h}\) elements, where \(N_{S} = N_{v} \cdot N_{h}\). The array response vector is formulated as Eq. (6), where \([1 \le n_{v} \le (N_{v} - 1)]\), \([1 \le n_{h} \le (N_{h} - 1)]\), and the wavelength denotes \(\lambda = \frac{c}{{f_{c} }}\), the antenna spacing denotes \(d = \frac{\lambda }{2}\).
Tensor decomposition and problem formulation
In this section, the tensor decomposition analysis method to perform a four-dimensional tensor decomposition of the transmitting antennas’ spatial characteristics, receive spatial antennas characteristics, temporal characteristics and frequency characteristics of the BS, RIS and vehicles is considered, as well as the jointly optimization problem of beamforming matrix at the BS and the phase shift matrix on the RIS are formulated.
Tensor representation of the received signal
To simplify the exposition of the received signal, we reformulate Eq. (6) from the following developments. The received signal of vehicles is re-represented by \({\mathbf{Z}} \triangleq {\mathbf{GX}}_{k} \in {\mathbb{C}}^{{T \times N_{S} }}\) could be rewritten as
Then, according to the proof in [47], the received signals of vehicles \({\mathbf{Y}}_{k}\) has a tensor structure and could be recast as in a 4-way tensor \({\mathbf{\mathcal{Y}}} \in {\mathbb{C}}^{{N_{R} \times N_{T} \times T \times K}}\). Admitting a canonical polyadic (CP) decomposition [48] tensor representation model and by definition of the outer product, for each \((n_{R} ,n_{T} ,n,k) {-} {\text{th}}\) entry of the received signal with free-noise tensor \({\overline{\mathbf{\mathcal{Y}}}}\) could be approximately defined as
where \(h_{{\text{k,R}}}^{{n_{R} ,n_{S} }} \triangleq [{\mathbf{H}}_{{k, {\mathbf{R}}}} ]^{{n_{R} ,n_{S} }}\), \(h_{{\text{T}}}^{{n_{T} ,n_{S} }} \triangleq [{\mathbf{H}}_{{\mathbf{T}}} ]^{{n_{T} ,n_{S} }}\), \(z^{{n,n_{S} }} \triangleq [{\mathbf{Z}}]^{{n,n_{S} }}\) and \(s^{{k,n_{S} }} \triangleq [{\mathbf{S}}]^{{k,n_{S} }}\). The tensor could be approximated as a minimalist notation \({\overline{\mathbf{\mathcal{Y}}}} \approx [{\mathbf{H}}_{{k,{\mathbf{R}}}} ,{\mathbf{H}}_{{\mathbf{T}}} ,{\mathbf{Z}},{\mathbf{S}}]\).Consequently, admitting a CP decomposition tensor representation with free-noise model as
where \(\Im_{4,M} \in {\mathbb{C}}^{{N_{S} \times N_{S} \times N_{S} \times N_{S} }}\) is the 4-way super-diagonal tensor.
We add noise to \({\overline{\mathbf{\mathcal{Y}}}}\), then the tensor form of the completely received signal could be expressed as
where \(\mathbf{\mathcal{W}}\) is the AWGN tensor.
Exploiting the nature of the slices of the CP tensor decomposition, the \(m - {\text{mode}}\) unfolding of the received signal tensor \({\mathbf{\mathcal{Y}}}\), where \(m = \{ 1,2,3,4\}\), into the following four matrix forms [49, 50]:
The tensor decomposition form of the received signal of vehicles are given, which \([{\mathbf{\mathcal{Y}}}]_{(m)}\) and \([\mathbf{\mathcal{W}}]_{(m)}\), for \(m = \{ 1,2,3,4\}\) indicate the received signal in the form of tensor and AWGN tensor along the \(m{\text{ - mode}}\). However, alternating least squares technique (ALS) is usually used to do the task of channel estimation after the tensor decomposition of the received signal, i.e., to estimate the factor matrix in the tensor.
In this paper, the beam from the BS is tough to align with dynamic vehicles in urban road environments that we want to solve. The alternating optimization techniques typically are used by previous scholars [20, 51, 52] to maximize or minimize the objective functions, where in each iteration, by fixing \({\mathbf{S}}\) first to seek to solve suboptimal \({\mathbf{G}}\), and then by setting the solved \({\mathbf{G}}\) to derive \({\mathbf{S}}\), until the algorithms converge.
Nevertheless, ALS technique usually has the advantage of solving optimization problems with small sample sizes. For optimization problems with large sample sizes, it is more advantageous to adopt gradient descent. In the following subsections, we describe the problem to be solved optimally in this paper.
Problem formulation
To address the problem described in "Tensor representation of the received signal", according to [53], minimizes the upper bound on the BER by jointly optimizing the beamforming matrix \({\mathbf{G}}\) and RIS phase shift matrix \({\mathbf{S}}\) in this paper. As seen from (4), the RIS-assisted V2X millimeter-wave massive MIMO system is equivalent to acceding a mirror compared to a conventional millimeter-wave massive MIMO system. The role of RIS is to assist in the transformation of the direct link between the BS and the vehicles into a cascade link from the BS to the RIS and from the RIS to the vehicles due to the interruption of the communication link caused by the complexity of the wireless communication environment and to passively reflect the signal by modulating the phase of the reflecting elements on the RIS via a micro-controller attached to the RIS. Moreover, as the RIS only reflects passively, the AWGN is not introduced through the RIS reflections, which are only present in the wireless communication environment. As communication over the cascade links is more sophisticated than the direct links and could be more prone to significant signal degradation, hence, to fulfill the maximum average transmit power at the BS, a power constraint demand to be considered, and assuming that \({\mathbf{Z}}\) satisfies the maximum average transmit power, which the power constraint is denoted as
Without loss of generality, assuming that the pilot symbol matrix \({\mathbf{X}}\) fulfills the condition of normalization, i.e., \({{\mathbb{E}} }[\left\| {\mathbf{X}} \right\|_{2}^{2} ] = 1\), Then Eq. (15) could be rewritten as
Based on what is described in [53], adopting the minimization of the upper bounded on the BER as our objective of optimization in this paper, and the upper bound on the BER of the whole system could be described as
where \(D_{{{\text{HD}}}}\) indicates the Hamming distances between the two received signals and \(P_{{{\text{PEP}}}}\) indicates the pairwise error probability, which could be represented by \(P_{{{\text{PEP}}}} = Q(\sqrt {\frac{{D_{{{\text{ED}}}}^{2} }}{{2\sigma^{2} }}} )\). Meanwhile, where \(D_{{{\text{ED}}}}^{2}\) indicates the square of the Euclidean distance between two noise-free received signal vectors, which the objective of jointly optimizing \({\mathbf{G}}\) and \({\mathbf{S}}\) is to make the noise-free received signal vectors received by the communicate receiver as separate as possible and \(D_{{{\text{ED}}}}^{2}\) could be denoted as Eq. (18).
In this paper, our goal is to cause the received signal by the receiver to be as separable as possible under the condition of supplying a perfect CSI state. It is worth mentioning that from (17), we could see that the upper bound of the minimum BER is determined jointly by the Hamming distance \(D_{{{\text{HD}}}}\) and the Euclidean distance \(D_{{{\text{ED}}}}\). Included among these, the Hamming distance \(D_{{{\text{HD}}}}\) between two received signals is determined by the mapping rule, i.e., \(\Gamma\), while, as could be seen from (21), the Euclidean distances \(D_{{{\text{ED}}}}\) are determined jointly by the phase shift matrix of the RIS, the beamforming matrix and the pilot symbol. Based on these denotations, adopting the DDPG method in DRL to find the optimal \({\mathbf{G}}\) and \({\mathbf{S}}\) by minimizing the upper bound on the BER in this paper. Hence, the optimization problem could be formulated as
Jointly beamforming based attention-DRL
In this section, the problem \(({\mathbf{P1}})\) is non-convex, and it is usually challenging to obtain an optimal solution. To address this difficulty, the proposed Attention-DRL-based algorithm for jointly beamforming to more accurate determination of beamforming search directions is proposed. Extract crucial temporal and frequency features in the channel using an attention mechanism and jointly optimize transmit beamforming and phase shifts using a DRL model.
Channel–frequency–time attention mechanism
In this subsection, inspired by the literature [54], adopts attention mechanisms to extract the critical temporal and frequency features in the channel in this paper.
The channel-refined feature mapping is generated firstly by channel attention module and is used as an input to the frequency attention module and the time attention module. These two attention mechanisms, respectively, generate frequency-refined feature mapping and temporal-refined feature mapping. Then the two refined feature mappings are stitched together to notch the more pivotal channels of information in the wireless communication environment using convolutional layers finally. These three attention mechanisms are collectively referred to in this paper as CFTA. The overview of the proposed CFTA is shown in Fig. 2.
We assumed that channels from the BS to the RIS and from the RIS to the vehicles have been captured by the central controller in real-time, i.e., that these channels are known. Next, the basic principles of attention mechanisms and these three attention mechanisms are recommended individually.
(1) Attention mechanism
As a matter of fact, the objective of designing attention mechanisms is the benefit of more weight to the parts that need attention, which could be done by highlighting only severally prominent information for processing while neglecting additional contents, thus scaling up the efficiency of the neural network. Owing the neural network could only take real numbers as input. Hence, we extract the real and imaginary parts of the channels of \({\mathbf{H}}_{{\mathbf{T}}}\) and \({\mathbf{H}}_{{k,{\mathbf{R}}}}\) respectively, as follows:
As the dimension of the matrices \(d\) increases, the variance of the inner product of the critical matrices and the query matrices also increases. Hence, we adjust the product according to the result of the product \(\sqrt d\).
The attention matrices are obtained by multiplying the transpose of the critical matrices with the query matrices, adjusting by \(\sqrt d\) and then adopting the Softmax function for each column of the matrices, and normalizing, which is denoted as
where \({\mathbf{A}}_{{\mathbf{T}}}\) and \({\mathbf{A}}_{{\mathbf{R}}}\) are represented as the attention matrices of channel matrices \({\mathbf{H}}_{{\mathbf{T}}}\) and \({\mathbf{H}}_{{k,{\mathbf{R}}}}\), respectively, as well as \(d_{{\mathbf{T}}}\) and \(d_{{\mathbf{R}}}\) denote the dimension of channel matrices \({\mathbf{H}}_{{\mathbf{T}}}\) and \({\mathbf{H}}_{{k,{\mathbf{R}}}}\).
Then, the value matrices \({\mathbf{V}}_{{\mathbf{T}}}\) and \({\mathbf{V}}_{{\mathbf{R}}}\) are multiplied by the elements in the attention matrices \({\mathbf{A}}_{{\mathbf{T}}}\) and \({\mathbf{A}}_{{\mathbf{R}}}\),then the summation is performed to obtain a weighted sum of the attention weights for all inputs, and the overall representation of the output matrices of the attention mechanisms could be expressed as Eqs. (25) and (26).
(2) Channel attention module
In the channel attention module, its role is to excavate the channels containing pivotal information about the sensed target vehicles and to extract prominent information, such as frequency and time information, from that key information channel. Input is given feature channels \({\mathbf{H}}_{{\mathbf{T}}}\) and \({\mathbf{H}}_{{k,{\mathbf{R}}}}\), adopt the channel attention module to generate channel-refined feature mappings and perform maximum global pooling and global average pooling on the input feature mapping. The generated features of the two different contexts are used as input to the shared network—multi-layer perceptron (MLP), and the outputs of the shared network are summed and passed through the sigmoid function to generate the channel attention mappings \({\mathbf{H}}_{{\mathbf{T}}}^{{\mathbf{c}}}\) and \({\mathbf{H}}_{{k,{\mathbf{R}}}}^{{\mathbf{c}}}\) finally, where \({\mathbf{H}}_{{\mathbf{T}}}^{{\mathbf{c}}} = {\mathbf{M}}_{{\mathbf{c}}} ({\mathbf{H}}_{{\mathbf{T}}} ) \otimes {\mathbf{H}}_{{\mathbf{T}}}\) and \({\mathbf{H}}_{{k,{\mathbf{R}}}}^{{\mathbf{c}}} = {\mathbf{M}}_{{\mathbf{c}}} ({\mathbf{H}}_{{k,{\mathbf{R}}}} ) \otimes {\mathbf{H}}_{{k,{\mathbf{R}}}}\).The channel attention mechanism operations are formulated as Eqs. (27) and (28).
(3) Frequency attention module
In the frequency attention module, its role is to excavate the channels containing pivotal information about the prominent frequency information. The channel attention mappings generated by the channel attention module is used as input to the frequency attention module. The frequency attention module focuses on the frequency axis and along the time axis taking the average of \({\mathbf{H}}_{{\mathbf{T}}}^{{\mathbf{c}}}\) and \({\mathbf{H}}_{{k,{\mathbf{R}}}}^{{\mathbf{c}}}\). Maximum-pooling and average-pooling are then performed, and the cascade is followed by a cascaded convolutional layer and a sigmoid function to generate the final frequency attention mappings \({\mathbf{H}}_{{\mathbf{T}}}^{{\mathbf{f}}}\) and \({\mathbf{H}}_{{k,{\mathbf{R}}}}^{{\mathbf{f}}}\), where \({\mathbf{H}}_{{\mathbf{T}}}^{{\mathbf{f}}} = {\mathbf{M}}_{{\mathbf{f}}} ({\mathbf{H}}_{{\mathbf{T}}}^{{\mathbf{c}}} ) \otimes {\mathbf{H}}_{{\mathbf{T}}}^{{\mathbf{c}}}\) and \({\mathbf{H}}_{{k,{\mathbf{R}}}}^{{\mathbf{f}}} = {\mathbf{M}}_{{\mathbf{f}}} ({\mathbf{H}}_{{k,{\mathbf{R}}}}^{{\mathbf{c}}} ) \otimes {\mathbf{H}}_{{k,{\mathbf{R}}}}^{{\mathbf{c}}}\). The frequency attention mechanism operation are formulated as Eqs. (29) and (30).
(4) Time attention module
In the time attention module, its role is to excavate the channels containing pivotal information about the prominent time information. Similar to the frequency attention module, the channel attention mappings generated by the channel attention module is used as input to the time attention module. The time attention module focuses on the time axis and along the frequency axis taking the average of \({\mathbf{H}}_{{\mathbf{T}}}^{{\mathbf{c}}}\) and \({\mathbf{H}}_{{k,{\mathbf{R}}}}^{{\mathbf{c}}}\). The following steps are the same as for the frequency attention module operations, resulting in the time attention mappings \({\mathbf{H}}_{{\mathbf{T}}}^{{\mathbf{t}}}\) and \({\mathbf{H}}_{{k,{\mathbf{R}}}}^{{\mathbf{t}}}\), where \({\mathbf{H}}_{{\mathbf{T}}}^{{\mathbf{t}}} = {\mathbf{M}}_{{\mathbf{t}}} ({\mathbf{H}}_{{\mathbf{T}}}^{{\mathbf{c}}} ) \otimes {\mathbf{H}}_{{\mathbf{T}}}^{{\mathbf{c}}}\) and \({\mathbf{H}}_{{k,{\mathbf{R}}}}^{{\mathbf{t}}} = {\mathbf{M}}_{{\mathbf{t}}} ({\mathbf{H}}_{{k,{\mathbf{R}}}}^{{\mathbf{c}}} ) \otimes {\mathbf{H}}_{{k,{\mathbf{R}}}}^{{\mathbf{c}}}\). The time attention mechanism operation is formulated as Eqs. (31) and (32).
Ultimately, attaching \({\mathbf{H}}_{{\mathbf{T}}}^{{\mathbf{f}}}\) and \({\mathbf{H}}_{{\mathbf{T}}}^{{\mathbf{t}}}\) and \({\mathbf{H}}_{{k,{\mathbf{R}}}}^{{\mathbf{f}}}\) and \({\mathbf{H}}_{{k,{\mathbf{R}}}}^{{\mathbf{t}}}\), respectively, and adopting a convolutional layer with 1 × 1 sized kernels generate channels \({\hat{\mathbf{H}}}_{{\mathbf{T}}} = f^{1 \times 1} [{\mathbf{H}}_{{\mathbf{T}}}^{{\mathbf{f}}} ;{\mathbf{H}}_{{\mathbf{T}}}^{{\mathbf{t}}} ]\) and \({\hat{\mathbf{H}}}_{{k,{\mathbf{R}}}} = f^{1 \times 1} [{\mathbf{H}}_{{k,{\mathbf{R}}}}^{{\mathbf{f}}} ;{\mathbf{H}}_{{k,{\mathbf{R}}}}^{{\mathbf{t}}} ]\) with more critical information in a wireless communication environment eventually. The more pivotal channels could be adopted as input to the DRL model presented below, and be optimized more efficiently to obtain the optimal beamforming. The process of implementing the attention mechanism is shown in Algorithm 1.
The proposed jointly beamforming based attention-DRL
In the system model mentioned in this paper, the amplitude factor of the intelligent reflecting surface is set to be constant to \(\{ |s_{n}^{{n_{S} }} | \, = 1\} |_{{n_{S} = 1}}^{{N_{S} }}\). The optimization problem discussed in "Problem formulation" is equivalent to the joint optimization problem of transmit beamforming at the BS and the phase shifts on the RIS. Depending on the mobility of the vehicles in the wireless communication environment, the most challenging aspect of this optimization problem is to find the optimal beam based on the continuous state space and action space of the vehicles. Therefore, in this subsection, DRL based on attention mechanisms is proposed to solve the jointly transmit beamforming and RIS phase shifts problem in RIS-assisted millimeter-wave massive MIMO V2X system and adopting the DDPG algorithm based on the objective that the system could achieve the minimum BER.
![figure a](http://media.springernature.com/lw685/springer-static/image/art%3A10.1007%2Fs40747-023-01148-7/MediaObjects/40747_2023_1148_Figa_HTML.png)
In this paper, the model schematic is shown in Fig. 3, which includes the Attention Mechanism modules and the Actor-Critic modules. We assume that the inputs of the Attention-DRL model are channels \({\hat{\mathbf{H}}}_{{\mathbf{T}}}\) and \({\hat{\mathbf{H}}}_{{k,{\mathbf{R}}}}\), and the final outputs is the optimal action solution based on the best policy, which is the beamforming matrix and the RIS phase shift matrix in this paper.
Before describing the DDPG algorithm used in this paper, it is essential to understand reinforcement learning, as it is called, which aims to solve a policy for guiding a machine to choose the best action in different states. The strategy refers to the mapping between the state of the environment to the action or probability of action of Agent, the learners and policymakers are referred to as Agent, and the part that interacts with agent is referred to as the environment. By interacting with the environment, the Agent chooses an action based on a particular strategy, and then the environment moves to the next state based on a certain probability of state transfer while giving the Agent a reward based on how good or bad the state is at that moment. Based on the feedback from the environment, the Agent continuously adjusts its strategy, gradually arriving at its optimal action, which maximizes the environmental benefits.
About the DDPG algorithm, there are two primary networks: an Actor network, which learns the mapping relationship between the state to the optimal solution and is also known as a policy network. The input dimension of the Actor network is the state dimension, and the output is the continuous action of the Agent; the other that could evaluate the policy of the Agent, which is known as the Critic network, where the input dimension of the Critic network is the sum of the dimensions of that state and the continuous action and the output is the Q-value of the state-action pair.
Both the Actor network and the Critic network adopt a fully connected neural network with the same structure and the same optimizer, Adam, which speeds up the convergence of the neural network, and selects tanh as the activation function in the hidden layer of the neural network to handle the presence of negative inputs to the neural network. In addition to this, based on the power constraint of Eq. (19) and the restriction on the range of values of the phase shifts coefficient, we take absolute value normalization and range mapping methods at the output layer of the Actor network to satisfy the constraint, to ensure that the signal does not consume power by passing through the RIS reflection, and to convert the action into the data format needed for the problem to feed into Eq. (20) to calculate the achievable BER results.
This subsection follows with a detailed description of the algorithm for the model, mainly covering the construction of actions, states and immediate rewards. We are given the channels \({\hat{\mathbf{H}}}_{{\mathbf{T}}}^{(t)}\) and \({\hat{\mathbf{H}}}_{{k,{\mathbf{R}}}}^{(t)}\) at time \(t\). The state at this moment is \(s^{(t)}\), which describes a set of observations in the environment. The Agent performs an action step by step during the learning process, taking action \(a^{(t)}\) in policy \(\pi\),and \(s^{(t)}\) in the environment transitions to the next state \(s^{(t + 1)}\). As a result, the Agent gets a reward \(r^{(t)}\), which could be used to evaluate how good the action \(a^{(t)}\) is for a given state \(s^{(t)}\).
In the initial phase of the algorithm, we need to perform initialization operations. Initialize the experience replay memory \({\mathcal{E}}\) with size \(D\), the pair action emission of the beamforming matrix \({\mathbf{G}}\) and the phase shift matrix \({\mathbf{S}}\), and initialize the training parameters \(\vartheta_{a}^{(train)}\) and target parameters \(\vartheta_{a}^{(target)}\) of the Actor network and the training parameters \(\vartheta_{c}^{(train)}\) and target parameters \(\vartheta_{c}^{(target)}\) of the Critic network. Meanwhile, to establish the initial state, we define the phase shift coefficient of the RIS in the initial \(a^{(0)}\) as all zeros and the transmitter power allocation as all ones.\(s^{(t)}\) is composed of four main components: The first part is the channels at the current moment \({\hat{\mathbf{H}}}_{{\mathbf{T}}}^{(t)}\) and \({\hat{\mathbf{H}}}_{{k,{\mathbf{R}}}}^{(t)}\). According to the neural network described in "Channel-Frequency-time attention mechanism" could only be fed with real numbers. We need to separate the more critical channels containing real and imaginary numbers, where \({\hat{\mathbf{h}}}_{{\mathbf{T}}} = {\text{Re}} \{ {\hat{\mathbf{H}}}_{{\mathbf{T}}} \} + {\text{Im}} \{ {\hat{\mathbf{H}}}_{{\mathbf{T}}} \}\) and \({\hat{\mathbf{h}}}_{{k,{\mathbf{R}}}} = {\text{Re}} \{ {\hat{\mathbf{H}}}_{{k,{\mathbf{R}}}} \} + {\text{Im}} \{ {\hat{\mathbf{H}}}_{{k,{\mathbf{R}}}} \}\), the total size of this part is \((N_{T} N_{S} + KN_{S} ) + (N_{R} N_{S} + KN_{S} )\). The second and third components are the transmitted power of the BS \(\left\| {{\mathbf{G}}_{k} } \right\|^{2} = \left| {{\text{Re}} \{ {\mathbf{G}}_{k}^{{\text{H}}} {\mathbf{G}}_{k} \} } \right|^{2} + \left| {{\text{Im}} \{ {\mathbf{G}}_{k}^{{\text{H}}} {\mathbf{G}}_{k} \} } \right|^{2}\) and the received power of the vehicles \(\left\| {{\mathbf{H}}_{{k,{\mathbf{R}}}} } \right\|^{2} = \left| {{\text{Re}} \{ ({\mathbf{H}}_{{k,{\mathbf{R}}}} )^{{\text{H}}} {\mathbf{H}}_{{k,{\mathbf{R}}}} \} } \right|^{2} + \left| {{\text{Im}} \{ ({\mathbf{H}}_{{k,{\mathbf{R}}}} )^{{\text{H}}} {\mathbf{H}}_{{k,{\mathbf{R}}}} \} } \right|^{2}\), the size of each is \(2K\) and \(2K^{2}\). The last component of the state is the action \(a^{(t - 1)}\) obtained from the input of the state \(s^{(t - 1)}\) into the actor network at the previous moment, and the total size of this component is \((N_{T} K + N_{S} ) + (N_{R} K + N_{S} )\). In summary, the dimension of the state space is \(D_{s} = 2K + 2K^{2} + (N_{T} + N_{R} )(N_{S} + K) + 2(K + 1)N_{S}\).
The action \(a^{(t)}\) is mainly related to the transmit beamforming matrix \({\mathbf{G}}\) and the phase shift matrix \({\mathbf{S}}\). For each moment \(t\), the Agent observes the state \(s^{(t)}\) and feeds it into the Actor network. For better input into the neural network, it will \({\mathbf{G}}\) and \({\mathbf{S}}\) are similarly separated into real and imaginary parts of the form, where \({\mathbf{G}} = {\text{Re}} \{ {\mathbf{G}}\} + {\text{Im}} \{ {\mathbf{G}}\}\) and \({\mathbf{S}} = {\text{Re}} \{ {\mathbf{S}}\} + {\text{Im}} \{ {\mathbf{S}}\}\). The dimension of the action space is \(D_{a} = N_{T} K + N_{R} K + 2N_{S}\), and the action \(a^{(t)}\) is determined from the output of the Actor network.
According to the action \(a^{(t)}\) at the current moment, also the instantaneous channel at this moment \({\hat{\mathbf{H}}}_{{\mathbf{T}}}^{(t)}\) and \({\hat{\mathbf{H}}}_{{k,{\mathbf{R}}}}^{(t)}\), the final reward \(r^{(t)}\) is obtained as Eq. (20) of the minimum BER and the new state \(s^{(t + 1)}\).
Store the above empirical samples \((s^{(t)} ,a^{(t)} ,r^{(t + 1)} ,a^{(t + 1)} )\) into the experience replay memory \({\mathcal{E}}\). The \(Q\)-value function is obtained from the critic network, where \(Q(s^{(t)} ,a^{(t)} ) \triangleq q(\vartheta_{c}^{{\text{(train)}}} |s^{(t)} ,a^{(t)} )\),then a batch of randomly selected samples \((s^{{(t^{^{\prime}} )}} ,a^{{(t^{^{\prime}} )}} ,r^{{(t^{^{\prime}} + 1)}} ,a^{{(t^{^{\prime}} + 1)}} )|_{{t^{^{\prime}} \ne t}}\) of size \({\mathcal{M}}\) is drawn from the \({\mathcal{E}}\). After that we construct the loss function \(\mathcal{L}(\vartheta_{c}^{{\text{(train)}}} )\) of the training critic network as well as update the training critic network \(\vartheta_{c}^{{\text{(train)}}}\) and training actor network \(\vartheta_{a}^{{\text{(train)}}}\), and then update the target critic network \(\vartheta_{c}^{{\text{(target)}}}\) and target actor network \(\vartheta_{a}^{{\text{(target)}}}\), and finally the input state of the network becomes \(s^{(t + 1)}\).
For the update process of the above network, we made a detailed description, the parameters update process of training critic network could be expressed as Eqs. (33) and (34), where \(\eta_{c}\) is the learning rate of the training critic network, \(\gamma\) is the \(Q\)-learning rate, \(a^{^{\prime}}\) is the action output by the target actor network, and \(\nabla_{{\vartheta_{c}^{{\text{(train)}}} }} \mathcal{L}(\vartheta_{c}^{{\text{(train)}}} )\) represents the gradient value corresponding to the training critic network \(\vartheta_{c}^{{\text{(train)}}}\) calculated according to the loss function \(\mathcal{L}(\vartheta_{c}^{{\text{(train)}}} )\).
The parameters update process of training actor network could be expressed as Eq. (35), where \(\eta_{a}\) is the learning rate of the training actor network, \(\nabla_{a} Q(s^{(t)} ,a;\vartheta_{a}^{{\text{(target)}}} )\) is the gradient value of the target critic network based on the current input action, and \(\nabla_{{\vartheta_{a}^{{\text{(train)}}} }} \pi (s^{(t)} ;\vartheta_{a}^{{\text{(train)}}} )\) is the gradient of the training actor network corresponding to its \(\vartheta_{a}^{{\text{(train)}}}\).
The target critic network and target actor network parameters are updated with the following equations, respectively:
where \(\tau_{c}\) and \(\tau_{a}\) represent the update factors for the target critic network and the target actor network. The overall training algorithm for the entire DDPG network is shown in Algorithm 2. The purpose of the algorithm is not to train the neural network for online processing, but to obtain the optimal transmit beamforming matrix \({\mathbf{G}}_{o}\) and phase shift matrices \({\mathbf{S}}_{o}\) using DRL.
![figure b](http://media.springernature.com/lw685/springer-static/image/art%3A10.1007%2Fs40747-023-01148-7/MediaObjects/40747_2023_1148_Figb_HTML.png)
Simulation results and analysis
In this section, we give several numerical results to evaluate the performance of the proposed Attention-DRL algorithm for RIS-assisted V2X millimeter-wave massive MIMO system. Also, our proposed algorithm is compared with the following methods:
-
1.
The weighted minimum mean square error (WMMSE) algorithm in [54].
-
2.
The iterative algorithm based on fractional programming (FP) with the zero-forcing (ZF) beamforming in [12].
-
3.
The jointly optimal transmit beamforming with phase shift matrix based on DRL algorithm in [41].
Both algorithms require full up-to-date cross-cell CSI in WMMSE algorithm and FP with ZF algorithm, and both are centralized and iterative in their original forms. A detailed description and pseudo code of the former algorithm could be found in Algorithm 1 in [54] and the latter algorithm could be found in Algorithm 3 in [12]. Meanwhile, the DRL algorithm already assumes that large-scale path loss and the shadowing effects have been compensated, which detailed description and algorithmic pseudo-code could be found in Algorithm 1 in [41].
The key hyper-parameters used in our proposed algorithm for the RIS-assisted V2X millimeter-wave massive MIMO system are summarized in Table 1. In this paper, two different vehicles speeds \(v = 45{\text{ km/h,}}v = 90{\text{ km/h}}\), were selected for the dynamic V2X system, where the normalized Doppler frequencies are given by \(f_{d} = \frac{{vf_{c} }}{{cf_{s} }}\). The performance of the Attention-DRL-based algorithm compared to these three state-of-the-art benchmarks is shown in this section.
We consider the relationship between SNR and convergence performance for two different speeds of \(v = 45{\text{ km/h,}}v = 90{\text{ km/h}}\) and three different RIS reflecting elements of \(N_{S} = 50,100,150\) for the described Attention-DRL-based algorithm. In addition, we also consider the performance between SNR and average runtime between our proposed Attention-DRL-based algorithm and the three other algorithms described at the beginning of "Simulation results and analysis".
The SNR (in dB) is defined as
where \({\overline{\mathbf{\mathcal{Y}}}}\) is the received signal with free-noise tensor according to Eq. (9), and \(\mathbf{\mathcal{W}}\) is the AWGN tensor.
To better understand our proposed attention-DRL-based approach, we investigate the average rewards versus time step for different SNR as shown in Fig. 4. It can be seen that the SNR has a significant impact on the convergence rate and performance, especially in the low SNR scenario, where the performance is much smaller than that of the high SNR scenario, but the convergence rate and stability are faster and more stable compared to the high SNR scenario. Similarly, we also studied the average rewards versus time step for four scenarios with different \(N_{S} = 100,150\) and vehicle speeds of \(v = 45{\text{ km/h,}}v = 90{\text{ km/h}}\), with the effect of different SNR on the system, and the variation of the system model parameters setting has stronger robustness. As shown in Fig. 5, it can be seen that the average reward increases with the increase of element \(N_{S}\) and vehicle speed, and its convergence speed is more robust at vehicle speed of \(v = 45{\text{ km/h}}\) compared to that at vehicle speed of \(v = 90{\text{ km/h}}\), which also reflects from the side that the high speed of the vehicle affects the system performance.
Figure 6 depicts the SNR versus the number of iterations required for the convergence curve for the Attention-DRL-based algorithm. For the same SNR, a vehicle’s speed of \(v = 90{\text{ km/h}}\) requires a higher number of iterations than when the vehicle’s speed is \(v = 45{\text{ km/h}}\), which is indicative of the fact that the high-speed movement of the vehicle creates a more complex and impactful communication for the system. It could also be seen from Fig. 6 that the number of iterations required grows with the number of reflecting elements \(N_{S}\) in RIS, which also shows the significant impact of the number of reflecting elements \(N_{S}\) in RIS in the system. Also, the number of iterations required for convergence does not change significantly for several cases at a high SNR range, while different \(N_{S}\) values are more sensitive to the rate of convergence at the low SNR range.
We also consider the performance of average runtime between our proposed Attention-DRL-based algorithm and the other three algorithms. The results are depicted in Fig. 7. We chose a small number of reflecting elements for the RIS, \(N_{S} = 50\), and a low speed of the vehicles, \(v = 45{\text{ km/h}}\).The results confirm the robustness of our proposed the Attention-DRL-based algorithm over the WMMSE algorithm, FP with ZF algorithm and DRL algorithm. At the low SNR range, the four algorithms are more sensitive to the size of the SNR. The average running time of all four algorithms decreases as the low SNR grows. At the same time, the trend of the average running time of all four algorithms flattens out in the high SNR range.
We also consider the effect of changes in vehicles position at two different speeds based on the Attention-DRL algorithm on the normalized power and the power-efficiency gain by RIS. As shown in Figs. 8 and 9, we simulated the transmit power \(P_{t}\) versus the Variations of the vehicles position for the \({\text{BER = 10}}^{ - 4} \;{\text{dB}}\), which recorded in the upper subfigures. And the lower subfigures show the relationship between power-efficiency gain by RIS and vehicles position.
The vehicles speed adopted \(v = 45\;{\text{km/h}}\) in Fig. 6 and \(v = 90\;{\text{km/h}}\) in Fig. 9, and the number of reflecting elements in the RIS are set to \(N_{S} = 100\). As could be seen from the upper subfigures of Figs. 8 and 9, the RIS is not quite sensitive to the effect of normalized power \(P_{t}\) as the vehicles is positioned closer to the BS. In contrast, its normalized power reaches a plateau as the vehicles is positioned closer to the RIS. At the same time, as the distance between the vehicles and the RIS with the BS continuously increases, and the normalized \(P_{t}\) still increases with distance, as we would expect, but it also tends to level off. Similarly, as seen in the lower subfigures of Figs. 8 and 9, the power-efficiency gain by RIS is less as the vehicles are positioned closer to the BS. However, as the vehicles move closer and closer to the RIS, the power-efficiency gain by RIS increases significantly to some extent and it also tends to decrease as moving away from the RIS and BS.
Similarly, we combine Figs. 8 and 9 to see that, due to the faster speed vehicles in Fig. 9, the degree of variation in the normalized transmit power of the BS is not as good as at lower vehicles speeds and has a higher value than at lower rates. For the power-efficiency gain, we could find a minimized normalized power in both figures corresponding to a high-power gain.
In addition, we compared the performance of the BER and the number of reflecting elements in RIS between our proposed Attention-DRL-based algorithm with the other three algorithms described at the beginning of "Simulation results and analysis". Secondly, the effect of \(P_{t}\) on BER was also explored at RIS reflecting elements \(N_{S} = 100,150\), respectively.
In Fig. 10, we took the speed of the vehicles to be \(v = 45{\text{km/h}}\) and the \(P_{t} = 20\;{\text{dB}}\). As we can see, the BER of our proposed algorithm is reduced compared to other benchmark algorithms. Moreover, the BER decreases with an increasing number of elements in RIS under all algorithms considered, indicating that the effect of the number of reflecting elements in RIS in this system is also significant.
Another simulation experiment was also carried out, considering two sets of system parameters, as shown in Fig. 11. At the top of this figure, we set the number of reflecting elements in RIS to \(N_{S} = 100\) and at the below of this figure, we set the number of reflecting elements in RIS to \(N_{S} = 150\). Again, the speed of these vehicles adopted \(v = 45\;{\text{km/h}}\). It is observed that the BER decreases with the \(N_{S}\) at a certain number of reflecting elements in RIS, and while the larger the number of reflecting elements in RIS, the greater the BER will be when the \(P_{t}\) is inevitable, and making the system performance more robust.
Conclusion
In this work, we investigate a RIS-assisted V2X millimeter-wave massive MIMO system and propose an attention-DRL-based algorithm for jointly optimizing the transmit beamforming at the BS and reflecting phase shifts on the RIS to achieve the goal of minimum BER of the system. Unlike traditional alternating optimization methods, the integration of DRL techniques into the optimal design of RIS-assisted V2X millimeter-wave massive MIMO system enables the observation of immediate rewards, learning from the environment and improving it to ultimately obtain optimal solutions to high-dimensional optimization problems. In addition, we propose a CFTA framework that could effectively extract frequency and time features in the channel, improving the effectiveness of the optimization model. In particular, we take full advantage of the low-rank nature of the millimeter-wave channel and the tensor structure of the received signal, not only to increase accuracy but also to decline the training overhead and complexity. Simulation results have illustrated that the proposed scheme has meaningful behavior.
Data availability
The data are not publicly available due to restrictions [e.g., their containing information that could compromise the privacy of research participants].
References
Yang S, Hanzo L (2015) Fifty years of MIMO detection: the road to large-scale MIMOs. IEEE Commun Surv Tutor 17(4):1941–1988
Larsson EG, Tufvesson F, Edfors O, Marzetta TL (2014) Massive MIMO for next generation wireless systems. IEEE Commun Mag 52(2):186–195
Rusek F et al (2013) Scaling up MIMO: opportunities and challenges with very large arrays. IEEE Signal Process Mag 30(1):40–46
Al-Nahhal et al (2021) Reconfigurable intelligent surface-assisted uplink sparse code multiple access. IEEE Commun Lett 25(6):2058–2062
Al-Nahhal et al (2022) Reconfigurable intelligent surface optimization for uplink sparse code multiple access. IEEE Commun Lett 26(1):133–137
Ying K, Gao Z, Lyu S, Wu Y, Wang H, Alouini MS (2020) GMD-based hybrid beamforming for large reconfigurable intelligent surface assisted millimeter-wave massive MIMO. IEEE Access 8:19530–19539
An J, Xu C, Ng DWK et al (2023) Stacked intelligent metasurfaces for efficient holographic MIMO communications in 6G. arXiv:2305.08079
Singal TL (2010) Wireless communications. Tata McGraw-Hill Education, New York
Basar E, Di Renzo M, De Rosny J, Debbah M, Alouini MS, Zhang R (2019) Wireless communications through reconfigurable intelligent surfaces. IEEE Access 7:116753–116773
Gong S et al (2020) Toward smart wireless communications via intelligent reflecting surfaces: a contemporary survey. IEEE Commun Surv Tutor 22(4):2283–2314
Jung M, Saad W, Jang Y, Kong G, Choi S (2020) Performance analysis of large intelligent surfaces (LISs): asymptotic data rate and channel hardening effects. IEEE Trans Wirel Commun 19(3):2052–2065
Huang C, Zappone A, Alexandropoulos GC, Debbah M, Yuen C (2019) Reconfigurable intelligent surfaces for energy efficiency in wireless communication. IEEE Trans Wirel Commun 18(8):4157–4170
Basar E (2020) Reconfigurable intelligent surface-based index modulation: a new beyond MIMO paradigm for 6G. IEEE Trans Commun 68(5):3187–3196
Di Renzo M et al (2020) Smart radio environments empowered by reconfigurable intelligent surfaces: how it works, state of research, and the road ahead. IEEE J Sel Areas Commun 38(11):2450–2525
Jian M et al (2022) Reconfigurable intelligent surfaces for wireless communications: overview of hardware designs, channel models, and estimation techniques. Intell Converg Netw 3(1):1–32
Liu F, Masouros C (2019) Hybrid beamforming with sub-arrayed MIMO radar: enabling joint sensing and communication at mmwave band. In: ICASSP 2019–2019 IEEE international conference on acoustics, speech and signal processing (ICASSP), Brighton, UK, 2019, pp 7770–7774
Chen L, Wang Z, Du Y, Chen Y, Yu FR (2022) Generalized transceiver beamforming for DFRC with MIMO radar and MUMIMO communication. IEEE J Sel Areas Commun 40(6):1795–1808
Valiulahi C, Masouros C, Salem A, Liu F (2022) Antenna selection for energy-efficient dual-functional radar-communication systems. IEEE Wirel Commun Lett 11(4):741–745
Wu Q, Zhang R (2019) Intelligent reflecting surface enhanced wireless network via jointly active and passive beamforming. IEEE Trans Wirel Commun 18(11):5394–5409
Cui M, Zhang G, Zhang R (2019) Secure wireless communication via intelligent reflecting surface. IEEE Wirel Commun Lett 8(5):1410–1414
Shen H, Xu W, Gong S, He Z, Zhao C (2019) Secrecy rate maximization for intelligent reflecting surface assisted multiantenna communications. IEEE Commun Lett 23(9):1488–1492
Fu M, Zhou Y, Shi Y, Letaief KB (2021) Reconfigurable intelligent surface empowered downlink non-orthogonal multiple access. IEEE Trans Commun 69(6):3802–3817
Huang C, Zappone A, Debbah M, Yuen C (2018) Achievable rate maximization by passive intelligent mirrors. In: 2018 IEEE international conference on acoustics, speech and signal processing (ICASSP), Calgary, AB, Canada, 2018, pp 3714–3718
An J, Xu C, Gan L, Hanzo L (2022) Low-complexity channel estimation and passive beamforming for RIS-assisted MIMO systems relying on discrete phase shifts. IEEE Trans Commun 70(2):1245–1260
Zniyed Y, Boyer R, de Almeida ALF, Favier G (2020) Tensor train representation of MIMO channels using the JIRAFE method. Signal Process 171
Zniyed Y, Boyer R, de Almeida ALF, Favier G (2020) High-order tensor estimation via trains of coupled third-order CP and tucker decompositions. Linear Algebra Appl 588:304–307
Zniyed Y, Boyer R, de Almeida ALF, Favier G (2020) A TT-based hierarchical framework for decomposing high-order tensors. SIAM J Sci Comput 42(2):A822–A848. https://doi.org/10.1137/18m1229973ff.ffhal-02436368
Zniyed Y et al (2019) Tensor-train modeling for mimo-OFDM tensor coding-and-forwarding relay systems. In: 2019 27th European signal processing conference (EUSIPCO) (2019), pp 1–5
de Araújo GT, de Almeida ALF (2020) PAR-AFAC-based channel estimation for intelligent reflective surface assisted MIMO system. In: 2020 IEEE 11th sensor array and multi-channel signal processing workshop (SAM), Hangzhou, China, 2020, pp 1–5
Wang Z, Liu L, Cui S (2020) Channel estimation for intelligent reflecting surface assisted multiuser communications: framework, algorithms, and analysis. IEEE Trans Wirel Commun 19(10):6607–6620
Gherekhloo S, Ardah K, de Almeida ALF, Haardt M (2021) Tensor-based channel estimation and reflection design for RIS-aided millimeter-wave MIMO communication systems. In: 2021 55th Asilomar conference on signals, systems, and computers, Pacific Grove, CA, USA, 2021, pp 1683–1689
Ardah K, Gherekhloo S, de Almeida ALF, Haardt M (2021) TRICE: a channel estimation framework for RIS-aided millimeter-wave MIMO systems. IEEE Signal Process Lett 28:513–517
Ardah K, Gherekhloo S, de Almeida ALF, Haardt M (2022) Double-RIS versus single-RIS aided systems: tensor-based mimo channel estimation and design perspectives. In: ICASSP 2022–2022 IEEE international conference on acoustics, speech and signal processing (ICASSP), Singapore, 2022, pp 5183–5187
Xu X, Zhang S, Gao F, Wang J (2022) Sparse Bayesian learning based channel extrapolation for RIS assisted MIMO-OFDM. IEEE Trans Commun 70(8):5498–5513
Sokal B, de Almeida ALF, Haardt M (2020) Semi-blind receivers for MIMO multi-relaying systems via rank-one tensor approximations. Signal Process 166:107254
Zheng H, Zhou C, Gu Y, Shi Z (2020) Two-dimensional DOA estimation for coprime planar array: a coarray tensor-based solution. In: Proceedings of IEEE international conference on acoustics, speech signal processing, 2020, pp 4562–4566
Araújo DC, de Almeida ALF, Da Costa JPCL, de Sousa RT (2019) Tensor-based channel estimation for massive MIMO-OFDM systems. IEEE Access 7:42133–42147
Gomes PRB, de Almeida ALF, da Costa JPCL, de Sousa Jr RT (2019) Jointly DL and UL channel estimation for millimeter wave MIMO systems using tensor modeling. Wirel Commun Mob Comput 2019:1–13
Woo S et al (2018) Cbam: convolutional block attention module. In: Proceedings of the European conference on computer vision (ECCV). 2018
Lin S, Zeng Y, Gong Y (2023) Learning of time-frequency attention mechanism for automatic modulation recognition. IEEE Wirel Commun Lett 11(4):707–711
Huang C, Mo R, Yuen C (2023) Reconfigurable intelligent surface assisted multiuser MISO systems exploiting deep reinforcement learning. IEEE J Sel Areas Commun 38(8):1839–1850
Xu W, An J, Huang C, Gan L, Yuen C (2022) Deep reinforcement learning based on location-aware imitation environment for RIS-aided mmWave MIMO systems. IEEE Wirel Commun Lett 11(7):1493–1497
Alexandropoulos GC et al (2022) Pervasive machine learning for smart radio environments enabled by reconfigurable intelligent surfaces. Proc IEEE 110:1494–1525
Huang C et al (2021) Multi-hop RIS-empowered terahertz communications: a DRL-based hybrid beamforming design. IEEE J Sel Areas Commun 39(6):1663–1677
Hanzo L et al (2009) Near-capacity multi-functional MIMO systems: sphere-packing, iterative detection and cooperation. Wiley, New York
Hanzo L et al (2010) MIMO-OFDM for LTE, WiFi and WiMAX: coherent versus non-coherent and cooperative turbo transceivers, vol 9. Wiley, New York
de Araújo GT, de Almeida ALF, Boyer R (2021) Channel estimation for intelligent reflecting surface assisted MIMO systems: a tensor modeling approach. IEEE J Sel Top Signal Process 15(3):789–802
Sidiropoulos ND, De Lathauwer L, Fu X, Huang K, Papalexakis EE, Faloutsos C (2017) Tensor decomposition for signal processing and machine learning. IEEE Trans Signal Process 65(13):3551–3582
Harshman RA (1970) Foundations of the PARAFAC procedure: models and conditions for an ‘explanatory’ multi-model factor analysis
Kolda TG, Bader BW (2009) Tensor decompositions and applications. SIAM Rev 51(3):455–500
Gao Y, Yong C, Xiong Z, Niyato D, Xiao Y, Zhao J (2020) Reconfigurable intelligent surface for MISO systems with proportional rate constraints. In: ICC 2020–2020 IEEE international conference on communications (ICC), Dublin, Ireland, 2020, pp 1–7
Shen H, Xu W, Gong S, He Z, Zhao C (2019) Secrecy rate maximization for intelligent reflecting surface assisted multiantenna communications. IEEE Commun Lett 3(9):1488–1492
Guo S, Lv S, Zhang H, Ye J, Zhang P (2020) Reflecting modulation. IEEE J Sel Areas Commun 38(11):2548–2561
Sun H, Chen X, Shi Q, Hong M, Fu X, Sidiropoulos ND (2018) Learning to optimize: training deep neural networks for interference management. IEEE Trans Signal Process 66(20):5438–5453
Acknowledgements
This research was funded by Shanghai Capacity Building Projects in Local Institutions, grant number 19070502900, Science and Technology Commission of Shanghai Municipality, grant number 22142201900.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
The authors declare that they have no conflict of interest.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Zhou, X., Chen, X., Tong, L. et al. Attention-deep reinforcement learning jointly beamforming based on tensor decomposition for RIS-assisted V2X mmWave massive MIMO system. Complex Intell. Syst. 10, 145–160 (2024). https://doi.org/10.1007/s40747-023-01148-7
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s40747-023-01148-7