A convolutional code decoding method based on bidirectional LSTM and a convolutional code encoding and decoding method

Through the convolutional code decoding method and encoding method based on bidirectional LSTM, the complexity problem of traditional convolutional codes under long code length and high constraint is solved, the performance and security are improved, and the long convolutional code of long code is realized. Efficient encoding and decoding.

CN114268328BInactive Publication Date: 2024-10-01HARBIN INST OF TECH +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202111462642.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-02
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The time complexity and space complexity of traditional convolutional code encoding and decoding methods increase exponentially under long code lengths and high constraints. It is difficult to calculate codebooks with long code lengths, and short codebooks have low security and are easily exploited. Intercept and crack.

Method used

The convolutional code decoding method and encoding method based on bidirectional LSTM are used. By constructing a bidirectional LSTM neural network decoder and a cascade-trained neural network, deep learning is used to learn correlation and feature rules from the received sequence for encoding and decoding. code.

Benefits of technology

It reduces the time complexity and space complexity of convolutional code decoding, is suitable for long code lengths and high constraints, improves the performance of encoding and decoding, and enhances security and anti-interception capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114268328B_ABST
    Figure CN114268328B_ABST
Patent Text Reader

Abstract

The present invention discloses a convolutional code decoding method and a convolutional code encoding and decoding method based on a bidirectional LSTM, belonging to the field of electronic communication technology, and solving the problems that the time complexity and space complexity of traditional encoding and decoding increase exponentially with the increase of code length and constraint degree, the long code codebook is difficult to select, and the coded information is easily intercepted and cracked, and the security is low. The method of the present invention comprises: constructing a bidirectional LSTM neural network decoder, the neural network decoder adopts a bidirectional LSTM neural network for decoding; establishing a receiving sequence data set, constructing a training codebook according to the receiving sequence data set and the bidirectional LSTM neural network; selecting a training signal-to-noise ratio, the training signal-to-noise ratio is the signal-to-noise ratio of the receiving sequence; setting simulation parameters, and training the bidirectional LSTM neural network decoder using the training codebook and the training signal-to-noise ratio; and decoding using the trained bidirectional LSTM neural network decoder. The present invention is suitable for end-to-end convolutional code encoding and decoding.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic communication technology, and in particular to an end-to-end convolutional code encoding and decoding method. Background Art

[0002] The traditional convolutional code encoding method uses a shift register method, such as Figure 1 As shown, the specific principle is as follows: the code length of the convolutional code is n0=2, the information length is k0=1, the coding storage time is m=2, the coding constraint degree is N=3, and the coding constraint length is N A =6, its encoder consists of two shift registers and two adders. In the output code groups of the convolutional code, the first codeword of each codegroup is the modulo-2 sum of the input information codeword, the input codeword of the previous time interval and the input codeword of the previous two time intervals, and the second codeword is the modulo-2 sum of the input information codeword and the input codeword of the previous two time intervals.

[0003] The decoding of convolutional codes is mainly divided into two directions: algebraic decoding and probabilistic decoding. The former is based on large number logic judgment, which targets convolutional codes of specific code types and decodes the received sequence through the companion matrix and error pattern; while the latter is based on the maximum a posteriori probability (MAP) criterion and the maximum likelihood (ML) criterion, and infers the transmitted sequence through the probability distribution of the received sequence. It has high tolerance for convolutional code types, and its decoding performance is better than algebraic decoding regardless of whether the convolutional code type is complex or simple, so it is more widely used in actual communication systems.

[0004] The mathematical basis of the Viterbi decoding algorithm is the maximum likelihood (ML) criterion. It has also been proven to be the best probability decoding algorithm. Its decoding structure and algorithm are simple, and its execution efficiency is high. It has become the most mainstream and popular decoding algorithm for convolutional codes. Viterbi decoding uses a network graph to represent the transition between states, and completes the decoding of the transmitted sequence by finding the path with the minimum distance metric.

[0005] The defects of traditional encoding and decoding are as follows:

[0006] 1. The time complexity and space complexity of traditional convolutional code encoding and decoding, such as Viterbi decoding, increase exponentially with the increase of code length and constraint degree. Therefore, traditional convolutional code encoding and decoding methods are not suitable for long codes.

[0007] 2. A convolutional codebook that is suitable for the current channel and has excellent performance is difficult to calculate mathematically when the code length is long, that is, the long codebook is difficult to select.

[0008] 3. The encoding and decoding methods of the short code book are fixed, the encoded information is easy to be intercepted and cracked, and the security is low. Summary of the invention

[0009] The purpose of the present invention is to solve the above-mentioned defects in the prior art and provide a convolutional code decoding method and a convolutional code encoding and decoding method based on a bidirectional LSTM.

[0010] The present invention is implemented by the following technical solutions. On the one hand, the present invention provides a convolutional code decoding method based on a bidirectional LSTM, the method comprising:

[0011] Constructing a bidirectional LSTM neural network decoder, wherein the neural network decoder uses a bidirectional LSTM neural network for decoding;

[0012] Establishing a received sequence data set, and constructing a training codebook according to the received sequence data set and a bidirectional LSTM neural network;

[0013] Selecting a training signal-to-noise ratio, where the training signal-to-noise ratio is a signal-to-noise ratio of the received sequence;

[0014] Setting simulation parameters, and training the bidirectional LSTM neural network decoder using the training codebook and the training signal-to-noise ratio;

[0015] The trained bidirectional LSTM neural network decoder is used for decoding.

[0016] Furthermore, the construction of a bidirectional LSTM neural network decoder specifically includes: the bidirectional LSTM neural network decoder includes an input layer, a hidden neural network and an output layer;

[0017] The hidden neural network is composed of several bidirectional LSTM network layers, batch normalization BN layers and Drop Out layers, and is used to extract the correlation between adjacent codewords from the received sequence;

[0018] The input layer is used to enlarge the input codebook into a high-dimensional space;

[0019] The bidirectional LSTM network layer transforms the sequentially input convolutional code codewords into characteristic rules that can be simulated by the neural network by learning the correlation between the convolutional code input code sequences before and after.

[0020] The batch normalization BN layer redistributes the output data of the neural network within a specified range without changing its distribution law through a normalization formula;

[0021] The Drop Out layer prevents overfitting of the network by removing neural network training units from the network with a certain probability during training;

[0022] The output layer is used to reduce high-dimensional information to low-dimensionality.

[0023] Furthermore, the establishing of the received sequence data set and constructing a training codebook according to the received sequence data set and the bidirectional LSTM neural network specifically includes:

[0024] According to the received sequence, the sequence of length n*m is intercepted and recorded as [R11,R12,...,R1n,R21,R22,...,R2n,...,R m 1,R m 2,...,R m n], the code length n corresponds to the Inputdim of the bidirectional LSTM neural network, and m corresponds to the Timesteps of the bidirectional LSTM neural network, converting the received sequence into a two-dimensional tensor of m*n;

[0025] Input the m*n two-dimensional tensor in parallel to the bidirectional LSTM neural network;

[0026] According to the batchsize set by the bidirectional LSTM neural network parameters, all the two-dimensional tensors are converted into three-dimensional tensors of (batchsize, m, n);

[0027] A training codebook is constructed according to the three-dimensional tensor of (batchsize, m, n).

[0028] Furthermore, the selecting of the training signal-to-noise ratio specifically includes:

[0029] According to the received sequence data set, a signal-to-noise ratio data set is selected;

[0030] According to the optimal principle of the signal-to-noise ratio data set and the bit error rate curve, a training signal-to-noise ratio is selected.

[0031] On the other hand, based on the above-mentioned convolutional code decoding method based on bidirectional LSTM, the present invention provides a convolutional code encoding and decoding method based on bidirectional LSTM, the method comprising:

[0032] Establishing a cascade trained neural network, the cascade trained neural network including a transmitter, channel noise and a receiver;

[0033] The transmitter includes an LSTM encoder and a modulator, the LSTM encoder and the modulator are connected in sequence, the LSTM encoder adopts a bidirectional LSTM neural network for encoding, and the modulator is used for constellation mapping;

[0034] The receiver includes a bidirectional LSTM neural network decoder and a decision output constructed based on the above-mentioned bidirectional LSTM-based convolutional code decoding method, the bidirectional LSTM neural network decoder and the decision output are sequentially connected, and the decision output is used to classify the output of the bidirectional LSTM neural network decoder according to the decision threshold to decode the information bit;

[0035] Establishing a received source sequence data set, and constructing a cascade training codebook of the cascade trained neural network according to the received source sequence data set and the bidirectional LSTM neural network;

[0036] Selecting a cascade training signal-to-noise ratio, where the cascade training signal-to-noise ratio is a signal-to-noise ratio of a convolutional code output by the modulator;

[0037] Setting simulation parameters, and training the cascade trained neural network using the cascade training codebook and the cascade training signal-to-noise ratio;

[0038] Encoding and decoding are performed using a trained cascade of trained neural networks.

[0039] Furthermore, the LSTM encoder specifically includes: an input layer, a hidden neural network and an output layer;

[0040] The hidden neural network is composed of several bidirectional LSTM network layers, batch normalization BN layers and Drop Out layers, and is used to generate a time-correlated sequence through bidirectional LSTM neurons;

[0041] The input layer is used to enlarge the input codebook into a high-dimensional space;

[0042] The bidirectional LSTM network layer transforms the sequentially input convolutional code codewords into characteristic rules that can be simulated by the neural network by learning the correlation between the convolutional code input code sequences.

[0043] The batch normalization BN layer redistributes the output data of the neural network within a specified range without changing its distribution law through a normalization formula;

[0044] The Drop Out layer prevents overfitting of the network by removing neural network training units from the network with a certain probability during training;

[0045] The output layer is used to reduce high-dimensional information to low-dimensionality.

[0046] Furthermore, the modulator is a DNN fully connected layer network modulator, which maps the encoded information into a transmission sequence of corresponding code length and performs two-dimensional modulation;

[0047] The two-dimensional modulation specifically divides a symbol into two parts, a real part and an imaginary part, and transmits them simultaneously.

[0048] Further, the step of establishing the received source sequence data set and constructing a cascade training codebook of the cascade trained neural network according to the received source sequence data set and the bidirectional LSTM neural network specifically includes:

[0049] Set up a unidirectional queue of length L, L = M-1, M is the convolutional code constraint length, initialized to all 0;

[0050] The received source sequence is input into the queue in series according to each group of Timesteps. The queue state value at each bit input is the mapping output.

[0051] Construct a two-dimensional tensor of Timesteps*L, in which each row component is correlated with the first L row components and the last L row components;

[0052] According to the batchsize set by the neural network parameters, the two-dimensional tensor of Timesteps*L is converted into a three-dimensional tensor of (batchsize, Timesteps, L);

[0053] According to the three-dimensional tensor of (batchsize, Timesteps, L), a cascade training codebook is constructed.

[0054] In a third aspect, the present invention provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor runs the computer program stored in the memory, the steps of a convolutional code decoding method based on a bidirectional LSTM as described above are executed.

[0055] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of a convolutional code decoding method based on a bidirectional LSTM as described above are implemented.

[0056] Beneficial effects of the present invention:

[0057] First, because the neural network can obtain more features for convolutional codes with long code lengths, the present invention utilizes the advantages of the neural network and adopts a bidirectional LSTM neural network to solve the problem that the time complexity and space complexity of Viterbi decoding increase exponentially with the increase of code length and constraint degree.

[0058] Second, the neural network of the present invention adopts a bidirectional LSTM neural network. If other neural networks such as RNN networks are used, when the interval between the position to be predicted by the neural network and the associated information becomes large, the defects of the RNN network appear, which is the long-term dependency problem. When the length of the input information exceeds the memory depth, the gradient disappears during training. Therefore, LSTM is proposed to solve the above problem and is a special recurrent neural network.

[0059] 3. The communication system using deep learning is different from the traditional communication system that establishes modular mathematical models. It learns the weights from the training model to obtain the optimal algorithm. This method focuses on the overall optimal solution and can improve the overall performance. The traditional algorithm requires artificial mathematical methods to derive the best coding method under different channel conditions. When the convolutional code is too long, the calculation process is very complicated, so the advantages of deep learning training are highlighted.

[0060] Fourth, the present invention can encode and decode long code length and high-constraint convolutional codes, and the neural network itself is a "black box model" after the training is completed. When the outside world does not know the specific model parameters, its intermediate encoding output is unknown.

[0061] The present invention is applicable to end-to-end convolutional code encoding and decoding. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0063] Figure 1 This is the coding principle diagram of the traditional convolutional code;

[0064] Figure 2 This is the overall block diagram of the bidirectional LSTM convolutional code decoder;

[0065] Figure 3 This is the structure diagram of the neural network of the convolutional code decoder;

[0066] Figure 4 This is a schematic diagram of the construction method of the training set in language prediction;

[0067] Figure 5 A schematic diagram of a method for reconstructing a received sequence;

[0068] Figure 6 Schematic diagram of the changes of input tensors in the neural network;

[0069] Figure 7 Test comparison of training sets with different signal-to-noise ratios;

[0070] Figure 8 is the MSE error function image;

[0071] Fig. 9 is the Huber Loss error function image;

[0072] Fig.10 The overall scheme block diagram of the cascaded neural network of the transmitter and receiver;

[0073] Fig.11 The neural network structure diagram for the overall simulation of the transmitter and receiver;

[0074] Fig.12 A schematic diagram for reconstructing the temporal correlation of source information;

[0075] Fig.13 Neural network architecture with noise addition and power normalization;

[0076] Fig.14 Comparison of decoding performance between unidirectional and bidirectional LSTM and DNN fully connected networks;

[0077] Fig.15 Comparison of decoding performance of bidirectional LSTM networks with different code length convolutional codes under AWGN channel;

[0078] Fig.16 Comparison of decoding performance of bidirectional LSTM networks with different constraint lengths under AWGN channel;

[0079] Fig.17 The performance comparison of bidirectional LSTM network decoder under single-path Rayleigh channel and AWGN channel;

[0080] Fig.18 Comparison of bit error rate performance under different coding lengths and the same correlation length;

[0081] Fig.19 Comparison of the bit error rate performance between concatenated decoding and Viterbi decoding for different code lengths;

[0082] Fig. 20 Constellation diagram of the modulation output for neural network training. DETAILED DESCRIPTION

[0083] Embodiment 1, a convolutional code decoding method based on bidirectional LSTM, the method comprising:

[0084] Constructing a bidirectional LSTM neural network decoder, wherein the neural network decoder uses a bidirectional LSTM neural network for decoding;

[0085] Establishing a received sequence data set, and constructing a training codebook according to the received sequence data set and a bidirectional LSTM neural network;

[0086] Selecting a training signal-to-noise ratio, where the training signal-to-noise ratio is a signal-to-noise ratio of the received sequence;

[0087] Setting simulation parameters, and training the bidirectional LSTM neural network decoder using the training codebook and the training signal-to-noise ratio;

[0088] The trained bidirectional LSTM neural network decoder is used for decoding.

[0089] In this embodiment, if Figure 2 As shown in the figure, the bidirectional LSTM neural network decoder uses bidirectional LSTM (Bidirectional-LSTM) as the main structure of the neural network decoder. The binary random source sequence u with equal probability of 0 and 1 is generated by the convolutional code encoder based on the shift register to generate the (n, k, M) convolutional code encoding sequence s with code length n and constraint degree k. The encoding sequence is then mapped to the constellation diagram through the BPSK modulator and converted into symbol x, which enters the channel for transmission.

[0090] The transmitted signal in the channel is affected by the interference of Gaussian white noise channel (AWGN) or Rayleigh channel. The symbol received by the receiving end is y, which directly passes through the bidirectional LSTM convolutional code decoder to obtain the decoded prediction sequence u′ and complete the decoding.

[0091] It should be noted that in the step of setting simulation parameters and training the bidirectional LSTM neural network decoder using the training codebook and the training signal-to-noise ratio, since the output samples during training in this embodiment are the initial source sequences, the closer the output predicted by the neural network is to the training samples, the smaller the value of the loss function is. The mean square error MSE loss function is initially selected in this embodiment. Its mathematical expression is shown in formula (1), which represents the average value of the square of the distance between the network model prediction value and the true value of the sample. Its error value function graph is shown in Figure 8 shown.

[0092]

[0093] Among them, y i represents the target value, f(x i ) represents the predicted value, and m is the number of samples.

[0094] From the image, we can see that the MSE function is continuous and its first-order derivative is also continuous. When the gradient descent algorithm is used, the gradient changes continuously and its application range is very wide. However, due to the square, when y and f(x i) is greater than 1, the error will increase, and when the difference is less than 1, the error will decrease. Since the training samples use a 0dB noise set, there will be a lot of noise interference on some samples. Therefore, the sampling MSE loss function will cause the deviation of some sample points to increase, resulting in a decrease in the overall accuracy of the model.

[0095] This embodiment uses the smoothed mean absolute error Huber Loss, whose mathematical expression is formula (2). When δ=2, the image is as follows: Fig. 9 shown.

[0096]

[0097] Among them, δ is a hyperparameter used to control the gradient change of the Loss.

[0098] The use of smoothed mean absolute error Huber Loss can reduce the gradient during back propagation calculation when the training sample deviation decreases, which is beneficial to the further convergence of the neural network. When the training sample deviation is large, the convergence speed does not increase and the error is not amplified, effectively avoiding the negative impact of large deviations on the training of the neural network.

[0099] The neural network layer settings and other simulation parameters are shown in Table 1 and Table 2:

[0100] Table 1 LSTM convolutional code decoder and channel environment simulation parameter configuration

[0101]

[0102] Table 2 LSTM network model output dimensions

[0103]

[0104] Implementation method 2: This implementation method further limits the convolutional code decoding method based on bidirectional LSTM described in implementation method 1. In this implementation method, the construction of a bidirectional LSTM neural network decoder is further limited, specifically including:

[0105] The bidirectional LSTM neural network decoder includes an input layer, a hidden neural network and an output layer;

[0106] The hidden neural network is composed of several bidirectional LSTM network layers, batch normalization BN layers and Drop Out layers, and is used to extract the correlation between adjacent codewords from the received sequence;

[0107] The input layer is used to enlarge the input codebook into a high-dimensional space;

[0108] The bidirectional LSTM network layer transforms the sequentially input convolutional code codewords into characteristic rules that can be simulated by the neural network by learning the correlation between the convolutional code input code sequences.

[0109] The batch normalization BN layer redistributes the output data of the neural network within a specified range without changing its distribution law through a normalization formula;

[0110] The Drop Out layer prevents overfitting of the network by removing neural network training units from the network with a certain probability during training;

[0111] The output layer is used to reduce high-dimensional information to low-dimensionality.

[0112] In this embodiment, the bidirectional LSTM neural network decoder consists of an input layer, a bidirectional LSTM layer, a batch normalization BN layer (Batch Normalization), a Drop Out layer and an output layer. The specific structure diagram is as follows: Figure 3 shown.

[0113] The input layer and output layer in the figure are fully connected Dense layers. The input layer amplifies the input codebook into a high-dimensional space to facilitate the subsequent bidirectional LSTM network to find the features of the data. The output layer is to reduce the high-dimensional information to a low dimension to facilitate normalization to [0,1] for decision output.

[0114] The hidden neural network in the middle is composed of several layers of bidirectional LSTM network layers, batch normalization BN layers and Drop Out layers. The bidirectional LSTM network layer is the main component of the convolutional code decoder. It converts the sequentially input convolutional code codewords into feature rules that can be simulated by the neural network by learning the correlation between the front and back of the convolutional code input coding sequence, which is convenient for inputting the judgment output of the Dense layer; the BN layer is also called the batch normalization layer. Its function is to redistribute the output data of the neural network within a specified range without changing its distribution law through the normalization formula, thereby speeding up the training of the neural network; whether the DropOut layer is used depends on whether overfitting occurs during training. Overfitting means that when the neural network structure is too complex or the training samples are insufficient, the training accuracy is much greater than the test accuracy, that is, the neural network has learned a wrong mapping law. The Drop Out layer prevents the network from overfitting by removing the neural network training units from the network with a certain probability during training.

[0115] Implementation method three, this implementation method is a further limitation of the convolutional code decoding method based on bidirectional LSTM described in implementation method one. In this implementation method, the step of establishing a received sequence data set and constructing a training codebook according to the received sequence data set and the bidirectional LSTM neural network is further limited, specifically including:

[0116] According to the received sequence, the sequence of length n*m is intercepted and recorded as [R11,R12,...,R1n,R21,R22,...,R2n,...,R m 1,R m 2,...,R m n], the code length n corresponds to the Inputdim of the bidirectional LSTM neural network, and m corresponds to the Timesteps of the bidirectional LSTM neural network, converting the received sequence into a two-dimensional tensor of m*n;

[0117] Input the m*n two-dimensional tensor in parallel to the bidirectional LSTM neural network;

[0118] According to the batchsize set by the bidirectional LSTM neural network parameters, all the two-dimensional tensors are converted into three-dimensional tensors of (batchsize, m, n);

[0119] A training codebook is constructed according to the three-dimensional tensor of (batchsize, m, n).

[0120] In this embodiment, a method for constructing a training codebook for training a bidirectional LSTM neural network decoder is provided.

[0121] like Figure 4 As shown, the construction of the convolutional code training set is based on the contextual language prediction of LSTM.

[0122] like Figure 5 As shown, in this embodiment, the received sequence after adding the channel characteristics is composed of code blocks in the following manner.

[0123] Assume a (n, k, M) convolutional code, n is the code length, k is the information length, M is the code constraint, and the received sequence is serial data containing noise. Since the code length is n, this implementation can intercept a sequence of length n*m and record it as [R11, R12, ..., R1n, R21, R22, ..., R2n, ..., R m 1,R m 2,...,R mn], and then convert it into a parallel input code block, where the code length n corresponds to the Inputdim of the LSTM network, and m corresponds to the Timesteps of the Bi-LSTM network, that is, looking for the coding connection between adjacent code groups in the m groups of (n, k, M) convolutional code receiving codewords. As long as Timesteps>>M, that is, the time series length of the LSTM network is much larger than the constraint degree of the convolutional code, the Bi-LSTM can correctly predict the coding rule of the convolutional code.

[0124] Taking the (3,1,M) convolutional code as an example, the received sequence is serial data containing noise. Since the code length is 3, the truncated sequence of length 3*m is recorded as [R11,R12,R13,R21,R22,R23,...,R m 1,R m 2,R m 3], and then convert it into a parallel input code block, where the code length 3 corresponds to the Inputdim of the LSTM network, and m corresponds to the Timesteps of the LSTM network, that is, looking for the coding connection between adjacent code groups in the m groups of (3,1,M) convolutional code receiving codewords. As long as Timesteps>>M, that is, the time series length of the LSTM network is much larger than the constraint degree of the convolutional code, the LSTM can correctly predict the coding rule of the convolutional code.

[0125] After the received sequence is processed, it becomes a three-dimensional tensor. The first dimension is batchsize, which is not fixed and can be adjusted according to the training effect. The second dimension is Timesteps, which represents the correlation between adjacent codewords within the set time series length. The third dimension is Inputdim, which represents the number of features of the input code group. Before being magnified by the deep network, it is equal to the code length n. The dimensional changes of the tensor in the network are as follows: Figure 6 shown.

[0126] It should be noted that Figure 6 Just for the sake of visualization of the diagram, the tensor change process of a code block in a Batch is shown. In actual training, the entire Batch is usually input in parallel, so the efficiency of the neural network decoder is very impressive.

[0127] Implementation mode 4: This implementation mode further limits the convolutional code decoding method based on bidirectional LSTM described in Implementation mode 1. In this implementation mode, the step of selecting the training signal-to-noise ratio is further limited, specifically including:

[0128] According to the received sequence data set, a signal-to-noise ratio data set is selected;

[0129] According to the optimal principle of the signal-to-noise ratio data set and the bit error rate curve, a training signal-to-noise ratio is selected.

[0130] In this implementation, a method for selecting a suitable signal-to-noise ratio is proposed. The signal-to-noise ratio is used to train a bidirectional LSTM neural network decoder, that is, selecting a training signal-to-noise ratio.

[0131] The input of the training sample is a received sequence containing noise interference. In this implementation, a training set with a signal-to-noise ratio of 0 dB is selected. The signal-to-noise ratio selected in this implementation is the optimal training signal-to-noise ratio. The (5, 1, 9) convolutional code was tested under the same network model, the same optimization method, and the same number of training times using different signal-to-noise ratio data of {-5 to 10 dB}. Figure 7 Representative training results of -5dB, -2dB, 0dB, 5dB, and 10dB are given.

[0132] like Figure 7 As shown, if the signal-to-noise ratio of the training sample is too high or too low, it will affect the final decoding performance. When the signal-to-noise ratio is too low, such as the -5dB curve, the bit error rate performance is still very poor under high signal-to-noise ratio conditions, because the excessive noise makes it difficult for the neural network to accurately extract the features of the code; when the signal-to-noise ratio is too high, such as 5dB or 10dB, the decoding performance curve decreases very slowly, because the noise ratio in the sample is small, and the trained neural network has a weak ability to resist white noise. Therefore, the training set with a signal-to-noise ratio of 0dB selected by this implementation is the optimal signal-to-noise ratio. The model obtained has better anti-noise performance under low signal-to-noise ratios and can maintain good performance under high signal-to-noise ratios.

[0133] In this embodiment, 3.2×10 7 bits as the data volume of the training set. This data volume can well help the network find the features between the convolutional code words under the limited hardware and time constraints.

[0134] In this embodiment, 5.12×10 6 bits as the data volume of the test set, which allows the test curve to reach the 10 commonly used communication -5 ~10 -6 Bit error rate level.

[0135] Embodiment 5, based on the bidirectional LSTM-based convolutional code decoding method provided in embodiment 1, this embodiment provides a bidirectional LSTM-based convolutional code encoding and decoding method, the method comprising:

[0136] Establishing a cascade trained neural network, the cascade trained neural network including a transmitter, channel noise and a receiver;

[0137] The transmitter includes an LSTM encoder and a modulator, the LSTM encoder and the modulator are connected in sequence, the LSTM encoder adopts a bidirectional LSTM neural network for encoding, and the modulator is used for constellation mapping;

[0138] The receiver includes a bidirectional LSTM neural network decoder and a decision output based on the construction, the bidirectional LSTM neural network decoder and the decision output are sequentially connected, and the decision output is used to classify the output of the bidirectional LSTM neural network decoder according to the decision threshold and decode the information bit;

[0139] Establishing a received source sequence data set, and constructing a cascade training codebook of the cascade trained neural network according to the received source sequence data set and the bidirectional LSTM neural network;

[0140] Selecting a cascade training signal-to-noise ratio, where the cascade training signal-to-noise ratio is a signal-to-noise ratio of a convolutional code output by the modulator;

[0141] Setting simulation parameters, and training the cascade trained neural network using the cascade training codebook and the cascade training signal-to-noise ratio;

[0142] Encoding and decoding are performed using a trained cascade of trained neural networks.

[0143] In this embodiment, bidirectional LSTM is selected as the main structure of the neural network encoder and decoder. This structure enables the channel coding designed by the neural network to still have temporal correlation like the traditional convolutional code. The overall scheme block diagram of the structure is as follows: Fig.10 shown.

[0144] In this scheme, the transmitter, receiver and channel noise are trained and optimized as a whole neural network. After training, the neural network is split into the transmitter and receiver to work independently. The input of the neural network is no longer a binary random source sequence with probability of 0, 1, etc., but is first preprocessed by a mapping reconstructor. The processed data passes through the LSTM encoder to become a coded sequence, and then passes through a modulator of a DNN fully connected layer network to map the constellation diagram and enter the channel layer. The above is the overall process of the transmitter.

[0145] For the channel layer, it is a neural network layer during training. It can add noise with different signal-to-noise ratios to the output of the neural network in the previous layer to help the entire neural network complete anti-noise training. In actual use, it is a real physical channel.

[0146] After the channel layer is the receiver end, which includes a bidirectional LSTM neural network decoder constructed based on Implementation Method 1, and also includes a decision output, which can directly decode the received information sequence containing noise. It also uses a multi-layer LSTM network to find the time correlation between the received sequences, and then completes the decoding through the decision output.

[0147] During training, this implementation uses the Add layer to add a noise tensor with the same dimension as the DNN modulator output tensor to the signal tensor, representing the influence of additive Gaussian white noise, and inputs it to the output of the LSTM encoder and the DNN modulation layer as noise to train the network's anti-noise ability. The actual network structure is as follows: Fig.13 As shown. Fig.13 It can be seen that before adding Gaussian white noise, we need to normalize the power of the transmitted signal to ensure that the added noise power can correspond to signal-to-noise ratios of different sizes. The way of power normalization is to make the mean of the sum of the squares of the real and imaginary parts of each code block of the transmitted signal a certain value. In actual simulation, we can add a Lambda layer before the Add layer, write a function in the Lambda to remove the DC component of the transmitted signal and divide it by the standard deviation so that the sum of the squares of the real and imaginary parts is the set transmit power.

[0148] Embodiment 6: This embodiment further limits the convolutional code encoding and decoding method based on bidirectional LSTM described in Embodiment 5. In this embodiment, the LSTM encoder is further limited, specifically including:

[0149] The LSTM encoder specifically includes: an input layer, a hidden neural network and an output layer;

[0150] The hidden neural network is composed of several bidirectional LSTM network layers, batch normalization BN layers and Drop Out layers, and is used to generate a time-correlated sequence through bidirectional LSTM neurons;

[0151] The input layer is used to enlarge the input codebook into a high-dimensional space;

[0152] The bidirectional LSTM network layer transforms the sequentially input convolutional code codewords into characteristic rules that can be simulated by the neural network by learning the correlation between the convolutional code input code sequences.

[0153] The batch normalization BN layer redistributes the output data of the neural network within a specified range without changing its distribution law through a normalization formula;

[0154] The Drop Out layer prevents overfitting of the network by removing neural network training units from the network with a certain probability during training;

[0155] The output layer is used to reduce high-dimensional information to low-dimensionality.

[0156] In this implementation, the specific structure of the LSTM encoder is given, such as Fig.11 As shown in the figure, both the encoder and decoder adopt a multi-layer bidirectional LSTM and BN layer cascade network structure, and use bidirectional LSTM neurons to generate time-correlated sequences or extract the correlation between adjacent codewords in the received sequence.

[0157] Embodiment 7: This embodiment further limits the convolutional code encoding and decoding method based on bidirectional LSTM described in Embodiment 5. In this embodiment, the modulator is further limited, specifically including:

[0158] The modulator is a DNN fully connected layer network modulator, which maps the encoded information into a transmission sequence of corresponding code length and performs two-dimensional modulation;

[0159] The two-dimensional modulation specifically divides a symbol into two parts, a real part and an imaginary part, and transmits them simultaneously.

[0160] In this implementation, the specific structure of the modulator is given. The modulator part uses a multi-layer fully connected network DNN, which maps the encoded information into a transmission sequence of corresponding code length and modulates it. Since deep neural networks currently cannot have a good processing method for complex numbers, when modulating, if two-dimensional modulation is required, a symbol must be divided into two parts, the real part and the imaginary part, and transmitted simultaneously.

[0161] Embodiment 8. This embodiment further limits the convolutional code encoding and decoding method based on bidirectional LSTM described in embodiment 5. In this embodiment, the step of establishing the received source sequence sample set and constructing the cascade training codebook of the cascade trained neural network according to the received source sequence sample set and the bidirectional LSTM neural network is further limited, specifically including:

[0162] Set up a unidirectional queue of length L, L = M-1, M is the convolutional code constraint length, initialized to all 0;

[0163] The received source sequence is input into the queue in series according to each group of Timesteps. The queue state value at each bit input is the mapping output.

[0164] Construct a two-dimensional tensor of Timesteps*L, in which each row component is correlated with the first L row components and the last L row components;

[0165] According to the batchsize set by the neural network parameters, the two-dimensional tensor of Timesteps*L is converted into a three-dimensional tensor of (batchsize, Timesteps, L);

[0166] According to the three-dimensional tensor of (batchsize, Timesteps, L), a cascade training codebook is constructed.

[0167] Based on the overall framework of transmitter and receiver cascade simulation, the source 0 and 1 bit stream information cannot be directly input into the neural network for training, because the source information is completely random, and there is no correlation between its adjacent bits. Therefore, the LSTM neural network encoder cannot encode its time correlation. The trained neural network only classifies the two bits 0 and 1, and does not have any channel coding significance. In this embodiment, the source bit sequence is mapped and reconstructed before being input into the neural network to make it a codebook with correlation.

[0168] The encoder of the convolutional code inputs the 0 and 1 bit streams into it in time sequence through the cascaded shift registers. At each moment, the data in different shift registers are modulo-2 summed and output with fixed taps to generate time-correlated coded codewords. Therefore, the bit sequence input to the neural network can also be preprocessed to achieve the same effect as the convolutional code encoding. For example: when a (n, k, M) convolutional code is to be generated, in the traditional convolutional code encoding, M is the constraint length, and its value is the number of shift registers of the encoder m+1, then a queue of length m is required, and the random 0 and 1 bit sequences are interleaved for k bits (directly input sequentially when k is 1) and queued and dequeued from left to right, the original 0 and 1 bits can be mapped into different sequences with front-to-back correlation, and then input into the encoder network for encoding.

[0169] For example, if a source message is [1,0,0,1,1,0,1,1], and we want to use this neural network to generate a time-correlation code similar to a convolutional code with a coding constraint of 4, that is, m=3, such as Fig.12 As shown, only reconstruction is required.

[0170] like Fig.12 As shown in the figure, a queue of length 3 is constructed, and its initial state is set to 0. The source information is input from the left in sequence, and the information in the current queue is shifted to the right. The queue state corresponding to each moment can be obtained. These 8 state sequences containing previous and subsequent related information replace the original 0 and 1 bit sequences and are input into the LSTM neural network for training. Then, a convolutional code based on a neural network with a memory depth of 3 can be obtained.

[0171] Embodiment 9: The technical effect of the present invention is verified by a specific embodiment below: For a convolutional code decoding method based on bidirectional LSTM described in the present invention, the influence of different neural network types on convolutional code decoding is as follows:

[0172] like Fig.14 As shown in the figure, after fixing the training parameters of the neural network, the optimizer selection, the loss function selection and the activation function selection, after the same 30 epochs of training, the bit error rate performance curve shown in the figure is obtained. As can be seen from the figure, the performance of the (5,1,9) convolutional code decoder composed of the LSTM neural network is much better than the decoder composed of the DNN fully connected network. This is because the DNN fully connected network does not have the ability to extract time-related features, and the codewords of the (5,1,9) convolutional code have a strong correlation between the previous and next code groups. Therefore, the LSTM neural network, which also has time correlation, can perform decoding.

[0173] In addition, the performance of bidirectional LSTM is significantly better than that of unidirectional LSTM. -5 ~10 -6 The bit error rate range has an advantage of about 3dB, because the bidirectional LSTM has stronger time-correlation calculation than the unidirectional LSTM under the same training parameter amount. Therefore, although the use of the bidirectional LSTM structure increases the complexity of neural network training and prediction, it can have good performance benefits.

[0174] Embodiment 10: For a convolutional code decoding method based on bidirectional LSTM described in the present invention, the decoding performance of convolutional codes with different code lengths is compared, as follows:

[0175] like Fig.15 As shown in the figure, when the code length is short, the bit error rate performance of the bidirectional LSTM decoder is far worse than that of the traditional Viterbi decoding. For example, for the 2-1-9 convolutional code with the shortest code length, the bidirectional LSTM network did not accurately extract the corresponding decoding rules under the training parameters set in the experiment, resulting in the bit error rate curve not dropping rapidly when the signal-to-noise ratio increases. The reason may be that the short code length leads to a small number of features in the corresponding training unit, and the amount of data and training time required for the neural network to fully fit is much greater than the conditions set in the experiment. However, when the code length is greater than or equal to 4, the decoding performance of the bidirectional LSTM decoder in the signal-to-noise ratio area above 3dB can reach 10 -5The difference between the two-way LSTM decoder and the traditional Viterbi decoding is getting smaller and smaller, because for long convolutional codes, the neural network can obtain more features, which is more conducive to the neural network learning decoding methods. Of course, the traditional Viterbi decoding is a decoding method customized for a certain code type, and its ability to resist high noise is better than that of the neural network. It can be seen from the figure that the decoding performance of the bidirectional LSTM decoder in the low signal-to-noise ratio area of ​​0-3dB is quite different from that of the Viterbi decoding. Taking the (5,1,9) convolutional code as an example, in 10 -5 ~10 -6 In this bit error rate range, the difference between bidirectional LSTM and Viterbi decoding is about 1.7dB.

[0176] Embodiment 11, for a convolutional code decoding method based on bidirectional LSTM described in the present invention, the decoding performance of the same code length and different constraints is compared, as follows:

[0177] like Fig.16 As shown, when the convolutional code length is fixed and the constraint length changes, the performance of the convolutional code decoder based on the bidirectional LSTM network decreases slightly as the coding constraint decreases, but the change is not particularly drastic. This is because when the codebook is constructed, the method described in the present invention reorganizes the received sequence according to the code length, so the coding constraint is only implicit in the received sequence, which does not affect the structure and dimensional size changes of the entire network, and thus does not have an essential impact on the training of the neural network. In other words, as long as the code length can satisfy the neural network to effectively extract features between adjacent codewords, the impact of the constraint length on the decoding performance is much smaller than the change in code length.

[0178] In the twelfth embodiment, for the convolutional code decoding method based on bidirectional LSTM described in the present invention, the bit error rate performance under a single-path Rayleigh channel is analyzed, as follows.

[0179] like Fig.17 As shown in Figure 2, Rayleigh fading is also a common channel environment in wireless communications. The performance of the bidirectional LSTM convolutional code decoder under the Rayleigh fading channel is studied below. Taking the (5,1,9) convolutional code as an example, it is assumed that the channel environment is a Rayleigh fading channel with only a single path and no Doppler shift, and its channel gain is a complex Gaussian component.

[0180] The dotted line in the figure is the performance curve of bidirectional LSTM decoding and Viterbi decoding of (5,1,9) convolutional code under AWGN channel, while the solid line is the performance curve of the same code type under single-path Rayleigh channel, and the setting parameters of the neural network are consistent with those in AWGN. After comparison, it is found that: -5 ~10 -6In the bit error rate area, under the original AWGN channel, the bidirectional LSTM neural network is about 2dB worse than the traditional Viterbi decoding; when the channel becomes a more complex Rayleigh channel, the difference between the two drops to about 0.5dB. This also shows that the neural network can be regarded as a universal function approximator. When the channel conditions become complex, the traditional decoding method, such as reasoning through strict mathematical formulas, becomes very difficult, and the advantage of the neural network in easily approximating complex conditions is demonstrated.

[0181] Through the comparison of the implementation modes, it can be determined that the superiority of the method described in the present invention for the wireless channel neural network with more complex multipath transmission and frequency dispersion will become more prominent.

[0182] In the thirteenth embodiment, the complexity of the convolutional code decoding method based on bidirectional LSTM described in the present invention is analyzed as follows:

[0183] For Viterbi decoding, assuming the total information length is L, a (n, k, m) convolutional code is used, and the number of states is 2. km , do 2 at each moment km Gabi chooses 2 km The residual path of the state, the total amount of computation is L2 km Second addition and selection, L2 is also required km storage units. Therefore, its complexity is O(L2 km ), when the code length n and constraint length m are large, the amount of computation and storage required for Viterbi decoding increases linearly with the code length n, and the number of states and computation increases exponentially with the block size k and constraint length m. Therefore, for long code lengths and high constraints, that is, the coding constraint length N A When is very large, the complexity of traditional Viterbi decoding will become very large and its practical application value will become very low.

[0184] For the bidirectional LSTM network convolutional code decoder, its complexity mainly depends on the number of units required for matrix operations, and different types of neural network layers have different calculation methods.

[0185] 1. Fully connected layer, the number of operation units is shown by formula (3):

[0186] Param=(input_dims+1)×output_dims (3)

[0187] In the formula, Param is the number of computing units, 1 represents the bias of each neuron, and the number of neurons is equal to the output dimension.

[0188] 2. Bi-LSTM layer, the number of operation units is shown by formula (4):

[0189]

[0190] Where input_dims is the number of input dimensions, hidden_size is the LSTM cell state dimension, for unidirectional LSTM, the cell state dimension is equal to output_dims, and for bidirectional Bi-LSTM, output_dims is twice the cell state dimension. Adding 1 is the same as the fully connected layer, taking into account the bias at the output.

[0191] 3. BN layer (Batch Normalization) and DropOut layer, as auxiliary training network layers, do not participate in back propagation operations as training units, and have a small fixed size and can be ignored.

[0192] For the neural network decoder, each of the above Parma represents a multiplication, and because when constructing the codebook, it is only related to the code length of the convolutional code and has nothing to do with the constraint length of the convolutional code, when the convolutional code length n is much smaller than the cell dimension of the bidirectional LSTM layer (200 in this embodiment), and the constraint length m is much smaller than the neural network time series length Timesteps set when constructing the code block in the method described in the present invention, the number of operation units is mainly related to the dimension and number of the LSTM layer. In other words, the complexity change introduced by the change of the code length n is only reflected in the first layer of the neural network. Taking the simulation parameters of this embodiment as an example, the impact of the code length change on the amount of operation is only ΔParam=50*Δn, so its computational complexity is O(n), which is linearly related to the code length and has almost no effect on the overall amount of operation.

[0193] Table 3. Comparison of complexity between bidirectional LSTM decoder and Viterbi decoder

[0194]

[0195] In summary, the bidirectional LSTM neural network convolutional code decoder described in the present invention is much more compatible with long codes than the traditional Viterbi decoding. The longer the code length and the larger the constraint length, the more obvious the complexity advantage of the neural network decoder. Traditional Viterbi decoding often uses data stream input and has poor parallel capability. The neural network can process data in a highly parallel manner by adjusting the timesteps and batchsize. Therefore, in the case of large amounts of data, the neural network convolutional code decoder is more advantageous in terms of transmission rate.

[0196] Embodiment 14, for a convolutional code encoding and decoding method based on bidirectional LSTM according to the present invention, the bit error rates of different code lengths during encoding are analyzed, as follows:

[0197] like Fig.18 As shown in Figure 1, when encoding, a fixed correlation length is used, and only the code length is changed. The same neural network model and parameters are used for training, and the bit error rate performance is tested under the AWGN channel. The following results can be obtained: Fig.18 The bit error rate curve is shown.

[0198] As can be seen from the figure, for the neural network system of the transmitter and the receiver cascaded, the corresponding neural network decoding performance increases when the code length increases, which is consistent with the convolutional code decoder that uses only the bidirectional LSTM at the decoder end; in addition, for the bidirectional LSTM convolutional code decoder with the same code length and the same coding constraint, the neural network of the transmitter and the receiver cascaded described in the present invention simultaneously encodes and decodes information, and encoding and decoding information with the neural network uses the gradient descent algorithm of the neural network to reach the global optimal point, and therefore has obviously better bit error rate performance.

[0199] Embodiment 15, a convolutional code encoding and decoding method based on bidirectional LSTM according to the present invention is compared with traditional Viterbi decoding, as follows:

[0200] like Fig.19 As shown in the figure, keeping the length of the correlation sequence unchanged, the bit error rate performance curves of the neural network cascade training coding and decoding system with different coding lengths are compared with the traditional (5,1,9) convolutional code QPSK modulation and demodulation plus Viterbi decoding. It can be seen that Viterbi decoding, as the best decoding method for convolutional codes, has better bit error rate performance in the low signal-to-noise ratio area than the coding and decoding methods obtained by neural network training under the conditions of the same code length and constraint length. However, when the code length of the neural network increases, its decoding performance gradually improves and exceeds the traditional Viterbi decoding performance.

[0201] However, to achieve the same bit error rate performance, the convolutional code encoder and decoder based on the cascade training of the deep learning neural network transmitter and receiver need to use a longer code length, that is, lower spectrum efficiency. However, in some applications where the information rate is not high, the coding method based on neural network learning has its own advantages. For example, in military communication scenarios, the requirements for signal transmission rate and delay are not as strict as those for mobile communications, but the confidentiality and anti-interception requirements for information transmission are very high.

[0202] The convolutional code encoding and modulation method obtained by neural network training is similar to the traditional convolutional code encoding and QPSK modulation method in principle, but the output is no longer 0 or 1 level, but an irregular floating point number output by the neural network. Fig.19 The code length is 5, the correlation length is 9, and the two-dimensional modulation is taken as an example. The two-dimensional constellation diagram output by the modulator neural network is as follows Fig. 20shown.

[0203] from Fig. 20 It can be seen that although the output constellation points of the encoder are distributed on four diagonals similar to QPSK, the output of the neural network convolutional code encoder is no longer a bit sequence consisting of only 0 and 1, but a floating point sequence with multiple distributions. Therefore, the output constellation diagram is not a traditional linear two-dimensional modulation constellation diagram, and it is even more impossible to demodulate and restore the information using the traditional QPSK plus Viterbi decoding receiver. Therefore, the encoding and decoding method obtained by neural network training can be considered as a LPI (Low Probability Of Intercept) signal, that is, a low intercept probability signal. It does not need to reduce the transmission power to prevent the enemy from detecting the signal, but makes the enemy unable to recover and restore the signal even if it receives the signal in time, thereby achieving the purpose of anti-interception and security.

[0204] Embodiment 16: for a convolutional code encoding and decoding method based on bidirectional LSTM according to the present invention, the complexity is analyzed as follows:

[0205] For the traditional convolutional code encoding and decoding system, its complexity is mainly concentrated on the decoder side. The shift register used by the encoder to realize the rolling of the generator polynomial has negligible complexity. Therefore, it is consistent with the complexity analysis of the traditional Viterbi decoder side in a convolutional code decoding method based on bidirectional LSTM. When the total information length is L and the convolutional code (n, k, m) is used, its state number is 2 km , do 2 at each moment km Gabi chooses 2 km The residual path of the state, the total amount of computation is L2 km Second addition and selection, L2 is also required km The overall complexity of the decoder is approximately O(L2 km ).

[0206] For this convolutional code encoding and decoding system composed of a complete set of neural networks, its complexity needs to consider both the encoder end of the transmitter and the decoder end of the receiver. Assuming that the code generated by the neural network is also at a code rate of k / n, and the length of the related sequence is also m, it can be seen from the neural network structure and codebook construction method in Sections 1 and 2 that for the encoder end, the main factor affecting the amount of neural network operation parameters is the feature number of the input data, and the input codebook is constructed according to the length of the related sequence m, and one related length can only construct a related sequence of one information bit. For the encoding method with a code rate of k / n, there are k information bits, so its computational complexity at the encoder end is O(k·m). As for the decoder end, since the neural network constructed by the present invention is the same as the neural network constructed in a convolutional code decoding method based on bidirectional LSTM, its computational complexity is only related to the code length n of the code, and its expression is O(n), so the overall computational complexity of the entire neural network is O(k·m+n).

[0207] Table 4 Comparison of overall complexity of encoding and decoding

[0208]

[0209] As can be seen from Table 4, due to the serial input mode of traditional convolutional code encoding, the encoding and decoding complexity of processing information of the same length is linearly related to the sequence length, and exponentially related to the product of the encoded information bit and the constraint length; and the convolutional code encoding and decoding system composed of neural networks, due to the block structure and parallel processing structure of the neural network, its complexity is only related to the dimensional change of the neural network input end. For the neural network designed by the present invention, its computational complexity is only linearly related to the product of the information bit and the constraint length and the code length. When the most common 1 / n coding efficiency is adopted, the computational complexity is only linearly related to the sum of the constraint length and the code length. Therefore, for big data processing, long code length, high constraint channel encoding and decoding systems, neural networks have considerable advantages in computational complexity compared to traditional convolutional code encoding and decoding systems.

[0210] In summary, the neural network system designed by the present invention, which utilizes the overall cascade of the transmitter and the receiver, performs convolutional code encoding and decoding on the source sequence. Compared with the convolutional code decoder using only the neural network decoding, it has certain bit error rate performance advantages under the conditions of long code length and high constraint. Although there is a slight gap in bit error rate performance compared with the traditional Viterbi decoding method, it has its own advantages in computational complexity. At the same time, since the neural network encoding and decoding are used as a whole, this is a new convolutional code encoding and decoding method, which has greatly improved anti-interception and security compared to traditional communication systems.

Claims

1. A convolutional code decoding method based on bidirectional LSTM, characterized in that: The method comprises: Constructing a bidirectional LSTM neural network decoder, wherein the neural network decoder uses a bidirectional LSTM neural network for decoding; Establishing a received sequence data set, and constructing a training codebook according to the received sequence data set and a bidirectional LSTM neural network; Selecting a training signal-to-noise ratio, where the training signal-to-noise ratio is a signal-to-noise ratio of the received sequence; Setting simulation parameters, and training the bidirectional LSTM neural network decoder using the training codebook and the training signal-to-noise ratio; Decoding is performed using the trained bidirectional LSTM neural network decoder; The bidirectional LSTM neural network decoder is constructed, specifically comprising: the bidirectional LSTM neural network decoder comprises an input layer, a hidden neural network and an output layer; The hidden neural network is composed of several bidirectional LSTM network layers, batch normalization BN layers and Drop Out layers, and is used to extract the correlation between adjacent codewords in the received sequence; The input layer is used to enlarge the input codebook into a high-dimensional space; The bidirectional LSTM network layer transforms the sequentially input convolutional code codewords into characteristic rules that can be simulated by the neural network by learning the correlation between the convolutional code input code sequences. The batch normalization BN layer redistributes the output data of the neural network within a specified range without changing its distribution law through a normalization formula; The Drop Out layer prevents overfitting of the network by removing neural network training units from the network with a certain probability during training; The output layer is used to reduce high-dimensional information to low-dimensional; The step of establishing a received sequence data set and constructing a training codebook according to the received sequence data set and a bidirectional LSTM neural network specifically includes: According to the received sequence, the sequence of length n*m is intercepted and recorded as [R11,R12,...,R1n,R21,R22,...,R2n,...,R m 1,R m 2,...,R m n], the code length n corresponds to the Inputdim of the bidirectional LSTM neural network, and m corresponds to the Timesteps of the bidirectional LSTM neural network, converting the received sequence into a two-dimensional tensor of m*n; Input the m*n two-dimensional tensor in parallel to the bidirectional LSTM neural network; According to the batchsize set by the bidirectional LSTM neural network parameters, all the two-dimensional tensors are converted into three-dimensional tensors of (batchsize, m, n); Construct a training codebook according to the three-dimensional tensor of (batchsize, m, n); The original information sequence u is passed through a convolutional code encoder to generate a coding sequence s, which is then mapped to a constellation diagram through a BPSK modulator and converted into a symbol x, which enters the channel for transmission. The signal transmitted in the channel is affected by interference, and the symbol received by the receiver is y. After passing through a bidirectional LSTM neural network decoder, the decoded predicted sequence u′ is obtained, completing the decoding.

2. A convolutional code decoding method based on bidirectional LSTM according to claim 1, characterized in that: The selecting of the training signal-to-noise ratio specifically includes: According to the received sequence data set, a signal-to-noise ratio data set is selected; According to the optimal principle of the signal-to-noise ratio data set and the bit error rate curve, a training signal-to-noise ratio is selected.

3. A convolutional code encoding and decoding method based on bidirectional LSTM, characterized in that: The method comprises: Establishing a cascade trained neural network, the cascade trained neural network including a transmitter, channel noise and a receiver; The transmitter includes an LSTM encoder and a modulator, the LSTM encoder and the modulator are connected in sequence, the LSTM encoder adopts a bidirectional LSTM neural network for encoding, and the modulator is used for constellation mapping; The receiver includes a bidirectional LSTM neural network decoder and a decision output constructed based on claim 1, wherein the bidirectional LSTM neural network decoder and the decision output are sequentially connected, and the decision output is used to classify the output of the bidirectional LSTM neural network decoder according to a decision threshold and decode information bits; Establishing a received source sequence data set, and constructing a cascade training codebook of the cascade trained neural network according to the received source sequence data set and the bidirectional LSTM neural network; Selecting a cascade training signal-to-noise ratio, where the cascade training signal-to-noise ratio is a signal-to-noise ratio of a convolutional code output by the modulator; Setting simulation parameters, and training the cascade trained neural network using the cascade training codebook and the cascade training signal-to-noise ratio; Encoding and decoding are performed using a trained cascade of trained neural networks.

4. The convolutional code encoding and decoding method based on bidirectional LSTM according to claim 3, characterized in that: The LSTM encoder specifically includes: an input layer, a hidden neural network and an output layer; The hidden neural network is composed of several bidirectional LSTM network layers, batch normalization BN layers and Drop Out layers, and is used to generate a time-correlated sequence through bidirectional LSTM neurons; The input layer is used to enlarge the input codebook into a high-dimensional space; The bidirectional LSTM network layer transforms the sequentially input convolutional code codewords into characteristic rules that can be simulated by the neural network by learning the correlation between the convolutional code input code sequences. The batch normalization BN layer redistributes the output data of the neural network within a specified range without changing its distribution law through a normalization formula; The Drop Out layer prevents overfitting of the network by removing neural network training units from the network with a certain probability during training; The output layer is used to reduce high-dimensional information to low-dimensionality.

5. The convolutional code encoding and decoding method based on bidirectional LSTM according to claim 3, characterized in that: The modulator is a DNN fully connected layer network modulator, which maps the encoded information into a transmission sequence of corresponding code length and performs two-dimensional modulation; The two-dimensional modulation specifically divides a symbol into two parts, a real part and an imaginary part, and transmits them simultaneously.

6. A convolutional code encoding and decoding method based on bidirectional LSTM according to claim 3, characterized in that: The step of establishing the received source sequence data set and constructing the cascade training codebook of the cascade trained neural network according to the received source sequence data set and the bidirectional LSTM neural network specifically includes: Set up a unidirectional queue of length L, L = M-1, M is the convolutional code constraint length, initialized to all 0; The received source sequence is input into the queue in series according to each group of Timesteps. The queue state value at each bit input is the mapping output. Construct a two-dimensional tensor of Timesteps*L, in which each row component is correlated with the first L row components and the last L row components; According to the batchsize set by the neural network parameters, the two-dimensional tensor of Timesteps*L is converted into a three-dimensional tensor of (batchsize, Timesteps, L); According to the three-dimensional tensor of (batchsize, Timesteps, L), a cascade training codebook is constructed.

7. A computer device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor runs the computer program stored in the memory, the steps of the method according to any one of claims 1 to 2 are performed.

8. A computer-readable storage medium having a computer program stored thereon, 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 2 are implemented.

Citation Information

Patent Citations

  • A multi-size input HAR algorithm based on an improved LSTM-CNN

    CN109670548A

  • Recurrent neural network-based remote sensing monitoring method and device for ground surface abnormal phenomenons

    CN110991625A

  • Return-to-zero convolutional code decoding method and system based on convolutional neural network

    CN112953565A

  • Joint coding and decoding method and device for semantic information source channel of text

    CN113271110A

  • Pre-coding and decoding polar codes using local feedback

    US20200177211A1