Convolutional coding method based on neural network

Through the convolutional coding method based on neural networks, the source data is divided into blocks and convolutionally encoded, which solves the problem of high encoding and decoding computational costs in one-way transmission and improves the reliability of data transmission and computational efficiency.

CN118740174APending Publication Date: 2024-10-01NANTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410735023.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing convolutional coding technology has problems such as large amount of data sent and high encoding and decoding computational costs in one-way transmission scenarios, which affects the reliability of data transmission.

Method used

Design a convolutional coding method based on neural networks, by dividing the source data into parallel block data, and using three-layer and two-layer neural networks to perform convolutional coding calculations, combined with convolutional neural networks to perform convolutional coding one by one, Reduce encoding and decoding computational costs.

Benefits of technology

It achieves the reliability of data transmission, significantly reduces encoding and decoding calculation costs, improves encoding efficiency, and is suitable for data transmission in one-way transmission scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740174A_ABST
    Figure CN118740174A_ABST
Patent Text Reader

Abstract

The invention discloses a convolutional coding method based on a neural network, and provides a neural network model using machine learning and a convolutional neural network model using deep learning by using the blocking characteristic of a linear block code and the characteristic of correlation between doping redundancy of convolutional coding and other groups in a mixed manner. And carrying out block full convolution coding on the data. By using the neural network, the data in the block data can be subjected to convolutional coding with any number of data packets; by using the convolutional neural network, the data in the block data can be subjected to hybrid convolutional coding with any number of data and any number of bits after the data packet is given, and a plurality of coding schemes are adopted to ensure reliable delivery of the data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of convolutional coding, and in particular to a convolutional coding method based on a neural network. Background Art

[0002] Ensuring reliable data delivery is an important indicator of data communication. Reliable delivery means that the receiver receives the original data sent by the sender completely and accurately. When the receiver receives erroneous data, it is necessary to repair the data based on error detection and correction codes. When the receiver fails to repair or fails to receive the information, it is necessary to request the sender to resend the data based on request for retransmission (ARQ).

[0003] In the scenario of one-way transmission, since it is inconvenient to retransmit, this application scenario requires the reliability of one-way transmission. The forward error correction technology in one-way transmission technology is widely used in the communication process because of its characteristic of ensuring data reliability without retransmission. In the existing forward error correction technology, there are problems such as large amount of data sent and high encoding and decoding calculation cost. Based on the one-way transmission technology, the present invention designs a data encoding and decoding method based on block coding of linear block codes, stream coding of convolutional error correction codes, and block convolution coding based on block convolution, which realizes the reliability of data transmission while reducing the encoding and decoding calculation cost. Summary of the invention

[0004] The purpose of the present invention is to provide a convolutional coding method based on a neural network, propose a convolutional coding scheme based on a neural network, and solve the problem of high encoding and decoding calculation cost of existing convolutional coding technology.

[0005] To achieve the above functions, the present invention designs a convolutional coding method based on a neural network. For source data, the following steps S1 to S5 are performed, three coding schemes are used to encode the source data, and decoding is completed accordingly:

[0006] Step S1: taking a three-channel image as source data, dividing the source data into parallel block data;

[0007] Step S2: After performing parallel / serial conversion on the parallel block data, the data is input into a three-layer neural network including an input layer, a hidden layer, and an output layer for convolutional coding calculation to obtain a convolved coding block, which is then converted into a parallel coding block after serial / parallel conversion;

[0008] Step S3: After performing parallel / serial conversion on the parallel block data, the data is input into a two-layer neural network including an input layer and an output layer for convolutional coding calculation to obtain a convolved coding block, which is then converted into a parallel coding block after serial / parallel conversion;

[0009] Step S4: inputting the parallel block data into the convolutional neural network. Different from the block data processing process described in step S2 and step S3, the block data input into the convolutional neural network is not subjected to parallel / serial conversion. The convolutional neural network performs convolution encoding on each block data one by one and outputs the convolved encoded block.

[0010] Step S5: Decode the coding blocks output by the neural network and the convolutional neural network respectively to obtain source data.

[0011] Beneficial effects: Compared with the prior art, the present invention designs a convolutional coding method based on a neural network, combining multiple coding schemes, wherein the coding scheme based on the neural network enables the data in the block data to be convolutionally encoded with any number of data packets; the coding scheme based on the convolutional neural network enables the data in the block data to be mixed with any number and any number of bits after the data packet for convolutional coding; the method designed by the present invention realizes the reliability of data transmission while reducing the encoding and decoding calculation cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 is a schematic diagram of using convolutional coding for communication transmission according to an embodiment of the present invention;

[0013] Figure 2 is a schematic diagram of a traditional convolutional coding method provided according to an embodiment of the present invention;

[0014] Figure 3 is a flowchart of a convolutional coding method based on a neural network provided according to an embodiment of the present invention;

[0015] Figure 4 is a schematic diagram of a neural network model used in a convolutional coding scheme based on a neural network provided in an embodiment of the present invention;

[0016] Figure 5 This is a speed comparison chart of 100 experiments of the traditional convolutional coding scheme and the neural network coding scheme provided by an embodiment of the present invention on the same source data;

[0017] Figure 6 Schematic diagram of a convolutional neural model used in a convolutional coding scheme based on a convolutional neural network provided according to an embodiment of the present invention;

[0018] Figure 7 This is a graph of the loss and RMSE convergence after the model is trained 500 times for encoding and decoding a picture using a convolutional neural network according to an embodiment of the present invention. DETAILED DESCRIPTION

[0019] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.

[0020] A convolutional coding method based on a neural network provided by an embodiment of the present invention uses a mixed use of the block characteristics of linear block codes and the mixed redundancy and source data correlation characteristics of convolutional codes: 1. A neural network can be used to perform convolutional coding by combining multiple weight matrices and activation functions into a multi-layer network; 2. A convolutional neural network is used to perform convolutional coding on block data using a sliding coding window.

[0021] like Figure 1 The figure shows the basic process of data transmission, and the method designed by the present invention is applied to the encoding link before the data packet is sent by the sending end, and the decoding link after the receiving end receives the data packet. Figure 2 The figure shows the classic convolutional coding process. After the original data passes through the parallel / serial converter, it is convolutionally encoded by the convolution encoder to form an encoded data stream. After passing through the serial / parallel converter, the data stream is packaged into data packets for output.

[0022] Reference Figure 3 , for the source data, execute the following steps S1 to S5, use three encoding schemes to encode the source data, and complete the decoding accordingly:

[0023] Step S1: taking a three-channel image as source data, dividing the source data into parallel block data;

[0024] Step S2: After performing parallel / serial conversion on the parallel block data, the data is input into a three-layer neural network including an input layer, a hidden layer, and an output layer for convolutional coding calculation to obtain a convolved coding block, which is then converted into a parallel coding block after serial / parallel conversion;

[0025] like Figure 4 As shown in the figure, the data is divided into blocks and each block is convolutionally encoded. Since the operation is performed on the entire data block, the reliability of the data needs to be guaranteed as much as possible, that is, the data of the entire block needs to be completely restored. In stream coding based on convolutional codes, the current output is not only related to the current input, but also to the previous k input data of the encoder. Therefore, a block-based full convolutional coding scheme based on a neural network is proposed, as shown in Figure 4As shown in the figure, the coded data is used as the input of the neural network, and the output result is obtained after the hidden layer calculation. The output result is the coded data. The block coding is performed by using the neural network method. The weight matrix w and the activation function b in the neural network are operated with the input matrix to complete the convolution coding. Each output data is related to each data in the block. In fact, it is a block full convolution coding. The advantages of this coding scheme are: since the constraint length is the number of data in the block, it has strong data protection capabilities; the weight matrix w and the activation function b in the neural network can be adjusted to change the convolution calculation method.

[0026] After the block data is input into the input layer of the three-layer neural network in step S2, the block data is multiplied by the weight matrix A between the input layer and the hidden layer, and enters the hidden layer after the activation function between the input layer and the hidden layer. The processed block data is multiplied by the weight matrix B between the hidden layer and the output layer, and then after the activation function between the hidden layer and the output layer, it is output through the output layer to form a coding block. The weight matrix A enables the processed hidden layer data to be convolutionally encoded with any source data, and the weight matrix B performs convolution encoding on the data to be encoded. During the encoding process, there is a coding matrix AB=C, and the coding matrix is ​​reversible.

[0027] The weight matrix A between the input layer and the hidden layer is in the form of [E, E], and the number of neurons in the hidden layer is twice the number of neurons in the input layer; the weight matrix B between the hidden layer and the output layer is in the form of upper E and lower W, and the number of neurons in the output layer is 1 / 2 of the number of neurons in the hidden layer, where E is the unit matrix and W is an all-1 matrix.

[0028] Step S3: After performing parallel / serial conversion on the parallel block data, the data is input into a two-layer neural network including an input layer and an output layer for convolutional coding calculation to obtain a convolved coding block, which is then converted into a parallel coding block after serial / parallel conversion;

[0029] After the block data is input into the input layer of the two-layer neural network in step S3, the block data passes through the weight matrix A1 between the input layer and the output, the activation function, and is output through the output layer to form a coding block; wherein the weight matrix A1 between the input layer and the output has a shape of (m*x), m is the number of neurons in the input layer, x is the number of neurons in the output layer, and x is generally 1. Assume that a string of data after parallel / serial conversion is numbered 1 to n, and the data encoded at the i-th moment is numbered i to i+m.

[0030] Due to the characteristics of the encoding and decoding tasks, the activation function described in step S2 and step S3 adopts the RELU function:

[0031]

[0032] In the formula, x represents the input data and f(x) represents the RELU function.

[0033] Reference Figure 5 , Figure 5 In order to compare the speed of 100 experiments using the traditional convolutional coding scheme and the neural network coding scheme for the same source data, the results are presented in a box plot. The comparison shows that in the 100 experiments, the encoding speed of the neural network coding scheme is better than the traditional convolutional coding scheme, and the improvement of coding efficiency is quite obvious.

[0034] Step S4: Input the parallel block data into the convolutional neural network, perform convolution encoding on each block data one by one, and output the convolved encoding block; different from the traditional convolutional encoding and the above-mentioned convolution method based on the neural network model, which requires parallel / serial conversion before convolution encoding, the convolutional coding scheme based on the convolutional neural network directly performs convolution encoding on the data block without parallel / serial conversion.

[0035] The encoding method of the convolutional neural network will lose the characteristics of the source data, but the amount of encoded data that needs to be transmitted will be reduced, and it is suitable for transmission environments that do not require high data integrity. The convolutional neural network described in step S4 generates a sliding convolutional coding matrix on the block data of size m*n. The convolutional coding matrix is ​​a square matrix of a*a, where m and n are the length and width of the block data respectively, and m and n are any values ​​greater than a, and a is any integer value greater than 2; the sliding coding matrix multiplies the block data one by one to obtain the convolved coding block.

[0036] like Figure 6 As shown, when performing block stream coding, consider using a convolutional neural network to perform step-by-step operations on the block data to obtain the coding information. When using a convolutional neural network for stream coding, the output at a certain moment is related to the first k data of the input block data at that moment, and is also related to the first k data of the next k-1 block data, where k is the width of the coding window. However, using a convolutional neural network for stream coding will compress the data, and will show disadvantages when encoding some special data. When convolution encoding is performed on an image, the output information will lose some image features relative to the input data. Therefore, this is not a universal coding scheme. Encoding image information itself is a block convolutional coding task. A picture can be divided into 3 data blocks of the same size according to the channel and convolutionally encoded separately. As shown Figure 7 , which shows the convergence process of loss and RMSE after 500 trainings of the convolutional neural network. It can be clearly seen that the loss of the convolutional neural network shows a convergence trend infinitely close to 0 during the training process, and the convergence curve of RMSE is also in line with expectations.

[0037] Step S5: Decode the coding blocks output by the neural network and the convolutional neural network respectively to obtain source data.

[0038] In step S5, a decoding neural network is used to decode the coding block output by the three-layer neural network;

[0039] In the decoding process, the equality of the hidden layer data to be processed is not required. The encoding matrix AB=C is inverted and split into two weight matrices A with the same shape. * , B * , where A * is the weight matrix between the input layer and the hidden layer of the decoding neural network, B * is the weight matrix between the hidden layer and the output layer of the decoding neural network; the data to be decoded enters the input layer of the decoding neural network, and the weight matrix A between the input layer and the hidden layer * After multiplication, it enters the hidden layer through the activation function and then merges with the weight matrix B between the hidden layer and the output layer. * After multiplication, it is decoded into the source data through the activation function and the output layer.

[0040] For the encoding matrix AB=C, by -1 Split into two weight matrices with the same shape as A and B to ensure the reversibility of the encoding matrix AB = C:

[0041] For the encoding matrix AB=C, both sides are multiplied by C on the left -1 , we get (AB)·C -1 =C·C -1 , according to the matrix multiplication associative law, it can be reorganized into: (C -1 A) B = I, where I is the identity matrix;

[0042] The weight matrix B of the decoding neural network * , A * Satisfies: The weight matrix A between the input layer and the hidden layer * is the left inverse of B, and the weight matrix B between the hidden layer and the output layer * Meet A.C. -1 .

[0043] In step S5, the coding block output by the two-layer neural network at time i is multiplied by the inverse matrix of A1, and the first element in the obtained matrix is ​​the decoded source data.

[0044] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in this field without departing from the purpose of the present invention.

Claims

1. A convolutional coding method based on a neural network, characterized in that: For the source data, the following steps S1 to S5 are executed, three encoding schemes are used to encode the source data, and decoding is completed accordingly: Step S1: taking a three-channel image as source data, dividing the source data into parallel block data; Step S2: After performing parallel / serial conversion on the parallel block data, the data is input into a three-layer neural network including an input layer, a hidden layer, and an output layer for convolutional coding calculation to obtain a convolved coding block, which is then converted into a parallel coding block after serial / parallel conversion; Step S3: After performing parallel / serial conversion on the parallel block data, the data is input into a two-layer neural network including an input layer and an output layer for convolutional coding calculation to obtain a convolved coding block, which is then converted into a parallel coding block after serial / parallel conversion; Step S4: inputting the parallel block data into the convolutional neural network. Different from the block data processing process described in step S2 and step S3, the block data input into the convolutional neural network is not subjected to parallel / serial conversion. The convolutional neural network performs convolution encoding on each block data one by one and outputs the convolved encoded block. Step S5: Decode the coding blocks output by the neural network and the convolutional neural network respectively to obtain source data.

2. A convolutional coding method based on a neural network according to claim 1, characterized in that: After the block data in step S2 is input into the input layer of the three-layer neural network, the block data is multiplied by the weight matrix A between the input layer and the hidden layer, and enters the hidden layer after the activation function between the input layer and the hidden layer. The processed block data is multiplied by the weight matrix B between the hidden layer and the output layer, and then after the activation function between the hidden layer and the output layer, it is output through the output layer to form a coding block. During the coding process, the coding matrix AB=C, and the coding matrix is ​​reversible.

3. A convolutional coding method based on a neural network according to claim 2, characterized in that: The weight matrix A between the input layer and the hidden layer is in the form of [E, E], and the number of neurons in the hidden layer is twice the number of neurons in the input layer; the weight matrix B between the hidden layer and the output layer is in the form of upper E and lower W, and the number of neurons in the output layer is 1 / 2 of the number of neurons in the hidden layer, where E is the unit matrix and W is an all-1 matrix.

4. A convolutional coding method based on a neural network according to claim 1, characterized in that: After the block data is input into the input layer of the two-layer neural network in step S3, the block data passes through the weight matrix A1 between the input layer and the output and the activation function, and is output through the output layer to form a coding block; wherein the weight matrix A1 between the input layer and the output has a shape of (m*x), m is the number of neurons in the input layer, and x is the number of neurons in the output layer.

5. A convolutional coding method based on a neural network according to claim 2 or 4, characterized in that: The activation function adopts the RELU function: In the formula, x represents the input data and f(x) represents the RELU function.

6. A convolutional coding method based on a neural network according to claim 1, characterized in that: The convolutional neural network described in step S4 generates a sliding convolutional coding matrix on the block data of size m*n. The convolutional coding matrix is ​​a square matrix of a*a, where m and n are the length and width of the block data respectively. The sliding coding matrix multiplies the block data one by one to obtain the convolved coding block.

7. A convolutional coding method based on a neural network according to claim 1, characterized in that: The output of the convolutional neural network described in step S4 at a certain moment is related to the first k data packets of the input block data at that moment, and is also related to the first k data of the next k-1 data packets, where k is the width of the encoding window.

8. A convolutional coding method based on a neural network according to claim 2, characterized in that: In step S5, a decoding neural network is used to decode the coding block output by the three-layer neural network; During the decoding process, the encoding matrix AB=C is inversely calculated and split into two weight matrices A of the same shape * , B * , where A * is the weight matrix between the input layer and the hidden layer of the decoding neural network, B * is the weight matrix between the hidden layer and the output layer of the decoding neural network; the data to be decoded enters the input layer of the decoding neural network, and the weight matrix A between the input layer and the hidden layer * After multiplication, it enters the hidden layer through the activation function and then merges with the weight matrix B between the hidden layer and the output layer. * After multiplication, it is decoded into the source data through the activation function and the output layer.

9. A convolutional coding method based on a neural network according to claim 8, characterized in that: For the encoding matrix AB=C, by -1 Split into two weight matrices with the same shape as A and B to ensure the reversibility of the encoding matrix AB = C: For the encoding matrix AB=C, both sides are multiplied by C on the left -1 , we get (AB)·C -1 =C·C -1 , according to the associative law of matrix multiplication, it can be reorganized into: (C -1 A) B = I, where I is the identity matrix; The weight matrix B of the decoding neural network * , A * Satisfies: The weight matrix A between the input layer and the hidden layer * is the left inverse of B, and the weight matrix B between the hidden layer and the output layer * Meet A.C. -1 .

10. A convolutional coding method based on a neural network according to claim 4, characterized in that: In step S5, the coding block output by the two-layer neural network at time i is multiplied by the inverse matrix of A1, and the first element in the obtained matrix is ​​the decoded source data.