This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Stacked Intelligent Metasurfaces for
Task-Oriented Semantic Communications

Guojun Huang, Jiancheng An, , Zhaohui Yang, , Lu Gan, ,
Mehdi Bennis, , and Mérouane Debbah
This work is partially supported by the Sichuan Science and Technology Program under Grant 2023YFSY0008 and 2023YFG0291, and is partially supported by the National Natural Science Foundation of China (Grant number 62471096). G. Huang and L. Gan are with the School of Information and Communication Engineering, University of Electronic Science and Technology of China (UESTC), Chengdu, Sichuan, 611731, China. L. Gan is also with the Yibin Institute of UESTC, Yibin 644000, China (e-mail: guojun_\_[email protected]; [email protected]). J. An is with the School of Electrical and Electronics Engineering, Nanyang Technological University, Singapore 639798 (e-mail: [email protected]). Z. Yang is with the College of Information Science and Electronic Engineering, Zhejiang University, Hangzhou, Zhejiang 310027, China. (e-mail: [email protected]). M. Bennis is with the Centre for Wireless Communications, University of Oulu, 90570 Oulu, Finland (e-mail: [email protected]). M. Debbah is with the Center for 6G Technology, Khalifa University of Science and Technology, P O Box 127788, Abu Dhabi, United Arab Emirates (e-mail: [email protected]).
Abstract

Semantic communication (SemCom) leveraging advanced deep learning (DL) technologies enhances the efficiency and reliability of information transmission. Emerging stacked intelligent metasurface (SIM) with an electromagnetic neural network (EMNN) architecture enables complex computations at the speed of light. In this letter, we introduce an innovative SIM-aided SemCom system for image recognition tasks, where a SIM is positioned in front of the transmitting antenna. In contrast to conventional communication systems that transmit modulated signals carrying the image information or compressed semantic information, the carrier EM wave is directly transmitted from the source. The input layer of the SIM performs source encoding, while the remaining multi-layer architecture constitutes an EMNN for semantic encoding, transforming signals into a unique beam towards a receiving antenna corresponding to the image class. Remarkably, both the source and semantic encoding occur naturally as the EM waves propagate through the SIM. At the receiver, the image is recognized by probing the received signal magnitude across the receiving array. To this end, we utilize an efficient mini-batch gradient descent algorithm to train the transmission coefficients of SIM’s meta-atoms to learn the semantic representation of the image. Extensive numerical results verify the effectiveness of utilizing the SIM-based EMNN for image recognition task-oriented SemComs, achieving more than 90% recognition accuracy.

Index Terms:
Semantic communication (SemCom), stacked intelligent metasurface (SIM), image recognition, wave-domain computation.

I Introduction

Conventional content-centric communication paradigms fail to satisfy the stringent quality-of-service requirements of next-generation wireless networks, particularly in terms of ultra-reliability, low latency, and high data rates [1]. As a result, there is a growing interest in intent-driven networks, which triggers the recent research surge in semantic communications (SemComs) [2, 3]. Relying on advanced artificial intelligence technologies and powerful computing capability, SemCom enables learning the semantic representations of various types of sources. For instance, the authors of [4] proposed a novel text SemCom system, DeepSC, to recover the meaning of sentences at the receiver with the minimum semantic errors. Based on this, several variants of DeepSC and advanced deep learning (DL)-driven SemCom systems have been developed [5, 6]. Nevertheless, the joint optimization of the semantic and channel encoders in these SemCom systems is typically time-consuming, which undoubtedly increases the training costs and deployment challenges for edges [6]. Additionally, the inference process would suffer from high computational complexity as the number of nodes increases.

Recently, stacked intelligent metasurface (SIM) emerged as a promising technique for realizing fast and efficient wave-domain computation. Specifically, a SIM is a closed vacuum container with multiple closely stacked metasurface layers, where each metasurface consists of numerous low-cost meta-atoms whose electromagnetic (EM) response can be flexibly tuned by an intelligent controller, e.g., a field programmable gate array (FPGA) [7, 8]. As a result, SIM forms a programmable electromagnetic neural network (EMNN) in the EM domain, with signal processing implemented at the speed of light [9, 10, 11, 12]. Recently, researchers have utilized SIMs to perform various computing tasks in wireless communication and sensing scenarios, such as multiuser precoding [13, 14, 15, 16, 17] and direction-of-arrival (DOA) estimation [18, 19]. Nevertheless, the potential of utilizing SIM for SemComs has not hitherto been investigated.

Against this background, we examine an image recognition task-oriented SemCom system leveraging a SIM. Compared to conventional SemCom systems sequentially encoding and transmitting semantic information, the wave-based computing paradigm enables automatic and efficient source and semantic encoding as the EM waves propagate through the SIM, greatly reducing energy consumption and processing latency. Specifically, in the proposed system, a SIM is positioned in front of the transmitting antenna, which only transmits the carrier EM waves. The input layer of the SIM performs image source encoding, while the remaining multi-layer architecture constitutes an EMNN for image semantic encoding, transforming the signals passing through the input layer of the SIM into a unique beam towards an antenna corresponding to the image class. As a result, the receiver recognizes the image by probing the signal magnitude across the receiving array. To this end, we utilize an efficient mini-batch gradient descent algorithm to train the transmission coefficients of meta-atoms in the SIM. Finally, extensive simulation results verify the effectiveness of utilizing a SIM to realize the task-oriented SemComs.

Refer to caption
Figure 1: A SIM-aided image recognition task-oriented SemCom system, where we consider MM image classes.

II System Model

In this section, we introduce the SIM-aided SemCom system for image recognition. As shown in Fig. 1, we consider a system consisting of a single-antenna transmitter and a receiver equipped with MM antennas, which correspond to the number of image classes. Let ={1,2,,M}\mathcal{M}=\left\{1,2,\ldots,M\right\} denote the set of indexes of antennas. More specifically, the transmitting antenna emits the unmodulated radio wave, and the SIM performs source and semantic coding of the image to direct the transmissive EM waves towards the corresponding antenna at the receiver.

II-A Transmitter

Specifically, the transmitter consists of two components: i) a single transmitting antenna, and ii) a SIM in front of it.

II-A1 Transmitting Antenna

In contrast to conventional communication systems, the transmitting antenna only radiates the carrier EM waves. Let pts\sqrt{p_{t}}s denote the transmit signal, where ptp_{t} represents the transmit power, and ss is the normalized EM signal111Note that the receiver recognizes the image class by probing the amplitude of the EM signal, which means that the phase of ss has no impact on the recognition performance., satisfying |s|2=1|s|^{2}=1.

II-A2 SIM

Furthermore, a SIM is positioned in front of the transmitting antenna to perform complex computations for source and semantic coding. Let (L+1)(L+1) denote the number of layers, while the corresponding set is represented by ={0,1,2,,L}\mathcal{L}=\left\{0,1,2,\ldots,L\right\}. Let DD and dsd_{s} denote the thickness of the SIM, and the spacing between adjacent layers, respectively. Thus, we have ds=D/Ld_{s}=D/L. Moreover, let NN and 𝒩={1,2,,N}\mathcal{N}=\left\{1,2,\ldots,N\right\} denote the number of meta-atoms on each layer as well as the corresponding set. Each metasurface layer is modeled as a uniform planar array, where meta-atoms are identically arranged in a square configuration. Specifically, the numbers of meta-atoms in rows and columns are denoted by NrowN_{\mathrm{row}} and NcolN_{\mathrm{col}}, respectively. Thus, we have N=NrowNcolN=N_{\mathrm{row}}N_{\mathrm{col}}. Let znl=anlejϕnlz^{l}_{n}=a^{l}_{n}e^{j\phi^{l}_{n}} denote the transmission coefficient of the nn-th meta-atom on the ll-th metasurface layer [20], where anl[0,1)a^{l}_{n}\in[0,1) and ϕnl[0,2π)\phi^{l}_{n}\in[0,2\pi) represent the corresponding amplitude and phase shift, respectively. The transmission coefficient matrix of the ll-th metasurface layer is given by 𝐙l=𝐀l𝚽l=diag(z1l,z2l,,zNl)N×N\mathbf{Z}^{l}=\mathbf{A}^{l}\bm{\Phi}^{l}=\mathrm{diag}\left(z^{l}_{1},z^{l}_{2},\ldots,z^{l}_{N}\right)\in\mathbb{C}^{N\times N}, where 𝐀l=diag(𝐚l)=diag(a1l,a2l,,aNl)N×N\mathbf{A}^{l}=\mathrm{diag}\left(\mathbf{a}^{l}\right)=\mathrm{diag}\left(a^{l}_{1},a^{l}_{2},\ldots,a^{l}_{N}\right)\in\mathbb{R}^{N\times N}, 𝚽l=diag(eϕl)=diag(ejϕ1l,ejϕ2l,,ejϕNl)N×N\bm{\Phi}^{l}=\mathrm{diag}\left(e^{\bm{\phi}^{l}}\right)=\mathrm{diag}\left(e^{j\phi^{l}_{1}},e^{j\phi^{l}_{2}},\ldots,e^{j\phi^{l}_{N}}\right)\in\mathbb{C}^{N\times N}.

The EM propagation coefficients between adjacent layers in SIM can be approximately characterized using the Rayleigh-Sommerfeld diffraction equation [21]. Let 𝐖lN×N\mathbf{W}^{l}\in\mathbb{C}^{N\times N} denote the propagation matrix from the (l1)\left(l-1\right)-th layer to the ll-th layer, with wn,nlw^{l}_{n,n^{*}} representing the entry on the nn-th row and nn^{*}-th column. Specifically, wn,nlw^{l}_{n,n^{*}} denotes the EM propagation coefficient from the nn^{*}-th meta-atom on the (l1)\left(l-1\right)-th layer to the nn-th meta-atom on the ll-th metasurface layer, which is defined by

wn,nl\displaystyle w^{l}_{n,n^{*}} =fw(ds,dn,nl,Sa,λ)\displaystyle=f_{w}\left(d_{s},d_{n,n^{*}}^{l},S_{a},\lambda\right)
=dsSa(dn,nl)2(12πdn,nlj1λ)ej2πdn,nl,\displaystyle=\frac{d_{s}S_{a}}{\left({d_{n,n^{*}}^{l}}\right)^{2}}\left(\frac{1}{2\pi d_{n,n^{*}}^{l}}-j\frac{1}{\lambda}\right)e^{j2\pi d_{n,n^{*}}^{l}}, (1)

for l/{0}l\in\mathcal{L}/\{0\}, n,n𝒩n^{*},n\in\mathcal{N}, where SaS_{a} is the area of each meta-atom, dn,nld^{l}_{n,n^{*}} denotes the corresponding propagation distance between the two meta-atoms, λ\lambda denotes the radio wavelength. Moreover, since the SIM is closely placed in front of the transmitter, the propagation channel from the transmitting antenna to the input layer of the SIM is characterized by 𝐰0=fw(dt,s,dn0,Sa,λ)N\mathbf{w}^{0}=f_{w}\left(d_{t,s},d^{0}_{n},S_{a},\lambda\right)\in\mathbb{C}^{N} [10], where dt,sd_{t,s} and dn0d^{0}_{n} denote the horizontal distance from the transmitting antenna to the input layer of the SIM and the distance from the transmitter to the nn-th meta-atom on the input layer, respectively.

Source Encoding Layer

As illustrated in Fig. 1, the input layer of the SIM serves as a digital-to-analog converter to transform the pixel matrix of the source image into the transmission coefficients of the meta-atoms on the input layer222For the sake of brevity, we consider only greyscale images in this letter. For color images, each pixel matrix of three channels can be preprocessed for fully leveraging the amplitude and phase components of the transmission coefficients of meta-atoms on the input layer.. Specifically, the image is first preprocessed to match the size of the input layer (Nrow×Ncol)\left(N_{\mathrm{row}}\times N_{\mathrm{col}}\right) by employing appropriate extraction or interpolation techniques [22], and then the transmission coefficients of the source encoding layer (z10,z20,,zN0)\left(z^{0}_{1},z^{0}_{2},\ldots,z^{0}_{N}\right) are configured to the corresponding value of the pixel matrix. The amplitude and phase of the EM waves passing through the source encoding layer are determined by the product of the incident signal on the source coding layer, i.e., pts𝐰0\sqrt{p_{t}}s\mathbf{w}^{0} and the EM response imposed by the input layer, i.e., 𝐙0\mathbf{Z}^{0}. Therefore, the source encoded signal 𝐱N\mathbf{x}\in\mathbb{C}^{N} radiated from the input metasurface layer can be expressed as

𝐱=pts𝐙0𝐰0.\displaystyle\mathbf{x}=\sqrt{p_{t}}s\mathbf{Z}^{0}\mathbf{w}^{0}. (2)
Semantic Encoding Layers

The rest layers of the SIM construct an EMNN, which serves as a semantic encoder, aiming to transform 𝐱\mathbf{x} to a unique beam towards the receiving antenna corresponding to its image class. According to the Huygens–Fresnel principle [20], the EM wave passing through each meta-atom on the source encoding layer acts as a secondary source to illuminate all the meta-atoms on the first metasurface layer, and this process is repeated as the waves propagate through all metasurface layers [21]. Let 𝐁=𝐙L𝐖L𝐙2𝐖2𝐙1𝐖1N×N\mathbf{B}=\mathbf{Z}^{L}\mathbf{W}^{L}\ldots\mathbf{Z}^{2}\mathbf{W}^{2}\mathbf{Z}^{1}\mathbf{W}^{1}\in\mathbb{C}^{N\times N} denote the EM response of the semantic encoding layers. Hence, the semantic encoded signal 𝐱~N\tilde{\mathbf{x}}\in\mathbb{C}^{N} can be represented as

𝐱~=𝐁𝐱=pts𝐙L𝐖L𝐙2𝐖2𝐙1𝐖1𝐙0𝐰0.\displaystyle\tilde{\mathbf{x}}=\mathbf{B}\mathbf{x}=\sqrt{p_{t}}s\mathbf{Z}^{L}\mathbf{W}^{L}\ldots\mathbf{Z}^{2}\mathbf{W}^{2}\mathbf{Z}^{1}\mathbf{W}^{1}\mathbf{Z}^{0}\mathbf{w}^{0}. (3)

Note that both the source and semantic encoding involved in (3) occur naturally as the EM waves propagate through the SIM, which is in sharp contrast to the baseband semantic encoder.

II-B Channel Model

The wireless channel is assumed to be block fading, denoted by 𝐇=[𝐡1,𝐡2,,𝐡M]TM×N\mathbf{H}=\left[\mathbf{h}_{1},\mathbf{h}_{2},\ldots,\mathbf{h}_{M}\right]^{T}\in\mathbb{C}^{M\times N}, where 𝐡mT1×N\mathbf{h}_{m}^{T}\in\mathbb{C}^{1\times N}, mm\in\mathcal{M}, denotes the channel from the output layer of SIM to the mm-th antenna of the receiver. In this letter, we adopt the Rician fading model [11], yielding

𝐇=Kp1+K𝐇LOS+p1+K𝐇NLOS,\displaystyle\mathbf{H}=\sqrt{\frac{Kp}{1+K}}\mathbf{H}_{\mathrm{LOS}}+\sqrt{\frac{p}{1+K}}\mathbf{H}_{\mathrm{NLOS}}, (4)

where pp is the path loss, KK is the Rician factor, 𝐇LOS\mathbf{H}_{\mathrm{LOS}} is the line-of-sight (LOS) component, characterizing the direct path between SIM and receiver, which is defined by [𝐇LOS]m,n=ej2πλdm,n{[\mathbf{H}_{\mathrm{LOS}}]}_{m,n}=e^{-j\frac{2\pi}{\lambda}d_{m,n}}, where dm,nd_{m,n} denotes the distance from the nn-th meta-atom on the output layer of the SIM to the mm-th antenna at the receiving array. 𝐇NLOS\mathbf{H}_{\mathrm{NLOS}} is the non-LOS (NLOS) component, following the circularly symmetric complex Gaussian distribution with a zero mean and an identity covariance matrix. In this paper, we focus on the optimization of SIM to enable semantic encoding by assuming that the wireless channel coefficients have been estimated using advanced channel estimation approaches [11].

As a result, the received signal can be modeled as

𝐲=𝐇𝐱~+𝐯,\displaystyle\mathbf{y}=\mathbf{H}\tilde{\mathbf{x}}+\mathbf{v}, (5)

where 𝐲=[y1,y2,,yM]M\mathbf{y}=\left[y_{1},y_{2},\ldots,y_{M}\right]\in\mathbb{C}^{M} represents the signal received at the receiving array, 𝐯M\mathbf{v}\in\mathbb{C}^{M} is the additive white Gaussian noise (AWGN), satisfying v𝒞𝒩(𝟎,σv2𝐈𝐌)\textbf{v}\sim\mathcal{CN}\left(\mathbf{0},\sigma^{2}_{v}\mathbf{I_{M}}\right), where 𝐈𝐌M×M\mathbf{I_{M}}\in\mathbb{C}^{M\times M} denotes the identity matrix and σv2\sigma^{2}_{v} represents the average noise power.

II-C Receiver

As shown in Fig. 1, MM antennas are arranged at the receiver in a uniform linear array with spacing drd_{r}. Each antenna corresponds to an image class. In this letter, we aim to train the SIM-aided EMNN to steer the wireless signals 𝐱~\tilde{\mathbf{x}} towards the corresponding antenna. As a result, the image can be recognized by comparing the magnitude of the signal at each antenna. This process can be formulated as

m^=argmaxm{|y1|2,|y2|2,,|yM|2},\displaystyle\hat{m}=\arg\max_{m\in\mathcal{M}}{\left\{|y_{1}|^{2},|y_{2}|^{2},\ldots,|y_{M}|^{2}\right\}}, (6)

where m^\hat{m} is the index of the antenna with maximum received energy, also indicating the corresponding class of the image.

III SIM-aided EMNN for Semantic Encoding

In this section, we first introduce the loss function used for evaluating the performance of the EMNN. Then, the detailed training process of the SIM is explained.

III-A Loss Function

The cross-entropy (CE) is used as the loss function to measure the difference between the power pattern across the receiving array and the expected probability distribution of recognizing the input image. Specifically, we use the softmax function to normalize the power at the receiving array, i.e., 𝐲~=softmax(|𝐲|2)=[y~1,y~2,,y~M]M\tilde{\mathbf{y}}=\text{softmax}(\mathbf{|y|}^{2})=\left[\tilde{y}_{1},\tilde{y}_{2},\ldots,\tilde{y}_{M}\right]\in\mathbb{R}^{M}, where y~m=e|ym|2i=1Me|yi|2\tilde{y}_{m}=\frac{e^{|{y_{m}}|^{2}}}{\sum_{i=1}^{M}e^{|{y_{i}}|^{2}}}, mm\in\mathcal{M}. Moreover, let 𝐪=[q1,q2,,qM]M\mathbf{q}=\left[q_{1},q_{2},\ldots,q_{M}\right]\in\mathbb{R}^{M} denote the probability distribution, which is defined by

qm={1,m is the class of the source image,0,otherwise.\displaystyle q_{m}=\begin{cases}1,\quad\text{$m$ is the class of the source image},\\ 0,\quad\text{otherwise}.\end{cases} (7)

As a result, the CE is defined as

CE(𝐚l,ϕl)=m=1Mqmlog(y~m).\displaystyle\mathcal{L}_{\mathrm{CE}}(\mathbf{a}^{l},\bm{\phi}^{l})=-\sum_{m=1}^{M}q_{m}\log(\tilde{y}_{m}). (8)

Note that a smaller value of CE indicates that the energy distribution at the receiving array is closer to the expected probability distribution.

III-B Training of EMNN

In this subsection, we aim to train the transmission coefficients, including the amplitude vectors {𝐚1,𝐚2,,𝐚L}\{\mathbf{a}^{1},\mathbf{a}^{2},\ldots,\mathbf{a}^{L}\} and phase vectors {ϕ1,ϕ2,,ϕL}\{\bm{\phi}^{1},\bm{\phi}^{2},\ldots,\bm{\phi}^{L}\}, of the SIM for minimizing the total loss function of all image samples in the dataset333For discrete phase shifts, one can optimize the SIM-aided EMNN using an alternating optimization approach [23].. The training process mainly includes six steps:

  1. 1.

    Initialize the transmission coefficients of the SIM, where anla^{l}_{n} and ϕnl\phi^{l}_{n}, n𝒩n\in\mathcal{N}, l/{0}l\in\mathcal{L}/\{0\} obey the uniform distribution of 𝒰[0,1)\mathcal{U}\left[0,1\right) and 𝒰[0,2π)\mathcal{U}\left[0,2\pi\right) respectively.

  2. 2.

    Extract BB samples from the image dataset to create a mini-batch and preprocess each image to match the size of the source encoding layer.

  3. 3.

    For each image in the mini-batch, generate a set of received signal samples according to (5).

  4. 4.

    Calculate the loss function CE\mathcal{L}_{\mathrm{CE}} according to (8) for each image in the mini-batch and add them up to obtain the total loss function over the mini-batch, denoted by total\mathcal{L}_{\text{total}}.

  5. 5.

    Use the Adam optimization algorithm [24] to iteratively update the transmission coefficients of the SIM. It is worth mentioning that both parameters 𝐚l\mathbf{a}^{l} and ϕl\bm{\phi}^{l} are updated simultaneously.

  6. 6.

    At each iteration, project the SIM transmission coefficients to the feasible set by applying the MinMaxScaler normalization method [25].

After applying the mini-batch gradient descent method in several iterations, the loss function value converges. The detailed steps for training the SIM-aided EMNN to enable image recognition tasks in the wave domain are given in Algorithm 1, where \nabla in step 7 represents the gradient operator. Additionally, α>0\alpha>0 in step 77 is the learning rate, while 𝐦t{𝐚tl,ϕtl}\mathbf{m}_{t}^{\{\mathbf{a}_{t}^{l},\bm{\phi}_{t}^{l}\}} and 𝐯t{𝐚tl,ϕtl}\mathbf{v}_{t}^{\{\mathbf{a}_{t}^{l},\bm{\phi}_{t}^{l}\}} are respectively the first-order and second-order moment vectors. Additionally, β1\beta_{1} and β2\beta_{2} represent the decay coefficients, while ϵ\epsilon is a small positive constant used for enhancing numerical stability. Appropriately adjusting these hyperparameters can strike tradeoffs between convergence speed and image recognition accuracy.

Algorithm 1 Training of the SIM-based EMNN for enabling image recognition task-oriented SemComs.
0:  BB image samples, channel matrix 𝐇\mathbf{H}, EM propagation coefficient matrices {𝐰0,𝐖1,𝐖2,,𝐖L}\{\mathbf{w}^{0},\mathbf{W}^{1},\mathbf{W}^{2},\ldots,\mathbf{W}^{L}\}.
1:  Initialize the SIM transmission coefficients 𝐚tl\mathbf{a}_{t}^{{l}} and ϕtl\bm{\phi}_{t}^{{l}}, and the iteration counter t=0t=0.
2:  Preprocess all input images from the mini-batch to match the size of the source encoding layer.
3:  Repeat
4:      Calculate 𝐲\mathbf{y} according to (5) for each image.
5:      Calculate the loss function CE(𝐚tl,ϕtl)\mathcal{L}_{\mathrm{CE}}\left(\mathbf{a}_{t}^{l},\bm{\phi}_{t}^{l}\right) according to 00 (8) for each image as well as the total loss total\mathcal{L}_{\text{total}} over 00 the mini-batch.
6:      Update tt+1t\leftarrow t+1.
7:      Update SIM transmission coefficients simultaneously      by leveraging the Adam optimizer:
𝐠t{𝐚tl,ϕtl}\displaystyle\mathbf{g}_{t}^{\{\mathbf{a}_{t}^{l},\bm{\phi}_{t}^{l}\}} ={𝐚t1l,ϕt1l}total(𝐚t1l,ϕt1l),\displaystyle=\nabla_{\{{\mathbf{a}_{t-1}^{{l}},\bm{\phi}_{t-1}^{{l}}}\}}\mathcal{L}_{\text{total}}(\mathbf{a}_{t-1}^{{l}},\bm{\phi}_{t-1}^{{l}}),
𝐦t{𝐚tl,ϕtl}\displaystyle\mathbf{m}_{t}^{\{\mathbf{a}_{t}^{l},\bm{\phi}_{t}^{l}\}} =β1𝐦t1{𝐚t1l,ϕt1l}+(1β1)𝐠t{𝐚tl,ϕtl},\displaystyle=\beta_{1}\mathbf{m}_{t-1}^{\{\mathbf{a}_{t-1}^{l},\bm{\phi}_{t-1}^{l}\}}+(1-\beta_{1})\mathbf{g}_{t}^{\{\mathbf{a}_{t}^{l},\bm{\phi}_{t}^{l}\}},
𝐯t{𝐚tl,ϕtl}\displaystyle\mathbf{v}_{t}^{\{\mathbf{a}_{t}^{l},\bm{\phi}_{t}^{l}\}} =β2𝐯t1{𝐚t1l,ϕt1l}+(1β2)(𝐠t{𝐚tl,ϕtl}𝐠t{𝐚tl,ϕtl}),\displaystyle=\beta_{2}\mathbf{v}_{t-1}^{\{\mathbf{a}_{t-1}^{l},\bm{\phi}_{t-1}^{l}\}}+(1-\beta_{2})\left(\mathbf{g}_{t}^{\{\mathbf{a}_{t}^{l},\bm{\phi}_{t}^{l}\}}\circ\mathbf{g}_{t}^{\{\mathbf{a}_{t}^{l},\bm{\phi}_{t}^{l}\}}\right),
𝐦^t{𝐚tl,ϕtl}\displaystyle\hat{\mathbf{m}}_{t}^{\{\mathbf{a}_{t}^{l},\bm{\phi}_{t}^{l}\}} =𝐦t{𝐚tl,ϕtl}1β1t,𝐯^t{𝐚tl,ϕtl}=𝐯t{𝐚tl,ϕtl}1β2t,\displaystyle=\frac{\mathbf{m}_{t}^{\{\mathbf{a}_{t}^{l},\bm{\phi}_{t}^{l}\}}}{1-\beta_{1}^{t}},\mathbf{\hat{v}}_{t}^{\{\mathbf{a}_{t}^{l},\bm{\phi}_{t}^{l}\}}=\frac{\mathbf{v}_{t}^{\{\mathbf{a}_{t}^{l},\bm{\phi}_{t}^{l}\}}}{1-\beta_{2}^{t}},
{𝐚tl,ϕtl}\displaystyle\{\mathbf{a}_{t}^{l},\bm{\phi}_{t}^{l}\} ={𝐚t1l,ϕt1l}α𝐦^t{𝐚tl,ϕtl}𝐯^t{𝐚tl,ϕtl}+ϵ.\displaystyle=\{\mathbf{a}_{t-1}^{l},\bm{\phi}_{t-1}^{l}\}-\alpha\frac{\hat{\mathbf{m}}_{t}^{\{{\mathbf{a}_{t}^{l}},\bm{\phi}_{t}^{l}\}}}{\sqrt{\hat{\mathbf{v}}_{t}^{\{{\mathbf{a}_{t}^{l}},\bm{\phi}_{t}^{l}\}}+\epsilon}}.
8:      Project 𝐚tl\mathbf{a}_{t}^{{l}} and ϕtl\bm{\phi}_{t}^{{l}} to the feasible set by applying the 00 MinMaxScaler method.
9:  Until The total loss total\mathcal{L}_{\text{total}} achieves convergence or the maximum number of iterations is achieved.
9:  {𝐚1,𝐚2,,𝐚L}\{\mathbf{a}^{1},\mathbf{a}^{2},\ldots,\mathbf{a}^{L}\}, and {ϕ1,ϕ2,,ϕL}\{\bm{\phi}^{1},\bm{\phi}^{2},\ldots,\bm{\phi}^{L}\}.

IV Simulation Results

IV-A Simulation Settings

In this section, we use the MNIST dataset to evaluate the performance of the proposed SIM-based EMNN for implementing image recognition tasks in the wave domain. It consists of approximately 70,000 images of handwritten digits from 0 to 9 with 28×2828\times 28 grayscale pixels. The cardinality ratio of the training set to the testing set is 6:1, and 20% of the training set is allocated for validation purposes. Note that the noise is added to the received signal during the training process to improve the system’s robustness. Moreover, the SemCom system operates at 2828 GHz, corresponding to a wavelength of λ=10.7\lambda=10.7 mm. The thickness of the SIM is set to D=10λD=10\lambda, while the spacing between adjacent meta-atoms is a wavelength, yielding Sa=λ2S_{a}=\lambda^{2}. Additionally, the horizontal distance from the transmitting antenna to the input layer of the SIM is set to dt,s=dsd_{t,s}=d_{s}. The distance between adjacent receiving antennas is set to dr=λ/2d_{r}=\lambda/2. For the wireless link, the Rician factor is set to K=3K=3 dB, and the path loss from the SIM to the receiver is modeled as p=C0ds,rγp=C_{0}d_{s,r}^{-\gamma}, where C0=35C_{0}=-35 dB denotes the path loss at a reference distance of 1 m. ds,rd_{s,r} denotes the distance between the SIM and the receiving array, and γ=2.8\gamma=2.8 is the path loss exponent in our simulations [26]. Additionally, the transmit power and the noise power are set to pt=40p_{t}=40 dBm and σv2=104\sigma^{2}_{v}=-104 dBm, respectively.

In terms of the training process of SIM-based EMNN, we consider 100 epochs, and the mini-batch size BB is set to 6464. Moreover, the learning rate is set to α=0.001\alpha=0.001, which will be gradually decreased by multiplying α\alpha with a decay factor ιf=0.8\iota_{f}=0.8, if the loss function value does not vary in five consecutive epochs. The decay coefficients of the first-order and the second-order moment estimates are β1=0.9\beta_{1}=0.9 and β2=0.999\beta_{2}=0.999, respectively. The first-order moment vector 𝐦t\mathbf{m}_{t} and the second-order moment vector 𝐯t\mathbf{v}_{t} are initialized to 𝟎\mathbf{0}.

Refer to caption
(a) Recognition accuracy under different numbers of metasurface layers.
Refer to caption
(b) Recognition accuracy under different numbers of meta-atoms on each layer.
Refer to caption
(c) Recognition accuracy under different propagation distances.
Refer to caption
(d) Recognition accuracy under different numbers of image classes.
Figure 2: Recognition accuracy using the SIM-based EMNN.

IV-B Performance Evaluation

In Fig. 2(a), we evaluate the effect of the number LL of layers on the recognition accuracy, where we consider N=441N=441, ds,r=10d_{s,r}=10 m. For each input image, we retain only the 21×2121\times 21 pixels in the center. For simplicity, M=8M=8 antennas are deployed at the receiver for recognizing digits 070\sim 7. As observed in Fig. 2(a), the recognition accuracy using the SIM-based EMNN increases with the number of metasurface layers, thanks to the enhanced inference capability of the multi-layer architecture for achieving more accurate beam steering.

Fig. 2(b) shows the recognition accuracy under different numbers NN of meta-atoms on each layer, where we set L=7L=7 and maintain the other parameters the same as Fig. 2(a). For each input image, we preprocess it to match the size of the source encoding layer by using the bilinear interpolation method [22]. Note that the recognition accuracy improves as NN increases, since a larger number of learnable neurons (meta-atoms) would enhance the representational capability of the SIM. Additionally, increasing the number of meta-atoms also increases the aperture of the output metasurface layer, thus having a higher Rayleigh resolution to distinguish the signals at different receiving antennas. Specifically, the seven-layer SIM with N=25N=25 meta-atoms on each layer achieves a low recognition accuracy of only 32%32\% on the testing set. As NN increases to 121121 and 441441, the recognition accuracy on the testing set becomes 77%77\% and 84%84\%, respectively.

According to the simulation results in Fig. 2(a)-(b), increasing the value of LL and NN enhances recognition accuracy. However, the improvement of recognition accuracy is relatively small when LL exceeds 77, as shown in Fig. 2(a). Similarly, Fig. 2(b) demonstrates the performance plateaus when NN exceeds 441. These diminishing returns suggest choosing proper SIM parameters for achieving the desired performance with minimum hardware cost.

Fig. 2(c) illustrates the recognition accuracy versus the training epoch as the distance ds,rd_{s,r} between the SIM and receiver increases, with N=441N=441 and other parameters unchanged. It is observed from Fig. 2(c) that a shorter propagation distance would improve the recognition accuracy. This is due to a smaller value of ds,rd_{s,r} would cause stronger channel gain compared to that with a longer propagation distance. Hence, the noise effects would become increasingly negligible. Secondly, as the receiving array moves closer to the transmitter, the channels from the SIM to different antennas would become more distinguishable. As a result, decreasing the propagation distance from ds,r=50d_{s,r}=50 m to ds,r=10d_{s,r}=10 m enhances the recognition accuracy from 72%72\% to 84%84\%.

Fig. 2(d) illustrates the recognition accuracy under different numbers of image classes where we set ds,r=10d_{s,r}=10 m. Specifically, we examine nine scenarios by gradually increasing both the number of image classes as well as the number of receiving antennas. Note that recognizing more handwritten digits requires the SIM to accurately focus multiple beams on an increased number of receiving antennas. As observed from Fig. 2(d), the recognition accuracy becomes worse as the number of image classes increases. Additionally, a faster convergence trend is observed as MM decreases.

Refer to caption
Figure 3: Input image and the corresponding energy distribution at the receiving array.
Refer to caption
Figure 4: The confusion matrix for recognizing ten digits.

Finally, to better illustrate the effectiveness of the proposed SIM-based EMNN, Fig. 3 depicts the input image and the corresponding energy distribution at the receiving array, while the confusion matrix of utilizing the SIM-based EMNN to recognize ten handwritten digits is shown in Fig. 4. It is demonstrated that the EMNN is capable of focusing the information-bearing signals passing through the SIM onto the corresponding antenna.

V Conclusion

In this letter, we investigated a SIM-aided image recognition task-oriented SemCom. We trained a SIM in front of the transmitting antenna to steer the signals passing from the image source encoding layer towards the corresponding antenna. As a result, the receiver identified the image class by probing the magnitude of the received signal. Extensive simulation results verify the effectiveness of the SIM-based EMNN in achieving over 90% recognition accuracy for image recognition task-oriented SemComs. Combined with traditional modulated signals, SIM is expected to further achieve multimodal semantic information transmission.

References

  • [1] C.-X. Wang, X. You, X. Gao, X. Zhu, Z. Li, C. Zhang, H. Wang, Y. Huang, Y. Chen, H. Haas et al., “On the road to 6G: Visions, requirements, key technologies and testbeds,” IEEE Commun. Surveys Tuts., vol. 25, no. 2, pp. 905–974, Feb. 2023.
  • [2] W. Yang, H. Du, Z. Q. Liew, W. Y. B. Lim, Z. Xiong, D. Niyato, X. Chi, X. S. Shen, and C. Miao, “Semantic communications for future internet: Fundamentals, applications, and challenges,” IEEE Commun. Surveys Tuts., vol. 25, no. 1, pp. 213–250, Nov. 2022.
  • [3] Z. Yang, M. Chen, G. Li, Y. Yang, and Z. Zhang, “Secure semantic communications: Fundamentals and challenges,” IEEE Netw., pp. 1–1, 2024, Early Access.
  • [4] H. Xie, Z. Qin, G. Y. Li, and B.-H. Juang, “Deep learning enabled semantic communication systems,” IEEE Trans. Signal Process., vol. 69, pp. 2663–2675, Apr. 2021.
  • [5] H. Xie, Z. Qin, and G. Y. Li, “Semantic communication with memory,” IEEE J. Sel. Areas Commun., vol. 41, no. 8, pp. 2658–2669, Jun. 2023.
  • [6] Z. Qin, J. Ying, D. Yang, H. Wang, and X. Tao, “Computing networks enabled semantic communications,” IEEE Netw., vol. 38, no. 2, pp. 122–131, Jan. 2024.
  • [7] J. An, C. Yuen, C. Xu, H. Li, D. W. K. Ng, M. D. Renzo et al., “Stacked intelligent metasurface-aided MIMO transceiver design,” IEEE Wireless Commun., vol. 31, no. 4, pp. 123–131, Aug. 2024.
  • [8] Z. Yu et al., “Environment-aware codebook design for RIS-assisted MU-MISO communications: Implementation and performance analysis,” IEEE Trans. Commun., pp. 1–14, 2024, Early Access.
  • [9] X. Yao, K. Klyukin, W. Lu, M. Onen, S. Ryu, D. Kim, N. Emond, I. Waluyo, A. Hunt, J. A. Del Alamo et al., “Protonic solid-state electrochemical synapse for physical neural networks,” Nat. Commun., vol. 11, no. 1, p. 3134, Jun. 2020.
  • [10] J. An, C. Xu, D. W. K. Ng, G. C. Alexandropoulos, C. Huang, C. Yuen, and L. Hanzo, “Stacked intelligent metasurfaces for efficient holographic MIMO communications in 6G,” IEEE J. Sel. Areas Commun., vol. 41, no. 8, pp. 2380–2396, Jun. 2023.
  • [11] X. Yao, J. An, L. Gan, M. Di Renzo, and C. Yuen, “Channel estimation for stacked intelligent metasurface-assisted wireless networks,” IEEE Wireless Commun. Lett., May. 2024.
  • [12] A. Papazafeiropoulos, P. Kourtessis, S. Chatzinotas et al., “Achievable rate optimization for large stacked intelligent metasurfaces based on statistical CSI,” IEEE Wireless Commun. Lett., pp. 1–1, 2024.
  • [13] H. Liu, J. An, D. W. K. Ng, G. C. Alexandropoulos, and L. Gan, “DRL-based orchestration of multi-user MISO systems with stacked intelligent metasurfaces,” arXiv:2402.09006, Feb. 2024.
  • [14] A. Papazafeiropoulos et al., “Achievable rate optimization for stacked intelligent metasurface-assisted holographic MIMO communications,” IEEE Trans. Wireless Commun., vol. 23, no. 10, pp. 13 173–13 186, Oct. 2024.
  • [15] J. An, C. Yuen, L. Dai, M. Di Renzo, M. Debbah, and L. Hanzo, “Near-field communications: Research advances, potential, and challenges,” IEEE Wireless Commun., vol. 31, no. 3, pp. 100–107, Jun. 2024.
  • [16] E. Shi et al., “Joint AP-UE association and precoding for SIM-aided cell-free massive MIMO systems,” arXiv preprint arXiv:2409.12870, 2024.
  • [17] Z. Li et al., “Stacked intelligent metasurfaces for fully-analog wideband beamforming design,” in 2024 IEEE VTS Asia Pacific Wireless Communications Symposium (APWCS), 2024, pp. 1–5.
  • [18] J. An, C. Yuen, Y. L. Guan, M. D. Renzo et al., “Two-dimensional direction-of-arrival estimation using stacked intelligent metasurfaces,” IEEE J. Sel. Areas Commun., vol. 42, no. 10, pp. 2786–2802, Oct. 2024.
  • [19] H. Niu et al., “Stacked intelligent metasurfaces for integrated sensing and communications,” IEEE Wireless Commun. Lett., vol. 13, no. 10, pp. 2807–2811, Oct. 2024.
  • [20] C. Liu, Q. Ma, Z. J. Luo, Q. R. Hong, Q. Xiao, H. C. Zhang, L. Miao, W. M. Yu, Q. Cheng, L. Li et al., “A programmable diffractive deep neural network based on a digital-coding metasurface array,” Nat. Electron., vol. 5, no. 2, pp. 113–122, Feb. 2022.
  • [21] X. Lin, Y. Rivenson, N. T. Yardimci, M. Veli, Y. Luo, M. Jarrahi, and A. Ozcan, “All-optical machine learning using diffractive deep neural networks,” Science, vol. 361, no. 6406, pp. 1004–1008, Jul. 2018.
  • [22] B. Jähne, Digital Image Processing.   Springer Science & Business Media, 2005.
  • [23] N. U. Hassan, J. An, M. Di Renzo, M. Debbah, and C. Yuen, “Efficient beamforming and radiation pattern control using stacked intelligent metasurfaces,” IEEE Open J. Commun. Soc., Jan. 2024.
  • [24] D. P. Kingma and J. Ba, “Adam: A method for stochastic optimization,” CoRR, vol. abs/1412.6980, Dec. 2014. [Online]. Available: https://api.semanticscholar.org/CorpusID:6628106
  • [25] D. Singh and B. Singh, “Investigating the impact of data normalization on classification performance,” Appl. Soft Comput., vol. 97, p. 105524, Dec. 2020.
  • [26] J. An et al., “Low-complexity channel estimation and passive beamforming for RIS-assisted MIMO systems relying on discrete phase shifts,” IEEE Trans Commun., vol. 70, no. 2, pp. 1245–1260, Nov. 2021.