Image transmission semantic communication optimization method based on U-Net
By performing image semantic segmentation and using a sparse matrix compression algorithm in the U-Net network, the problem of robustness and communication overhead of the deep learning semantic communication system in a low signal-to-noise ratio environment is solved, and efficient image transmission semantic communication is achieved. .
Patent Information
- Application Number
- CN202410568182.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2024-09-24
AI Technical Summary
Semantic communication systems based on deep learning technology require a large amount of data to complete model training, resulting in high communication overhead and poor robustness in environments with low signal-to-noise ratios.
Using the image transmission semantic communication method based on U-Net, image semantic segmentation is performed through the U-Net network, and two feature matrices of the foreground image and the background image are obtained, and semantic coding and sparse matrix compression algorithms are used for data compression and recovery, combined with coding Decoder-decoder structure and feature fusion reduce communication overhead and improve robustness.
It achieves efficient image transmission in a low signal-to-noise ratio environment, reduces communication overhead and improves the robustness of the system, and is suitable for the field of image semantic communication.
Smart Images

Figure CN118691807A
Abstract
Description
Technical Field
[0001] The present invention designs an image transmission semantic communication system which performs image semantic segmentation based on a U-Net network and transmits images of regions of interest and regions of non-interest respectively through two different communication models. The system can be applied to the fields of image semantic communication and computer vision. Background Art
[0002] With the continuous integration and development of deep learning and Internet of Things technology, various novel intelligent Internet of Things technologies have also flourished, resulting in an explosive growth in the amount of information such as pictures, text, audio, and video. These current situations have brought new thinking to the improvement of traditional communication technology.
[0003] Shannon once gave a basic model of communication and the famous Shannon formula, dividing communication into three levels, namely grammatical communication, semantic communication, and pragmatic communication. For a long time, classical information theory has been limited to the grammatical communication level, focusing only on the accuracy of bit stream data transmission, while ignoring the correct understanding and transmission of the meaning of the transmitted symbols. Today, with the rise of artificial intelligence, natural language processing and computer vision technologies are constantly developing, semantic information can be extracted from information, and data compression can be performed while retaining the main semantics, thereby achieving semantic communication. Compared with traditional communication, semantic communication has the advantages of low bandwidth, low latency, and high throughput, and shows higher accuracy in environments with greater noise interference.
[0004] Deep learning technology can extract image features accurately and efficiently, and the entire process does not require human intervention. Therefore, it has been widely integrated and applied in the fields of computer vision and semantic communication. At present, there are related semantic communication systems based on deep learning technology, such as DeepSC-S, a speech signal semantic communication system based on attention mechanism, and ViT, an image recognition algorithm based on Transformer. These networks improve the accuracy of semantic communication, but require a large amount of data to complete model training, and the communication overhead is large, especially in environments with low signal-to-noise ratio, the robustness is not good. Summary of the invention
[0005] In order to solve the technical problems that the current semantic communication system based on deep learning technology requires a large amount of data to complete model training, resulting in high communication overhead and poor robustness in an environment with a low signal-to-noise ratio, the present invention provides an image transmission semantic communication optimization method based on U-Net.
[0006] The present invention is implemented by adopting the following technical scheme: a semantic communication optimization method for image transmission based on U-Net, comprising the following steps: semantically segmenting an image to be transmitted through a U-Net network structure to obtain two feature matrices of a foreground image and a background image, wherein one feature matrix is encoded through a semantic coding 1, and the other feature matrix is encoded through a semantic coding 2, and the two encoded feature matrices are respectively compressed, and the compressed data are restored after adding simulated background noise through a channel, and the restored data are respectively input into a semantic decoding 1 and a semantic decoding 2 for decoding, and the two feature matrices obtained after decoding are output as an image after feature fusion, thereby completing image transmission based on semantic communication; the semantic coding 1 has one more maximum pooling layer than the semantic coding 2, and the data compression adopts a sparse matrix compression algorithm, and the data recovery adopts the inverse process of data compression.
[0007] Furthermore, the U-Net network adopts an encoder-decoder structure, the encoding part performs feature extraction, the decoding part performs upsampling, uses splicing as a fusion method of feature maps, and finally outputs two feature matrices of foreground and background maps; its network structure includes a left compression path and a right expansion path, the left compression path consists of 4 blocks, and the right expansion path consists of 4 blocks; the 4 blocks on the left complete local feature extraction and feature compression from shallow to deep layers, and the generated feature map is subjected to two 3×3 convolutions for feature extraction to obtain the input of the decoding structure, and then the upsampling operation is completed through the 4 blocks on the right; the 4 blocks on the left correspond to the 4 blocks on the right one-to-one, and when the left block is downsampled, the information of the block is also transferred to the corresponding right block by copying and pasting.
[0008] Furthermore, each block in the compression path on the left uses two 3×3 convolutional layers plus a 2×2 maximum pooling layer to form a downsampling module; each block in the expansion path on the right is composed of an upsampling convolutional layer and two 3×3 convolutional layers repeatedly, and feature splicing is performed at the same time to complete feature map fusion.
[0009] U-net's upsampling has a large number of channels, which enables the network to propagate contextual information to a higher resolution and use elastic deformation to enhance the data, which can not only solve the problem of insufficient training data, but also improve the robustness of the algorithm.
[0010] Furthermore, the algorithm used for data compression is as follows: first, a black image is input into semantic coding 1 or semantic coding 2 to obtain the corresponding element in the feature matrix output in semantic coding 1 or semantic coding 2, denoted as n; then all elements except n are recorded, denoted as e, and the starting and ending index positions i of e are recorded; during the transmission process, only e, i and n need to be transmitted without transmitting the entire feature matrix, thereby reducing communication overhead.
[0011] Furthermore, data recovery is the inverse operation of data compression, which is as follows: first, e, i and n are obtained according to the information received from the channel, the value of e is restored according to the starting position and the ending position indicated by i, and then n is added to the remaining positions of the matrix to obtain the feature matrix after data recovery.
[0012] The present invention applies the U-Net network used for image segmentation in deep learning to image semantic communication, and proposes a data compression algorithm to reduce communication overhead. The algorithm is applied to the signal processing process at the transmitter and receiver ends, and together with the communication channel, it constitutes a complete image transmission semantic communication system, which solves the technical problems existing in the prior art that a large amount of data is required to complete model training, resulting in high communication overhead, low channel resource utilization, and poor robustness in environments with low signal-to-noise ratio. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 Schematic diagram of the U-Net network structure described in the present invention.
[0014] Figure 2 Structural block diagram of the image transmission semantic communication system adopted by the present invention. DETAILED DESCRIPTION
[0015] The present invention is further described below in conjunction with the accompanying drawings.
[0016] 1. Image segmentation network and data compression algorithm (1) U-Net network The U-Net network is one of the earlier algorithms that uses a fully convolutional network for semantic segmentation. It performed well in the 2015 ISBI cell tracking competition. It can extract both high-level and low-level semantic features of images. The U-Net network uses an encoder-decoder structure, with the encoding part performing feature extraction and the decoding part performing upsampling, using splicing as a feature map fusion method. Its network structure Figure 1 shown.
[0017] Depend on Figure 1It can be seen that the compression path on the left is composed of 4 blocks, each of which uses two 3×3 convolutional layers (RELU) plus a 2×2 maximum pooling layer to form a downsampling module. The bottom is the feature map generated by the four blocks on the left, which is then sent to the 4 blocks on the right after two separate convolution operations. The expansion path on the right is also composed of 4 blocks, each of which is composed of an upsampling convolutional layer (deconvolutional layer) and two 3×3 convolutional layers, and feature splicing is performed to complete feature map fusion. Compared with FCN, U-net's upsampling has a large number of channels, which enables the network to propagate contextual information to a higher resolution and use elastic deformation to enhance the data, which can not only solve the problem of insufficient training data, but also improve the robustness of the algorithm.
[0018] After the network is built, the next step is to train the network's related parameters: loss function: cross entropy loss function; optimizer: SGD; learning rate: 0.001; learning rate reduction factor: 0.94; training batch size: 150. When the network converges to the preset value, the network can be fine-tuned. The parameters are basically the same as those during training, the learning rate is reduced to 0.00001, and the batch size is changed to 32. In this way, the network is trained and image segmentation can be performed.
[0019] (2) Data compression algorithm Inspired by the sparse matrix compression algorithm, the present invention proposes a sparse matrix compression algorithm for image transmission semantic communication. The matrix compression algorithm is shown in Algorithm 1 in Table 1: First, a black image is input to the semantic encoder to obtain the corresponding element in the feature matrix, denoted as n; then all elements except n are recorded, denoted as e, and the starting and ending index positions of e are recorded. During the transmission process, only e, i and n need to be transmitted without transmitting the entire matrix, which can greatly reduce the communication overhead.
[0020]
[0021] The data recovery algorithm is shown in Algorithm 2 in Table 2:
[0022] 2. Image transmission semantic communication system In order to transmit the two images generated after semantic segmentation, the present invention designs two semantic communication models, each of which consists of an encoder and a decoder. The model structure is shown in Table 3:
[0023] Semantic communication model 1 (i.e., semantic encoding 1 and semantic decoding 1) has one more maximum pooling layer in its structure than model 2 (i.e., semantic encoding 2 and semantic decoding 2). It has stronger feature compression and requires lower transmission bandwidth, which enables separate channel transmission of regions of interest and regions of no interest, reducing communication overhead.
[0024] The trained U-Net network and data compression algorithm are embedded in the transmitter and the compressor, and a complete image transmission semantic communication system suitable for low signal-to-noise ratio conditions is constructed through channel transmission. The complete system model is as follows: Figure 2 shown.
Claims
1. A U-Net-based image transmission semantic communication optimization method, characterized in that: The method comprises the following steps: semantically segmenting an image to be transmitted through a U-Net network structure to obtain two feature matrices of a foreground image and a background image, wherein one feature matrix is encoded through a semantic coding 1 and the other feature matrix is encoded through a semantic coding 2, data compression is performed on the two encoded feature matrices respectively, simulated background noise is added to the compressed data through a channel and then data is restored, the restored data is respectively input into a semantic decoding 1 and a semantic decoding 2 for decoding, and an image is output after feature fusion of the two feature matrices obtained after decoding, thereby completing image transmission based on semantic communication; the semantic coding 1 has one more maximum pooling layer than the semantic coding 2, a sparse matrix compression algorithm is used for data compression, and an inverse process of data compression is used for data recovery.
2. The U-Net-based image transmission semantic communication optimization method according to claim 1, characterized in that: The U-Net network adopts an encoder-decoder structure, the encoding part performs feature extraction, the decoding part performs upsampling, uses splicing as a fusion method of feature maps, and finally outputs two feature matrices of foreground map and background map; its network structure includes a left compression path and a right expansion path, the left compression path consists of 4 blocks, and the right expansion path consists of 4 blocks; the 4 blocks on the left complete the local feature extraction and feature compression from shallow to deep layers, and the generated feature map is subjected to two 3×3 convolutions for feature extraction to obtain the input of the decoding structure, and then the upsampling operation is completed through the 4 blocks on the right; the 4 blocks on the left correspond to the 4 blocks on the right one by one, and when the left block is downsampled, the information of the block is also transferred to the corresponding right block by copying and pasting.
3. A U-Net-based image transmission semantic communication optimization method as claimed in claim 2, characterized in that: In the compression path on the left, each block uses two 3×3 convolutional layers plus a 2×2 maximum pooling layer to form a downsampling module; in the expansion path on the right, each block is composed of an upsampling convolutional layer and two 3×3 convolutional layers repeatedly, and feature splicing is performed to complete feature map fusion.
4. The image transmission semantic communication optimization method based on U-Net as claimed in claim 3, characterized in that: After the U-Net network is built, set the relevant parameters of the training network: loss function: cross entropy loss function; optimizer: SGD; Learning rate: 0.001; learning rate reduction factor: 0.94; Training batch size: 150; when the network converges to the preset value, the network can be fine-tuned, the learning rate is reduced to 0.00001, and the batch size is changed to 32.
5. A U-Net-based image transmission semantic communication optimization method as described in any one of claims 1 to 4, characterized in that: The algorithm used for data compression is as follows: first, input a black image into semantic coding 1 or semantic coding 2 to obtain the corresponding element in the feature matrix output by semantic coding 1 or semantic coding 2, denoted as n; then record all elements except n, denoted as e, and record the starting and ending index positions i of e; during the transmission process, only e, i and n need to be transmitted without transmitting the entire feature matrix.
6. The U-Net-based image transmission semantic communication optimization method according to claim 5, characterized in that: Data recovery is the inverse operation of data compression, which is as follows: first, e, i and n are obtained according to the information received from the channel, the value of e is restored according to the starting and ending positions indicated by i, and then n is added to the remaining positions of the matrix to obtain the feature matrix after data recovery.
7. A U-Net-based image transmission semantic communication optimization method according to any one of claims 1 to 4, characterized in that: Semantic Coding 1 includes four layers, Conv2D, Batch Norm, Conv2D, and Batch Norm, and the activation functions corresponding to each layer are ReLU, Max Pooling, ReLU, and Max Pooling respectively; Semantic Coding 2 includes four layers, Conv2D, BatchNorm, Conv2D, and Batch Norm, and the activation functions corresponding to the first three layers are ReLU, Max Pooling, and ReLU respectively, and the fourth layer has no activation function; Semantic Decoding 1 and Semantic Decoding 2 have the same structure, and both include five layers, ConvTrans2D, Batch Norm, ConvTrans2D, Batch Norm, and ConvTrans2D, and the activation functions of the 1st, 3rd, and 5th layers are all ReLU, and the 2nd and 4th layers have no activation function.
8. The U-Net-based image transmission semantic communication optimization method according to any one of claims 1 to 4, characterized in that: The simulated noise used in the channel is Gaussian white noise AWGN.
Citation Information
Patent Citations
Medical image segmentation method of coding and decoding network based on channel mixing
CN113889234A
Semantic communication method based on medical image and related equipment
CN115412202A
Multi-target segmented optimized image semantic communication framework
CN117495998A
Cited By
Emergency monitoring image semantic coding method, system and device based on illumination feature decoupling and medium
CN121239797A
