<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Reconfigurable-Intelligent-Surface-Enhanced Dynamic Resource Allocation for the Social Internet of Electric Vehicle Charging Networks with Causal-Structure-Based Reinforcement Learning</title></titleStmt>
			<publicationStmt>
				<publisher>MDPI</publisher>
				<date>05/01/2024</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10541308</idno>
					<idno type="doi">10.3390/fi16050165</idno>
					<title level='j'>Future Internet</title>
<idno>1999-5903</idno>
<biblScope unit="volume">16</biblScope>
<biblScope unit="issue">5</biblScope>					

					<author>Yuzhu Zhang</author><author>Hao Xu</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[<p>Charging stations and electric vehicle (EV) charging networks signify a significant advancement in technology as a frontier application of the Social Internet of Things (SIoT), presenting both challenges and opportunities for current 6G wireless networks. One primary challenge in this integration is limited wireless network resources, particularly when serving a large number of users within distributed EV charging networks in the SIoT. Factors such as congestion during EV travel, varying EV user preferences, and uncertainties in decision-making regarding charging station resources significantly impact system operation and network resource allocation. To address these challenges, this paper develops a novel framework harnessing the potential of emerging technologies, specifically reconfigurable intelligent surfaces (RISs) and causal-structure-enhanced asynchronous advantage actor–critic (A3C) reinforcement learning techniques. This framework aims to optimize resource allocation, thereby enhancing communication support within EV charging networks. Through the integration of RIS technology, which enables control over electromagnetic waves, and the application of causal reinforcement learning algorithms, the framework dynamically adjusts resource allocation strategies to accommodate evolving conditions in EV charging networks. An essential aspect of this framework is its ability to simultaneously meet real-world social requirements, such as ensuring efficient utilization of network resources. Numerical simulation results validate the effectiveness and adaptability of this approach in improving wireless network efficiency and enhancing user experience within the SIoT context. Through these simulations, it becomes evident that the developed framework offers promising solutions to the challenges posed by integrating the SIoT with EV charging networks.</p>]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>The implementation of a charging infrastructure and networks for electric vehicles (EVs) encounters numerous challenges <ref type="bibr">[1]</ref>, particularly when serving distributed EV charging networks with limited wireless network resources <ref type="bibr">[2,</ref><ref type="bibr">3]</ref>. Factors such as congestion during EV travel, diverse preferences among EV users, and uncertainties in decisionmaking regarding charging station (CS) resources profoundly impact system operation and network resource allocation. Meanwhile, with the development of smart grids, electric vehicle charging networks have also experienced rapid growth <ref type="bibr">[4]</ref>. Also, current and upcoming wireless networks, including 5G/6G and their subsequent versions, are expected to provide significantly improved data rates, reduced latency, and expanded network coverage compared to previous versions <ref type="bibr">[5,</ref><ref type="bibr">6]</ref>. This progress in wireless networks stems from new design principles, enabling them to support a large number of connected devices simultaneously. Making sure things connect well and can share information easily is really important, especially for the growing number of Social Internet of Things (SIoT) apps <ref type="bibr">[7,</ref><ref type="bibr">8]</ref>. They need smooth interactions to continue getting better.</p><p>In smart electric vehicle charging networks, the communication system adjusts multiple features to achieve desirable communication outcomes. For example, factors such as communication power allocation at charging stations, the presence of active or passive relays <ref type="bibr">[9]</ref>, the communication channel quality, and the presence of obstacles may affect the overall communication conditions <ref type="bibr">[10]</ref>. As actions are taken to optimize the communication network, the system's communication state changes accordingly. In <ref type="bibr">[11]</ref>, this is represented using Markov Decision Processes (MDPs), with the communication quality serving as the reward factor. In this scenario, the numbers of interventions and states both exponentially increase.</p><p>To address these challenges, this paper introduces a novel framework leveraging emerging technologies, specifically reconfigurable intelligent surfaces (RISs) and causalstructure-based reinforcement learning techniques.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.1.">Background</head><p>Reconfigurable intelligent surfaces (RISs) are a revolutionary technology in the field of wireless communication and signal propagation <ref type="bibr">[12]</ref>. The structure of RISs typically includes a dielectric surface panel, which is a subgroup of periodic structures <ref type="bibr">[13]</ref> composed of repeating minimal geometric shapes called unit cells. Each unit cell contains conductive printed patches, also known as scatterers, with sizes that are a small fraction of the operating frequency wavelength. The macroscopic effect of these scatterers defines a specific impedance surface <ref type="bibr">[14]</ref>, which, when controlled, can manipulate reflected waves from the dielectric surface panel. Each scatterer or cluster of scatterers can be adjusted to reconstruct electromagnetic waves with desired characteristics across the entire surface. By intelligently controlling the phase, magnitude, and polarization of reflected or transmitted waves, RISs can enhance wireless communication performance, improve signal coverage, and reduce interference in various wireless systems.</p><p>Electric vehicles (EVs) are considered an emerging strategy to reduce the dependence on oil and provide opportunities to reduce carbon emissions <ref type="bibr">[15]</ref>. The main elements of an EV system include EVs, charging stations equipped with charging points, and associated communication systems. Managing EV charging and optimizing their interaction with the power grid relies on appropriate communication infrastructure between EVs, charging stations, and the power grid. EV charging communication networks play a crucial role in promoting the widespread adoption of electric vehicles by providing reliable communication connections for EV owners, thereby contributing to the transition to sustainable transportation.</p><p>In <ref type="bibr">[16]</ref>, social networks are utilized for searching internet resources, routing traffic, or selecting effective content distribution strategies. The Internet of Things (IoT) <ref type="bibr">[17]</ref> integrates a vast array of technologies, envisioning various things or objects interacting and cooperating with each other through a series of communication protocols to achieve common goals. The convergence of the Internet of Things and social networks into the Social Internet of Things (SIoT) <ref type="bibr">[18]</ref> is anticipated to have many desirable impacts on the future world. The SIoT aims to enhance the functionality, usability, and effectiveness of IoT systems by leveraging social relationships. By enabling IoT devices to collaborate, share information, and interact based on social context, the SIoT seeks to create more intelligent and adaptable IoT environments capable of addressing diverse user needs and preferences.</p><p>Meanwhile, causal reinforcement learning (CRL) <ref type="bibr">[19,</ref><ref type="bibr">20]</ref> is a branch of reinforcement learning (RL) that incorporates causal reasoning into the decision-making process. Causal structures in machine learning refer to the graphical representation of causal relationships among variables in a given system. These structures capture the cause&#177;effect relationships between different variables, enabling the identification of causal factors and the prediction of system behavior. Understanding causal structures is essential for making informed decisions, conducting causal inference, and designing effective machine learning models that can accurately capture and leverage causal relationships. In the complex communication environment considered in this paper, actions may not directly lead to observed outcomes. Instead, they may influence outcomes through intermediate variables, allowing CRL algorithms to make wiser decisions.</p><p>Furthermore, asynchronous advantage actor&#177;critic (A3C) <ref type="bibr">[21]</ref> is a type of reinforcement learning algorithm that combines the advantages of both policy-based and valuebased methods. A3C uses asynchronous training to update multiple agents concurrently, allowing for more efficient exploration of the action space and faster convergence to optimal policies. By incorporating an actor&#177;critic architecture, A3C can learn both action policies and value functions simultaneously, leading to more stable and effective learning in complex environments.</p><p>The framework proposed in this paper aims to optimize resource allocation, thereby enhancing SIoT support within EV charging networks. By integrating RIS technology for electromagnetic wave control and applying causal RL algorithms, the framework dynamically adjusts resource allocation strategies to adapt to changing conditions in EV charging networks.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.2.">Limitations of RISs and CRL</head><p>However, there are limitations of RIS technology as well as causal reinforcement learning. Firstly, regarding RIS technology, its practical application may encounter some limitations. For example, the deployment of RISs may require a substantial amount of hardware equipment and a complex installation process, which could increase system costs and deployment difficulties. Additionally, the performance of RISs may be influenced by environmental conditions, such as building structures or weather conditions, which could affect the effectiveness of the RIS and consequently degrade the communication quality and reliability.</p><p>As for causal reinforcement learning, its limitations primarily manifest in the model complexity and training time. Causal reinforcement learning may necessitate a large amount of data for training, and in complex environments, it may require significant time to converge to optimal solutions. Furthermore, the design and optimization of causal reinforcement learning algorithms may require specialized knowledge and expertise, potentially limiting their application in practical systems.</p><p>Moreover, challenges may arise in the interaction and integration of both technologies in practical applications. For instance, effectively integrating RIS technology and causal reinforcement learning algorithms into smart electric vehicle charging communication networks to achieve synergistic effects would require further research and optimization.</p><p>In summary, despite the potential advantages of RIS technology and causal reinforcement learning in smart electric vehicle charging communication networks, they also face practical limitations that need to be considered and addressed in real-world applications.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.3.">Related Studies</head><p>In a significant study <ref type="bibr">[22]</ref>, deep reinforcement learning (DRL) was utilized to dynamically configure phase shifts in reconfigurable intelligent surfaces (RISs), leading to enhancements in signal coverage, a reduced interference, and an improved spectral efficiency. Moreover, in one study <ref type="bibr">[23]</ref>, an exploration was conducted to leverage deep Q-networks (DQNs) for enhancing RIS-supported massive multi-input multi-output (MIMO) setups. This proposition centered on an adaptable control strategy, dynamically adjusting the phase shifts and beamforming weights associated with the RIS. This adaptation resulted in notable enhancements in the system's capacity, coverage, and energy efficiency. In <ref type="bibr">[24]</ref>, the author tackles resource allocation hurdles in vehicular communications. This is achieved by employing a multi-agent deep deterministic policy gradient (DDPG) method, where vehicle-to-vehicle (V2V) communications serve as agents utilizing non-orthogonal multiple access (NOMA) <ref type="bibr">[25]</ref> technology for spectrum sharing. By approaching the problem as a decentralized discrete-time and finite-state Markov Decision Process (DFMDP) and implementing the DDPG method, the suggested approach optimizes the sum-rate of V2I communications. It also guarantees the latency and reliability requirements are met for safety-critical V2V transmissions amidst a dynamic vehicular setting.</p><p>In recent years, traditional social networking has evolved into more intricate social internetworking, extending beyond human users to objects. Ref. <ref type="bibr">[26]</ref> has explored the Social Internet of Things (SIoT) and Multiple IoT (MIoT) paradigms, with the SIoT focusing on technological challenges of interacting IoT devices, while the MIoT delves into datadriven and semantics-based aspects of smart object interactions. This paper investigates this concept of the scope in multi-IoT scenarios, proposing formalizations and applications, followed by experiments evaluating its effectiveness compared to existing parameters like the diffusion degree and influence degree. In <ref type="bibr">[27]</ref>, the author proposes a symbiotic radio (SR) system that supports both Internet of Things (IoT) and cellular networks, allowing multiple users to receive information from the base station while multi-IoT devices backscatter their data via the same signal. Leveraging robust design methods, the system minimizes the transmit power under cellular outage probability and multi-IoT transmission rate constraints, addressing channel uncertainty and demonstrating effectiveness through simulation results. Ref. <ref type="bibr">[28]</ref> proposes an energy-and trust-aware opportunistic routing approach for the cognitive radio Social Internet of Things (CR-SIoT), leveraging network coding and game-theoretic allocation of trusted channels to enhance the network performance, as validated by extensive simulation results. To improve the social edge service (SES) in the Social Internet of Things (SIoT), Ref. <ref type="bibr">[29]</ref> proposed a hybrid graph deep learning (HAD) approach that employs an adaptive trust weight (ATW) model and a quotient user-centric coeval learning (QUCL) mechanism, achieving an improved communication and computation performance and enhancing SES reliability.</p><p>Ref. <ref type="bibr">[30]</ref> presents structural causal modeling (SCM) as a method for ecologists to discern cause-and-effect relationships from observational data, overcoming biases common in traditional statistical analyses like confounding. Utilizing directed acyclic graphs (DAGs) and graphical rules like the backdoor and frontdoor criteria, SCM systematically estimates causal effects between variables of interest in ecological studies, showing promise for advancing causal inference without the need for randomized experiments.</p><p>However, there are few works that apply the causal structure in the field of communication. The application of causal reinforcement learning in RIS-assisted SIoT communication systems is a promising research direction. RISs can be used to adjust the transmission characteristics of signals to adapt to different communication environments and requirements. Causal reinforcement learning can utilize historical data and environmental feedback to provide intelligent decision support for an RIS, enabling it to adjust its operating mode and parameter settings according to real-time demands and network conditions. By learning based on causal relationships, the system can better understand the impact of RISs and make decisions based on these causal relationships, thereby improving the performance of the communication system.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.4.">Our Contribution</head><p>Compared to a previous work <ref type="bibr">[31]</ref>, this paper differs mainly in the following aspects: Focus and Background: This paper focuses on dynamic resource allocation in RIS-assisted electric vehicle charging communication networks under cellular networks, with base stations as the core, especially addressing the wireless communication environment within electric vehicle charging networks. In contrast, the second summary emphasizes dynamic resource allocation in RIS-assisted mobile ad hoc networks (MANETs), particularly in addressing time-varying and uncertain wireless communication environments within multi-mobile ad hoc wireless networks.</p><p>Optimization Methods: This paper proposes an asynchronous advantage actor&#177;critic (A3C) algorithm based on causal factors to optimize communication network resource allocation control. It learns feature representations from incomplete communication environment states to accelerate the training speed, understand the causal relationships in the environment, and transfer training results to similar communication environments. On the other hand, the second summary introduces an inner&#177;outer joint online optimization algorithm for RIS-assisted MANETs. It utilizes the D-UCB algorithm for RISs and spectrum selection in the outer network and employs the TD3 algorithm to gain decentralized insights into RIS phase shifts and power allocation strategies in the inner network.</p><p>Algorithmic Structure:</p><p>The CF-A3C algorithm in this paper first acquires causal factors, uses them as state acquaintances of the A3C network, and updates the global network using experiences collected by multiple worker threads, eliminating the need for a replay buffer and promoting efficient exploration in resource allocation tasks. Conversely, the TD3 algorithm in the second summary adopts an actor&#177;critic structure with three target networks and two hidden layer streams in each neural network to segregate state-value and action-value distribution functions, accelerating convergence speed and enhancing the learning efficiency.</p><p>This paper presents a novel framework aimed at addressing the challenges associated with integrating the Social Internet of Things (SIoT) with connected electric vehicle (EV) charging networks. This framework harnesses emerging technologies, including reconfigurable intelligent surfaces (RISs), causal structures, and A3C-based reinforcement learning techniques, to optimize resource allocation and enhance SIoT support within EV charging networks.</p><p>By integrating RIS technology, which enables control over electromagnetic waves, and applying causal RL algorithms, the framework dynamically adjusts resource allocation strategies to accommodate the evolving conditions in distributed EV charging networks. Importantly, this framework aims to simultaneously meet real-world social requirements, such as fulfilling EV user charging needs, while ensuring efficient utilization of network resources, thereby enhancing communication performance.</p><p>The primary achievements elucidated within this manuscript are as follows:</p><p>&#8226; Establishment of a model to represent the fluctuating and uncertain wireless communication setting for managing dynamic resource allocation in RIS-assisted electric vehicle charging communication networks. The model depicts the dynamic resource allocation system operating within an electric vehicle charging network. &#8226; Design of a causal inference model capable of reasoning about and addressing causal relationships in the electric vehicle charging communication network by acquiring effective representation distributions.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>&#8226;</head><p>Proposal of a causal-factor-based asynchronous advantage actor&#177;critic (A3C) algorithm based on the designed causal factor model for optimizing communication network resource allocation control. The feature representations are derived from learning the incomplete communication environment states. This method introduces a novel approach to training actor&#177;critic networks, known as A3C, by directly updating global networks using experiences collected by multiple worker threads. By eliminating the need for a replay buffer, the method streamlines training and promotes efficient exploration in resource allocation tasks. This advancement accelerates learning while enhancing overall performance within the A3C framework.</p><p>The advantages of our work over existing contributions are presented in Table <ref type="table">1</ref>.</p><p>The results of experiments conducted in different environments demonstrate that the CF-A3C algorithm is highly competitive with state-of-the-art resource optimization algorithms across multiple evaluation metrics. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">System and Channel Model 2.1. Scenario Overview</head><p>In an electric vehicle charging communication network, there are two parts: uplink and downlink communication between the base station and vehicles and uplink and downlink communication between the base station and charging stations.</p><p>User demands are input information in the network, and this algorithm aims to optimize the channel capacity between base stations and vehicles while maximizing energy efficiency. By dynamically adjusting communication resource allocation strategies to meet the changing needs of different users, the algorithm achieves more flexible and efficient resource utilization by monitoring and analyzing changes in user demands and considering the real-time status of network resources. Furthermore, the application of RIS technology makes the utilization of network resources more flexible and efficient by adjusting the direction and intensity of electromagnetic wave transmission, enhancing signal coverage and the transmission accuracy and thus improving the network resource utilization efficiency while meeting users' charging service needs. Additionally, the algorithm optimizes resource allocation strategies to avoid resource waste and overuse by integrating techniques such as causal reinforcement learning, maximizing network resource utilization while meeting user demands and thereby enhancing the overall network efficiency and performance. In summary, the A3C resource allocation control algorithm, assisted by an RIS, effectively balances user demands (electric vehicle charging) with network resource utilization, thereby improving the performance and efficiency of smart electric vehicle charging communication networks. This paper focuses on the downlink communication process between the base station and vehicles. In this network, using RIS-assisted communication can optimize the channel, enhance communication reliability, and improve performance. The communication process in electric vehicle charging involves uplink and downlink transmissions between vehicles and base stations, charging stations, and base stations with reflective intelligent surface (RIS) assistance. We introduce the communication between vehicles and the base station in the following.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Uplink Communication Process</head><p>Vehicles Send Data to yjr Base Station: Vehicles transmit uplink data to the base station through antennas based on their needs. These data may include the current status of the vehicle, charging demands, vehicle location, etc.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Downlink Communication Process</head><p>The Base Station Sends Data to Vehicles: The base station transmits downlink data to vehicles through antennas. These data may include the status information of charging stations, charging plans, traffic information, etc. If RIS-assisted communication is available, the base station can improve the channel quality and enhance the strength and reliability of signals reaching the vehicles through RISs.</p><p>RIS Processing of Downlink Signals: An RIS receives downlink signals sent by the base station and reflects the signals towards the direction of the vehicles based on pre-designed reflection coefficients and phase adjustments to enhance signal reception.</p><p>Vehicles Receive Signals: Vehicles receive downlink signals from both the base station and the RIS and utilize the received information to perform corresponding operations, such as adjusting charging behavior, updating charging plans, etc.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Information Interaction:</head><p>During the communication process in both uplink and downlink transmissions, there is interaction and processing of information among the base station, vehicles, and RISs. The base station is responsible for scheduling charging stations, processing information uploaded by vehicles, issuing charging plans, etc. Vehicles are responsible for uploading their own status, location, and other information, as well as receiving charging plans issued by the base station. RISs serve as an intermediary node, responsible for optimizing the channel, enhancing communication reliability and performance, and reflecting signals from the base station to vehicles or from vehicles to the base station. Through the above communication process and information interaction, the electric vehicle charging communication network needs to achieve efficient communication between charging stations and vehicles, providing support and optimization for the charging behavior of electric vehicles.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2.">System Model</head><p>Exploring the RIS-enhanced electric vehicle charging network downlink procedure depicted in Figure <ref type="figure">1</ref>, we observe base stations (BSs) acting as transmitters, equipped with N antennas, and one RIS composed of M element units for support, alongside L single-antenna electric vehicle users (VUs). The communication landscape is challenging, characterized by traffic congestion, buildings, and various obstacles, leading to blocked direct signal links from BSs to electric vehicle users. Consequently, a two-hop communication system is established, necessitating a BS to relay signals through an RIS to reach the users. For user k, the received signal at time t is presented as:</p><p>In this scenario, the transmitted signal on the k-th subcarrier is represented as x(t) &#8712; C M&#215;1 , the received signal is denoted by y k (t), and the additive white noise is represented as n k (t), following a normal distribution CN (0, &#963; 2 k ). At time t, the line-of-sight channel gain is presented as h B V, and the non-line-of-sight channel gain is presented as the channel gain matrices from the base station to the RIS relay and from the RIS relay to the vehicle as H BR,k (t) &#8712; C N&#215;M and h RV,k (t) &#8712; C 1&#215;N , respectively. As Figure <ref type="figure">1</ref> shows, the direct link is blocked by buildings or other obstacles, so the communication between the base station and vehicle users is through the non-line-of-sight channel. Additionally, for user k at time t, the RIS comprises M &#215; M reflecting elements, represented by the diagonal matrix &#934; k (t), indicating their corresponding phases. Specifically, it is defined as &#934; k (t) = diag[e j&#952; 1,k (t) , e j&#952; 2,k (t) , . . . , e j&#952; M,k (t) ] &#8712; C M&#215;M . Considering the transmit power p k (t) from the base station to user k, the transmitted data s k (t), and the beamforming vector q k (t) at the base station antennas, the term x(t) is expressed as &#8721; K k=1 p k (t)q k (t)s k (t), which is the transmitted signal x(t) at time t. The following constraints are applied to the transmit power at the base station:</p><p>where P(t) = diag[p 1 (t), . . . , p L (t)] &#8712; C K&#215;K , W(t) is represented as W(t) = [w 1 (t), . . . , w K (t)] &#8712; C M&#215;K , and P max represents the maximum transmit power. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3.">RIS-Assisted Wireless Channel</head><p>We need to model two types of dynamic wireless channels in the system: one is the channel from the base station to the RIS relay, denoted as H BR (t), and the other is the channel from the RIS relay to individual vehicle users (VUs), denoted as h RV,k (t). The base station to the RIS channel model and the RIS to vehicle user channel model can be shown as:</p><p>Base station to RIS relay channel model:</p><p>Here, &#946; BR (t) represents the time-varying channel gain from the base station to the RIS relay. For the transmission data process from the BS to the RIS relay, the presentation of the array response vectors for multi-RIS units is denoted as a(&#966; BS , &#952; BS , t) and a(&#966;</p><p>Next, the wireless channel model from the RIS relay to the user equipment (VU k ) is described as follows:</p><p>Here, &#946; RV,k (t) characterizes the time-varying channel gain from the RIS relay to vehicle user k at time t (k &#8712; [1, . . . , K]), and a(&#966; RV,k , &#952; RV,k , t) represents the multi-antenna array response vector from the RIS relay to vehicle user k, defined as a(&#966;</p><p>In the context of the non-line-of-sight (NLOS) situation of the communication systems, the time-varying signal-to-interference-plus-noise ratio (SINR) for user k (where k &#8712; (1, . . . , K)) can be obtained as follows:</p><p>Moreover, the spectral efficiency (SE) of the real-time system, measured in bps/Hz, can be expressed as:</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.4.">Causal Factors in RL Structure</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.4.1.">Causal Graph</head><p>A directed acyclic graph (DAG) <ref type="bibr">[32]</ref> is a finite graph G = (V, E) consisting of a set of vertices V and a set of directed edges E, where each edge e &#8712; E is an ordered pair (u,v) indicating a direct connection from vertex u to vertex v. A DAG does not contain any directed cycles, meaning there is no sequence of edges that starts and ends at the same vertex by following the direction of the edges. Assigning a value to a particular variable X is denoted as an action or intervention. Let Pa X denote the parent nodes of variable X; if variable X undergoes an intervention, according to the backdoor criterion, all edges from Pa X to X are eliminated.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.4.2.">Structural Causal Model</head><p>The wireless environment exhibits ubiquitous causality, leading to causal changes in the wireless channel over time. Obtaining the causality of the time-varying wireless channel enables efficient modeling even with limited channel measurements. The key to representing wireless channel causality lies in developing suitable structural causal models (SCMs) <ref type="bibr">[33]</ref>. In this paper, we denote the SCM as M, which is a tuple &lt; U, V, F , P(u) &gt;. Next, we formalize the multi-RIS assisted wireless system in the causal domain as Figure <ref type="figure">2</ref> shows. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.5.">Analysis of Reinforcement Learning and the SCM</head><p>Structural causal models (SCMs) play a crucial role in causal reinforcement learning (CRL) by providing a formal framework for representing the causal mechanisms underlying the environment. SCMs encode how variables in the environment interact with each other to produce observed outcomes, allowing agents to reason about causal relationships and make informed decisions, as in Figure <ref type="figure">3</ref>. The following is a detailed explanation of the role of SCMs in CRL. Representation of Causal Mechanisms: SCMs define the structural relationships between variables in the environment, including actions, states, and rewards. They specify how changes in one variable affect other variables, capturing the causal mechanisms that govern the dynamics of the environment. For example, an SCM might describe how taking certain actions influences the subsequent states of the environment and the resulting rewards received by the agent.</p><p>Causal Graph Construction: SCMs provide the foundation for constructing causal graphs, which represent the causal relationships between variables in the environment. Each node in the causal graph corresponds to a variable, and directed edges indicate causal influences between variables. SCMs specify the structure of the causal graph by defining the parents of each variable, reflecting the direct causal dependencies between variables.</p><p>Counterfactual Reasoning: SCMs enable counterfactual reasoning, allowing agents to reason about alternative scenarios and assess the causal effects of different actions. By manipulating the structural equations in an SCM, agents can simulate hypothetical interventions and predict how the environment would have behaved under different conditions. This allows agents to evaluate the causal consequences of their actions and make decisions that maximize expected rewards.</p><p>Policy Evaluation: SCMs facilitate the evaluation of policies by estimating the expected rewards associated with different action sequences. By simulating the causal mechanisms specified in an SCM, agents can compute the expected cumulative reward obtained by following a particular policy in a given environment. This allows agents to compare the effectiveness of different policies and select the one that maximizes long-term rewards.</p><p>Causal Inference: SCMs support causal inference by providing a formal framework for estimating causal effects from observational data or interventions. Agents can use techniques such as do-calculus or structural equation modeling to infer causal relationships from observed data and learn the structural parameters of the environment. This allows agents to build accurate causal models of the environment and make better decisions based on causal understanding.</p><p>In summary, SCMs play a central role in CRL by formalizing the causal relationships between variables in the environment, guiding decision-making through counterfactual reasoning and policy evaluation and facilitating causal inference from observational data. By leveraging SCMs, agents can acquire a deeper understanding of the causal structure of their environment and make more informed and effective decisions in complex and uncertain scenarios.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Problem Formulation</head><p>Developing an efficient resource allocation algorithm presents a considerable challenge, primarily attributed to the mobility of users and the inherent uncertainty of the wireless channel. However, by integrating causality into the framework, we can potentially alleviate these challenges, as causality provides a means to better capture and understand uncertainties within the system.</p><p>Initially, we conduct an analysis of power consumption throughout the resource allocation process and formulate the optimization problem with a focus on enhancing energy efficiency. Subsequently, leveraging the causal structure within reinforcement learning (RL), we reframe the problem into a causal Markov Decision Process (MDP). This approach enables us to incorporate causal relationships among variables, facilitating more informed decision-making in dynamic environments.</p><p>To address the resource allocation optimization dynamically, we propose an actor&#177; critic reinforcement learning algorithm tailored to the causal MDP framework. By iteratively refining the policy through actor&#177;critic updates, our algorithm aims to learn optimal resource allocation strategies that balance energy efficiency and performance.</p><p>Furthermore, we delve into the intricacies of our proposed algorithm, providing detailed explanations of its components, such as actor and critic networks, reward functions, and exploration strategies. Additionally, we discuss the training procedure and potential extensions or enhancements to our approach.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.">Power Consumption</head><p>The total power dissipated in the system, encompassing K users, comprises various components, including the base station transmit power (p t ), hardware static power at the base station (P BS ), power consumed by the RIS relay (P M ), and power consumption at the user equipment (P VU ). With these components considered, the total power operating on the RIS-assisted wireless network can be defined as follows</p><p>where &#958; &#8764; = &#957; with &#957; to evaluate the ability to effectively convert input electrical power into output radio frequency (RF) power by the power amplifier. Considering (7) as the denominator of the energy efficiency (EE) function, then the EE performance &#951; EE &#8764; = (B &#8226; R)/P total , with B presenting the bandwidth, can be obtained using ( <ref type="formula">6</ref>) and (7) as</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.">Optimal Problem Formulation</head><p>As depicted in Figure <ref type="figure">2</ref>, the goal is to maximize the energy efficiency &#951; EE (t) by jointly optimizing the transmit power P = [p 1 (t), p 2 (t), . . . , p K (t)] from the BS, RIS selection and the phase shift matrix &#934; = [&#966; 1 (t), &#966; 2 (t), . . . , &#966; M (t)] from the RIS.</p><p>Markov Decision Process (MDP) formulation encompasses essential components including the state, action, transition probability function, reward, and environment. These components are elucidated as follows:</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>&#8226;</head><p>State space: Consider S as the state space, which comprises the following constituents: (i) the channel gains for communication links: h t k and g t k , (ii) the velocity and position of intelligent vehicle agents v k , p k , (iii) actions involving the configuration of phase shifting for the RIS components and power distribution of VU k implemented at time t -1, and (iv) the energy efficiency at time t -1. Hence, S encompasses:</p><p>&#8226; Action space: Symbolized as A, the action space encompasses the array of actions available to the agent. It includes the manipulation of phase shifting for individual RIS components and the adjustment of transmission power at the base station. The action a (t) is expressed as:</p><p>&#8226; Transition Probability Function (P): This characterizes the likelihood of transitioning between states and a particular action. Formally, it is represented as P(s &#8242; |s, a), where s &#8242; denotes the subsequent state, s denotes the current state, and a signifies the action.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>&#8226;</head><p>Reward function: The agent is provided with an immediate reward r t i , representing the energy efficiency as defined in Equation ( <ref type="formula">8</ref>).</p><p>&#8226; Value Function: This indicates the anticipated cumulative reward, originating from a specific state according to a predetermined policy &#960;. Employing V &#960; t to symbolize the value function at time step t under policy &#960;, it signifies the anticipated total of rewards beginning from s t = s and extending to the conclusion of the episode:</p><p>&#8226; The Q-value function denotes the anticipated return, commencing from a designated state s t = s, executing a particular action a t = a, and subsequently adhering to policy &#960;. It is articulated as follows:</p><p>In line with the foundational principles of optimal control theory <ref type="bibr">[34]</ref>, the optimal value function, along with the optimal policies for optimal resource allocation modulation, can be derived as follows:</p><p>Here, u P &#8712; C N&#215;N and u &#934; &#8712; C M&#215;M represent the resource allocation control policies. Specifically, u P pertains to the transmit power control policy, while u &#934; corresponds to the RIS phase shift control policy.</p><p>Additionally, adhering to Bellman's principle of optimality <ref type="bibr">[35]</ref>, the dynamic representation of the finite horizon optimal cost function unfolds as follows:</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3.">Causal MDP Formulation</head><p>In this section, we introduce causal factors that influence the state variables within the framework. Actions in causal MDPs are depicted as interventions. At each state s, we construct the reward graph G R (s). The variables representing rewards are R and states are denoted by S. The agent can modify variables X I , but it is not allowed to intervene on the parent variables of R (represented as Z R = Pa R ) or the parent variables of S (represented as Z S = Pa S ). As described in Section 3.3, an intervention applied to an action of size m is symbolized as do(X sub = x), where |X sub | = m and x = [x 1 , . . . , x m ].</p><p>At each state s, the causal graph G R (s) includes the variables</p><p>It is important to note that the identity of variables in the causal graphs remains consistent across states, although the underlying distributions may vary. Detailed explanations of these notations are provided in Figure <ref type="figure">2</ref>. Utilizing this causal knowledge, we define the transition probability function as P(z &#8242; | z, a, s), and the reformulation of the reward function becomes:</p><p>Consider the function called R(s, Z = z), which tells us the expected reward when we have a certain state and parent pair. Now, we will introduce another function called the Q-value function, denoted as q &#960; h : S &#215; Z &#8594; R. This function is all about giving us the total rewards we can expect under a policy &#960;, starting from a given state s t = s and a parent state z t = z and continuing until the episode ends:</p><p>According to the Bayesian Law of total probability formula, Q &#960; t (s, a) can be expressed as the sum over all possible states z in Z of the conditional probability of Z being z given the current state s and action a, denoted by P(Z = z|s, a), multiplied by the expected reward q &#960; t (s, z). Expressing Q &#960; t (s, a) as &#8721; z&#8712;Z P(Z = z | s, a)q &#960; t (s, z) is a consequence of considering an MDP enhanced with dynamic causal graphs G R and G S . This formulation can be captured by a tuple M C = &#10216;S, A, P, R, T, G R , G S &#10217;.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Causal MDP-Based RIS-Assisted Resource Allocation Optimization with Online Reinforcement Learning</head><p>An ensemble DNN algorithm is provided to address the problem of the probability distribution of the causal factor Z required in Equation <ref type="bibr">(17)</ref>. Then, based on the obtained causal information, to tackle Equation <ref type="bibr">(15)</ref>, incorporating intervened actions from <ref type="bibr">(10)</ref>, we employ the asynchronous advantage actor&#177;critic(A3C) algorithm to optimize the entire network output. The structure of our proposed algorithm is illustrated in Figure <ref type="figure">4</ref>. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1.">Causal Factor Encoder and Decoder with a Deep Neural Network</head><p>There are L electric vehicle (EV) users in the charging network and L corresponding subcarriers in the network, where each subcarrier's state information is represented as the concatenation of s i described in Equation ( <ref type="formula">9</ref>) and a described in Equation <ref type="bibr">(10)</ref>, [s i t , a t ] &#8712; R d , where i = 1, 2, . . . , L, and d is the dimensionality of the state features. The input sequence is represented as S = [[s 1 t , a t ], [s 2 t , a t ], . . . , [s L t , a t ]] &#8712; R d&#215;L . The corresponding feature representation Z i t &#8712; R d&#215;1 can be regarded as the global environmental information for subcarrier i, s t j is subcarrier j's state and &#945; ij is a weight for s j t :</p><p>where &#945; &#8712; R d&#215;1 is the attention vector.</p><p>For the state set of the subcarrier i's neighborhood L i , i.e., s L i t = {s t j } j&#8712;Ni , we employ fully connected (FC) layers (i.e., a shared weight matrix W i &#8712; R d&#215;1 , where d is set to 256 in the simulation section) to transform the input state s t j of each subcarrier j and then obtain the embedding z t j &#8712; R d&#215;1 . Thus, there will be a total of |L i | embeddings, i.e., {z t j } j&#8712;L i . Finally, an attention mechanism layer aggregates all these embeddings to obtain Z L i t &#8712; R d&#215;1 , which can be considered as the current global embedding of subcarrier i. The network architecture is shown in Figure <ref type="figure">5</ref>. The complementation is provided in Algorithm 1 below.</p><p>Algorithm 1 Causal factor extraction based on a self-attention mechanism 1: Input: State set of each subcarrier s t j , &#8704;j; subcarrier neighborhood sets L i , &#8704;i; weight matrix W i ; attention vector l 2: Position Encoding: 3: Initialize the position encoding for each state vector to consider the sequence order. 4: Encoder: 5: for each time step do 6:</p><p>Concatenate the state vectors of all subcarriers into a matrix X.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>7:</head><p>for encoder layer do 8:</p><p>Pass the output through a feed-forward neural network layer to capture non-linear relationships.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>9:</head><p>Compute the self-attention scores for each subcarrier's state vector. Obtain the causal factor for each subcarrier from the final encoder layer output. 13: end for 14: return Causal factor for each subcarrier. After the last hidden layer, the extracted causal factor representation for the system can be utilized for subsequent tasks, which is the resource allocation optimization of the communication network. The algorithm is provided in the following.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.">An Algorithm Utilizing Causal Factor-A3C for RIS Phase Shifting and Power Allocation</head><p>The overall concept is shown in Figure <ref type="figure">6</ref>. The causal factor extraction network learns from the SCM of the environment and trains on the agent networks. A3C facilitates parallel training by allowing multiple worker threads to interact with their copies of the environment and update the global network asynchronously.</p><p>The A3C algorithm utilizes an asynchronous architecture, enabling parallel training across multiple worker threads. Each worker thread interacts with its instance of the environment and updates the global actor and critic networks asynchronously.</p><p>At the core of the A3C method lies the central actor network, responsible for determining which actions to take based on the current situation represented by z. Guided by its parameters &#952; actor , this network is fine-tuned to select the best possible action given the state, denoted as a = &#960;(z|&#952; actor ). Meanwhile, the critic network evaluates the value of chosen actions by estimating the Q-value function Q(z, a|&#952; critic ), where &#952; critic represents the critic network's parameters. These parameters are adjusted during training to capture the overall long-term rewards represented by q(&#8226;).</p><p>In our A3C approach (Algorithm 2), we directly update the global actor and critic networks based on experiences collected by multiple worker threads. Here is how the A3C network would be regenerated without the replay buffer.</p><p>Algorithm 2 CF-A3C-based resource allocation optimization algorithm 1: Input: Global network parameters &#952; global , number of threads N threads 2: Initialize global network parameters &#952; global 3: for thread = 1 to N threads in parallel do 4: Initialize thread-specific environment and network parameters &#952; local &#8592; &#952; global 5: Initialize episode counter episodes = 0 6: while not done do 7: Receive initial observation state s 1 8: Put state s t into the causal factor extraction network to obtain causal factor z t 9: for t = 1 to T max do 10: Select action a t = &#960;(z t |&#952; local ) using policy network 11: Execute action a t and observe reward r t and new state s t+1 12: Put state s t+1 into the causal factor extraction network to obtain causal factor z t+1 13: Perform gradient ascent on global network parameters using the observed transition 14: Synchronize local network parameters with global network parameters 15: end for 16: Increment episode counter episodes 17:</p><p>end while 18: end for Global actor and critic networks are initialized with parameters &#952; actor global and &#952; critic global. Multiple worker threads are created, each with its instance of the environment and local actor and critic networks. Each worker thread interacts asynchronously with its environment. At each time step t, the worker receives the current state s t from the environment and puts it into the causal factor extraction network to get the causal output z t . They then select an action a t according to the policy &#960;(z t |&#952; actor ), execute the action a t and observe the reward r t and the next state s t+1 . Also, they obtain z t+1 through the same process. They store the experience tuple (z t , a t , r t , z t+1 ), calculate the advantage function using the sampled batch, update the actor parameters &#952; actor global , and calculate the loss for the critic network using the sampled batch to update the critic parameters &#952; critic global . The gradients computed by each worker are applied asynchronously to the global actor and critic networks. The global networks are updated using the gradients from each worker, ensuring that all workers are trained on the most recent version of the networks.</p><p>This approach eliminates the need for a replay buffer, allowing for direct updates to the global networks based on fresh experiences collected by multiple workers. It promotes efficient exploration, accelerates training, and improves the overall performance by leveraging the A3C framework in optimizing resource allocation tasks.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">Simulation</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1.">Simulation Setup</head><p>In this section, we reveal the results of our novel optimization technique using computer simulations, focusing on addressing the resource allocation problem within communication networks for electric vehicle charging, enhanced by RISs. The results underscore the efficacy of our approach in enhancing the aggregate transmission rate, thus highlighting its competitive edge in addressing this pertinent issue.</p><p>We consider an RIS-assisted electric vehicle charging network communication system, where a base station equipped with N = 4 antennas serves L = 4 vehicle users, and the auxiliary RIS is equipped with M = 8 &#215; 8 reflector elements. The vehicles are uniformly distributed and move freely on a road with a width of 10 m and a length of 20 m at a speed of vs. = 18 km/h. The carrier frequency and bandwidth are set to fc = 5.9 GHz and B = 20 MHz, respectively. The channel matrices between the base station and RIS and between the base station and users, denoted as H BR and H RR , respectively, follow dynamic Rayleigh distributions. The system parameters are summarized in Table <ref type="table">2</ref>. For comparison, we employ four benchmark schemes: (1) a phase control scheme based on deep deterministic policy gradient (DDPG) technology, (2) a phase control scheme based on joint transmit beamforming and a phase shift design method, (3) a random phase shifting scheme, where the phase shifting of RIS reflector elements is randomly configured, and (4) a traditional scheme without RISs, utilizing only direct links between the base station and users.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2.">Performance of the Online Causal-Factor-A3C-Based Algorithm for Optimal Resource Allocation</head><p>We use the Rayleigh distribution <ref type="bibr">[36]</ref> to simulate fading conditions in wireless channels, especially in scenarios where there is no line-of-sight path. Additionally, we adopt the Monte Carlo method to simulate the dynamic behavior of channels in real-world scenarios, as it can account for various uncertainty factors and generate random samples that follow the expected distribution.</p><p>(1) Spectral Efficiency and Energy Efficiency with Optimal Resource Allocation vs. number of BS antennas and RIS units</p><p>The developed algorithm will optimize the control of RIS phase shifting and allocation of transmit power to stimulate the full potential of multi-RIS-assisted wireless networks. The performance of the developed reinforcement learning algorithm based on CF-A3C is illustrated below. Figure <ref type="figure">7</ref> compares the different learning process numbers of RIS units (M = 2, 4, 8, 12). As shown in Figure <ref type="figure">8</ref>, increasing the number of RIS units can improve energy efficiency, and the proposed CF-A3C algorithm significantly outperforms other benchmark algorithms.  (2) Evaluation of Online Learning Performance Subsequently, an assessment was conducted to observe the learning dynamics of the average reward of the network across successive time steps. As depicted in Figure <ref type="figure">9</ref>, there is a noticeable upward trend in the average reward as time progresses. Moreover, the newly devised resource allocation algorithm, leveraging CF-A3C reinforcement learning, showcases its ability to approach the optimal solution efficiently within a set timeframe. This contrasts with the baseline algorithm, as our approach maintains convergence even amidst the variability of wireless channels. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.">Conclusions</head><p>This paper introduces a pioneering causal-factor-based A3C learning approach tailored for optimizing the communication system of RIS-assisted electric vehicle charging networks within finite time constraints. Distinguished from conventional methods, our algorithm leverages online causal learning to discern optimal RIS deployment and resource allocation strategies. Through dedicated causal factor extraction networks, it distils pertinent causal insights from the system state, enabling maximal exploitation of RIS potential. Subsequently, the A3C reinforcement learning algorithm, grounded on causal factors, adeptly learns the optimal transmit power and RIS phase adjustments, thereby bolstering wireless network performance metrics like energy efficiency, even amidst real-time uncertainties and constrained training data. Simulation-based comparisons with existing algorithms affirm the effectiveness of our proposed approach.</p></div></body>
		</text>
</TEI>
