This invention relates to the field of adaptive semantic coding, specifically to an adaptive
relay semantic coding method based on
deep learning. The scheme includes: constructing a
relay semantic communication
system based on a deep neural network, the
system consisting of a
transmitter,
relay nodes, and a
receiver, including a direct link from the
transmitter to the
receiver, a relay receiving link from the
transmitter to the relay, and a relay forwarding link from the relay to the
receiver. A half-duplex DF relay
system is adopted, i.e., the relay operates on two orthogonal time slots or frequency bands, such that the relay's reception and decoding of block t corresponds to its forwarding of block t+1. At the transmitter, a
bitstream is generated through deep semantic source coding and entropy coding and
interfacing with
digital channel coding. Simultaneously, half-duplex DF relay is introduced, and cooperative
gain is obtained through random binning and two-stage continuous decoding. An end-to-end
distortion calculation model is established under finite code length conditions, and finally, joint optimization is performed. This invention is applicable to adaptive semantic coding.