Semantic recognition method and device based on graph neural network, medium and electronic equipment
Through semantic recognition methods based on graph neural networks, medical texts and knowledge graphs are processed, which solves the problems of coverage, update and maintenance limitations and insufficient generalization capabilities in traditional technologies, and achieves high-accuracy recognition of complex medical diagnostic data.
Patent Information
- Application Number
- CN202410783357.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-09-03
AI Technical Summary
Traditional knowledge graphs have limitations in coverage and update and maintenance in medical auxiliary diagnosis. The pre-trained language model has insufficient generalization ability in interpreting medical texts containing professional terms, and lacks an in-depth understanding of professional medical knowledge.
The semantic recognition method based on graph neural network is used to obtain and process the original text and knowledge graph, combined with the pre-trained graph neural network, to output the recognition results and improve the accuracy of semantic recognition, especially complex semantic recognition.
It improves the accuracy and efficiency of semantic recognition, is suitable for complex medical diagnosis data, and enhances the understanding and recognition capabilities of professional medical knowledge.
Smart Images

Figure CN118586401A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a semantic recognition method, device, medium and electronic equipment based on graph neural network. Background Art
[0002] In medical auxiliary diagnosis systems, knowledge graphs and pre-trained language models have played a key role. By constructing relationships between diseases, symptoms, examination items, and drugs, knowledge graphs provide doctors with rich medical knowledge support, helping them make more accurate diagnostic decisions. Despite this, traditional knowledge graphs are limited in coverage and update maintenance. At the same time, although pre-trained language models perform well in processing large-scale text data, they show insufficient generalization capabilities in interpreting medical texts containing professional terms and lack an in-depth understanding of professional medical knowledge. Summary of the invention
[0003] In view of this, the present invention provides a semantic recognition method, device, medium and electronic device based on graph neural network, which can improve the accuracy of semantic recognition, especially complex semantic recognition, and is more suitable for practical use.
[0004] In order to achieve the first objective above, the technical solution of the semantic recognition method based on graph neural network provided by the present invention is as follows:
[0005] The semantic recognition method based on graph neural network provided by the present invention comprises the following steps:
[0006] Obtain the original text to be identified and the original knowledge graph to be identified;
[0007] Performing data processing on the original text to be identified and the original knowledge graph to be identified to obtain processed text to be identified and the knowledge graph to be identified;
[0008] The processed file to be recognized and the knowledge graph to be recognized are input into a pre-trained graph neural network, and the pre-trained graph neural network outputs a recognition result corresponding to the text to be recognized and the knowledge graph.
[0009] The semantic recognition method based on graph neural network provided by the present invention can also be further implemented by adopting the following technical measures.
[0010] Preferably, in the step of performing data processing on the original text to be identified and the original knowledge graph to obtain the processed text to be identified and the knowledge graph,
[0011] Performing data processing on the original text to be recognized to obtain the processed text to be recognized specifically includes the following steps:
[0012] The concepts in the original text to be identified are identified, and the concepts in the text to be identified are replaced with unique identifiers corresponding to the concepts in the original text to be identified, so as to obtain processed text to be identified.
[0013] Preferably, in the step of performing data processing on the original text to be identified and the original knowledge graph to obtain the processed text to be identified and the knowledge graph,
[0014] Performing data processing on the original knowledge graph to be identified to obtain a processed knowledge graph specifically includes the following steps:
[0015] Identification and noise reduction processing are performed on the original knowledge graph to be identified to obtain a processed knowledge graph to be identified with higher clarity than the original knowledge graph to be identified.
[0016] Preferably, in the step of obtaining the original text to be identified and the original knowledge graph to be identified, the original knowledge graph to be identified includes the inherent original knowledge graph to be identified and the knowledge subgraph obtained by entity linking through a set knowledge linking model.
[0017] Preferably, in the step of obtaining the knowledge subgraph by entity linking through the set knowledge linking model, the set knowledge linking model is a complete spatial pipeline and scientific biomedical literature model, and the knowledge subgraph obtained by entity linking through the set knowledge linking model specifically includes the following steps:
[0018] Assigning a confidence score to each knowledge subgraph in the knowledge subgraph obtained by entity linking through the set knowledge linking model;
[0019] For each knowledge subgraph in the knowledge subgraph obtained by entity linking through the set knowledge linking model, sorting according to the confidence score;
[0020] A set number of knowledge subgraphs is selected according to the set number requirement for each knowledge subgraph in the knowledge subgraph obtained by entity linking through the set knowledge linking model, and the set number of knowledge subgraphs and the inherent original knowledge graph to be identified together constitute the original knowledge graph to be identified.
[0021] Preferably, in the step of inputting the processed file to be recognized and the knowledge graph to be recognized into a pre-trained graph neural network, and the pre-trained graph neural network outputting the recognition result corresponding to the text to be recognized and the knowledge graph, the training method of the graph neural network includes the following steps:
[0022] Obtain a training sample to be identified, wherein the training sample to be identified includes an original text sample to be identified and an original knowledge graph sample to be identified, wherein the original text sample to be identified is an original text sample to be identified with a known recognition result, and the knowledge graph to be identified is a knowledge graph sample to be identified with a known recognition result;
[0023] Performing data processing on the original text sample to be identified and the original knowledge graph sample to be identified to obtain processed text samples to be identified and processed knowledge graph samples to be identified;
[0024] The processed file samples to be identified and the knowledge graph to be identified are input into the graph neural network, and the graph neural network adjusts the parameters of the graph neural network according to the processed file samples to be identified and the recognition results corresponding to the original text samples to be identified, and the processed knowledge graph samples to be identified and the recognition results corresponding to the original knowledge graph to be identified, so as to obtain the pre-trained graph neural network.
[0025] Preferably, during the step of inputting the processed file to be recognized and the knowledge graph to be recognized into a pre-trained graph neural network, and the pre-trained graph neural network outputting the recognition result corresponding to the text to be recognized and the knowledge graph, the training method of the graph neural network further comprises the following steps:
[0026] Add the current original text to be recognized, and the current original knowledge graph to be recognized; the recognition result corresponding to the current original text to be recognized, and the recognition result corresponding to the current original knowledge graph to be recognized to the training samples to be recognized.
[0027] In order to achieve the above second purpose, the technical solution of the semantic recognition device based on graph neural network provided by the present invention is as follows:
[0028] The semantic recognition device based on graph neural network provided by the present invention includes:
[0029] A data acquisition unit, used to acquire the original text to be recognized and the original knowledge graph to be recognized;
[0030] A data processing unit, used for performing data processing on the original text to be identified and the original knowledge graph to be identified to obtain processed text to be identified and the knowledge graph to be identified;
[0031] The pre-trained graph neural network is used to identify the processed files to be identified and the knowledge graph to be identified that are input into the pre-trained graph neural network, and obtain recognition results corresponding to the text to be identified and the knowledge graph.
[0032] In order to achieve the third objective above, the technical solution of the computer-readable storage medium provided by the present invention is as follows:
[0033] The computer-readable storage medium provided by the present invention stores a semantic recognition program based on a graph neural network. When the semantic recognition program based on a graph neural network is executed by a processor, the steps of the semantic recognition method based on a graph neural network provided by the present invention are implemented.
[0034] In order to achieve the fourth objective, the technical solution of the electronic device provided by the present invention is as follows:
[0035] The electronic device provided by the present invention includes a memory and a processor, wherein a semantic recognition program based on a graph neural network is stored in the memory, and when the semantic recognition program based on a graph neural network is executed by the processor, the steps of the semantic recognition method based on a graph neural network provided by the present invention are implemented.
[0036] The semantic recognition method, device, medium and electronic device based on graph neural network provided by the present invention processes the original text to be recognized and the original knowledge graph to be recognized, and then inputs the result obtained after data processing into a pre-trained graph neural network. Finally, the pre-trained graph neural network performs calculations to obtain recognition results corresponding to the original text to be recognized and the original knowledge graph to be recognized. It combines semantics with graphs, which can improve the accuracy of semantic recognition, especially complex semantic recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0038] Figure 1 A flowchart of the steps of a semantic recognition method based on a graph neural network provided in an embodiment of the present invention;
[0039] Figure 2 A flowchart of the steps of a graph neural network training method involved in a graph neural network-based semantic recognition method provided in an embodiment of the present invention;
[0040] Figure 3 A schematic diagram of the signal flow relationship between the functional modules in the semantic recognition device based on the graph neural network provided in an embodiment of the present invention;
[0041] Figure 4 A schematic diagram of the structure of a semantic recognition device based on a graph neural network in the hardware operating environment provided for an embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to solve the problems existing in the prior art, the present invention provides a semantic recognition method, device, medium and electronic device based on graph neural network, which can improve the accuracy of semantic recognition, especially complex semantic recognition, and is more suitable for practical use.
[0043] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the semantic recognition method, device, medium and electronic device based on graph neural network proposed by the present invention, its specific implementation method, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "embodiment" does not necessarily refer to the same embodiment. In addition, the features, structures, or characteristics of one or more embodiments may be combined in any suitable form.
[0044] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B. Specifically, it is understood that: A and B may be included at the same time, A may exist alone, or B may exist alone, and any of the above three situations may be met.
[0045] Semantic recognition method based on graph neural network
[0046] See attached Figure 1 The semantic recognition method based on graph neural network provided by the embodiment of the present invention comprises the following steps:
[0047] Step S1: Obtain the original text to be recognized and the original knowledge graph to be recognized.
[0048] Specifically, taking medical diagnosis data as an example, the original text to be identified can be text data recorded by a doctor based on the patient's complaint; the original knowledge graph to be identified can be image data obtained from medical instrument diagnosis. For example, a 6-year-old child went to see a doctor one day because he accidentally fell on his head while playing. Since the brain is the control center of the human body, the doctor first needs to judge whether the child is injured inside by appearance. Therefore, the child is asked about the process of falling. If the child can clearly and fluently express the process of falling, it can be preliminarily judged that it is likely to be a skin injury. Therefore, the child's fall process is recorded in the patient's complaint, and the wound condition is described in words and text, which is the original text to be identified in step S1. However, only the child's complaint and the appearance of his wound cannot accurately confirm whether the child's head bone is injured. Therefore, it is necessary to perform an instrument scan on the child's head bone and obtain the result image of the instrument scan. However, the result image of the instrument scan cannot express the appearance of the child's wound. Based on this, according to the child's chief complaint, the written record of the apparent wound, and the image results of the instrument scan of the child's head bones, the child's wound diagnosis results can be comprehensively obtained, and a treatment plan can be given, such as whether stitches, anti-infection and other treatment measures are needed.
[0049] Step S2: Perform data processing on the original text to be recognized and the original knowledge graph to be recognized to obtain the processed text to be recognized and the knowledge graph to be recognized.
[0050] Specifically, data processing is performed based on the original text to be identified, and the relevant terms in the original text to be identified can be standardized. Taking the treatment plan for children's falls in step S1 as an example, since different children have different ways of expression, there may be more ways of expression for the same description of the fall scene; for the same wound appearance, there may also be more ways of expression for the wound information recorded by different doctors. Therefore, it is necessary to standardize the original text to be identified so that the corresponding natural language expression content can be unified as much as possible. Similarly, the same instrument scanned image is scanned by different instruments, and the image clarity and noise conditions obtained will also be different. In this case, noise reduction processing is performed on the original graph to be identified, which can improve the clarity of the original graph to be identified. Therefore, data processing of the original text to be identified and the original knowledge graph to be identified can reduce the difficulty of learning and recognition based on graph neural networks, thereby improving recognition efficiency and recognition accuracy.
[0051] Step S3: Input the processed file to be recognized and the knowledge graph to be recognized into a pre-trained graph neural network, and the pre-trained graph neural network outputs the recognition results corresponding to the text to be recognized and the knowledge graph.
[0052] Specifically, the pre-trained graph neural network is based on the original text samples to be recognized with known recognition results and the knowledge graph samples to be recognized with known recognition results, and adopts the same data processing method as the above step S2. Therefore, through the training samples, the parameters and recognition model of the graph neural network can be adjusted. In particular, the more training samples there are, the more accurate the parameters and recognition model of the graph neural network are, and the recognition results obtained by the graph neural network are more accurate and the error rate is lower.
[0053] The semantic recognition method based on graph neural network provided by the present invention processes the original text to be recognized and the original knowledge graph to be recognized, and then inputs the result obtained after data processing into a pre-trained graph neural network. Finally, the pre-trained graph neural network performs calculations to obtain recognition results corresponding to the original text to be recognized and the original knowledge graph to be recognized. It combines semantics with graphs, which can improve the accuracy of semantic recognition, especially complex semantic recognition.
[0054] Among them, the steps of performing data processing on the original text to be identified and the original knowledge graph to obtain the processed text to be identified and the knowledge graph, performing data processing on the original text to be identified to obtain the processed text to be identified specifically include the following steps: identifying the concepts in the original text to be identified, replacing the concepts in the text to be identified with the unique identifiers corresponding to the concepts in the original text to be identified, and obtaining the processed text to be identified. In this case, since the concepts in the original text to be identified are unified into the corresponding unique identifiers, the text to be identified can be simplified, thereby improving the recognition efficiency of the semantic recognition method based on the graph neural network provided in the embodiment of the present invention.
[0055] Among them, in the process of performing data processing on the original text to be identified and the original knowledge graph to obtain the processed text to be identified and the knowledge graph, the data processing on the original knowledge graph to be identified to obtain the processed knowledge graph specifically includes the following steps: performing recognition and noise reduction processing on the original knowledge graph to be identified to obtain a processed knowledge graph to be identified with a higher clarity than the original knowledge graph to be identified. In this case, the original knowledge graph to be identified after noise reduction processing can improve the recognition accuracy and reduce the error rate in the process of being identified by the graph neural network.
[0056] In the step of obtaining the original text to be identified and the original knowledge graph to be identified, the original knowledge graph to be identified includes the inherent original knowledge graph to be identified and the knowledge subgraph obtained by entity linking through the set knowledge linking model. Figure 1 After recognition, the recognition accuracy of graph neural network can be further improved.
[0057] Among them, in the step of obtaining a knowledge subgraph by entity linking through a set knowledge linking model, the set knowledge linking model is a complete spatial pipeline and a scientific biomedical literature model, and the knowledge subgraph obtained by entity linking through the set knowledge linking model specifically includes the following steps:
[0058] Assigning a confidence score to each knowledge subgraph in the knowledge subgraph obtained by entity linking through the set knowledge linking model;
[0059] For each knowledge subgraph in the knowledge subgraph obtained by entity linking through the set knowledge linking model, sort them according to the confidence score;
[0060] According to the set number requirement for each knowledge subgraph in the knowledge subgraph obtained by entity linking through the set knowledge linking model, a set number of knowledge subgraphs are selected, and the set number of knowledge subgraphs and the inherent original knowledge graph to be identified together constitute the original knowledge graph to be identified.
[0061] Among them, since the knowledge subgraph obtained by entity linking through the set knowledge linking model needs to be as complete as possible during the linking process, in the case of completeness, the occurrence of exceptions or special cases can be reduced. However, in order to be complete, it is necessary to lower the conditions of the link query, so some knowledge subgraphs with lower confidence scores will be added. Therefore, in order to improve the recognition efficiency, it is also necessary to sort according to the confidence score and select more valuable knowledge subgraphs to participate in the recognition together with the inherent original knowledge graph to be recognized, so as to obtain more accurate recognition results.
[0062] Among them, see Appendix Figure 2 In the step of inputting the processed file to be recognized and the knowledge graph to be recognized into a pre-trained graph neural network, and the pre-trained graph neural network outputs the recognition result corresponding to the text to be recognized and the knowledge graph, the training method of the graph neural network includes the following steps:
[0063] Obtain training samples to be identified, the training samples to be identified include original text samples to be identified and original knowledge graph samples to be identified, wherein the original text samples to be identified are original text samples to be identified with known recognition results, and the knowledge graphs to be identified are knowledge graph samples to be identified with known recognition results;
[0064] Performing data processing on the original text sample to be identified and the original knowledge graph sample to be identified to obtain the processed text sample to be identified and the processed knowledge graph sample to be identified;
[0065] The processed file samples to be identified and the knowledge graph to be identified are input into the graph neural network. The graph neural network adjusts the parameters of the graph neural network according to the processed file samples to be identified and the recognition results corresponding to the original text samples to be identified, as well as the processed knowledge graph samples to be identified and the recognition results corresponding to the original knowledge graph to be identified, to obtain a pre-trained graph neural network.
[0066] In this case, since the training method for the training samples is the same as the data processing method of the file samples to be identified and the knowledge graph to be identified, the pre-trained graph neural network obtained by the training method is more adaptable to the original text to be identified and the original knowledge graph to be identified.
[0067] In the step of inputting the processed file to be recognized and the knowledge graph to be recognized into a pre-trained graph neural network, and the pre-trained graph neural network outputs the recognition result corresponding to the text to be recognized and the knowledge graph, the training method of the graph neural network also includes the following steps:
[0068] Add the current original text to be recognized, as well as the current original knowledge graph to be recognized; the recognition result corresponding to the current original text to be recognized, as well as the recognition result corresponding to the current original knowledge graph to be recognized to the training samples to be recognized.
[0069] In this case, the current original text to be recognized after each recognition, the current original knowledge graph to be recognized, and the recognition results can be further added to the training samples to play the role of sample iteration, so that the recognition model and parameters of the graph neural network are richer. Therefore, as the learning samples of the graph neural network increase, the recognition of the obtained graph neural network is more accurate and the recognition efficiency is higher. Semantic recognition device based on graph neural network
[0070] See attached Figure 3 , the semantic recognition device based on graph neural network provided by the embodiment of the present invention includes:
[0071] The data acquisition unit is used to acquire the original text to be recognized and the original knowledge graph to be recognized.
[0072] Specifically, taking medical diagnosis data as an example, the original text to be identified can be text data recorded by a doctor based on the patient's complaint; the original knowledge graph to be identified can be image data obtained from medical instrument diagnosis. For example, a 6-year-old child went to see a doctor one day because he accidentally fell on his head while playing. Since the brain is the control center of the human body, the doctor first needs to judge whether the child is injured inside by appearance. Therefore, the child is asked about the process of falling. If the child can clearly and fluently express the process of falling, it can be preliminarily judged that it is likely to be a skin injury. Therefore, the child's fall process is recorded in the patient's complaint, and the wound condition is described in words and text, which is the original text to be identified in step S1. However, only the child's complaint and the appearance of his wound cannot accurately confirm whether the child's head bone is injured. Therefore, it is necessary to perform an instrument scan on the child's head bone and obtain the result image of the instrument scan. However, the result image of the instrument scan cannot express the appearance of the child's wound. Based on this, according to the child's chief complaint, the written record of the apparent wound, and the image results of the instrument scan of the child's head bones, the child's wound diagnosis results can be comprehensively obtained, and a treatment plan can be given, such as whether stitches, anti-infection and other treatment measures are needed.
[0073] The data processing unit is used to perform data processing on the original text to be recognized and the original knowledge graph to be recognized to obtain the processed text to be recognized and the knowledge graph to be recognized.
[0074] Specifically, data processing is performed based on the original text to be identified, and the relevant terms in the original text to be identified can be standardized. Taking the treatment plan for children's falls in step S1 as an example, since different children have different ways of expression, there may be more ways of expression for the same description of the fall scene; for the same wound appearance, there may also be more ways of expression for the wound information recorded by different doctors. Therefore, it is necessary to standardize the original text to be identified so that the corresponding natural language expression content can be unified as much as possible. Similarly, the same instrument scanned image is scanned by different instruments, and the image clarity and noise conditions obtained will also be different. In this case, noise reduction processing is performed on the original graph to be identified, which can improve the clarity of the original graph to be identified. Therefore, data processing of the original text to be identified and the original knowledge graph to be identified can reduce the difficulty of learning and recognition based on graph neural networks, thereby improving recognition efficiency and recognition accuracy.
[0075] The pre-trained graph neural network is used to identify the processed files to be identified and the knowledge graph to be identified that are input into the pre-trained graph neural network, and obtain recognition results corresponding to the text to be identified and the knowledge graph.
[0076] Specifically, the pre-trained graph neural network is based on the original text samples to be recognized with known recognition results and the knowledge graph samples to be recognized with known recognition results, and adopts the same data processing method as the above step S2. Therefore, through the training samples, the parameters and recognition model of the graph neural network can be adjusted. In particular, the more training samples there are, the more accurate the parameters and recognition model of the graph neural network are, and the recognition results obtained by the graph neural network are more accurate and the error rate is lower.
[0077] The semantic recognition device based on graph neural network provided by the present invention processes the original text to be recognized and the original knowledge graph to be recognized, and then inputs the result obtained after data processing into a pre-trained graph neural network. Finally, the pre-trained graph neural network performs calculations to obtain recognition results corresponding to the original text to be recognized and the original knowledge graph to be recognized. It combines semantics with graphs, which can improve the accuracy of semantic recognition, especially complex semantic recognition.
[0078] Computer readable storage medium
[0079] The computer-readable storage medium provided by the embodiment of the present invention stores a semantic recognition program based on a graph neural network. When the semantic recognition program based on a graph neural network is executed by a processor, the steps of the semantic recognition method based on a graph neural network provided by the embodiment of the present invention are implemented.
[0080] The computer-readable storage medium provided by the present invention processes the original text to be recognized and the original knowledge graph to be recognized, and then inputs the result obtained after the data processing into a pre-trained graph neural network. Finally, the pre-trained graph neural network performs calculations to obtain recognition results corresponding to the original text to be recognized and the original knowledge graph to be recognized. It combines semantics with graphs, which can improve the accuracy of semantic recognition, especially complex semantic recognition.
[0081] Electronic devices
[0082] The electronic device provided by the present invention includes a memory and a processor. The memory stores a semantic recognition program based on a graph neural network. When the semantic recognition program based on a graph neural network is executed by the processor, the steps of the semantic recognition method based on a graph neural network provided by the present invention are implemented.
[0083] The electronic device provided by the present invention processes the original text to be recognized and the original knowledge graph to be recognized, and then inputs the result obtained after the data processing into a pre-trained graph neural network. Finally, the pre-trained graph neural network performs calculations to obtain recognition results corresponding to the original text to be recognized and the original knowledge graph to be recognized. It combines semantics with graphs, which can improve the accuracy of semantic recognition, especially complex semantic recognition.
[0084] Reference Figure 4 , Figure 4 This is a schematic diagram of the structure of a semantic recognition device based on a graph neural network in the hardware operating environment involved in an embodiment of the present invention.
[0085] like Figure 4 As shown, the semantic recognition device based on the graph neural network may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0086] Those skilled in the art will understand that Figure 4 The structure shown in the figure does not constitute a limitation on the semantic recognition device based on graph neural network, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0087] like Figure 4 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module, and a semantic recognition program based on a graph neural network.
[0088] exist Figure 4In the semantic recognition device based on graph neural network shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the semantic recognition device based on graph neural network of the present invention can be set in the semantic recognition device based on graph neural network, and the semantic recognition device based on graph neural network calls the semantic recognition program based on graph neural network stored in the memory 1005 through the processor 1001, and executes the semantic recognition method based on graph neural network provided by the embodiment of the present invention.
[0089] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0090] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A semantic recognition method based on graph neural network, characterized in that: The following steps are involved: Obtain the original text to be identified and the original knowledge graph to be identified; Performing data processing on the original text to be identified and the original knowledge graph to be identified to obtain processed text to be identified and the knowledge graph to be identified; The processed file to be recognized and the knowledge graph to be recognized are input into a pre-trained graph neural network, and the pre-trained graph neural network outputs a recognition result corresponding to the text to be recognized and the knowledge graph.
2. The semantic recognition method based on graph neural network according to claim 1 is characterized in that: In the process of performing data processing on the original text to be recognized and the original knowledge graph to obtain the processed text to be recognized and the knowledge graph, Performing data processing on the original text to be recognized to obtain the processed text to be recognized specifically includes the following steps: The concepts in the original text to be identified are identified, and the concepts in the text to be identified are replaced with unique identifiers corresponding to the concepts in the original text to be identified, so as to obtain processed text to be identified.
3. The semantic recognition method based on graph neural network according to claim 1 is characterized in that: In the process of performing data processing on the original text to be recognized and the original knowledge graph to obtain the processed text to be recognized and the knowledge graph, Performing data processing on the original knowledge graph to be identified to obtain a processed knowledge graph specifically includes the following steps: Identification and noise reduction processing are performed on the original knowledge graph to be identified to obtain a processed knowledge graph to be identified with higher clarity than the original knowledge graph to be identified.
4. The semantic recognition method based on graph neural network according to claim 1 is characterized in that: In the step of obtaining the original text to be identified and the original knowledge graph to be identified, the original knowledge graph to be identified includes the inherent original knowledge graph to be identified and the knowledge subgraph obtained by entity linking through the set knowledge linking model.
5. The semantic recognition method based on graph neural network according to claim 4 is characterized in that: In the step of obtaining a knowledge subgraph by entity linking through a set knowledge linking model, the set knowledge linking model is a complete spatial pipeline and a scientific biomedical literature model, and the knowledge subgraph obtained by entity linking through the set knowledge linking model specifically includes the following steps: Assigning a confidence score to each knowledge subgraph in the knowledge subgraph obtained by entity linking through the set knowledge linking model; For each knowledge subgraph in the knowledge subgraph obtained by entity linking through the set knowledge linking model, sorting according to the confidence score; A set number of knowledge subgraphs is selected according to the set number requirement for each knowledge subgraph in the knowledge subgraph obtained by entity linking through the set knowledge linking model, and the set number of knowledge subgraphs and the inherent original knowledge graph to be identified together constitute the original knowledge graph to be identified.
6. The semantic recognition method based on graph neural network according to claim 1 is characterized in that: In the step of inputting the processed file to be recognized and the knowledge graph to be recognized into a pre-trained graph neural network, and having the pre-trained graph neural network output a recognition result corresponding to the text to be recognized and the knowledge graph, the training method of the graph neural network includes the following steps: Obtain a training sample to be identified, wherein the training sample to be identified includes an original text sample to be identified and an original knowledge graph sample to be identified, wherein the original text sample to be identified is an original text sample to be identified with a known recognition result, and the knowledge graph to be identified is a knowledge graph sample to be identified with a known recognition result; Performing data processing on the original text sample to be identified and the original knowledge graph sample to be identified to obtain processed text samples to be identified and processed knowledge graph samples to be identified; The processed file samples to be identified and the knowledge graph to be identified are input into the graph neural network, and the graph neural network adjusts the parameters of the graph neural network according to the processed file samples to be identified and the recognition results corresponding to the original text samples to be identified, and the processed knowledge graph samples to be identified and the recognition results corresponding to the original knowledge graph to be identified, so as to obtain the pre-trained graph neural network.
7. The semantic recognition method based on graph neural network according to claim 6 is characterized in that: In the step of inputting the processed file to be recognized and the knowledge graph to be recognized into a pre-trained graph neural network, and having the pre-trained graph neural network output a recognition result corresponding to the text to be recognized and the knowledge graph, the graph neural network training method further includes the following steps: Add the current original text to be recognized, and the current original knowledge graph to be recognized; the recognition result corresponding to the current original text to be recognized, and the recognition result corresponding to the current original knowledge graph to be recognized to the training samples to be recognized.
8. A semantic recognition device based on graph neural network, characterized in that: include: A data acquisition unit, used to acquire the original text to be recognized and the original knowledge graph to be recognized; A data processing unit, used for performing data processing on the original text to be identified and the original knowledge graph to be identified to obtain processed text to be identified and the knowledge graph to be identified; The pre-trained graph neural network is used to identify the processed files to be identified and the knowledge graph to be identified that are input into the pre-trained graph neural network, and obtain recognition results corresponding to the text to be identified and the knowledge graph.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a semantic recognition program based on a graph neural network. When the semantic recognition program based on a graph neural network is executed by a processor, the steps of the semantic recognition method based on a graph neural network described in any one of claims 1 to 7 are implemented.
10. An electronic device, characterized in that: It includes a memory and a processor, wherein a semantic recognition program based on a graph neural network is stored in the memory, and when the semantic recognition program based on a graph neural network is executed by the processor, the steps of the semantic recognition method based on a graph neural network described in any one of claims 1-7 are implemented.
Citation Information
Cited By
Medical training evaluation method and system based on intelligent simulated patient
CN120656734A
