Multi-source semantic communication model training method and device, equipment and storage medium
By introducing a multi-source semantic communication model into the multi-source relay communication network, the problem of semantic information being ignored in traditional communication solutions is solved, efficient processing of multi-source signals and resource saving are achieved, and communication efficiency and model training effects are improved.
Patent Information
- Application Number
- CN202410645981.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-05-23
AI Technical Summary
In multi-source relay communication networks, traditional communication solutions based on bit transmission ignore the semantic information within the message, resulting in low communication efficiency and waste of resources. Moreover, existing semantic communication solutions are mainly aimed at single-source scenarios and fail to effectively handle multi-source scenarios. correlation between signals.
A multi-source semantic communication model is proposed, including a semantic sending module, a semantic information fusion module and a semantic recovery module. Through a phased training strategy, the semantic sending module is trained using a pre-built auxiliary receiver until the loss function converges, and the The trained modules are deployed on source nodes, relay nodes and destination nodes to implement semantic feature processing, information fusion and recovery.
It improves the communication efficiency of the multi-source relay communication network, reduces the waste of communication resources, adapts to the correlation between multi-source signals, and improves the training efficiency and communication performance of the model.
Smart Images

Figure CN118606883A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of deep learning and Internet of Things communication technology, and in particular to a training method, device, equipment and storage medium for a multi-source semantic communication model. Background Art
[0002] The deployment of 5G has spawned a variety of emerging IoT applications. The massive data exchange generated by interconnected smart devices has brought about a huge communication load, and has put forward more stringent requirements on the technical indicators of the communication system. Therefore, the industry has begun to actively explore 6G mobile communication technology to meet the technical requirements of future IoT applications. However, the current wireless communication architecture based on Shannon's information theory has gradually approached the theoretical limit. For example, the source coding technology has approached the source entropy rate distortion function, and the channel coding technology such as LDPC code and polarization code has also approached the channel capacity. In addition, in a multi-source relay communication network, the communication between the source node and the target node depends on the assisted forwarding of the relay node to expand the communication range of the source node and reduce the signal transmission loss. At present, the main research on relay cooperative communication networks focuses on the traditional communication paradigm based on bit transmission, aiming to achieve the transmission efficiency and reliability of bit transmission by optimizing key performance indicators (such as throughput, delay and packet loss rate). For example, some schemes propose different relay forwarding strategies, designing how relays process and forward signals according to different optimization goals. In addition, many schemes are committed to developing relay selection algorithms to select the optimal next-hop relay node by evaluating the quality and performance indicators of each relay node (such as signal strength, interference level, path loss, etc.). However, traditional communication schemes for bit transmission ignore the rich semantic information in the sent message. The important semantics and redundant information in the message are encoded together as a bit stream, and the same communication resources are allocated. This leads to the potential risk of wasting communication resources, because the receiver only needs key semantic information to achieve the communication goal of "expressing the meaning". Therefore, the current traditional communication system based on bit transmission urgently needs technological innovation to adapt to the development needs of future 6G mobile communications.
[0003] In recent years, due to the outstanding performance of AI-related technologies in different fields, the industry has begun to explore the organic combination of wireless communications and AI. Among them, semantic communication as a new communication paradigm has received widespread attention and is considered to be one of the key technologies of 6G. Semantic communication is committed to transmitting the key semantics of messages so that the receiver can understand the meaning of the message, that is, to achieve the ultimate goal of communication - "meaningful communication". Compared with traditional communication, semantic communication effectively reduces the allocation of communication resources for semantic redundant information, thereby improving communication efficiency and is expected to break through Shannon's theoretical limitations. Currently, in relay networks, most semantic communication solutions only focus on single-source communication scenarios, that is, designing semantic communication models in point-to-point communication systems with a single transmitter and a single receiver to achieve the transmission of various types of data (such as text, semantics, images, videos, and multimodal data) at the semantic level. A small number of solutions attempt to apply semantic communication in relay cooperative communication networks to design different relay forwarding strategies, but these solutions only consider the single-source case. However, there may be multiple signal sources in actual communication scenarios. When the forwarding strategies designed by these solutions are adopted, signals from different sources will be forwarded separately in the relay, without considering the correlation between signals from different source nodes. Therefore, a new multi-source semantic communication model for multi-source relay cooperative communication networks is urgently needed to solve the above problems. Summary of the invention
[0004] The purpose of the present invention is to provide a training method, device, equipment and storage medium for a multi-source semantic communication model, aiming to solve the problems of low communication efficiency and waste of communication resources in a multi-source relay communication network caused by the prior art.
[0005] In one aspect, the present invention provides a training method for a multi-source semantic communication model, wherein the multi-source semantic communication model comprises a semantic sending module deployed in a source node, a semantic information fusion module deployed in a relay node, and a semantic recovery module deployed in a destination node, wherein the method comprises the following steps:
[0006] Based on the pre-built auxiliary receiver, the semantic sending module is trained according to the local image data set until a pre-set first loss function converges;
[0007] Based on the trained semantic sending module, the semantic information fusion module and the semantic recovery module are trained according to the complete image data set until a preset second loss function converges.
[0008] Preferably, the step of training the semantic sending module based on the pre-built auxiliary receiver according to the local image data set until the preset first loss function converges comprises:
[0009] Preprocessing the local image data set;
[0010] Randomly extract samples from the preprocessed local image data set to obtain a first training sample;
[0011] Performing semantic feature processing on the first training sample by the semantic sending module to obtain a semantic feature signal;
[0012] Reconstructing the received semantic feature signal through the auxiliary receiver to obtain a first restored image;
[0013] According to the first training sample and the first restored image, calculate the first loss value of the first loss function, based on the first loss value, update the trainable parameters of the semantic sending module and the auxiliary receiver, when the first loss function has not converged, jump to the step of randomly extracting samples from the preprocessed local image data set and continue to execute until the first loss function converges.
[0014] Preferably, the trained semantic sending module is deployed to all source nodes, the number of the source nodes is not less than 2, and the step of training the semantic information fusion module and the semantic recovery module based on the trained semantic sending module according to the complete image data set until the preset second loss function converges includes:
[0015] Preprocessing the complete image data set;
[0016] Randomly acquire samples from the preprocessed complete image data set to obtain second training samples;
[0017] Performing semantic feature processing on the local image collected by the source node from the second training sample through the semantic sending module in the activated source node to obtain a local semantic feature signal;
[0018] Performing semantic information fusion on the received local semantic feature signal through the semantic information fusion module to obtain a fused feature signal;
[0019] Performing semantic restoration on the received fusion feature signal by the semantic restoration module to obtain a second restored image;
[0020] According to the second training sample and the second restored image, calculate the second loss value of the second loss function, based on the second loss value, update the trainable parameters of the semantic information fusion module and the semantic restoration module, when the second loss function has not converged, jump to the step of randomly acquiring samples from the preprocessed complete image data set and continue to execute until the second loss function converges.
[0021] Preferably, the semantic sending module includes a semantic encoder and a channel encoder, wherein the semantic encoder is composed of a two-dimensional convolution layer and two layers of residual blocks, and the channel encoder is composed of a flattening layer, a multi-layer perceptron layer and a power normalization layer.
[0022] Preferably, the auxiliary receiver comprises a channel decoder and a semantic decoder, wherein the channel decoder is composed of a connection layer, a multi-layer perceptron layer and a reshaping layer, and the semantic decoder is composed of two layers of residual blocks and a two-dimensional deconvolution layer.
[0023] Preferably, the semantic information fusion module includes a connection layer, a position encoding layer, a converter layer, a linear mapping layer, a reshaping layer and a power normalization layer, and the semantic recovery module includes a reshaping layer, a linear mapping layer, a label embedding layer, a position encoding layer and a converter layer.
[0024] On the other hand, the present invention provides an image transmission method in a multi-source relay communication network, based on a multi-source semantic communication model obtained by the training method of the multi-source semantic communication model as described in any one of the above, a semantic sending module in the multi-source semantic communication model is deployed in all source nodes, a semantic information fusion module in the multi-source semantic communication model is deployed in a relay node, and a semantic recovery module in the multi-source semantic communication model is deployed in a destination node, the method comprising:
[0025] Acquire a complete target image of the target area to be observed;
[0026] The semantic sending module in the activated source node performs semantic feature processing on the local image collected by the source node from the target complete image to obtain a target local semantic signal;
[0027] Performing semantic information fusion on the received local semantic signal through the semantic information fusion module to obtain a target fusion signal;
[0028] The semantic restoration module performs semantic restoration on the received target fusion signal to obtain a target restoration image.
[0029] On the other hand, the present invention provides a training device for a multi-source semantic communication model, wherein the multi-source semantic communication model includes a semantic sending module for being deployed in a source node, a semantic information fusion module for being deployed in a relay node, and a semantic recovery module for being deployed in a destination node, wherein the device includes:
[0030] A first training unit is used to train the semantic sending module according to the local image data set based on the pre-built auxiliary receiver until a pre-set first loss function converges;
[0031] The second training unit is used to train the semantic information fusion module and the semantic recovery module based on the trained semantic sending module and the complete image data set until a preset second loss function converges.
[0032] On the other hand, the present invention also provides a communication device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps described in the training method of the multi-source semantic communication model are implemented.
[0033] On the other hand, the present invention also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, it implements the steps described in the training method of the multi-source semantic communication model as described above.
[0034] The present invention is based on a pre-built auxiliary receiver, and trains a semantic sending module according to a local image data set until a preset first loss function converges. Based on the trained semantic sending module, a semantic information fusion module and a semantic recovery module are trained according to a complete image data set until a preset second loss function converges. The multi-source semantic communication model includes a semantic sending module for deployment in a source node, a semantic information fusion module for deployment in a relay node, and a semantic recovery module for deployment in a destination node. Thus, by adopting a phased training strategy, the training efficiency of the model used in the multi-source relay communication network is improved, the communication efficiency of the multi-source semantic communication model in multi-source communication is improved, and the waste of communication resources is reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a flowchart of the implementation of the training method of the multi-source semantic communication model provided in the first embodiment of the present invention;
[0036] Figure 2 It is a structural schematic diagram of a residual block in a training method for a multi-source semantic communication model provided in Embodiment 1 of the present invention;
[0037] Figure 3 It is a schematic diagram of image transmission of a training method for a multi-source semantic communication model provided in the first embodiment of the present invention;
[0038] Figure 4 is a flowchart of the implementation of the training method of the multi-source semantic communication model provided in the second embodiment of the present invention;
[0039] Figure 5 It is a structural diagram of a semantic sending module and an auxiliary receiver in a training method for a multi-source semantic communication model provided in Embodiment 2 of the present invention;
[0040] Figure 6 is a flowchart of the implementation of the training method of the multi-source semantic communication model provided in the third embodiment of the present invention;
[0041] Figure 7 It is a structural schematic diagram of a semantic information fusion module and a semantic recovery module in a training method for a multi-source semantic communication model provided in Embodiment 3 of the present invention;
[0042] Figure 8 is a flowchart of an implementation method of an image transmission method in a multi-source relay communication network provided by Embodiment 4 of the present invention;
[0043] Fig. 9 is an image transmission schematic diagram of an image transmission method in a multi-source relay communication network provided by a fourth embodiment of the present invention;
[0044] Fig.10 is a schematic diagram of the structure of a training device for a multi-source semantic communication model provided in Embodiment 5 of the present invention;
[0045] Fig.11 It is a structural diagram of a communication device provided in Embodiment 6 of the present invention. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. 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 present invention.
[0047] The specific implementation of the present invention is described in detail below in conjunction with specific embodiments:
[0048] Embodiment 1:
[0049] Figure 1 The implementation process of the training method of the multi-source semantic communication model provided in the first embodiment of the present invention is shown. For the convenience of explanation, only the part related to the embodiment of the present invention is shown, which is described in detail as follows:
[0050] In step S101, based on a pre-built auxiliary receiver, a semantic sending module is trained according to a local image data set until a pre-set first loss function converges.
[0051] The embodiments of the present invention are applicable to communication equipment, platforms or systems in a multi-source relay communication network, which include a source node for sending original data packets or signals, a relay node for receiving signals from the source node and processing and forwarding the signals, and a destination node for receiving data or signals from the source node or the relay node. In an embodiment of the present invention, a multi-source semantic communication model includes a semantic sending module, a semantic information fusion module and a semantic recovery module. The semantic sending module is used to be deployed in a source node, the semantic information fusion module is used to be deployed in a relay node, and the semantic recovery module is used to be deployed in a destination node. An auxiliary receiver is pre-constructed in a training phase to assist the semantic sending module in training. Based on the auxiliary receiver, the semantic sending module is trained according to a local image data set until a preset first loss function converges, thereby obtaining a semantic sending module used by all source nodes. The semantic sending module and the auxiliary receiver communicate via a wireless channel. The local images in the local image data set only contain partial features in a complete image. All local images in the local image data set can come from different complete images respectively. A complete image can use only one of the local images or multiple local images for the local image data set. The auxiliary receiver is not used in the testing phase or in actual applications, and the semantic information fusion module and the semantic recovery module do not participate in the training at this stage.
[0052] In a feasible embodiment, the semantic sending module includes a semantic encoder for extracting semantic features of a local image and a channel encoder for mapping the extracted semantic features into a signal suitable for transmission in a wireless channel, wherein the semantic encoder is composed of a two-dimensional convolutional layer (Conv2D layer) and two layers of residual blocks (ResBlock), and the channel encoder is composed of a flattening layer (Flatten layer), a multi-layer perceptron layer (MLP layer) and a power normalization layer (PowerNorm layer), so that the semantic sending module can realize semantic feature extraction and signal mapping of the local image.
[0053] In another feasible embodiment, corresponding to the semantic sending module, the auxiliary receiver includes a channel decoder for signal decoding and a semantic decoder for semantic feature recovery, wherein the channel decoder is composed of a connection layer (Concat layer), a multi-layer perceptron layer (MLP layer) and a reshaping layer (Reshape layer), and the semantic decoder is composed of two layers of residual blocks (ResBlock) and a two-dimensional deconvolution layer (TransConv2D layer), so that the auxiliary receiver can realize local image recovery.
[0054] In another feasible embodiment, the ResBlock in the semantic sending module and the auxiliary receiver both include a convolution layer (ConvLayer), a batch normalization layer (BatchNorm) and an activation function (ELU), and the specific connection structure is as follows: Figure 2 As shown, the convolutional layer in ResBlock in the semantic sending module is Conv2D, and the convolutional layer in ResBlock in the auxiliary receiver is TransConv2D.
[0055] As an example, Figure 3 As shown, the semantic sending module extracts semantic features and maps signals from the collected local image, and transmits the mapped signal to the auxiliary receiver via a wireless channel. The auxiliary receiver decodes the signal and restores the semantic features to obtain a restored local image.
[0056] In another feasible embodiment, based on a pre-built auxiliary receiver, the semantic sending module is trained according to the local image data set until the preset first loss function converges. The specific implementation method is detailed in the description of the following embodiment 2 and will not be repeated here.
[0057] In step S102, based on the trained semantic sending module, the semantic information fusion module and the semantic recovery module are trained according to the complete image data set until a preset second loss function converges.
[0058] In an embodiment of the present invention, a sensor is used as a source node to collect images through the sensor, a trained semantic sending module is deployed to all sensors, and the parameters of the semantic sending module are frozen. After that, the semantic information fusion module deployed in the relay node and the semantic recovery module deployed in the destination node are trained according to the complete image data set until a preset second loss function converges, wherein the number of sensors is not less than 2.
[0059] In a feasible embodiment, the semantic information fusion module is used to perform semantic information fusion on the signal received by the relay node so that the relay node forwards the fused signal to the destination node. It includes a connection layer (Concat), a position encoding layer (PosEmb), a converter layer (Transformer Layer), a linear mapping layer (LinearProj), a reshaping layer (Reshape) and a power normalization layer (PowerNorm), thereby jointly extracting the most valuable semantic information from the transmitted signals of multiple sensors and reducing the redundancy of forwarding semantic information.
[0060] In another feasible embodiment, the semantic recovery module is used by the destination node to recover semantic information from the signal forwarded by the relay node to restore the complete image of the target area to be observed by the destination node. It includes a reshaping layer (Reshape), a linear mapping layer (LinearProj), a token embedding layer (TokenEmb), a position encoding layer (PosEmb) and a transformer layer (Transformer Layer), thereby realizing the recovery of the complete image based on limited semantic information, thereby improving the effect and efficiency of image recovery.
[0061] In another feasible embodiment, based on the trained semantic sending module, the semantic information fusion module and the semantic recovery module are trained according to the complete image data set until the preset second loss function converges. The specific implementation method is detailed in the description of the following embodiment three and will not be repeated here.
[0062] In an embodiment of the present invention, based on a pre-built auxiliary receiver, a semantic sending module is trained according to a local image data set until a preset first loss function converges, and based on the trained semantic sending module, a semantic information fusion module and a semantic recovery module are trained according to a complete image data set until a preset second loss function converges, wherein the multi-source semantic communication model includes a semantic sending module for deployment in a source node, a semantic information fusion module for deployment in a relay node, and a semantic recovery module for deployment in a destination node, thereby improving the training efficiency of the model used in a multi-source relay communication network by adopting a phased training strategy, improving the communication efficiency of the multi-source semantic communication model in multi-source communication, and reducing the waste of communication resources.
[0063] Embodiment 2:
[0064] Figure 4 The implementation process of the training method of the multi-source semantic communication model provided by the second embodiment of the present invention is shown. For the convenience of explanation, only the part related to the embodiment of the present invention is shown, which is described in detail as follows:
[0065] In step S401, the local image data set is preprocessed.
[0066] In an embodiment of the present invention, each local image in the local image data set is preprocessed. Specifically, the pixel values of each local image are standardized so that the model can better learn the features in the image and improve the performance and generalization ability of subsequent models.
[0067] In step S402, samples are randomly extracted from the preprocessed local image data set to obtain first training samples.
[0068] In the embodiment of the present invention, at least one local image is randomly extracted from the preprocessed local image data set, the extracted local image is used as a first training sample, and the first training sample is input into the semantic sending module.
[0069] In step S403, semantic feature processing is performed on the first training sample by a semantic sending module to obtain a semantic feature signal.
[0070] In the embodiment of the present invention, when the semantic feature processing is performed on the first training sample by the semantic sending module, specifically, as follows Figure 5 As shown, after the first training sample is input into the semantic sending module, it passes through the Conv2D layer, the stacked two layers of ResBlock, the Flatten layer, the MLP layer and the PowerNorm layer in sequence, and finally obtains the semantic feature signal, and the semantic feature signal is input into the wireless channel module to simulate the wireless communication environment in the first hop transmission, wherein the Conv2D layer and ResBlock are used to extract the semantic features of the first training sample, the Flatten layer is used to flatten the semantic feature map output by the semantic encoder into a one-dimensional feature vector, the MLP layer is used to map the flattened vector of the Flatten layer into a signal suitable for transmission in the wireless channel, and the PowerNorm layer is used to normalize the mapped signal to keep the signal transmission power consistent.
[0071] In step S404, the received semantic feature signal is reconstructed by the auxiliary receiver to obtain a first restored image.
[0072] In the embodiment of the present invention, the semantic feature signal is transmitted to the auxiliary receiver via a wireless channel. When the auxiliary receiver performs image reconstruction on the received semantic feature signal, specifically, Figure 5 As shown, the semantic feature signal passes through the Concat layer, the MLP layer, the Reshape layer, the two stacked ResBlock layers and the TransConv2D layer in sequence, and finally obtains the first restored image, which is consistent with the first training sample sent at the semantic level, wherein the Concat layer is used to splice the real part and the imaginary part of the semantic feature signal transmitted through the wireless channel into a vector, the MLP layer is used to decode the semantic feature vector from the vector spliced by the Concat layer, the Reshape layer is used to reconstruct the semantic feature vector decoded by the MLP layer into a semantic feature map, the two stacked ResBlocks are used to learn more complex image features from the semantic feature map, and the TransConv2D layer is used to restore an image that is consistent with the original local image at the semantic level based on the features extracted by the ResBlock.
[0073] In step S405, the first loss value of the first loss function is calculated according to the first training sample and the first restored image, and the trainable parameters of the semantic sending module and the auxiliary receiver are updated based on the first loss value. When the first loss function has not converged, jump to step S402 to continue execution until the first loss function converges.
[0074] In the embodiment of the present invention, the mean square error (MSE) between the first training sample and the first restored image is calculated, and the calculated mean square error is the first loss function The first loss value of is obtained, and based on the first loss value, the trainable parameters of the semantic sending module and the auxiliary receiver are updated by the gradient descent method. Specifically, the first loss function is gradient descended by the Adam algorithm to optimize the trainable parameters of the semantic sender and the auxiliary receiver. When the first loss function does not converge, jump to step S402 to continue executing until the first loss function converges, wherein M′ and represent the first training sample and the first restored image respectively.
[0075] In an embodiment of the present invention, a local image data set is preprocessed, and samples are randomly extracted from the preprocessed local image data set to obtain a first training sample. The first training sample is semantically processed by a semantic sending module to obtain a semantic feature signal. The received semantic feature signal is image reconstructed by an auxiliary receiver to obtain a first restored image. A first loss value of a first loss function is calculated according to the first training sample and the first restored image. Based on the first loss value, the trainable parameters of the semantic sending module and the auxiliary receiver are updated. When the first loss function has not converged, the step of randomly extracting samples from the preprocessed local image data set is jumped to continue execution until the first loss function converges, thereby enabling the semantic sending module to learn to extract key semantic features for image restoration, thereby improving the training effect of the semantic sending module.
[0076] Embodiment three:
[0077] Figure 6 The implementation process of the training method of the multi-source semantic communication model provided in the third embodiment of the present invention is shown. For the convenience of explanation, only the part related to the embodiment of the present invention is shown, which is described in detail as follows:
[0078] In step S601, the complete image data set is preprocessed.
[0079] In an embodiment of the present invention, each complete image in the complete image data set is preprocessed. Specifically, the pixel values of each complete image are standardized so that the model can better learn the features in the image and improve the performance and generalization ability of subsequent models.
[0080] In step S602, samples are randomly acquired from the preprocessed complete image data set to obtain second training samples.
[0081] In the embodiment of the present invention, at least one complete image is randomly extracted from the preprocessed complete image data set, and the extracted complete image is used as the second training sample.
[0082] In step S603, the semantic sending module in the activated source node performs semantic feature processing on the local image collected by the source node from the second training sample to obtain a local semantic feature signal.
[0083] In an embodiment of the present invention, all sensors are deployed at different positions of the target area to observe local images of the target area from different angles. After the semantic sending module is deployed to all sensors, several of all sensors are randomly activated. Each activated sensor collects images at different positions of the second training sample to obtain a local image corresponding to the position. The local image is then input into the semantic sending module. The semantic sending module performs semantic feature processing on the local image collected by the sensor to obtain a corresponding local semantic feature signal. Finally, the activated sensors take turns inputting their respective local semantic feature signals into the wireless channel module to simulate the wireless communication environment in the first hop transmission. The specific implementation method of the semantic sending module performing semantic feature processing on the local image is detailed in the description of step S403 in Example 2 and will not be repeated here.
[0084] In a feasible embodiment, the number k of sensors to be activated is first randomly obtained from the value range [3n / 4,n], and then k sensors are randomly selected from all sensors for activation to respectively observe k different positions of the target area, so that the multi-source semantic communication model can adapt to different numbers of activated sensors, avoiding the need for retraining when changing the number of activated sensors in practical applications, thereby improving the robustness of the model, where n is the number of all sensors.
[0085] In another feasible embodiment, when each activated sensor captures images of different positions of the second training sample, the second training sample is divided into k parts on average according to the number k of activated sensors to obtain k local images, and each local image corresponds to a local image captured by one of the activated sensors from the second training sample.
[0086] In step S604, the semantic information fusion module performs semantic information fusion on the received local semantic feature signal to obtain a fused feature signal.
[0087] In an embodiment of the present invention, the k local semantic feature signals received at the first hop are input into the semantic information fusion module of the relay node, and the semantic information fusion module performs semantic information fusion on each local semantic feature signal to obtain a fused feature signal, where k is the number of activated sensors.
[0088] In a feasible embodiment, when the semantic information fusion module performs semantic information fusion on the received local semantic feature signal, specifically, as follows: Figure 7 As shown in the figure, the first-hop signals (i.e., local semantic feature signals) transmitted by k sensors are first converted into feature vectors through the Concat layer, and the k feature vectors are then positionally encoded and embedded with position information through the PosEmb layer. After that, they pass through multiple layers of Transformer Layer, and focus on the correlation between different feature vectors through its unique self-attention mechanism to extract semantic information. The semantic redundancy is eliminated through the LinearProj layer to obtain the most valuable part of these semantic information. Finally, the semantic information is fused and mapped into a signal suitable for wireless channel transmission, i.e., a fused feature signal, through the Reshape layer and the PowerNorm layer in turn. The signal is then input into the wireless channel module to simulate the wireless communication environment in the second-hop transmission.
[0089] In step S605, semantic restoration is performed on the received fusion feature signal by a semantic restoration module to obtain a second restored image.
[0090] In an embodiment of the present invention, the fused feature signal received at the second hop is input into a semantic restoration module of the destination node, and the semantic restoration module performs semantic restoration on the fused feature signal to obtain a second restored image, which is the restored complete image.
[0091] In a feasible embodiment, when the semantic restoration module performs semantic restoration on the received fusion feature signal, specifically, as follows: Figure 7As shown in the figure, the fused feature signal is first mapped into multiple feature vectors through the Reshape layer, and these vectors are linearly mapped through the LinearProj layer to expand the vector length, and then embedded into multiple identical learnable vectors through the TokenEmb layer. The embedded position is the position of the unsent sensor, so the number of embedded vectors is the same as the number of unactivated sensors. After that, it passes through multiple layers of Transformer Layer to extract semantic information again, and then passes through a layer of LinearProj layer again to expand the dimension of the feature vector by linear mapping. Finally, it passes through a layer of Reshape layer again to directly reshape the feature vector into a complete image, so that even if the signal forwarded by the relay node initially comes from only part of the sensors (that is, another part of the sensors are not activated / enter sleep and no local images are transmitted), the destination node can still restore the complete image through this limited semantic information, effectively saving the communication consumption of the sensor.
[0092] In another feasible embodiment, the number of Transformer Layers in the semantic information fusion module and the semantic recovery module is determined according to the number and / or size of the collected local images, or the dimension of the extracted feature vector. When the number / size is large, or the dimension is large, more layers are needed to capture the semantic information. It should be noted that more layers will also increase the complexity of the model, so it is necessary to find a balance between model complexity and generalization ability.
[0093] In another feasible embodiment, the number of Transformer Layers in the semantic information fusion module and the semantic restoration module is usually set to 6 layers.
[0094] In step S606, the second loss value of the second loss function is calculated according to the second training sample and the second restored image, and the trainable parameters of the semantic information fusion module and the semantic recovery module are updated based on the second loss value. When the second loss function has not converged, jump to step S602 to continue execution until the second loss function converges.
[0095] In the embodiment of the present invention, the mean square error between the second training sample and the second restored image is calculated, and the calculated mean square error is the second loss function A second loss value is obtained, and based on the second loss value, the trainable parameters of the semantic information fusion module and the semantic recovery module are updated by the gradient descent method. Specifically, the second loss function is gradient descended by the Adam algorithm to optimize the trainable parameters of the semantic information fusion module and the semantic recovery module. When the second loss function does not converge, jump to step S602 to continue executing until the second loss function converges, wherein M and represent the second training sample and the second restored image respectively.
[0096] In an embodiment of the present invention, a complete image data set is preprocessed, and samples are randomly obtained from the preprocessed complete image data set to obtain a second training sample. A semantic feature processing is performed on a local image collected by the source node from the second training sample by a semantic sending module in an activated source node to obtain a local semantic feature signal. A semantic information fusion module is used to perform semantic information fusion on the received local semantic feature signal to obtain a fused feature signal. A semantic restoration module is used to perform semantic restoration on the received fused feature signal to obtain a second restored image. A second loss value of a second loss function is calculated based on the second training sample and the second restored image. Based on the second loss value, trainable parameters of the semantic information fusion module and the semantic restoration module are updated. When When the second loss function has not converged, it jumps to the step of randomly obtaining samples from the preprocessed complete image data set and continues to execute until the second loss function converges. Therefore, in the second stage of training, by randomly activating sensors, the multi-source semantic communication model adapts to different activation numbers, improves the robustness of the model, and realizes the joint extraction of the most valuable semantic information from multiple sensor signals through the semantic information fusion module, avoids allocating communication resources to redundant semantics, saves communication resources for relays, and improves the performance of the model. At the same time, without requiring all sensors to participate in image acquisition and transmission, the destination node can still restore the complete image of the target area based on limited semantic information, effectively saving the communication consumption of the sensor and further improving the performance of the model.
[0097] Embodiment 4:
[0098] Figure 8 The implementation process of the image transmission method in the multi-source relay communication network provided by the fourth embodiment of the present invention is shown. For the convenience of description, only the part related to the embodiment of the present invention is shown, which is described in detail as follows:
[0099] In step S801, a complete target image of the target area to be observed is obtained;
[0100] In step S802, the semantic sending module in the activated source node performs semantic feature processing on the local image collected by the source node from the target complete image to obtain a target local semantic signal;
[0101] In step S803, the semantic information fusion module performs semantic information fusion on the received local semantic signal to obtain a target fusion signal;
[0102] In step S804, semantic restoration is performed on the received target fusion signal by a semantic restoration module to obtain a target restored image.
[0103] In the embodiment of the present invention, Fig. 9As shown, based on the multi-source semantic communication model trained by the above-mentioned embodiments one to three, the trained semantic sending module is deployed to all sensors, and the semantic information fusion module and the semantic recovery module are deployed to the relay and the destination node respectively. First, a part of the activated sensors collect local images of the acquired target complete image, and the collected local images are processed with semantic features by the semantic sending module in the sensor to obtain the corresponding target local semantic signal. Then, the activated sensors take turns to send the target local semantic signal containing the semantic information of the local image to the relay node in the actual wireless network environment. After one round of transmission, the relay node uses the semantic information fusion module to extract the most valuable semantic information from the signal received from the sensor, and forwards the semantic information to the destination node. The destination node uses the semantic recovery module to restore the complete image of the target area as much as possible, thereby saving the communication resources of the relay in the image transmission task, improving the communication efficiency, improving the system performance, and improving the image restoration effect.
[0104] Embodiment five:
[0105] Fig.10 The structure of the training device of the multi-source semantic communication model provided by the fifth embodiment of the present invention is shown. For the convenience of description, only the part related to the embodiment of the present invention is shown, including:
[0106] A first training unit 101 is used to train a semantic sending module according to a local image data set based on a pre-built auxiliary receiver until a pre-set first loss function converges;
[0107] The second training unit 102 is used to train the semantic information fusion module and the semantic recovery module based on the trained semantic sending module and the complete image data set until a preset second loss function converges.
[0108] In the embodiment of the present invention, each unit of the training device of the multi-source semantic communication model can be implemented by a corresponding hardware or software unit, and each unit can be an independent software or hardware unit, or can be integrated into a software or hardware unit, which is not intended to limit the present invention. Specifically, the implementation of each unit can refer to the description of the aforementioned method embodiment, which will not be repeated here.
[0109] Embodiment six:
[0110] Fig.11 The structure of the communication device provided by the sixth embodiment of the present invention is shown. For the convenience of description, only the part related to the embodiment of the present invention is shown.
[0111] The communication device 11 of the embodiment of the present invention includes a processor 110, a memory 111, and a computer program 112 stored in the memory 111 and executable on the processor 110. When the processor 110 executes the computer program 112, the steps of the training method of the multi-source semantic communication model described above are implemented, for example: Figure 1 Alternatively, when the processor 110 executes the computer program 112, the functions of each unit in the above-mentioned device embodiments are implemented, for example Fig.10 The functions of the units 101 to 102 are shown.
[0112] In an embodiment of the present invention, based on a pre-built auxiliary receiver, a semantic sending module is trained according to a local image data set until a preset first loss function converges, and based on the trained semantic sending module, a semantic information fusion module and a semantic recovery module are trained according to a complete image data set until a preset second loss function converges, wherein the multi-source semantic communication model includes a semantic sending module for deployment in a source node, a semantic information fusion module for deployment in a relay node, and a semantic recovery module for deployment in a destination node, thereby improving the training efficiency of the model used in a multi-source relay communication network by adopting a phased training strategy, improving the communication efficiency of the multi-source semantic communication model in multi-source communication, and reducing the waste of communication resources.
[0113] The steps implemented when the processor 110 in the communication device 11 of the embodiment of the present invention executes the computer program 112 to implement the training method of the multi-source semantic communication model can be referred to the description of the aforementioned method embodiment, which will not be repeated here.
[0114] Embodiment seven:
[0115] In an embodiment of the present invention, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the steps in the training method embodiment of the multi-source semantic communication model are implemented, for example, Figure 1 Alternatively, when the computer program is executed by a processor, the functions of each unit in the above-mentioned device embodiments are realized, for example Fig.10 The functions of the units 101 to 102 are shown.
[0116] In an embodiment of the present invention, based on a pre-built auxiliary receiver, a semantic sending module is trained according to a local image data set until a preset first loss function converges, and based on the trained semantic sending module, a semantic information fusion module and a semantic recovery module are trained according to a complete image data set until a preset second loss function converges, wherein the multi-source semantic communication model includes a semantic sending module for deployment in a source node, a semantic information fusion module for deployment in a relay node, and a semantic recovery module for deployment in a destination node, thereby improving the training efficiency of the model used in a multi-source relay communication network by adopting a phased training strategy, improving the communication efficiency of the multi-source semantic communication model in multi-source communication, and reducing the waste of communication resources.
[0117] The computer-readable storage medium of the embodiment of the present invention may include any entity or device or recording medium capable of carrying computer program code, for example, ROM / RAM, magnetic disk, optical disk, flash memory and other memories.
[0118] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for training a multi-source semantic communication model, characterized in that: The multi-source semantic communication model includes a semantic sending module deployed in a source node, a semantic information fusion module deployed in a relay node, and a semantic recovery module deployed in a destination node. The method includes the following steps: Based on the pre-built auxiliary receiver, the semantic sending module is trained according to the local image data set until a pre-set first loss function converges; Based on the trained semantic sending module, the semantic information fusion module and the semantic recovery module are trained according to the complete image data set until a preset second loss function converges.
2. The method according to claim 1, characterized in that The step of training the semantic sending module based on the pre-built auxiliary receiver according to the local image data set until the pre-set first loss function converges includes: Preprocessing the local image data set; Randomly extract samples from the preprocessed local image data set to obtain a first training sample; Performing semantic feature processing on the first training sample by the semantic sending module to obtain a semantic feature signal; Reconstructing the received semantic feature signal through the auxiliary receiver to obtain a first restored image; According to the first training sample and the first restored image, calculate the first loss value of the first loss function, based on the first loss value, update the trainable parameters of the semantic sending module and the auxiliary receiver, when the first loss function has not converged, jump to the step of randomly extracting samples from the preprocessed local image data set and continue to execute until the first loss function converges.
3. The method according to claim 1, characterized in that The step of deploying the trained semantic sending module to all source nodes, the number of the source nodes being no less than 2, and training the semantic information fusion module and the semantic recovery module based on the trained semantic sending module according to the complete image data set until the preset second loss function converges, comprises: Preprocessing the complete image data set; Randomly acquire samples from the preprocessed complete image data set to obtain second training samples; Performing semantic feature processing on the local image collected by the source node from the second training sample through the semantic sending module in the activated source node to obtain a local semantic feature signal; Performing semantic information fusion on the received local semantic feature signal through the semantic information fusion module to obtain a fused feature signal; Performing semantic restoration on the received fusion feature signal by the semantic restoration module to obtain a second restored image; According to the second training sample and the second restored image, calculate the second loss value of the second loss function, based on the second loss value, update the trainable parameters of the semantic information fusion module and the semantic restoration module, when the second loss function has not converged, jump to the step of randomly acquiring samples from the preprocessed complete image data set and continue to execute until the second loss function converges.
4. The method according to claim 1, characterized in that The semantic sending module includes a semantic encoder and a channel encoder, wherein the semantic encoder is composed of a two-dimensional convolution layer and two layers of residual blocks, and the channel encoder is composed of a flattening layer, a multi-layer perceptron layer and a power normalization layer.
5. The method according to claim 1, characterized in that The auxiliary receiver includes a channel decoder and a semantic decoder, wherein the channel decoder is composed of a connection layer, a multi-layer perceptron layer and a reshaping layer, and the semantic decoder is composed of two layers of residual blocks and a two-dimensional deconvolution layer.
6. The method according to claim 1, characterized in that The semantic information fusion module includes a connection layer, a position encoding layer, a converter layer, a linear mapping layer, a reshaping layer and a power normalization layer, and the semantic recovery module includes a reshaping layer, a linear mapping layer, a tag embedding layer, a position encoding layer and a converter layer.
7. A method for image transmission in a multi-source relay communication network, characterized in that: Based on the multi-source semantic communication model obtained by the training method of the multi-source semantic communication model according to any one of claims 1 to 6, the semantic sending module in the multi-source semantic communication model is deployed in all source nodes, the semantic information fusion module in the multi-source semantic communication model is deployed in the relay node, and the semantic recovery module in the multi-source semantic communication model is deployed in the destination node. The method includes: Acquire a complete target image of the target area to be observed; The semantic sending module in the activated source node performs semantic feature processing on the local image collected by the source node from the target complete image to obtain a target local semantic signal; Performing semantic information fusion on the received local semantic signal through the semantic information fusion module to obtain a target fusion signal; The semantic restoration module performs semantic restoration on the received target fusion signal to obtain a target restoration image.
8. A training device for a multi-source semantic communication model, characterized in that: The multi-source semantic communication model includes a semantic sending module for deployment in a source node, a semantic information fusion module for deployment in a relay node, and a semantic recovery module for deployment in a destination node. The device includes: A first training unit is used to train the semantic sending module according to the local image data set based on the pre-built auxiliary receiver until a pre-set first loss function converges; The second training unit is used to train the semantic information fusion module and the semantic recovery module based on the trained semantic sending module and the complete image data set until a preset second loss function converges.
9. A communication device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
