A denoising method based on semantic communication system

By introducing signal-to-noise ratio adaptation and adaptive denoising modules into the semantic communication system, and using the multi-head self-attention mechanism for denoising processing, the problem of failing to fully utilize the denoising capabilities of neural networks in the existing technology is solved, and the text quality is improved. Transmission accuracy and system performance.

CN114548073BActive Publication Date: 2024-09-06ZHEJIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210063302.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-20
Publication Date
2024-09-06
Estimated Expiration
2042-01-20

AI Technical Summary

Technical Problem

Existing semantic communication systems fail to give full play to the denoising capabilities of neural networks when dealing with noise. They mainly rely on the computing power of neural networks for brute force cracking and cannot effectively change the input mode of signals to adapt to channel transmission.

Method used

Using the denoising method based on the semantic communication system, by creating a dictionary, word embedding, semantic encoding, signal-to-noise ratio adaptive denoising module and adaptive denoising module, the multi-head self-attention mechanism is used to self-adjust to realize the semantic encoding vector Denoise.

Benefits of technology

The accuracy of text transmission is improved, pre-denoising and denoising operations can be performed according to the signal-to-noise ratio of the transmission channel, and the accuracy of text transmission under low signal-to-noise ratio is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114548073B
    Figure CN114548073B
Patent Text Reader

Abstract

The present invention proposes a denoising method based on a semantic communication system, and proposes a signal-to-noise ratio adaptive denoising network that pre-denoises semantic information before transmission and denoises semantic information after transmission according to the signal-to-noise ratio of the transmission channel. Under the premise that the receiving parties know the channel conditions, the channel information can be used to implement denoising operations, thereby improving the accuracy of text transmission; an adaptive multi-head self-attention denoising module is proposed, which can realize self-adjustment according to the semantic information of the transmitted text through the multi-head self-attention module after the semantic information passes through the wireless channel, and realize self-denoising operations according to the semantic information, thereby improving the accuracy of text transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of semantic communication, and in particular to a denoising method based on a semantic communication system. Background Art

[0002] According to the information theory proposed by Shannon and Weaver, communication can be divided into three levels. The first level is the transmission problem, which mainly studies how to accurately transmit communication symbols. The second level is the semantic problem, which mainly studies how to accurately convey the semantics in communication symbols. The third level is the utility problem, which mainly solves the problem of how the received semantics can effectively affect behavior in the expected way. Due to the limitations of the times, in the more than 70 years since Shannon established information theory, many scholars have made a lot of attempts to approach the Shannon limit, but these works are mainly focused on the first level of communication, that is, how to accurately transmit communication symbols. In recent years, the development of related technologies such as artificial intelligence and natural language processing has made it possible to explore the second level of semantic communication, and semantic communication will gradually become a major research trend in the field of communication.

[0003] The existing semantic communication systems mainly rely on the powerful computing power of neural networks to denoise. Although the denoising effect is better than traditional methods, it does not fully utilize the computing power of neural networks. Adding some simple denoising modules to the existing semantic communication systems can give full play to the performance advantages of neural networks.

[0004] In the process of communication, noise problems are inevitable. However, the existing semantic communication system does not propose a corresponding denoising module to change the input mode of the signal to better adapt to the transmission of the channel. The current approach is generally to use the powerful computing power of neural networks to perform brute force cracking, which cannot give full play to the denoising ability of neural networks. Summary of the invention

[0005] The purpose of the present invention is to provide a denoising method based on a semantic communication system to overcome the deficiencies in the prior art.

[0006] To achieve the above object, the present invention provides the following technical solutions:

[0007] The present application discloses a denoising method based on a semantic communication system, which specifically comprises the following steps:

[0008] S1. Based on the common knowledge of the two receiving parties, all the words that may be used in the transmission process between the two parties are numbered to create a dictionary;

[0009] S2, embedding the input sentence using the input sentence embedding module and adding the position vector; embedding the target sentence using the target sentence word embedding module and adding the position vector; obtaining the word vector with the position vector corresponding to the input sentence and the word vector with the position vector corresponding to the target sentence;

[0010] S3, semantic encoding: The word vector with the position vector corresponding to the input sentence passes through the semantic encoding layer, and the semantic encoding is completed through the Encoder layer of Transformrer to obtain the semantic encoding vector;

[0011] S4, noise preprocessing: according to the information of the transmission channel of the semantic coding vector, the semantic coding vector and the information of the transmission channel after the semantic coding are input into the signal-to-noise ratio adaptive denoising module, and the signal-to-noise ratio adaptive denoising module adjusts the representation form of the semantic coding vector according to the semantic information of the semantic coding vector and the signal-to-noise ratio of the transmission channel;

[0012] S5, passing the semantic coding vector that has completed semantic coding and noise preprocessing through the channel;

[0013] S6, noise processing: The decoding end receives the semantic coding vector through the wireless channel and sends it to the signal-to-noise ratio adaptive denoising module. The signal-to-noise ratio adaptive denoising module eliminates the noise added to the semantic coding vector through the wireless channel according to the semantic information of the received semantic coding vector and the signal-to-noise ratio of the channel.

[0014] S7, adaptive denoising: inputting the semantic coding vector after the noise processing in step S6 into an adaptive denoising module, wherein the adaptive denoising module is composed of a multi-head self-attention mechanism, and the multi-head self-attention mechanism is used to self-observe and self-adjust the semantic coding vector according to the semantic information to achieve denoising;

[0015] S8, semantic decoding: The semantic coding vector that has completed the adaptive denoising in S7 is subjected to semantic decoding by the decoding layer of the general Transformer, and the decoded sentence text is processed by probabilistic logistic regression and then output.

[0016] Preferably, the specific steps in step S1 are as follows:

[0017] S11, read in the entire text file for transmission;

[0018] S12, performing word segmentation processing on the entire text, counting the number of times each word is used in the text, numbering each word, and removing words with too low a number of times;

[0019] S13, adding a start or end character to the entire dictionary;

[0020] S14. Output dictionary.

[0021] Preferably, the specific steps in step S2 are as follows:

[0022] S21. Create an embedding layer, send the sentence to be transmitted into the embedding layer, and convert it into a word vector of corresponding dimension;

[0023] S22, calculate and add the position vector;

[0024] S23. Add the word vector to the position vector to obtain a word vector with position information.

[0025] Preferably, the specific steps in step S3 are as follows:

[0026] S31, define three matrices, and perform three linear changes on the word vector with the position vector corresponding to the input sentence according to the three matrices to obtain a query vector, a key vector, and a value vector;

[0027] S32, perform self-attention calculation on the query vector, key vector and value vector to obtain an attention vector;

[0028] S33, performing a residual connection, adding the attention vector to the word vector with the position vector corresponding to the input sentence, and performing a layer normalization operation on the obtained result to obtain a residual vector;

[0029] S34, feed-forward transmission operation is performed on the obtained residual vector, and a vector semantic coding vector is obtained by two-layer linear mapping and activation with activation function ReLU.

[0030] Preferably, the operation process of the signal-to-noise ratio adaptive denoising module specifically includes the following sub-steps:

[0031] S41. Establish a fully connected layer with an output dimension of 1, take the text as input, integrate the semantic information in the text, and obtain a vector of L*1, where L represents the length of the text;

[0032] S42, taking the signal-to-noise ratio of the wireless channel as input, and concatenating it with the L*1 vector obtained in step S41 to obtain a vector with a dimension of (L+1)*1;

[0033] S43, passing the vector of dimension (L+1)*1 obtained in step S42 through two fully connected layers with output dimension L, respectively, to obtain two coefficients of dimension L*1;

[0034] S44, performing vector multiplication and vector addition operations on the two coefficients of dimension L*1 obtained in S43 and the input text vector as the output of the signal-to-noise ratio adaptive denoising module.

[0035] Preferably, the operation process of the adaptive denoising module specifically includes the following sub-steps:

[0036] S51. Build a residual network consisting of multiple attention layers.

[0037] S52, the input text is divided into two transmission paths, one of which does not make any changes, and the other passes through a multi-head self-attention layer and then performs a feed-forward transmission;

[0038] S53, adding the two vectors obtained in step S52 as the output of the adaptive denoising module.

[0039] Preferably, the specific operation of step S8 is as follows:

[0040] S81, input the word vector with position vector corresponding to the target sentence obtained in step S2 into the multi-head self-attention layer for decoding;

[0041] S82, input the encoded information received through the wireless channel and the output information of the multi-head self-attention layer in the previous step into the multi-head attention layer for decoding;

[0042] S83, after the target sentence passes through the multi-head self-attention layer and the multi-head attention layer, it passes through the feed-forward transmission layer to obtain a semantic decoding vector;

[0043] S84. Perform probabilistic logistic regression through the Softmax function and output the sentence.

[0044] Beneficial effects of the present invention:

[0045] 1. A signal-to-noise ratio adaptive denoising network is proposed, which performs pre-denoising on semantic information before transmission and denoises semantic information after transmission according to the signal-to-noise ratio of the transmission channel. Under the premise that the receiving parties know the channel conditions, the channel information can be used to implement denoising operations, thereby improving the accuracy of text transmission;

[0046] 2. An adaptive multi-head self-attention denoising module is proposed. After the semantic information passes through the wireless channel, the multi-head self-attention module can realize self-adjustment according to the semantic information of the transmitted text, and realize self-denoising operation according to the semantic information, thereby improving the accuracy of text transmission;

[0047] 3. AI technology is used to transmit text, taking into account the semantic information of the text. Compared with traditional encoding methods, encoding is performed based on the semantics of the text. Under low signal-to-noise ratio conditions, the accuracy of text transmission has been significantly improved.

[0048] The features and advantages of the present invention will be described in detail through embodiments in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 It is a schematic diagram of a framework of a denoising method based on a semantic communication system of the present invention;

[0050] Figure 2 It is a flow chart of a denoising method based on a semantic communication system of the present invention;

[0051] Figure 3 It is a structural schematic diagram of the signal-to-noise ratio adaptive denoising module of the present invention;

[0052] Figure 4 It is a structural schematic diagram of the adaptive denoising module of the present invention;

[0053] Figure 5 It is a denoising effect diagram of the signal-to-noise ratio adaptive denoising module and the adaptive denoising module of the present invention. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below through the accompanying drawings and embodiments. However, it should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the scope of the present invention. In addition, in the following description, the description of known structures and technologies is omitted to avoid unnecessary confusion of the concept of the present invention.

[0055] See also Figure 1 and Figure 2 The specific steps of this solution provided by the embodiment of the present invention are:

[0056] Step 1: Based on the common knowledge of the receiving parties, all the words that may be used in the transmission process between the two parties are numbered to create a dictionary;

[0057] Specifically, step 1, read in the entire text file for transmission;

[0058] Step 2: Segment the entire text, count the number of times each word is used in the text, number each word, and remove words that are used too few times;

[0059] Step 3: Add characters with special meanings such as start or end to the entire dictionary;

[0060] Step 4: Output the dictionary.

[0061] Step 2: Use the input sentence embedding module to embed the input sentence and add the position vector; use the target sentence word embedding module to embed the target sentence and add the position vector; obtain the word vector with the position vector corresponding to the input sentence and the word vector with the position vector corresponding to the target sentence;

[0062] Specifically, in step 1, create an embedding layer, send the sentence to be transmitted into the embedding layer, and convert it into a word vector of corresponding dimension;

[0063] Step 2: Add the position vector. The formula is as follows:

[0064]

[0065]

[0066] Among them, pos refers to the position of a word in a sentence, and its value range is [0, L), where L is the length of the sentence, i refers to the dimension number of the subvector, and its value range is [0, embedding_dimension / 2), where embedding_dimension is the embedding dimension, and d model Refers to the value of the embedding dimension embedding_dimension of the Embedding layer;

[0067] Step 3: After obtaining the word vector of each word and its corresponding position vector, add the two together to get the word vector X with position information. Embedding ;

[0068] Step 3: Semantic encoding: After the transmitted sentence passes through the semantic encoding layer, it passes through the Encoder layer of Transformrer to complete the semantic encoding according to the semantic information of the sentence;

[0069] Specifically, step 1, define three matrices W Q ,W K ,W V ,According to these three matrices, the word vector X obtained in the previous step Embedding Perform three linear changes to obtain the query vector Q, key vector K, and value vector V;

[0070] Step 2: Perform a self-attention calculation on the three vectors obtained above;

[0071]

[0072] Get vector X attention , where d k Represents the dimension of the vector;

[0073] Step 3: Perform residual connection and convert the X attention and X obtained in the second step Embedding Add and normalize the result to get the residual vector X'attention , where X' attention =layernorm(X+X attention );

[0074] Step 4: Get the residual vector X' attention Perform feedforward transmission operation, obtain vector X through two layers of linear mapping and activation with activation function ReLU hidden

[0075] X hidden =Linear(ReLU(Linear(X attention )));

[0076] Step 4: Noise preprocessing: According to the information of the transmission channel, the sentence after semantic encoding and the channel information are input into the pre-denoising module with signal-to-noise ratio adaptation. The pre-denoising module with signal-to-noise ratio adaptation will adjust the representation form of the sentence according to the semantic information of the sentence to be transmitted and the signal-to-noise ratio of the transmission channel to make it better adapt to the transmission of the channel.

[0077] Specifically, the semantic encoding vector X obtained in the previous step hidden , sent to the noise preprocessing module, the noise preprocessing module will be based on the semantic coding vector X hidden The semantic information of the signal-to-noise ratio of the transmission channel is considered together to adjust the semantic coding vector X hidden The representation form makes it more suitable for transmission in the changed channel, thereby realizing noise preprocessing.

[0078] Step 5: Pass the sentence that has completed semantic coding and noise preprocessing through the channel;

[0079] Step 6: Noise processing: The decoding end receives the sentence through the wireless channel. The signal-to-noise ratio adaptive denoising module of the decoding end performs corresponding denoising operations on the received sentence according to the semantic information of the received sentence after noise interference and the signal-to-noise ratio of the channel, so as to reduce the noise in the sentence that affects the representation of semantic information.

[0080] Specifically, the semantic coding vector X' is received through the wireless channel hidden , sent to the noise processing module, the noise processing module will be based on the semantic coding vector X' hidden The semantic information of the transmission channel and the signal-to-noise ratio of the transmission channel are jointly considered to eliminate the semantic coding vector X' hidden The noise added by the wireless channel can be better decoded by the decoder, thus realizing noise processing;

[0081] Step 7: Adaptive denoising: After the denoising operation of the sentence is completed according to the signal-to-noise ratio of the channel, it is input into an adaptive denoising module built with a multi-head self-attention layer. The multi-head self-attention mechanism is used to perform self-observation and self-adjustment on the denoised sentence according to the semantic information, thereby achieving denoising.

[0082] Specifically, the semantic vector obtained in the previous step is sent to the adaptive denoising module. The adaptive denoising module is composed of a multi-head attention mechanism, which can self-observe and self-adjust according to the semantic information of the transmitted text, thereby realizing self-denoising operation;

[0083] Step 8: Semantic decoding: The sentence texts that have completed the two denoising methods are processed by the decoding layer of the general Transformer, and the decoded sentence texts are processed by probabilistic logistic regression and then output.

[0084] Specifically, in step 1, the word embedding vector of the target sentence obtained in step 2 is input into the multi-head self-attention layer for decoding;

[0085] Step 2: Input the encoded information received through the wireless channel and the output information of the multi-head self-attention layer in the previous step into the multi-head attention layer for decoding;

[0086] Step 3: After the target sentence passes through the multi-head self-attention layer and the multi-head attention layer, it passes through the feed-forward transmission layer to obtain the semantic decoding vector;

[0087] Step 4: Perform probabilistic logistic regression through the Softmax function and output the sentence

[0088] Among them, the signal-to-noise ratio adaptation denoising module has the following structure: Figure 3 , the specific process is:

[0089] Step 1: Establish a fully connected layer with an output dimension of 1, take the text to be transmitted as input, integrate the semantic information in the text, and obtain an L*1 vector, where L represents the length of the text and N represents the use of N vectors to represent a word.

[0090] Step 2: Take the signal-to-noise ratio of the wireless channel as input and concatenate it with the L*1 vector obtained in the previous step to obtain a vector with a dimension of (L+1)*1;

[0091] Step 3: Pass the (L+1)*1 dimension vector obtained in the previous step through two fully connected layers with an output dimension of L to obtain two coefficients of dimension L*1, H and N respectively;

[0092] Step 4: Perform a vector multiplication and vector addition operation on the two coefficients H and N obtained in the previous step and the input text vector so that it can better adapt to channel transmission or eliminate the noise added to the vector in the channel.

[0093] Adaptive denoising module, its structure is as follows Figure 4 , the specific process is:

[0094] The first step is to build a residual network consisting of multiple attention layers;

[0095] The second step is to divide the input text into two transmission paths, one of which remains unchanged, and the other passes through a multi-head self-attention layer and then performs a feed-forward transmission;

[0096] The third step is to add the two vectors obtained in the previous step as the output of the adaptive denoising module.

[0097] See also Figure 5 , is a diagram showing the denoising effects of the signal-to-noise ratio adaptive denoising module and the adaptive denoising module of the present invention.

[0098] Figure 5 In the figure, Base represents the original semantic communication system, the Self curve represents the performance curve of the semantic communication system after adding the adaptive denoising module, the SNR curve represents the performance curve of the semantic communication system after adding the signal-to-noise ratio adaptive denoising module, and SNR+Self represents the performance curve of the semantic communication system after adding both denoising modules.

[0099] As can be seen from the figure, after adding the denoising module, the overall performance of the semantic communication system has improved compared to the original Base system. The denoising performance of the adaptive denoising module is slightly inferior to that of the signal-to-noise ratio adaptive denoising module, but compared to the signal-to-noise ratio adaptive denoising module, which requires accurate knowledge of the signal-to-noise information of the transmission channel, the adaptive denoising module is more convenient to use and has fewer restrictions. After the combined use of these two denoising modules, the system's performance has improved the most compared to the original system.

[0100] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modification, equivalent substitution or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A denoising method based on a semantic communication system, characterized in that: The specific steps include: S1. Based on the common knowledge of the two receiving parties, all the words that may be used in the transmission process between the two parties are numbered to create a dictionary; S2, embed the input sentence using the input sentence embedding module and add the position vector; Use the target sentence word embedding module to embed the target sentence and add the position vector; Get the word vector with position vector corresponding to the input sentence and the word vector with position vector corresponding to the target sentence; S3, semantic encoding: The word vector with the position vector corresponding to the input sentence passes through the semantic encoding layer, and the semantic encoding is completed through the Encoder layer of Transformrer to obtain the semantic encoding vector; S4, noise preprocessing: according to the information of the transmission channel of the semantic coding vector, the semantic coding vector and the information of the transmission channel after the semantic coding are input into the signal-to-noise ratio adaptive denoising module, and the signal-to-noise ratio adaptive denoising module adjusts the representation form of the semantic coding vector according to the semantic information of the semantic coding vector and the signal-to-noise ratio of the transmission channel; S5, passing the semantic coding vector that has completed semantic coding and noise preprocessing through the channel; S6, noise processing: The decoding end receives the semantic coding vector through the wireless channel and sends it to the signal-to-noise ratio adaptive denoising module. The signal-to-noise ratio adaptive denoising module eliminates the noise added to the semantic coding vector through the wireless channel according to the semantic information of the received semantic coding vector and the signal-to-noise ratio of the channel. S7, adaptive denoising: inputting the semantic coding vector after the noise processing in step S6 into an adaptive denoising module, wherein the adaptive denoising module is composed of a multi-head self-attention mechanism, and the multi-head self-attention mechanism is used to self-observe and self-adjust the semantic coding vector according to the semantic information to achieve denoising; S8, semantic decoding: The semantic coding vector that has completed the adaptive denoising in S7 is subjected to semantic decoding by the decoding layer of the general Transformer, and the decoded sentence text is processed by probabilistic logistic regression and then output.

2. A denoising method based on a semantic communication system as claimed in claim 1, characterized in that: The specific steps in step S1 are as follows: S11, read in the entire text file for transmission; S12, performing word segmentation processing on the entire text, counting the number of times each word in the text is used, numbering each word, and removing words with too low a number of times; S13, adding a start or end character to the entire dictionary; S14. Output dictionary.

3. A denoising method based on a semantic communication system as claimed in claim 1, characterized in that: The specific steps in step S2 are as follows: S21. Create an embedding layer, send the sentence to be transmitted into the embedding layer, and convert it into a word vector of corresponding dimension; S22, calculate and add the position vector; S23. Add the word vector to the position vector to obtain a word vector with position information.

4. A denoising method based on a semantic communication system as claimed in claim 1, characterized in that: The specific steps in step S3 are as follows: S31, define three matrices, and perform three linear changes on the word vector with the position vector corresponding to the input sentence according to the three matrices to obtain a query vector, a key vector, and a value vector; S32, perform self-attention calculation on the query vector, key vector and value vector to obtain an attention vector; S33, performing a residual connection, adding the attention vector to the word vector with the position vector corresponding to the input sentence, and performing a layer normalization operation on the obtained result to obtain a residual vector; S34, feed-forward transmission operation is performed on the obtained residual vector, and a semantic coding vector is obtained by activating it through two layers of linear mapping and using the activation function ReLU.

5. A denoising method based on a semantic communication system as claimed in claim 1, characterized in that: The operation process of the signal-to-noise ratio adaptive denoising module specifically includes the following sub-steps: S41. Establish a fully connected layer with an output dimension of 1, take the text as input, integrate the semantic information in the text, and obtain a vector of L*1, where L represents the length of the text; S42, taking the signal-to-noise ratio of the wireless channel as input, and concatenating it with the L*1 vector obtained in step S41 to obtain a vector with a dimension of (L+1)*1; S43, passing the vector of dimension (L+1)*1 obtained in step S42 through two fully connected layers with output dimension L, respectively, to obtain two coefficients of dimension L*1; S44, performing vector multiplication and vector addition operations on the two coefficients of dimension L*1 obtained in S43 and the input text vector as the output of the signal-to-noise ratio adaptive denoising module.

6. A denoising method based on a semantic communication system as claimed in claim 1, characterized in that: The operation process of the adaptive denoising module specifically includes the following sub-steps: S51. Build a residual network consisting of multiple attention layers. S52, the input text is divided into two transmission paths, one of which does not make any changes, and the other passes through a multi-head self-attention layer and then performs a feed-forward transmission; S53, adding the two vectors obtained in step S52 as the output of the adaptive denoising module.

7. A denoising method based on a semantic communication system as claimed in claim 1, characterized in that: The specific operation of step S8 is as follows: S81, input the word vector with position vector corresponding to the target sentence obtained in step S2 into the multi-head self-attention layer for decoding; S82, input the encoded information received through the wireless channel and the output information of the multi-head self-attention layer in the previous step into the multi-head attention layer for decoding; S83, after the target sentence passes through the multi-head self-attention layer and the multi-head attention layer, it passes through the feed-forward transmission layer to obtain a semantic decoding vector; S84. Perform probabilistic logistic regression through the Softmax function and output the sentence.