Implementation method of information supplement semantic communication system based on knowledge graph

By supplementing the semantic communication system with the information of the knowledge graph, using named entity recognition and knowledge graph database error correction technology, it solves the information transmission accuracy problem of the traditional model under low signal-to-noise ratio and high channel error rate, and achieves higher Luxuriousness performance and resource saving.

CN114461816BActive Publication Date: 2024-10-29NANJING UNIV OF POSTS & TELECOMM
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210097987.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-27
Publication Date
2024-10-29
Estimated Expiration
2042-01-27

AI Technical Summary

Technical Problem

In a low signal-to-noise ratio environment, the traditional deep learning-based semantic communication model performs poorly in information transmission accuracy, and the traditional communication model is difficult to effectively handle when spectrum resources are limited and the channel error rate is high.

Method used

An information supplement semantic communication system based on knowledge graph is adopted to reduce the amount of transmitted data and improve robustness through named entity recognition, similarity comparison and error correction of knowledge graph database, knowledge related information supplement and pre-trained T5 model generation technology.

Benefits of technology

In low signal-to-noise ratio environments, the accuracy and robustness of information transmission are significantly improved, the amount of transmitted data is reduced, and high information recovery effects are maintained under high channel error rates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114461816B_ABST
    Figure CN114461816B_ABST
Patent Text Reader

Abstract

The present invention provides an implementation method of an information supplement semantic communication system based on a knowledge graph. Compared with the traditional communication signal transmission system, the system innovatively uses the named entity recognition technology based on the BERT model, the knowledge association technology based on the knowledge graph and the knowledge graph text generation technology at the receiving end to expand and complete a small amount of received information, so that the receiving end user can obtain the complete information that the sender wants to express, thereby significantly reducing the amount of communication transmission data; the system innovatively uses the character-based cosine similarity error correction technology to solve the entity errors caused by the communication transmission process and the named entity recognition process, significantly improving the information transmission accuracy of the system under higher channel error probability conditions, and also making the system more robust.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method for realizing an information supplement semantic communication system based on a knowledge graph, and belongs to the technical field of communications. Background Art

[0002] In recent years, with the rapid increase in people's demand for intelligent wireless communications, various emerging intelligent services based on wireless communication technology, such as industrial Internet, intelligent connected vehicles, remote medical care / surgery, virtual reality and holographic projection technology, have emerged one after another. These emerging services no longer rely solely on high-speed data transmission, but gradually put forward more requirements on network intelligence and service diversity. In the future 6G era, as the system transmission channel capacity gradually approaches the Shannon limit, a communication method that breaks the original information transmission limit is one of the main directions of exploration in the current communication field.

[0003] In the past few decades, communication has mainly focused on how to accurately and efficiently transmit symbols (measured in bits) from the transmitter to the receiver. In such systems, the bit error rate (BER) or symbol error rate (SER) is usually used as a performance indicator. With the development of the first generation of communication (1G) to the fifth generation of communication (5G), the transmission rate achieved has increased by tens of thousands of times, and the system capacity is gradually approaching the Shannon limit. With the emergence of a variety of new applications, such as autonomous transportation, consumer robots, environmental monitoring, and remote health. The interconnection of these applications will generate astonishing data in the order of zeta bytes. These applications need to support a large number of connections on limited spectrum resources while requiring low latency, which poses a challenge to traditional source channel coding. Semantic communication can process data in the semantic domain, extract the meaning of the data, filter out useless, irrelevant, and unimportant information, and further compress the data while retaining the meaning. In addition, semantic communication has strong robustness in harsh channel environments, that is, low signal-to-noise ratio (SNR) areas, and is suitable for applications requiring high reliability.

[0004] Semantic communication is a new communication architecture. By integrating users' demand for information and semantics into the communication process, it is expected to greatly improve communication efficiency and user experience quality. It will also fundamentally solve the problems of cross-system, cross-protocol, cross-network, and cross-human-machine incompatibility and difficulty in intercommunication that exist in traditional data-based communication protocols.

[0005] Recently, some progress has been made in semantic communication models based on deep learning, such as the end-to-end neural network semantic communication model based on the Transformer model, which is used for text information transmission; the speech signal semantic communication system DeepSC-S based on deep learning, which was developed in combination with the compressed excitation (SE) network to improve the accuracy of recovering key information of speech signals; the lightweight distributed semantic communication model for the Internet of Things, which uses CSI refinement and elimination technology based on deep denoising networks and network sparsification and quantization compression technology to solve the problem of too many training parameters in the semantic communication model.

[0006] The above models are all based on deep learning or natural language processing related technologies, using the cross entropy of sent and received information as the loss function to iterate deep learning parameters, increase the ability of the model to recover information at the receiving end, and have achieved some good results in BLEU and related information recovery accuracy indicators. However, these models mainly use pre-trained natural language processing models and do not take advantage of the knowledge graph itself, so the accuracy will be relatively low under low signal-to-noise ratio conditions.

[0007] In view of this, it is necessary to propose an implementation method of an information supplementary semantic communication system based on knowledge graph to solve the above problems. Summary of the invention

[0008] The purpose of the present invention is to provide an implementation method of an information supplementation semantic communication system based on a knowledge graph, so as to reduce the amount of data required to be transmitted during the communication process, and to make the system model have better robustness than the traditional communication model under low signal-to-noise ratio conditions.

[0009] To achieve the above objectives, the present invention provides a method for implementing an information supplement semantic communication system based on a knowledge graph, and the implementation method mainly includes:

[0010] Step 1: Obtain the data set and prepare the relevant knowledge graph;

[0011] Step 2, encoding information, decoding information and transmitting information;

[0012] Step 3, named entity recognition based on initial decoded information;

[0013] Step 4: Entity error correction based on the similarity comparison of the knowledge graph database; use the cosine similarity calculation formula to calculate the similarity score between the knowledge graph database entity and the recognized entity, and take the corresponding entity with the highest score in the knowledge base as the correct result of the recognized entity for error correction; the entity set after error correction is recorded as E'(i);

[0014] Step 5: Supplement the associated information based on the knowledge graph; call the neo4j knowledge graph database, perform knowledge base associated entity query and retrieval on the corrected named entities, obtain the associated entities and relationships of the input entities in the dialogue scenario, and form a well-formatted SPO triple data set T(i) to output to the text generation model;

[0015] Step 6, generate knowledge graph text; use the pre-trained T5 model as the knowledge graph text generation model, use the data set as the knowledge graph text generation model training set and verification set, and train the knowledge graph text generation model. After the training stage, generate a parameter model file. The model can use the retrieved triples to generate sentence Text(i);

[0016] Step 7: Perform an overall model test. Compare and analyze the sentence to be sent with the sentence finally recovered by the receiving end using multiple indicators including BLEU score and sentence similarity score based on the BERT model, and compare and analyze with the relevant scores of the traditional communication model.

[0017] As a further improvement of the present invention, in step 1, the triple data is extracted from the code based on relevant identifiers, and the erroneous and duplicated data are cleaned to form a usable triple data set in a regular format. The text in the data set is processed to serve as the source of sentences sent in the communication process, and the triple data is formed into a knowledge graph using neo4j for use by the model.

[0018] As a further improvement of the present invention, in step 2, the encoding information includes source encoding and channel encoding; and the decoding information includes source decoding and channel decoding.

[0019] As a further improvement of the present invention, the source coding is Huffman coding, and the channel coding is a convolutional code mode; the source decoding is Huffman decoding, and the channel decoding is a decoding mode corresponding to the convolutional code.

[0020] As a further improvement of the present invention, in step 3, the BERT pre-trained language model based on the mask language model and the next sentence prediction model is used as the encoder for named entity recognition, the training corpus is embedded in the word vector, and then the conditional random field (CRF) is used as the decoding module of the named entity recognition model to obtain the optimal annotation sequence. The recovery sequence after channel decoding and source decoding is The named entity recognition model of BERT plus CRF is denoted as BERF, and the obtained entity set is denoted as E(i).

[0021] As a further improvement of the present invention, the abstract expression of the processing process of the named entity recognition is:

[0022]

[0023] As a further improvement of the present invention, in step 4, the error correction step mainly includes:

[0024] Step 4.1, encode 26 letters with numbers 0 to 25;

[0025] Step 4.2, encode each letter of the entity recognized by the named entity and the entity in the knowledge base in sequence;

[0026] Step 4.3, for A i and B i Perform oneHot encoding and calculate the number of times each letter appears;

[0027] Step 4.4, after obtaining the one-hot encoding vectors of the two entities, use the cosine similarity formula to calculate the cosine value of the angle between the two vectors. The larger the value, the higher the similarity.

[0028] Step 4.5, traverse entity B in the knowledge base i , calculate their cosine similarities with the identified entities respectively, and take entity B with the highest similarity score as i As the correct entity, it is denoted as E'(i).

[0029] As a further improvement of the present invention, the calculation formula of the cosine similarity is:

[0030]

[0031] As a further improvement of the present invention, in step 5, the information supplementation step mainly includes:

[0032] Step 5.1, obtain entity set E'(i) from the error correction module;

[0033] Step 5.2, use entity E'(i) as the head entity to retrieve the corresponding relationship and tail entity in the knowledge graph visualization software neo4j;

[0034] Step 5.3, add the identifier "before all relationships related to the head entity and before the entity <h> ”、" <r> ”、" <t>", forming a shape like " <h>Athens <r>country <t>Greece" is passed to the text generator.

[0035] As a further improvement of the present invention, in step 5, the triple text generation expression of the T5 model is: Text(i)=T5(T(i)).

[0036] The beneficial effects of the present invention are as follows: the implementation method of the information supplement semantic communication system based on the knowledge graph of the present invention not only reduces the amount of data required for transmission in the communication process by utilizing entity similarity error correction, knowledge association, and text generation technology based on the knowledge graph, but also enables the system model to have better robustness than the traditional communication model under low signal-to-noise ratio conditions. Specifically, first, because the present invention introduces the knowledge graph to perform knowledge association on the acquired entities, thereby supplementing the useful information related to the sent sentence, compared with the traditional communication system model, the number of bits of sent information is reduced.

[0037] Second, since the present invention introduces an error correction mechanism based on the knowledge graph, it corrects the erroneous entities caused by channel interference, making the acquired associated information more accurate. Compared with the traditional communication system model, the present invention can still obtain relatively good results when the channel error rate is high. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 It is a flow chart of the implementation method of the information supplementation semantic communication system based on the knowledge graph of the present invention.

[0039] Figure 2 It is a comparison chart of the number of information bits transmitted by the present invention and other traditional source channel coding methods when transmitting different numbers of symbols.

[0040] Figure 3 This is a comparison diagram of the similarity of sent and received sentences under different channel error rates between the present invention and other traditional source channel coding methods.

[0041] Figure 4 This is a comparison chart of BLEU scores of 1 to 4 grams of sentences sent and received under different channel error rates between the present invention and other traditional source channel coding methods. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0043] like Figure 1 As shown, the present invention discloses an implementation method of an information supplement semantic communication system based on a knowledge graph, and the implementation method mainly includes:

[0044] Step 1: Obtain the data set and prepare the relevant knowledge graph;

[0045] Step 2, encoding information, decoding information and transmitting information;

[0046] Step 3, named entity recognition based on initial decoded information;

[0047] Step 4: Entity error correction based on the similarity comparison of the knowledge graph database; use the cosine similarity calculation formula to calculate the similarity score between the knowledge graph database entity and the recognized entity, and take the corresponding entity with the highest score in the knowledge base as the correct result of the recognized entity for error correction; the entity set after error correction is recorded as E'(i);

[0048] Step 5: Supplement the associated information based on the knowledge graph; call the neo4j knowledge graph database, perform knowledge base associated entity query and retrieval on the corrected named entities, obtain the associated entities and relationships of the input entities in the dialogue scenario, and form a well-formatted SPO triple data set T(i) to output to the text generation model;

[0049] Step 6, generate knowledge graph text; use the pre-trained T5 model as the knowledge graph text generation model, use the data set as the knowledge graph text generation model training set and verification set, and train the knowledge graph text generation model. After the training stage, generate a parameter model file. The model can use the retrieved triples to generate sentence Text(i);

[0050] Step 7: Perform an overall model test. Compare and analyze the sentence to be sent with the sentence finally recovered by the receiving end using multiple indicators including BLEU score and sentence similarity score based on the BERT model, and compare and analyze with the relevant scores of the traditional communication model.

[0051] Specifically, in step 1, the dataset used for experimental verification of the present invention is the publicly available WebNLG 2020 triple generation text competition dataset, which includes a training set, a validation set, and a test set. The data format is as follows: <h>Aarhus_Airport <r>city_served <t>"Aarhus, Denmark"||The Aarhus is the airport of Aarhus, Denmark.", it is found that the head and tail entities and relations of the triplet are clearly identified, and the triplet and the generated sentence can also be well separated by "||". The present invention uses these identifiers to extract triplet information, separate the head and tail entities and relations, and clean up the errors and duplicate data to form a neatly formatted triplet CSV data set and a plain text sentence data set. The sentence is processed as the source of the sentence sent in the communication process, and the triplet data uses neo4j to form a graph database for model simulation verification.

[0052] In step 2, assuming that the source is random and the probability of sending information is p(i), the information entropy of the source can be expressed as When the source coding adopts the fixed-length coding method, the transmission information rate R = (K / L)log2m. As long as R ≥ H(X), lossless coding can be achieved. The present invention adopts 7-bit fixed-length coding as one of the information source coding schemes. Huffman coding is a relatively efficient variable-length lossless source coding method that is often used in traditional communication models. The present invention uses Huffman coding as one of the source coding methods of this model. The decoding module adopts fixed-length decoding or Huffman decoding corresponding to the encoding method. The source coding symbol is denoted by S(.), and the source decoding symbol is denoted by S -1 (.).

[0053] The present invention adopts convolutional code as the channel coding and decoding method. The difference between convolutional code and block code is that it does not group the information sequence and then encode it separately, but obtains the continuously output encoded sequence from the continuously input information sequence, which is more suitable for serial data transmission. The channel coding symbol is denoted by C(.), and the channel decoding symbol is denoted by C -1 (.).

[0054] Suppose the original information is s(i), the transmitted signal after source coding and channel coding is x(i), the source coding channel coding formula is x(i)=C(S(s(i))), the received signal y(i) is a fading signal after channel fading and additive Gaussian white noise interference, and the signal transmission process formula is y(i)=hx(i)+ε. Among them, h represents the channel fading function, ε represents the mean value of 0, and the variance is σ 2 Additive white Gaussian noise.

[0055] The received information is first channel decoded, and then source decoded to restore the original information The signal decoding recovery formula is:

[0056] In step 3, the present invention uses the BERT pre-trained language model based on the masked language model and the next sentence prediction model as the encoder module for named entity recognition, embeds the word vector of the training corpus, and then uses the conditional random field as the decoding module of the named entity recognition model to obtain the optimal annotation sequence, and finally outputs the entity set. The named entity recognition model of BERT plus CRF is denoted as BERF, and the obtained entity set is denoted as E(i). The expression of the named entity recognition process is:

[0057] The specific operation is to download the checkpoints and vocabulary files of the open source pre-trained BERT model as the initial parameter model for training, use the training data set text of the present invention as the annotation data set, and set the hyperparameters: the maximum sequence length is 128, the training mini-batch size is 32, and the learning rate is 2e -5 The number of training iterations is 3, and the model parameters are fine-tuned. After multiple iterative fittings, a parameter model that can be applied to the named entity recognition of the relevant data of the present invention is output. After obtaining the initial decoding information from the receiving end, the model is used to perform named entity recognition and output the entities in the sentence.

[0058] In step 4, the error correction steps mainly include:

[0059] Step 4.1, encode 26 letters with numbers 0 to 25;

[0060] Step 4.2, encode each letter of the entity recognized by the named entity and the entity in the knowledge base in sequence;

[0061] Step 4.3, for A i and B i Perform oneHot encoding and calculate the number of times each letter appears;

[0062] Step 4.4, after obtaining the one-hot encoding vectors of the two entities, use the cosine similarity formula to calculate the cosine value of the angle between the two vectors. The larger the value, the higher the similarity.

[0063] Step 4.5, traverse entity B in the knowledge base i , calculate their cosine similarities with the identified entities respectively, and take entity B with the highest similarity score as i As the correct entity, it is denoted as E'(i).

[0064] Specifically, first, use the numbers 0 to 25 to encode the 26 letters in a case-insensitive manner, and "a, B, c, d" is encoded as [0, 1, 2, 3];

[0065] Then, the entity A identified by the named entity i and entity B in the knowledge base i Each letter is encoded in sequence; for the recognized entity "Aldenmie Jones" and the knowledge base entity "Albennie Jones", the encoding is:

[0066] A i : [0,11,3,4,13,12,8,4,9,14,13,4,18]

[0067] B i : [0,11,1,4,13,13,8,4,9,14,13,4,18]

[0068] Secondly, for A i and B i Perform oneHot encoding and calculate the number of times each letter appears. The one-hot encoding of the above entity is:

[0069] [1,0,0,1,3,0,0,0,1,1,0,1,1,2,1,0,0,0,1,0,0,0,0,0,0,0]

[0070] [1,1,0,1,3,0,0,0,1,1,0,1,0,3,1,0,0,0,1,0,0,0,0,0,0,0]

[0071] After obtaining the one-hot encoding vectors of the two entities, use the following cosine formula to calculate the cosine value of the angle between the two vectors. The larger the value, the higher the similarity. Cosine similarity calculation formula:

[0072]

[0073] Finally, we traverse the entities in the knowledge base and calculate their cosine similarities with the identified entities. The entity with the highest similarity score is taken as the correct entity, and the entity set is recorded as E'(i).

[0074] In step 5, the information supplementation step mainly includes:

[0075] Step 5.1, obtain entity set E'(i) from the error correction module;

[0076] Step 5.2, use entity E'(i) as the head entity to retrieve the corresponding relationship and tail entity in the knowledge graph visualization software neo4j;

[0077] Step 5.3, add an identifier before all relationships related to the head entity and the entity <h> ”、" <r> ”、" <t>", forming a shape like " <h>Athens <r>country <t>Greece" is passed to the text generator.

[0078] Specifically, the encoding code calls the neo4j knowledge graph database, uses the named entity output by the error correction module as the head entity to perform knowledge base related entity query retrieval, obtains the related entities and relationships of the input entity in the dialogue scenario, and forms a well-formatted SPO triple T(i) output to the text generation model. The expression for entity retrieval to form a triple is:

[0079] T(i)=Retrieval(E'(i)).

[0080] The specific process is to obtain the entity set E'(i) from the error correction module, use entity E'(i) as the head entity to retrieve the corresponding relationship and tail entity in the knowledge graph visualization software neo4j, and use the cypher statement "MATCH(a:head{value:'Athens'})-[b:relation]->(c:tail)RETURN a.value,b.value,c.value" to obtain some rough triples; add an identifier before all the relationships and entities related to the head entity. <h> ”、" <r> ”、" <t>", forming a shape like: " <h>Athens <r>country <t>Greece; <h>Athens <r>mayor <t>Giorgos_Kaminis” is passed to the text generator.

[0081] In step 6, the present invention uses the pre-trained T5 model as the initial model for knowledge graph text generation, uses the WebNLG 2020 competition dataset as the training set and verification set of the knowledge graph text generation model, performs fine-tuning training on the knowledge graph text generation model, and sets the learning rate to 5e -5 , the batch size is 2, after training for 100 epochs, the model parameter file Models.pt is generated, and the model test generates the sentence Text(i) based on the triple. The triple text generation expression based on the T5 model is: Text(i) = T5(T(i)).

[0082] The triple data set retrieved previously is used as the input file, combined with the generated parameter model to generate text and restore the relevant sentence information Text(i).

[0083] In step 7, the overall model test is performed, a sentence set is input as the input information of the sender, the information is initially restored at the receiving end after source channel encoding and decoding, and after a series of processing such as named entity recognition, associated information expansion, and text generation, the information supplemented is output. The restored information is compared with the sent information to verify the performance of the model.

[0084] The effect of the present invention is further described below in conjunction with simulation experiments.

[0085] 1. Simulation conditions and parameter settings:

[0086] The simulation experiment of the present invention was carried out on the simulation platform of Python 3.8. The computer CPU model is Intel Core i7, and the natural language processing model is trained using the server GPU NVIDIA Geforce RTX2080. The data set used in the present invention is the WebNLG 2020 competition data set, and the T5 model is fine-tuned on the training set for 100 steps with a learning rate of 0.0001.

[0087] 2. Simulation content:

[0088] like Figure 2 This is a comparison chart of the number of information bits transmitted by the present invention and other traditional communication models when transmitting different numbers of symbols. The horizontal axis is the number of different transmitted symbols, and the vertical axis is the number of bits of transmitted data. The star-shaped line represents the curve of the number of transmitted data bits of the present invention, the diamond-shaped line represents the curve of the number of transmitted data bits of fixed-length source coding plus convolutional code channel coding, and the triangle-shaped line represents the curve of the number of transmitted data bits of Huffman coding plus convolutional channel coding. By comparison, it can be seen that the present invention requires fewer bits to transmit the same information.

[0089] like Figure 3 The figure is a comparison of the similarity of sentences sent and received under different channel error rates between the present invention and other traditional communication models. The horizontal axis represents different binary symmetric channel error rates, and the vertical axis represents the sentence similarity score. The star-shaped line represents the sentence similarity score change curve of the present invention under different binary symmetric channel error rates, the diamond-shaped line represents the sentence similarity score change curve of fixed-length source coding plus convolutional code channel coding under different binary symmetric channel error rates, and the triangle-shaped line represents the sentence similarity score change curve of Huffman coding plus convolutional channel coding under different binary symmetric channel error rates. By comparison, it can be seen that the recovery effect of the present invention is not optimal when the error rate is low, but when the channel error probability is high, the recovery effect of the present invention is significantly better than that of the traditional communication model.

[0090] like Figure 4 The figure is a comparison chart of BLEU scores of 1 to 4 grams of sentences of the sender and receiver under different channel error rates between the present invention and other traditional source channel coding methods. The horizontal axis is different binary symmetric channel error rates, and the vertical axis is BLEU score. The star-shaped line represents the BLEU score change curve of the present invention under different binary symmetric channel error rates, the diamond-shaped line represents the BLEU score change curve of fixed-length source coding plus convolutional code channel coding under different binary symmetric channel error rates, and the triangle-shaped line represents the BLEU score change curve of Huffman coding plus convolutional channel coding under different binary symmetric channel error rates. By comparison, it can be seen that the recovery effect of the present invention is not optimal when the error rate is low, but when the channel error probability is high, the recovery effect of the present invention is significantly better than that of the traditional communication model.

[0091] According to simulation results and analysis, the information supplementation semantic communication model based on knowledge graph proposed in the present invention can save more communication resources when transmitting the same amount of information compared to traditional communication models. At the same time, when the channel state is poor, the information recovery effect of the present invention is better, which enables the present invention to be better applied in actual communication scenarios.

[0092] In summary, the present invention proposes an information supplement semantic communication system based on knowledge graph to address the problem of increasing information data transmission volume due to the significant increase in IoT devices in the future. Compared with the traditional communication signal transmission system, the system innovatively uses the named entity recognition technology based on the BERT model, the knowledge association technology based on the knowledge graph, and the knowledge graph text generation technology on the receiving end to expand and complete a small amount of received information so that the receiving end user can obtain the complete information that the sender wants to express, thereby significantly reducing the amount of communication transmission data; the innovative use of character-based cosine similarity error correction technology solves the entity errors caused by the communication transmission process and the named entity recognition process, significantly improving the system's information transmission accuracy under higher channel error probability conditions, and also making the system more robust.

[0093] The above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.< / t> < / r> < / h> < / t> < / r> < / h> < / t> < / r> < / h> < / t> < / r> < / h> < / t> < / r> < / h> < / t> < / r> < / h> < / t> < / r> < / h> < / t> < / r> < / h>

Claims

1. A method for implementing an information supplement semantic communication system based on a knowledge graph, characterized in that: The implementation method mainly includes: Step 1: Obtain the data set and prepare the relevant knowledge graph; Step 2, encoding information, decoding information and transmitting information; Step 3, named entity recognition based on initial decoded information; Step 4: Entity error correction based on the similarity comparison of the knowledge graph database; use the cosine similarity calculation formula to calculate the similarity score between the knowledge graph database entity and the recognized entity, and take the corresponding entity with the highest score in the knowledge base as the correct result of the recognized entity for error correction; the entity set after error correction is recorded as E'(i); Step 5: Supplement the associated information based on the knowledge graph; call the neo4j knowledge graph database, perform knowledge base associated entity query and retrieval on the corrected named entities, obtain the associated entities and relationships of the input entities in the dialogue scenario, and form a well-formatted SPO triple data set T(i) to output to the text generation model; Step 6, generate knowledge graph text; use the pre-trained T5 model as the knowledge graph text generation model, use the data set as the knowledge graph text generation model training set and verification set, and train the knowledge graph text generation model. After the training stage, generate a parameter model file. The model can use the retrieved triples to generate sentence Text(i); Step 7: Perform an overall model test. Compare and analyze the sentence to be sent with the sentence finally recovered by the receiving end using multiple indicators including BLEU score and sentence similarity score based on the BERT model, and compare and analyze with the relevant scores of the traditional communication model.

2. The method for implementing the information supplement semantic communication system based on knowledge graph according to claim 1 is characterized in that: In step 1, the triple data is extracted from the code based on relevant identifiers, and the errors and duplicate data are cleaned to form a usable triple data set in a regular format. The text in the data set is processed to serve as the source of sentences sent during the communication process. The triple data is formed into a knowledge graph using neo4j for use by the model.

3. The method for implementing the information supplement semantic communication system based on knowledge graph according to claim 2 is characterized in that: In step 2, the encoding information includes source encoding and channel encoding; the decoding information includes source decoding and channel decoding.

4. The method for implementing the information supplement semantic communication system based on knowledge graph according to claim 3 is characterized by: The source coding is Huffman coding, and the channel coding is a convolutional coding method; the source decoding is Huffman decoding, and the channel decoding is a decoding method corresponding to the convolutional code.

5. The method for implementing the information supplement semantic communication system based on knowledge graph according to claim 1 is characterized in that: In step 3, the BERT pre-trained language model based on the masked language model and the next sentence prediction model is used as the encoder for named entity recognition. The training corpus is embedded in the word vector and then the conditional random field (CRF) is used as the decoding module of the named entity recognition model to obtain the optimal annotation sequence. The restored sequence after channel decoding and source decoding is The named entity recognition model of BERT plus CRF is denoted as BERF, and the obtained entity set is denoted as E(i).

6. The method for implementing the information supplement semantic communication system based on knowledge graph according to claim 5 is characterized in that: The abstract expression of the processing process of named entity recognition is:

7. The method for implementing the information supplement semantic communication system based on knowledge graph according to claim 1 is characterized in that: In step 4, the error correction steps mainly include: Step 4.1, encode 26 letters with numbers 0 to 25; Step 4.2, encode each letter of the entity recognized by the named entity and the entity in the knowledge base in sequence; Step 4.3, for A i and B i Perform oneHot encoding and calculate the number of times each letter appears; Step 4.4, after obtaining the one-hot encoding vectors of the two entities, use the cosine similarity formula to calculate the cosine value of the angle between the two vectors. The larger the value, the higher the similarity. Step 4.5, traverse entity B in the knowledge base i , calculate their cosine similarities with the identified entities respectively, and take entity B with the highest similarity score as i As the correct entity, it is denoted as E'(i).

8. The method for implementing the information supplement semantic communication system based on knowledge graph according to claim 7 is characterized in that: The calculation formula of the cosine similarity is:

9. The method for implementing the information supplement semantic communication system based on knowledge graph according to claim 1, characterized in that: In step 5, the information supplementation step mainly includes: Step 5.1, obtain entity set E'(i) from the error correction module; Step 5.2, use entity E'(i) as the head entity to retrieve the corresponding relationship and tail entity in the knowledge graph visualization software neo4j; Step 5.3, add an identifier before all relationships related to the head entity and the entity <h> ”、" <r> ”、" <t>", forming a shape like " <h>Athens <r>country <t> Greece" is passed to the text generator.< / t> < / r> < / h> < / t> < / r> < / h> 10. The method for implementing the information supplement semantic communication system based on knowledge graph according to claim 1, characterized in that: In step 5, the triple text generation expression of the T5 model is: Text(i)=T5(T(i)).

Citation Information

Patent Citations

  • Knowledge graph completion method and device, equipment and storage medium

    CN112035672A

  • Representation learning method and device based on natural language and knowledge graph

    US20210192364A1