0% found this document useful (0 votes)
3 views

Random2.cpp

The project report details the design of a multi-band reflective intelligent surface (RIS) using machine learning techniques, specifically Generative Adversarial Networks (GANs) and Conditional GANs (cGANs). The approach aims to streamline the design process by mapping input requirements to optimal configurations, enhancing accuracy and efficiency in electromagnetic meta-surface design. The report also discusses the implementation of Bash scripting for data preprocessing and the overall methodology's potential for improving the design of multifunctional meta surfaces.

Uploaded by

Abhinav Maurya
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Random2.cpp

The project report details the design of a multi-band reflective intelligent surface (RIS) using machine learning techniques, specifically Generative Adversarial Networks (GANs) and Conditional GANs (cGANs). The approach aims to streamline the design process by mapping input requirements to optimal configurations, enhancing accuracy and efficiency in electromagnetic meta-surface design. The report also discusses the implementation of Bash scripting for data preprocessing and the overall methodology's potential for improving the design of multifunctional meta surfaces.

Uploaded by

Abhinav Maurya
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 25

A Project Report on

DESIGN OF MULTI-BAND RIS USING MACHINE


LEARNING

Submitted in partial fulfilment of the


requirements for the award of the degree
of
BACHELOR OF TECHNOLOGY
in
ELECTRONICS AND COMMUNICATION ENGINEERING

Submitted by:

Abhinav Maurya Shalini Meena


(21116004) (21116086)

Under the guidance of:

Prof. Akhilesh Mohan

Department of Electronics and Communication Engineering


Indian Institute of Technology Roorkee
May 2024

© INDIAN INSTITUTE OF TECHNOLOGY ROORKEE, ROORKEE - 2022


ALL RIGHTS RESERVED
DECLARATION

We hereby declare that the work which is being presented in this report entitled “Design of Multi-
Band RIS using Machine Learning” in partial fulfilment of the requirements for the award of
the degree of BACHELOR OF TECHNOLOGY in Electronics and Communication
Engineering to the Department of Electronics and Communication Engineering, Indian Institute
of Technology Roorkee is an authentic record of our own work carried out under the supervision
of Dr. Akhilesh Mohan, Department of Electronics and Communication Engineering, Indian
Institute of Technology Roorkee. This work has been done during July 2024 to November 2024.
We have not submitted the matter embodied in this report for the award of any other degree or
diploma.

Date: 28/11/2024
Place: Roorkee

Abhinav Maurya Shalini Meena


(21116004) (21116086)
CERTIFICATE

This is to certify that the project report entitled “DESIGN OF MULTI-BAND RIS USING
MACHINE LEARNING” submitted by Abhinav Maurya and Shalini Meena to the Department
of Electronics and Communication Engineering, Indian Institute of Technology Roorkee toward
partial fulfilment of the requirements for the degree of BACHELOR OF TECHNOLOGY in
Electronics and Communication Engineering is a record of bonafide work carried out under my
supervision and guidance.

Date: 28/11/2024
Place: Roorkee

Dr. Akhilesh Mohan


Assistant/Associate/Professor
Department of Electronics and Communication Engineering
Indian Institute of Technology Roorkee
ACKNOWLEDGEMENT

I would like to express my sincere gratitude to Prof. Akhilesh Mohan for providing me with the
invaluable opportunity to work on this project. His guidance, support, and expertise have been
instrumental in shaping this report and in enhancing my understanding of the subject matter.

We are truly fortunate to have had the opportunity to work under Prof. Akhilesh
Mohan supervision. Their enthusiasm for the subject matter and their will-ingness to
share their expertise have been inspirational. I am grateful for the time and effort they
invested in helping us develop our technical skills and research capabilities.

We would also like to extend my thanks to the Department of Electronics and


Communication Engineering at Indian Institute of Technology Roorkee for
providing an enriching academic environment that fosters learning and research.

I am also grateful to Ph.D. scholar Vimal Kumar who contributed his time, insights, and assistance
throughout the course of this project. His input has been invaluable and has greatly enriched the
quality of this report.
ABSTRACT

Creating efficient transmit arrays requires accurately defining their configurations to achieve
specific electromagnetic properties. Traditional design techniques, which rely on established
theories like Huygens' principle and wave matrix models, often involve complex calculations
and depend heavily on expert knowledge. These methods can be time-consuming and
difficult to scale for modern needs.
This project uses Generative Adversarial Networks (GANs) to simplify and enhance the
design process. GANs are a type of artificial intelligence that excels at generating realistic
and complex outputs by learning patterns from data. Paired with a fully connected neural
network, this approach allows for a streamlined method to design transmit arrays by directly

i
mapping input requirements to optimal configurations, making the process faster, more
accurate, and easier to implement.

Conditional Generative Adversarial Networks (cGANs) to refine the design process and
achieve higher accuracy. By conditioning the output on specific design requirements, such
as desired electromagnetic parameters, cGANs ensure the generated configurations align
closely with target specifications. This approach enhances the precision and relevance of the
design while leveraging a fully connected network to streamline the mapping from input
parameters to optimal transmit array configurations.

To streamline data preprocessing and optimize the workflow for training the cGANs model,
Bash scripting was employed for efficient data handling. The scripts automated tasks such
as data extraction, transformation, and formatting to ensure consistency and accuracy in the
input datasets. By leveraging Bash's powerful text processing capabilities, the pipeline
efficiently managed large-scale datasets, reducing manual intervention and expediting the
model preparation process. It eases the work of managing large datasets.

ii
CONTENTS
DECLARATION................................................................................................................................ 3

CERTIFICATE .................................................................................................................................. 4

ACKNOWLEDGEMENT .................................................................................................................... 5

ABSTRACT ...................................................................................................................................... i

CONTENTS .....................................................................................................................................iii

LIST OF FIGURES ............................................................................................................................ iv

LIST OF TABLES ...............................................................................................................................v

1 Introduction .......................................................................................................................... 6

1.1 Motivation and Background ..................................................................................................... 6

1.2 Realizations .............................................................................................................................. 8


1.2.1 Centralized Realization .................................................................................................................................................. 8
1.2.2 Distributed Realization .................................................................................................................................................. 9
1.2.3 ORAN-based 7.2x Split Realization ................................................................................................................................ 9

1.3 System Model for Unit-Cell ...................................................................................................... 9


1.3.1 1-D Unit Cell ................................................................................................................................................................ 10
1.3.2 10X10 Unit Cell ............................................................................................................................................................ 10

2 Implementation ...................................................................................................................11

2.1 Unit Cell ................................................................................................................................. 12


2.1.1 APP Layer ..................................................................................................................................................................... 12
2.1.2 MAC Layer ................................................................................................................................................................... 12
2.1.3 High-PHY Layer ............................................................................................................................................................ 13

2.2 Bash Scripts ................................................................................... Error! Bookmark not defined.


2.2.1 Code for Database Processing ..................................................................................................................................... 14

2.3 Layers of Transmit Array ........................................................................................................ 15

2.4 Machine Learning Model ........................................................................................................ 15


2.4.1 Parameters .................................................................................................................................................................. 15
2.4.2 C-GANs ........................................................................................................................................................................ 15
2.4.3 Solving Parameters ...................................................................................................................................................... 15

3 Simulation and Results .........................................................................................................16

3.1. Results ................................................................................................................................... 18

3.2 Conclusion .............................................................................................................................. 19

iii
LIST OF FIGURES
Figure 1.1 Cellular mMIMO vs CF-mMIMO. Error! Bookmark not defined.
Figure 1.2 PHY layer signal processing for centralized, distributed and 7.2x split realization.
8
Figure 2.1 CPU and AP connections with internal layers. 11
Figure 2.2 The proposed functional split for SRS. 15
Figure 2.3 The proposed functional split for PDSCH. 15
Figure 2.4 The proposed functional split for PUSCH. 15
Figure 3.1 Cell-free network visualization of 100 APs and 10 UEs 17
Figure 3.2 Throughput with increasing number of APs. 18
Figure 3.3 ECDF of cell throughput. 18
Figure 3.4 Average cell BLER across simulation time. 18

iv
LIST OF TABLES
Table 2.1 Summary of CPU layers and their functioning 12
Table 3.1 System-level simulation parameters 16
Table 3.2 Physical channel test configuration. 17

v
1 Introduction
1.1 Motivation and Background
Electromagnetic meta-surfaces, which typically consist of metallic scatterers and sub-
wavelength dielectric substrates, have attracted significant attention and found broad
applications across various engineering domains. These include electromagnetic wave
absorption, spatial filtering, anomalous reflection, wave-front manipulation, and dispersion.
Over the past several decades, traditional design methods have been classified into three
main categories: analytical techniques that use Huygens' principle and wave matrices; the
transmission line-based circuit modelling approach; and general super-surface synthesis
methods. However, all these approaches are part of the forward design process, which
involves creating a prototype to achieve the desired electromagnetic response. The selection
of the initial structure often depends on the designer's expertise and foundational
electromagnetic theory, resulting in increased design complexity and challenges.

In contrast, inverse design has gained increasing interest, fuelled by advances in machine
learning and the enhanced computing power provided by modern graphics processing units.
This approach offers a significant advantage in minimizing artificial interference and
provides greater autonomy from designers, especially in the context of nano- and photonic
devices. Despite this, conventional forward design structures, such as the Jerusalem cross,
single split-ring, complete square ring, and dog-bone designs, are still commonly used as
starting points for inverse design models. Consequently, the outcomes of these methods are
often constrained by the initial structure's size and performance limitations.

This paper proposes a novel approach to the reflective meta-surface inverse design using a
Generative Adversarial Network (GAN), achieving an accuracy of 65%. The key
innovations and contributions of the proposed work are outlined as follows:

1. A machine learning-driven inverse design technique is applied to electromagnetic


meta surface design. This approach utilizes a neural network to design the inner
patterns of each unit cell, ensuring that different units achieve various phase shifts.
The outer layer consists of metal rings of uniform size, which help reduce simulation
errors caused by non-periodic boundaries and minimize inter-unit coupling effects.

2. The meta surface unit's bottom layer incorporates a solid metal ground structure,
maintaining consistency in the reflected amplitude of the incident wave. The output

6
1. Introduction

layer of the neural network is expanded, with each element assigned distinct phase
shift values across multiple operating frequencies, which improves the frequency
bandwidth of the unit compared to single-frequency designs.

3. To enhance simulation accuracy and manufacturing reliability, the meta surface


unit's design departs from the conventional rectangular shape. Instead, a
combination of octagonal and quadrilateral shapes is used, which not only reduces
the training time for the neural network but also ensures precision in both simulation
and real-world implementation.

The final simulated design achieves a side-lobe level (SLL) of 23 dB in the far-field, with a
system efficiency of 36% and a relative 3-dB bandwidth of 7%. These simulation results
suggest that the proposed methodology holds significant potential for the design of multi-
functional meta surfaces.

Unit Cell of Meta surface

CF-mMIMO stands out from traditional MIMO networks by having many more access
points (APs) than user equipments (UEs). These studies introduced a unique analytical
approach, considering incomplete channel information, unlike the previous perfect
information assumption. One study suggested localized processing at each AP, while others
showed benefits from partial or full centralization, enhancing efficiency.

7
1. Introduction

1.2 Realizations

The approach described for meta surface design leverages machine learning techniques to
optimize the design process by bridging the gap between geometric parameters and
electromagnetic (EM) responses. In this method, a forward solver algorithm is first used to
generate a dataset of EM responses for a variety of cylindrical structures with different
parameter combinations. These datasets are then used to train a deep neural network,
known as the forward network, which can predict the EM response based on the given
input parameters. Essentially, the forward network learns the relationship between the
geometric parameters of the meta surface and the resulting EM response, allowing for
faster and more efficient design iterations compared to traditional simulation methods.

In parallel, an inverse network is trained through the same process, but with a reversed
objective. Instead of predicting the EM response from a set of parameters, the inverse
network takes the desired EM response as input and outputs the corresponding geometric
parameters of the meta surface that would produce that response. This inverse mapping
allows for the direct generation of structural designs that meet specific performance
criteria. The final optimized solutions from the inverse network are then verified using the
forward solver to ensure that the predicted designs produce the desired EM response. This
combined use of forward and inverse networks enables a more streamlined and adaptive
approach to meta surface design, significantly enhancing the efficiency of the design
process while maintaining accuracy and performance standards.

Figure 1.1 PHY layer signal processing for centralized, distributed and 7.2x split realization.

1.2.1 Centralized Realization


In the centralized realization of CF-mMIMO, the CPU is going to do all the PHY layer
processing on the data and the APs act as remote radio heads which relay data between CPU
and UEs. For downlink signal, at CPU starting with channel encoding, followed by
modulation and precoding, then a cyclic-prefix (CP) orthogonal-frequency OFDM-based
transmission, which involves parallel-to-serial conversion, inverse fast Fourier transform
(IFFT), serial-to-parallel conversion, and CP addition operation is performed, and the signal

8
1. Introduction

is divided according to number of transmit antennas of serving APs. AP transmits the


received signal to the UEs. For the uplink signal, the AP receives the signal from the channel
and relays it to the CPU where CP-OFDM demodulation is performed followed by channel
estimation, equalization, demodulation and then the obtained log-likelihood ratio (LLR)
values are used to perform the final estimation of the signal.

1.2.2 Distributed Realization


In Distributed Realization, for downlink data transmission, the channel encoding is
performed at the CPU then the CPU transmits that encoded data to all the serving APs, at
AP the data is modulated and precoded followed by CP-OFDM modulation, after this
operation the data is transmitted to the UEs. For uplink data signal, APs receive the data and
perform CP-OFDM demodulation to it, followed by local channel estimation and
equalization, and then demodulation of the signal is performed to obtain the LLR values,
those LLR values are transmitted to the CPU where those values from all the serving APs
are added for a UE and used for final decoding of the data.

1.2.3 ORAN-based 7.2x Split Realization


In ORAN-based 7.2x split realization, the PHY layer split is done according to the ETSI
standards. For downlink the channel encoding and modulation are performed at the CPU
and then the modulated signal is sent to AP where it is precoded and CP-OFDM modulation
is performed, then the signal is sent to UEs. For the uplink signal, the AP receives the signal
from the channel and performs CP-OFDM demodulation then it sends the obtained resource
grids to the CPU and at the CPU those resource grids are combined and then channel
estimation is performed, followed by equalization, demodulation and final decoding.

1.3 System Model for Cell-Free


To model these processes mathematically, we consider an OFDM-based CF-mMIMO
system wherein 𝑀 APs with 𝑁 antennas serve 𝐾 single antenna UEs over 𝐿 subcarriers.
The APs are distributed in large coverage areas and connected with a CPU through fronthaul
links. We denote these sets of APs and UEs as ℳ = {1,2, … , 𝑀} and 𝒦 = {1,2, … , 𝐾},
respectively. We assume that a single AP (say, AP-𝑚) can serve a set of UEs defined as,
𝒦𝓂 = {𝑘1𝑚 , 𝑘2𝑚 , … , 𝑘𝑡𝑚𝑚 }, where 𝑘𝑖𝑚 represents the UE index and 𝑡_𝑚 is the number of UEs
connected to AP-𝑚. We have further assumed that a single UE (say, UE-𝑘) can also be
served by a set of APs defined as ℳ𝓀 = {𝑚1𝑘 , 𝑚2𝑘 , … , 𝑚𝑡𝑘𝑘 }, where 𝑚𝑖𝑘 represents the AP
index and 𝑡𝑘 is the number of APs connected to UE-𝑘.

9
1. Introduction

1.3.1 Uplink System Model


The signal received at AP-$m$ can be expressed as

𝑌𝑚𝑢𝑙 = ∑ 𝐻𝑚𝑘 𝑋𝑘𝑢𝑙 + ∑ 𝐻𝑚𝑘 𝑋𝑘𝑢𝑙 + 𝑁𝑚


𝑢𝑙

𝑘∈𝛫𝑚 𝑘∈𝛫\𝛫𝑚

where 𝐻𝑚𝑘 ∈ 𝒞 𝒩×ℒ is the uplink channel between UE−𝑘 and AP-𝑚 , 𝑋𝑘ul ∈ 𝒞 ℒ×ℒ is a
ul
diagonal matrix representing the transmitted signal of UE-𝑘 over 𝐿 subcarriers, and 𝑁𝑚 ∼
𝒩×ℒ (0, 2 )
𝒞𝒩 σ is the additive white Gaussian noise (AWGN) at AP-𝑚. The respective
terms in the above summation represent the intended UEs signal, the interfering UEs signal,
and the noise (from left to right).

It is worthwhile to mention here that the above equation, captures the uplink pilot
transmission as well as the uplink data transmission. For uplink pilot transmission, we
consider ϕ𝑘 as pilot signal vector of length 𝐿 assigned to UE-𝑘, i.e., 𝑋𝑘ul (𝑙, 𝑙) = ϕ𝑘 (𝑙),
where 𝑙 ranges from 1 to 𝐿. For uplink data transmission, 𝑋𝑘ul (𝑙, 𝑙) ∈ 𝒜, where 𝒜 is the
modulation set. Here, off-diagonal elements are zero in both the pilot and data
transmissions, i.e., 𝑋𝑘ul (𝑙, 𝑙̂) = 0 for 𝑙 ≠ 𝑙̂.

1.3.2 Downlink System Model


Using channel reciprocity, the signal received at UE-𝑘 is expressed as

𝑦𝑘𝑑𝑙 = ∑ 𝑣𝑒𝑐𝑡(𝐻𝑚𝑘
𝐻
∑ 𝑊𝑚𝑘 ′ 𝑋𝑘𝑑𝑙′ ) + ∑ 𝐻
𝑣𝑒𝑐𝑡(𝐻𝑚𝑘 ∑ 𝑊𝑚𝑘 ′ 𝑋𝑘𝑑𝑙′ ) + 𝑛𝑘𝑑𝑙
𝑚∈𝛭𝑘 𝑘 ′ ∈𝛫𝑚 𝑚∈𝛭\𝛭𝑘 𝑘 ′ ∈𝛫𝑚

where 𝑋𝒌dl ∈ 𝒞 ℒ×ℒ is a diagonal matrix representing the modulated signal for UE-𝑘, 𝑊𝑚𝑘 ∈
𝒞 𝒩×ℒ is the transmit precoding matrix corresponding to the link between AP-𝑚 and UE-𝑘,
and 𝑛𝑘dl ∼ 𝒞𝒩 ℒ×1 (0, σ2 ) is the AWGN.

Here, the operator 𝑣𝑒𝑐𝑡(𝐴) transforms the matrix 𝐴 to vector 𝑎 by selecting its diagonal
elements. The respective terms in the above summation denote the intended APs signal, the
interfering APs signal, and the noise (from left to right).

10
2 Implementation
All APs establish connections to a high-capacity CPU through forward connections. This
configuration essentially transforms the APs into remote radio units, collaborating to
facilitate seamless communication with user equipment. The fronthaul network can
incorporate a mix of not only wireless but also wired links, organized in either a star or mesh
topology. The techniques outlined in this research can be employed for front-end topologies
of any kind.

We have used MATLAB to implement this system. There we created two new entities CPU
and AP. And modified an existing entity UE. The Architecture we used is a 3-layer
architecture for CPU and a single-layer Architecture for AP (Shown in Figure 2.1). No major
changes have been made in UE in terms of its architecture.

Figure 2.1 CPU and AP connections with internal layers.

Note that this is a system-level simulation and we are sticking with 5G NR standards so we
will be using the codebook-based precoding to calculate a precoder for specified channels
also as MATLAB 5G toolbox supports perfect channel estimation we are also going to
implement the thing in same way. Most of the processing will follow the 3GPP standards

11
2. Implementation

and we are going to modify the data slowly and try to integrate the Cell-Free System with
the existing 5G toolbox. Also, we will be making suitable assumptions based on the
availability of functions and methods to calculate this precoder and many other workarounds
that are there in the 5G toolbox.

We will be focusing on making a split-based Cell-Free System without making significant


modifications to the upper layer of gNodeB, like MAC and APP layers (We will be going
through those in further sections). And we can have a look at the simulation results that we
will be achieving in these two types of realization.

2.1 Layers of CPU


Table 2.1 Summary of CPU layers and their functioning

Layer Functions

Application (APP) Network service access, End-to-End Communication

Medium Access Control (MAC) Channel access control, frame formatting, prioritization

Physical (High-PHY) Physical layer processing of signal.

2.1.1 APP Layer


The Application Layer is the topmost layer in the protocol stack and is responsible for
supporting network applications and end-user services. It provides a communication
interface between software applications and the lower layers of the network stack.

In our implementation we haven’t made any changes to this Layer and its functionality, it
will be operating according to the 5G system only.

2.1.2 MAC Layer


The MAC Layer is responsible for the control of access to the shared communication
medium, managing protocol access, and providing services to the logical channels. It
ensures efficient utilization of the radio resources and facilitates the exchange of data frames
between connected devices.

12
2. Implementation

The Scheduler considers three scheduling strategies, Round Robin, Maximum CQI and
Propositional Fair, we can specify that at the beginning of the simulation.

2.1.3 High-PHY Layer


The High-PHY Layer is the lowest layer in the protocol stack. It is responsible for channel
encoding, modulation, precoding and CP-OFDM modulation for downlink signal. CP-
OFDM demodulation, channel estimation, equalization, demodulation, and final decoding
for uplink signal depending upon the realization.

We have three different implementations based upon the Realization we choose among
centralized, distributed or 7.2x split realization. All those implementations are encapsulated
in the single class entity. We can toggle between them while setting up the CPU by
providing a split value.

2.2 Bash Scripting


Bash scripting was essential for automating repetitive and time-intensive data processing
tasks. It enabled the extraction and sorting of specific columns from Excel sheets based on
frequency, handling over 1000 datasets efficiently. Additionally, Bash was used to generate
Excel sheets containing configurations for 10x10 matrices, ensuring a streamlined and
consistent pipeline for creating datasets to train the model.’

#!/bin/bash
output_file="matrix_configurations.xlsx"
temp_csv="matrix_temp.csv"
echo "ConfigurationID,MatrixValues" > "$temp_csv"
for i in $(seq 1 1000); do
matrix=$(for j in $(seq 1 100); do echo -n "$((RANDOM % 2)),"; done | sed 's/,$//')
echo "$i,\"$matrix\"" >> "$temp_csv"
done
ssconvert "$temp_csv" "$output_file"
rm "$temp_csv"
echo "Matrix configurations saved to $output_file."

Script Generating 1000 configurations of dataset.

13
2. Implementation

2.2.1 Sorting Excel Sheets by Frequency Algorithm

#!/bin/bash
for i in $(seq 1 1000); do
folder_name="BTP_PATTERN_$i"
angle_file="$folder_name/Angle_Pat_$i.xlsx"
magnitude_file="$folder_name/Magnitude_Pat_$i.xlsx"
if [[ -d "$folder_name" ]] && [[ -f "$angle_file" ]] && [[ -f "$magnitude_file" ]]; then
echo "Processing files in folder: $folder_name"
ssconvert "$angle_file" "$folder_name/Angle_Pat_$i.csv"
awk -F, 'NR==1 {print $0; next} {print $0 | "sort -t, -k2,2n"}' "$folder_name/Angle_Pat_$i.csv" >
"$folder_name/Sorted_Angle_Pat_$i.csv"
ssconvert "$folder_name/Sorted_Angle_Pat_$i.csv" "$folder_name/Sorted_Angle_Pat_$i.xlsx"
rm "$folder_name/Angle_Pat_$i.csv" "$folder_name/Sorted_Angle_Pat_$i.csv"
ssconvert "$magnitude_file" "$folder_name/Magnitude_Pat_$i.csv"
awk -F, 'NR==1 {print $0; next} {print $0 | "sort -t, -k2,2n"}' "$folder_name/Magnitude_Pat_$i.csv" >
"$folder_name/Sorted_Magnitude_Pat_$i.csv"
ssconvert "$folder_name/Sorted_Magnitude_Pat_$i.csv" "$folder_name/Sorted_Magnitude_Pat_$i.xlsx"
rm "$folder_name/Magnitude_Pat_$i.csv" "$folder_name/Sorted_Magnitude_Pat_$i.csv"
echo "Processed and sorted files in $folder_name"
else
echo "Folder or files missing: $folder_name"
fi
done
echo "Processing complete for all folders."

The script automates the processing of Excel files in multiple folders (BTP_PATTERN_1 to
BTP_PATTERN_1000), with each folder containing two Excel files: Angle_Pat_i.xlsx and
Magnitude_Pat_i.xlsx. The script begins by looping through the folder names using a
for loop (for i in $(seq 1 1000)), iterating from 1 to 1000. It checks whether each
folder and its corresponding Excel files exist with if [[ -d "$folder_name" ]] && [[
-f "$angle_file" ]] && [[ -f "$magnitude_file" ]].

For data processing, the ssconvert function (from the gnumeric package) is used to
convert Excel files to CSV format (ssconvert "$angle_file"
"$folder_name/Angle_Pat_$i.csv"), allowing easier manipulation. The awk command
is then used to sort the data in CSV files by the second column (frequency) using the -F,
flag to specify the delimiter and the sort -t, -k2,2n function for sorting. The sorted
CSV data is converted back to Excel format with ssconvert (ssconvert
"$folder_name/Sorted_Angle_Pat_$i.csv"
"$folder_name/Sorted_Angle_Pat_$i.xlsx").

Finally, the script cleans up temporary CSV files using the rm command to remove
intermediate files (rm "$folder_name/Angle_Pat_$i.csv").

14
2. Implementation

"$folder_name/Sorted_Angle_Pat_$i.csv"), ensuring a clean working environment.


This process is repeated for each folder and both Excel files within them.

2.3 Layers of UE
Similar to the CPU, UE also has three layers, and they are the same with their functionalities.
The downlink signal decoding methods are modified to account for multiple connectivity of
UE. The uplink signal processing is kept the same.

2.3.1
2.4 Signal Processing
Similar to the above, AP-𝑚 receives the signals from all the UEs as in uplink system model
equation and converts them to a digital waveform. The AP removes the CP from the digital
waveform and performs FFT to obtain the time-frequency grid. The grid is subsequently
used for local LS channel estimation, MMSE equalization, layer demapping, and
descrambling to obtain the LLR values, say ̂𝑏 LLR . These LLR values are then transmitted to
𝑚𝑘
̂
the CPU, where they are added for UE-𝑘 across the APs in ℳ𝓀 , as follows, 𝑏 LLR ̂
= ∑𝑏 LLR
𝑘 𝑚𝑘 .
This 𝒃LLR
𝑚𝑘 is used for the TB decoding of UE-𝑘 data.

15
3 Simulation and Results
We investigate the performance of the end-to-end CF-mMIMO system for centralized and
distributed realizations and compare it with the mMIMO cellular (5G) system. To evaluate
the performance, we consider 100 APs with four antennae each, uniformly distributed over
1000 × 1000 𝑚2 along with 10 single antenna UEs. Also, we consider that each UE is
served by a maximum of four nearest APs, and an AP can serve any number of UEs. The
detailed list of system and physical channel parameters is tabulated in Table 3.1 and 3.2 as
per the 3GPP test configurations. The modulation, code rate, payload size and code block
size are dynamically selected based on CSI calculated at the CPU for each UE. For obtaining
the results for the cellular system, we consider the BS employing 32 antennas and serving
the UEs at a transmit power of 34 dBm. The rest of the physical channel parameters are the
same as in Table 3.2.

Table 3.1 System-level simulation parameters

Simulation Parameter Value


Coverage area 1000m × 1000m
Number of APs 100
Number of UEs 10
Number of UE-AP connections 4
Transmit power per AP and UE 23dBm and 20dBm
Number of antennae per AP and UE 4 and 1
Receive gain per AP and UE 0 dB
Noise figure per AP and UE 9 dB
Channel Model CDL
Channel Delay Spread 300 ns

16
3. Simulation and Results

Table 3.2 Physical channel test configuration.

Physical Channel Parameter Value


Carrier frequency 1.9 GHz
Channel bandwidth 20 MHz
Subcarrier spacing 15 KHz
Number of resource blocks 106
DL-UL slot allocation for TDD [D D S U U]
CP-OFDM symbols per slot 14
Cyclic redundancy check bits 16 / 24
Maximum number of HARQ transmissions 16
HARQ redundancy version sequence 0, 3, 2, 1
DMRS configuration type Type 1
Additional DMRS position Pos 0
CDM groups without data 2
DMRS ports {0}
PDSCH/PUSCH mapping type Type A
[Start symbol, Allocated length] [0, 14]

Figure 3.1 Cell-free network visualization of 100 APs and 10 UEs

17
3. Simulation and Results

3.1. Results
We evaluate the downlink performance and
outline the results in terms of empirical
cumulative distribution function (ECDF) of
throughput, average throughput (AT) for the
increasing number of APs, and the BLER by
averaging it over the increasing runtime. The
respective results are outlined in Fig. 3.2, 3.3,
3.4. From the figures, we can see the
centralized and distributed CF-mMIMO
Figure 3.3 ECDF of cell throughput.

realizations significantly outperform the


cellular massive MIMO network in terms of
AT. In terms of BLER, centralized outperforms
the cellular network but for distributed
realization, it is like the cellular network, as it
involves distributed processing, leading to a
comparable SNR. Interestingly, from Fig. 3.3,
we can observe that with the increase in the
number of APs, throughput also increases as the Figure 3.2 Throughput with increasing number of APs.
density of AP increases and eventually gets
saturated beyond a certain limit.

Lastly, we examine the downlink as well as


the uplink performance in terms of AT, SE,
BLER and 95%-likely throughput (LT) of CF-
mMIMO and cellular network. We can
observe that for the downlink test
configuration, CF-mMIMO realizations at
least achieve a gain of 33.81% in AT, 39.0%
in 95%-LT, 33.80% in SE, and 7 1.42% in
BLER (only for the centralized) concerning
Figure 3.4 Average cell BLER across simulation time. the cellular network.

18
3. Simulation and Results

3.2 Conclusion
From the above results, we can conclude that in general cell-free is outperforming cellular
with centralized realization performing better than distributed realization. We have
proposed an SRS-based channel estimation and precoding algorithm for the centralized and
distributed realization of the CF-mMIMO system by splitting the PUSCH and PDSCH
processing among the APs and the CPU. In the simulation result, we investigate the
performance of the design system-level simulator in terms of the throughput and BLER.

19
References
[1] Özlem Tugfe Demir; Emil Björnson; Luca Sanguinetti, Foundations of User-Centric
Cell-Free Massive MIMO , now, 2021.

[2] E. Björnson and L. Sanguinetti, "Making Cell-Free Massive MIMO Competitive


With MMSE Processing and Centralized Implementation," in IEEE Transactions on
Wireless Communications, vol. 19, no. 1, pp. 77-90, Jan. 2020, doi:
10.1109/TWC.2019.2941478.

[3] H. Q. Ngo, A. Ashikhmin, H. Yang, E. G. Larsson and T. L. Marzetta, "Cell-Free


Massive MIMO Versus Small Cells," in IEEE Transactions on Wireless
Communications, vol. 16, no. 3, pp. 1834-1850, March 2017, doi:
10.1109/TWC.2017.2655515.

[4] V. Ranjbar, A. Girycki, M. A. Rahman, S. Pollin, M. Moonen and E. Vinogradov,


"Cell-Free mMIMO Support in the O-RAN Architecture: A PHY Layer Perspective
for 5G and Beyond Networks," in IEEE Communications Standards Magazine, vol.
6, no. 1, pp. 28-34, March 2022, doi: 10.1109/MCOMSTD.0001.2100067.

[5] H. He, X. Yu, J. Zhang, S. Song and K. B. Letaief, "Cell-Free Massive MIMO for
6G Wireless Communication Networks," in Journal of Communications and
Information Networks, vol. 6, no. 4, pp. 321-335, Dec. 2021, doi:
10.23919/JCIN.2021.9663100.

[6] ETSI TS 103 859 V7.0.2 (2022-09). O-RAN Fronthaul Control, User and
Synchronization Plane Specification v07.02; (O-RAN-WG4.CUS.0-v07.02).

20

You might also like