Pet / ct image report conclusion assisted generation method and device based on knowledge graph
By using a knowledge graph-based approach, text classification and generation models are used to generate image anomaly summaries. Combined with knowledge graphs, diagnostic suggestions and disease types are determined, which solves the problem of image conclusions relying on physician experience and achieves efficient and accurate automated generation of image conclusions.
Patent Information
- Application Number
- CN202211336452.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-28
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-10-28
AI Technical Summary
The current PET/CT image report generation relies on physician experience, resulting in low accuracy and efficiency.
A knowledge graph-based approach is used to generate image anomaly summaries through text classification, generation, and binary classification models. The knowledge graph is then used to determine diagnostic suggestions and disease types, and image conclusions are automatically generated.
It improves the accuracy and efficiency of imaging conclusions and reduces reliance on physician experience.
Smart Images

Figure CN115910263B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a method and apparatus for assisting in the generation of PET / CT image report conclusions based on knowledge graphs. Background Technology
[0002] PET / CT is a novel imaging technique that organically combines PET (functional metabolic imaging) and CT (anatomical imaging). It involves injecting a trace amount of positron-emitting radionuclide tracer into the human body, then using a special in vitro detector (PET) to detect the distribution of these radionuclides in various organs. Computed tomography (CT) is then used to display the physiological metabolic functions of major organs, while CT technology is applied to precisely locate the distribution of these radionuclides. PET / CT imaging is widely used in the auxiliary diagnosis and evaluation of diseases such as tumors, coronary heart disease, and brain disorders.
[0003] Currently, the PET / CT image reports generated by the radiology information systems of mainstream PET / CT equipment manufacturers consist of two parts: image manifestations and image conclusions. The image manifestations section is generally generated manually by physicians or through automatic text generation methods from images to text. The image conclusions section typically consists of a summary of the image manifestations, suspected diseases, and diagnostic recommendations. Since the content of the image conclusions section is derived from the analysis of the PET / CT images, it is currently entirely generated by physicians manually inputting their conclusions after analysis and judgment. The generation of these image conclusions depends entirely on the physician's experience and skill, making it difficult to ensure the accuracy of the image conclusions. Furthermore, after the physician analyzes the PET / CT images and arrives at their conclusions, they still need to manually input the specific text content, which reduces the efficiency of PET / CT image conclusion generation. Therefore, improving the accuracy and efficiency of image conclusion generation is a pressing technical problem that needs to be solved. Summary of the Invention
[0004] In view of this, the present invention provides a method and apparatus for assisting in the generation of PET / CT image report conclusions based on knowledge graphs, in order to solve one or more problems existing in the prior art.
[0005] According to one aspect of the present invention, a knowledge graph-based method for assisting in the generation of PET / CT image report conclusions is disclosed, the method comprising:
[0006] Acquire PET / CT image data to be predicted, wherein the PET / CT image data includes first image representation text information;
[0007] The text information of the first image is input into the trained text classification model to obtain structured text classification results categorized by different body parts;
[0008] The structured text classification results are input into the trained text generation model to obtain the image performance text summary corresponding to each category of body part, and the image performance text summary is input into the trained binary classification model to obtain the image abnormality performance summary.
[0009] Knowledge graphs are constructed based on historical image reports;
[0010] The first image representation text information is input into the trained entity extraction model to obtain the first entity of the first image representation text information. Based on the first entity and the knowledge graph, the diagnostic suggestion text and disease type text corresponding to the first image representation text information are determined.
[0011] The summary of the abnormal image manifestations, the diagnostic suggestion text, and the disease type text are used as the first image conclusion text of the PET / CT image data to be predicted.
[0012] In some embodiments of the present invention, the method further includes:
[0013] Based on the historical image report, a first sample dataset, a second sample dataset, a third sample dataset, and a fourth sample dataset are constructed;
[0014] Based on the first sample dataset, the second sample dataset, the third sample dataset, and the fourth sample dataset, the first network model, the second network model, the third network model, and the fourth network model are pre-trained respectively to obtain the trained text classification model, text generation model, binary classification model, and entity extraction model.
[0015] In some embodiments of the present invention, a first sample dataset, a second sample dataset, a third sample dataset, and a fourth sample dataset are constructed based on the historical image report, including:
[0016] Obtain the second image presentation text and the second image conclusion text from the historical image report;
[0017] The obtained second image representation text and second image conclusion text are preprocessed;
[0018] Based on the preprocessed second image performance text and second image conclusion text, a first sample dataset, a second sample dataset, a third sample dataset, and a fourth sample dataset are constructed;
[0019] The sample data in the first sample dataset includes category information of body parts and structured text information; the sample data in the second sample dataset includes text summary pairs; the sample data in the third sample dataset includes image representation text summary and text representation type; and the sample data in the fourth sample dataset includes a second entity and its type.
[0020] In some embodiments of the present invention, the text classification model, text generation model, binary classification model, and entity extraction model are respectively the fasttext model, the pointer-generator model, the BERT model, and the BiLSTM-CRF model.
[0021] In some embodiments of the present invention, a knowledge graph is constructed based on historical image reports, including:
[0022] Obtain the second image presentation text and the second image conclusion text from the historical image report;
[0023] The second entity in the second image presentation text and the second image conclusion text is labeled. The types of the second entity include disease, diagnosis suggestion, body part, abnormal symptoms, and normal symptoms.
[0024] Alignment is performed on second entities representing the same content in different historical image reports, and the information contained in the aligned second entities is then merged.
[0025] A knowledge graph is constructed based on multiple second entities after alignment and information fusion.
[0026] In some embodiments of the present invention, the method further includes:
[0027] The knowledge graph is stored using a graph database, such as Neo4j, 3store, DLDB, or Jena.
[0028] In some embodiments of the present invention
[0029] The information contained in the aligned second entity is merged, including:
[0030] The string similarity of the information contained in the aligned second entity is calculated based on the string similarity model.
[0031] The semantic similarity of the information contained in the aligned second entity is calculated based on the semantic similarity model.
[0032] The string similarity and the semantic similarity are fused to obtain the fused similarity.
[0033] The calculation formula used in the string similarity model is as follows:
[0034]
[0035] Where, sim str (x, y) represents the string similarity between entity x and entity y, where x and y represent two entities with similar strings, P(x) represents the character list after decomposing entity x, and P(y) represents the character list after decomposing entity y.
[0036] The semantic similarity model uses the following calculation formula:
[0037]
[0038] Where, sim emb (x, y) represents the semantic similarity between entity x and entity y, where x i Let yi represent the i-th value in the word vector of entity x, yi represent the i-th value in the word vector of entity y, and n represent the number of elements in the word vector.
[0039] In some embodiments of the present invention, the formula for calculating the fusion similarity is:
[0040]
[0041] Where sim(x, y) represents the fusion similarity between the second entity x and the second entity y. This represents the weighting coefficient.
[0042] According to another aspect of the present invention, the present invention also discloses a knowledge graph-based PET / CT image report conclusion auxiliary generation system. The system includes a processor and a memory, wherein the memory stores computer instructions, and the processor is used to execute the computer instructions stored in the memory. When the computer instructions are executed by the processor, the system implements the steps of the method as described in any of the above embodiments.
[0043] According to another aspect of the present invention, a computer-readable storage medium is also disclosed having a computer program stored thereon, which, when executed by a processor, implements the steps of the method as described in any of the above embodiments.
[0044] The PET / CT image report conclusion generation method and apparatus disclosed in this invention, based on a knowledge graph, obtains image manifestation text summaries corresponding to various body parts based on a text generation model, and then obtains image abnormality manifestation summaries based on a binary classification model. This method categorizes the image manifestation text content according to body parts and performs binary classification on the categorized image manifestation text summaries to obtain image abnormality manifestation summaries, facilitating the generation of summary information needed to characterize image abnormalities for the image conclusion. Furthermore, when generating diagnostic suggestion text and disease type text, this method applies a knowledge graph to the text generation of PET / CT image report conclusions. The interpretability and strong entity association of the knowledge graph enable the image report conclusion generation method and apparatus of this invention to more accurately obtain diagnostic suggestions and disease types from the first image manifestation text information, thereby improving the accuracy of image conclusion text generation. Moreover, this invention can automatically generate the first image conclusion text based on the first image manifestation text, eliminating the need for manual analysis and input, thus improving the efficiency of image conclusion text generation.
[0045] Additional advantages, objects, and features of the invention will be set forth in part in the description which follows, and will also become apparent in part to those skilled in the art upon studying the text, or may be learned by practice of the invention. The objects and other advantages of the invention can be realized and obtained by means of the structures specifically pointed out in the written description, claims, and drawings.
[0046] Those skilled in the art will understand that the objectives and advantages achievable with the present invention are not limited to those specifically described above, and that the above and other objectives achievable with the present invention will become clearer from the following detailed description. Attached Figure Description
[0047] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, are not intended to limit the scope of the invention. The components in the drawings are not drawn to scale but are merely illustrative of the principles of the invention. For ease of illustration and description of certain parts of the invention, corresponding portions in the drawings may be enlarged, i.e., may appear larger relative to other components in an exemplary device actually manufactured according to the invention. In the drawings:
[0048] Figure 1 This is a flowchart illustrating a knowledge graph-based method for assisting in the generation of PET / CT image report conclusions, according to an embodiment of the present invention.
[0049] Figure 2 This is a flowchart illustrating another embodiment of the knowledge graph-based method for assisting in the generation of PET / CT image report conclusions.
[0050] Figure 3 This is a schematic diagram of the structure of a BiLSTM model according to an embodiment of the present invention.
[0051] Figure 4 This is a schematic diagram of the structure of a BiLSTM-CRF model according to an embodiment of the present invention.
[0052] Figure 5 This is a schematic diagram of the architecture of a knowledge graph-based PET / CT image report conclusion assistance generation system according to an embodiment of the present invention.
[0053] Figure 6 This is a schematic diagram of the image performance classification module of an image report conclusion auxiliary generation system according to an embodiment of the present invention.
[0054] Figure 7 This is a schematic diagram of the image summary generation module of an image report conclusion-assisted generation system according to an embodiment of the present invention.
[0055] Figure 8 This is a schematic diagram of the image diagnosis suggestion generation module of an image report conclusion auxiliary generation system according to an embodiment of the present invention.
[0056] Figure 9 This is a schematic diagram of the disease type generation module of an image report conclusion auxiliary generation system according to an embodiment of the present invention. Detailed Implementation
[0057] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0058] It should be noted that, in order to avoid obscuring the invention with unnecessary details, only the structures and / or processing steps closely related to the solution according to the invention are shown in the accompanying drawings, while other details that are not closely related to the invention are omitted.
[0059] It should be emphasized that the term "including / comprises / has" as used herein refers to the presence of a feature, element, step, or component, but does not exclude the presence or addition of one or more other features, elements, steps, or components.
[0060] This application discloses a knowledge graph-based method and apparatus for assisting in the generation of PET / CT image report conclusions. By constructing a knowledge graph, it predicts the image conclusions of the image presentation text to be predicted and automatically generates standardized image conclusion text. Furthermore, this application facilitates the sorting out of the relationships between entities and the unique attributes of entities, improving the efficiency of entity retrieval and retrieval. While ensuring the accuracy of the generated image conclusions, it effectively improves the efficiency of image conclusion generation.
[0061] In the following description, embodiments of the invention will be illustrated with reference to the accompanying drawings. In the drawings, the same reference numerals represent the same or similar parts, or the same or similar steps.
[0062] Figure 1 This is a flowchart illustrating a knowledge graph-based method for assisting in the generation of PET / CT image report conclusions according to an embodiment of the present invention. Figure 1 As shown, the image report conclusion-assisted generation method includes at least steps S10 to S60.
[0063] Step S10: Obtain the PET / CT image data to be predicted, wherein the PET / CT image data includes first image representation text information.
[0064] In this step, the PET / CT image data to be predicted is the image data whose image conclusion needs to be predicted. The PET / CT image data to be predicted contains first image performance text information. That is, the image report conclusion auxiliary generation method in this application embodiment automatically generates the first image conclusion text of the PET / CT image data to be predicted based on the first image performance text information in the PET / CT image data to be predicted.
[0065] Step S20: Input the text information of the first image into the trained text classification model to obtain structured text classification results categorized by different body parts.
[0066] In this step, the textual information of the first image obtained in step S10 is classified based on body parts using a text classification model. (Reference) Figure 2 The input to the text classification model is multiple text sentences corresponding to the text information represented by the first image. At this time, the output of the text classification model is a structured text classification result.
[0067] For example, a trained text classification model can be a FastText text classification model. Before actual prediction, the model needs to be pre-trained. This requires constructing a first sample dataset based on historical image reports, and then pre-training the first network model on this dataset to obtain the trained FastText text classification model. The historical image reports contain not only second image representation text but also second image conclusion text. When training the text classification model, the second image representation text and second image conclusion text from the historical image reports are first obtained; these texts are then pre-processed; and the first sample dataset is constructed based on the pre-processed texts. The sample data in the first sample dataset includes category information of body parts and structured text information from the image representation text.
[0068] Specifically, after obtaining historical image reports, the first step is to analyze the historical PET / CT image report text, extracting the image manifestation text and image conclusion text. The Python version of the PDF text extraction tool pdfplumber can be used to extract the text from the historical PET / CT image reports, matching the strings for "image manifestation" and "image conclusion" to retrieve the image manifestation and image conclusion texts from the historical image reports. Then, the image manifestation text from the historical PET / CT image reports is used to train a fasttext text classification model. This trained model can predict and classify text sentences based on body parts, outputting a structured text set of sentences categorized by body part. This ensures that the image manifestation text summary in subsequent steps is generated from this set of sentences categorized by body part, thus ensuring that the obtained image conclusions are also displayed according to body part categorization.
[0069] For example, in one embodiment, after obtaining historical PET / CT image reports containing text on the second image manifestation and the second image conclusion, some stop words in the PET / CT image report text are first removed, and the text in the report is processed using Jieba word segmentation. Further, multiple historical image reports are labeled manually to obtain a first sample dataset. The sample data in the first sample dataset is shown below: "__label__1, bilateral cerebral hemispheres are symmetrical, gray-white matter contrast is normal". The first sample dataset includes multiple sample data, which are ultimately divided into a test dataset and a training dataset in a 3:7 ratio.
[0070] Further, a first network model based on the fasttext text classification model is constructed. fasttext is an open-source supervised text classification model. fastText uses bag-of-words and bag-of-n-grams to represent sentences, and also uses subword information. It shares information between categories by hiding representations, providing a simple and efficient method for text classification and representation learning, with performance comparable to deep learning, but faster. The model parameters can be set as follows: Epoch value of 0.5, learning rate of 0.1, and n-gram features of 2.
[0071] Step S30: Input the structured text classification results into the trained text generation model to obtain the image performance text summary corresponding to each category of body part, and input the image performance text summary into the trained binary classification model to obtain the image abnormal performance summary.
[0072] The structured text classification result in this step is the output of the text classification model, and the image representation text summary output by the text generation model generally includes a summary of normal image representation and a summary of abnormal image representation. The summary of normal image representation represents the body parts corresponding to the absence of disease, while the summary of abnormal image representation represents the body parts corresponding to the presence of disease. For the binary classification model, the image representation text summaries of different body parts output by the text generation model are used as input to complete the binary classification of normal and abnormal representations. Based on the classification label, the summaries representing normal representations are removed, and the text summary representing abnormal image representations is output.
[0073] For example, the trained text generation model can be a pointer-generator text generation model, and the trained binary classification model can be a BERT text binary classification model. That is, in this embodiment, the pointer-generator text generation model first generates text summaries of image representations of different categories of body parts, and then the BERT text binary classification model filters out text summaries with normal image representations, while retaining text summaries with abnormal representations.
[0074] Similarly, when pre-training the text generation model and the binary classification model, it is first necessary to construct a second sample dataset and a third sample dataset based on historical image reports. Then, the second network model is pre-trained based on the second sample dataset to obtain a trained text generation model; and the third network model is pre-trained based on the third sample dataset to obtain a trained binary classification model. The sample data in the second sample dataset includes text summary pairs, while the sample data in the third sample dataset includes image representation text summaries and text representation types, where the text representation type is either normal or abnormal.
[0075] Specifically, when constructing the second sample dataset, the second image performance text and the second image conclusion text from historical image reports are first obtained. These texts are then preprocessed. The second sample dataset is constructed based on these preprocessed texts. Specifically, the second image performance text is segmented using jieba, and the segmented text is converted into text summary pairs. The sample data in the second sample dataset is in the form of "text-summary," and the ratio of training set to test set samples in the second sample dataset can be 7:3.
[0076] The pointer-generator text generation model is a generative text generation model that adds a pointer mechanism to the seq2seq generative network. It can generate new words, rewrite sentences, and solve the problem of repetitive and redundant output in seq2seq networks. Specific model training parameters can be set as follows: 256 hidden layers, 128 word vector dimensions, 16 minimum batch size, 100 maximum time steps for the encoder, 50 maximum time steps for the decoder, a beam size of 4 for beam search decoding, a minimum sequence length of 15 for generating summaries, and a learning rate of 0.15. It should be understood that the text generation model type and parameters listed in this embodiment are merely examples; in other embodiments, the model type and parameters can be changed according to the actual application scenario.
[0077] Since the trained text generation model generates image representation text summaries of various body parts in the first image representation text, and since diagnostic conclusions usually only retain those with abnormal image representations, the image representation text summaries are further classified into normal and abnormal representations. This filters out summaries of texts with normal representations from the image representations and retains summaries of texts with abnormal representations.
[0078] When pre-training a third network model on a third sample dataset to obtain a trained BERT text binary classification model, the historical PET / CT image report dataset is first pre-processed and labeled to generate training and testing datasets. Then, the BERT text classification model is trained on the third sample dataset. The trained BERT text classification model is used to enhance the semantic representation of word vectors to obtain word vectors. The first token position (CLS position) of the last layer output of BERT is used as the representation of the sentence. A fully connected layer is then used for classification. The CLS vector of the last layer is used for classification to determine whether the corresponding text summary belongs to a normal text summary or an abnormal text summary.
[0079] Specifically, firstly, historical PET / CT image report data is obtained, and all text content except for the text on the second image manifestation and the text on the second image conclusion are removed from the historical PET / CT image reports; further, sentiment annotation is performed on the data, such as text representing normal image manifestation being annotated with 0, and text representing abnormal image manifestation being annotated with 1, as shown in the data format:
[0080] The liver is of normal size and shape, with uniform density within the liver; no abnormal density shadows were observed.
[0081] 0. Both cerebral hemispheres are symmetrical, and the contrast between gray and white matter is normal.
[0082] 1. Calcification at the origin of the right subclavian artery and the wall of the thoracic aorta;
[0083] 1. Calcification of the abdominal aortic wall.
[0084] In the third sample dataset, the ratio of sample data in the test dataset to that in the training dataset can also be 3:7. In one embodiment, the number of layers in the BERT model can be set to 12, the output dimension can be 768, and the number of multi-head attention mechanisms can be 12. In addition, the number of training epochs of the BERT model can be set to 4, the minimum batch size can be set to 16, and the learning rate can be set to 5.
[0085] Step S40: Construct a knowledge graph based on historical image reports.
[0086] A knowledge graph is a structured semantic knowledge base used to describe concepts and their relationships in the physical world in symbolic form. Its basic building blocks are "entity-relationship-entity" triples, as well as entities and their associated attribute-value pairs. Entities are interconnected through relations, forming a graph-based data structure. Knowledge extraction includes entity extraction and relation extraction; in this application, knowledge extraction mainly refers to extracting entities such as image presentation, image conclusions, diseases, body parts, examination methods, examination equipment, image presentation suggestions, and medical terminology, as well as the relationships between them, from historical image report text.
[0087] For example, constructing a knowledge graph based on historical image reports includes: obtaining second image performance text and second image conclusion text from historical image reports; annotating second entities in the second image performance text and second image conclusion text, wherein the types of the second entities include diseases, diagnostic suggestions, body parts, abnormal symptoms, and normal symptoms, and the specific content of the entities is the specific text content under each of the above types; performing an alignment operation on second entities representing the same content in different historical image reports, and fusing the information contained in the aligned second entities; and constructing a knowledge graph based on the multiple second entities after the alignment operation and information fusion.
[0088] The knowledge graph contains five key entity types from historical PET / CT image reports: disease, diagnostic recommendations, body parts, abnormal symptoms, and normal symptoms. Knowledge storage refers to the persistent storage of entities and entity relationships extracted from PET / CT image reports. When stored, knowledge includes five attributes: identifier, name, type, hierarchy, and associated entity set. For example, the knowledge graph contains eight entity relationships involving these five key entity types, such as: entity relationships between body parts and abnormal symptoms, between abnormal symptoms and diseases, between body parts and diseases, between normal symptoms and diseases, between body parts and normal symptoms, between normal symptoms and diagnostic recommendations, between body parts and diagnostic recommendations, and between abnormal symptoms and diagnostic recommendations.
[0089] Specifically, when constructing the knowledge graph, the historical PET / CT image report PDF text is first extracted, line breaks and spaces are removed, and irrelevant diagnostic information such as links is cleared from the text, resulting in a text dataset containing PET / CT diagnostic information. Further, five entities—"disease," "diagnostic suggestion," "body part," "abnormal symptoms," and "normal symptoms"—are labeled, and the image report data is labeled according to the BIOES format. B indicates the word is at the beginning of an entity, I indicates it is inside an entity, O indicates it is outside an entity (i.e., the word does not belong to any entity), E indicates it is at the end of an entity, and S indicates a single character is an entity, for example, "skin / B-dis skin / I-dis malignant / I-dis sex / I-dis black / I-dis color / I-dis pigment / I-dis tumor / E-dis". After labeling the report data, the labeled sample data is further divided into a test dataset and a training dataset in a 3:7 ratio. The table below shows the entity types and their corresponding information in one example:
[0090] 0 lung cancer disease 1 A biopsy is recommended to confirm. Diagnostic recommendations 2 lungs body parts 3 Enlarged lymph nodes near the left carotid sheath with abnormally elevated FDG metabolism abnormal symptoms 4 Both cerebral hemispheres are symmetrical, and the contrast between gray and white matter is normal. Normal symptoms
[0091] Specifically, the model used for entity extraction from text in historical PET / CT image reports can be the BiLSTM-CRF model. BiLSTM consists of two LSTM neural networks running in opposite directions. One layer passes features from left to right, also known as forward pass, which in text processing means starting the input from the beginning of the sentence. The other layer performs the reverse, passing features backward. Finally, the two results are concatenated and output through a fully connected layer. The structure of BiLSTM is as follows: Figure 3As shown in the diagram. The CRF model can improve label prediction performance by constraining the final predicted labels. These constraints are automatically learned during training and do not need to be added manually. Therefore, adding a CRF layer to BiLSTM for constraint and then outputting the prediction results can effectively eliminate invalid predicted label sequences. The structure diagram of the character-based BiLSTM-CRF model is shown below. Figure 4 As shown in the figure, in this embodiment, in order to obtain a trained entity extraction model, a fourth sample dataset is constructed based on the historical image report, and then the fourth network model is pre-trained based on the fourth sample dataset to obtain a trained BiLSTM-CRF entity extraction model.
[0092] The BiLSTM-CRF model was trained using word2vec for both initial character and word vectors. The BiLSTM-CRF model parameters can be set as follows: Dropout 0.5, initial learning rate 0.001, LSTM hidden state size 128, character vector dimension 128, Chinese character structure feature vector dimension 96, dictionary word vector dimension 136, and batch size 64. For example, specific information about entity data in one embodiment is shown in the table below:
[0093] Entity Name Label quantity disease dis 156 Diagnostic recommendations dis 1099 body parts drug 619 abnormal symptoms nsym 3650 Normal symptoms nsym 3260 total 8784
[0094] Furthermore, after completing the named entity recognition and database entry, there is a problem of character similarity among entity data from different PET / CT reports automatically entered into the database. This means the same entity can have multiple expressions, necessitating the solution of knowledge alignment. Knowledge alignment refers to addressing the issue of multiple words with the same meaning among entities obtained from PET / CT reports. A similarity calculation model is used to map entities from different data sources to the same vector space. By calculating the distance between vectors, when the similarity between two entities reaches a certain threshold, they can be considered to share the same attribute, and further entity fusion (alignment) is performed; for example, "lung" and "lung tissue". Additionally, situations where entities have similar characters but significantly different semantics, such as "lymph node enlargement" and "lymphoma," can lead to data redundancy in the knowledge graph and prevent correct linking to entities in the knowledge graph during disease type and diagnostic suggestion inference. To address the aforementioned issues, the information contained in the aligned second entity is further fused. The specific steps include: calculating the string similarity of the information contained in the aligned second entity based on a string similarity model; calculating the semantic similarity of the information contained in the aligned second entity based on a semantic similarity model; and fusing the string similarity and the semantic similarity to obtain a fused similarity.
[0095] The calculation formula used in the string similarity model is as follows:
[0096]
[0097] Where, sim str (x, y) represents the string similarity between entity x and entity y, where x and y represent two second entities with similar strings. P(x) and P(y) represent the decomposition of entities x and y, respectively. After decomposition, we can obtain the character list that constitutes the entity. Then, P(x) represents the character list after decomposing entity x, and P(y) represents the character list after decomposing entity y.
[0098] Word2vec trains word vectors based on context. Words with similar vectors often have similar meanings. Therefore, cosine similarity, calculated using word vector dimensions, can be used to measure semantic similarity between entities. Assuming the word vector for entity x is x = [x1, x2, ..., xn], and the word vector for entity y is y = [y1, y2, ..., yn], the formula used by the semantic similarity model is:
[0099]
[0100] Where, sim emb (x, y) represents the semantic similarity between entity x and entity y, where x i Let y represent the i-th value in the word vector of entity x. i Let represent the i-th value in the word vector of entity y, and n represent the number of elements in the word vector.
[0101] Furthermore, the formula for calculating the fusion similarity is:
[0102]
[0103] in, This represents the weighting coefficient. For example,
[0104] In one embodiment, the PET / CT image report conclusion-assisted generation method further includes: storing the knowledge graph using a graph database, such as Neo4j, 3store, DLDB, or Jena. 3store is a relational database that uses triple tables for storage; its structure is simple but involves numerous self-join operations, resulting in significant overhead. DLDB is also a relational database that uses adjacency lists for storage; its storage method is simple but may exceed the allowed column limit, and the tables may contain numerous null values, making it unable to represent one-to-many relationships or multi-valued attributes; adding, modifying, or deleting predicates is costly. Jena is a relational database that uses attribute tables to solve the self-join problem of triple tables; it also solves the problem of excessive columns in horizontal tables. The number of relational tables required for a real knowledge graph may exceed the limit, but the tables may contain numerous null values, making it unable to represent one-to-many relationships or multi-valued attributes. Neo4j is a graph database with "index-free adjacency" characteristics; this graph-based database solves the problems of null values, inability to represent one-to-many relationships or multi-valued attributes, and high costs associated with adding, modifying, or deleting predicates, but its maturity is not as high as that of relational databases. Comparing the database overhead and efficiency of the above four knowledge storage methods, Neo4j graph database is the preferred choice for knowledge storage.
[0105] Step S50: Input the first image representation text information into the trained entity extraction model to obtain the first entity of the first image representation text information, and determine the diagnostic suggestion text and disease type text corresponding to the first image representation text information based on the first entity and the knowledge graph.
[0106] In this step, the first entity includes five types: "disease", "diagnosis suggestion", "body part", "abnormal symptom", and "normal symptom". For example, the first entity extracted based on the entity extraction model could be "lung cancer (disease), recommended biopsy to confirm (diagnosis suggestion), lung (body part), enlarged lymph nodes next to the left carotid sheath with abnormally high FDG metabolism (abnormal symptom), bilateral cerebral hemispheres are symmetrical with normal gray and white matter contrast (normal symptom)".
[0107] The specific steps for determining the diagnostic suggestion text corresponding to the first image representation text information based on the first entity and the knowledge graph are as follows: A BiLSTM-CRF model is loaded to parse the first image representation text, identifying and storing several different types of central entities; the central entities processed by the BiLSTM-CRF model are used as input for knowledge graph retrieval to construct a knowledge graph query statement; entity information of the diagnostic suggestion type is queried from the knowledge graph, and an answer is constructed based on the template library and natural language formal rules, then the diagnostic suggestion text is output. If the query from the knowledge graph fails, a user-filled diagnostic suggestion mechanism can be triggered to supplement the knowledge graph and output the text.
[0108] Similarly, the specific steps for determining the disease type text corresponding to the first image representation text information based on the first entity and the knowledge graph include: loading a BiLSTM-CRF model to parse the first image representation text, identifying and storing several different types of central entities; using the several central entities processed by the BiLSTM-CRF model as input for knowledge graph retrieval to construct a knowledge graph query statement; querying entity information in the knowledge graph whose entity type is a disease type, constructing an answer based on a template library and natural language formal rules, and then outputting the disease type text. Similarly, if the query from the knowledge graph fails, a user-initiated suspected disease mechanism can be triggered to supplement the knowledge graph and output the text.
[0109] Step S60: Use the image abnormality summary, diagnostic suggestion text, and disease type text as the first image conclusion text of the PET / CT image data to be predicted.
[0110] This application's knowledge graph-based method for assisting in the generation of PET / CT image report conclusions predicts the image conclusions of the first image presentation text by constructing a knowledge graph, thereby generating a standardized image report. This method combines a knowledge graph, a named entity recognition model, and a classification model to automatically generate the image conclusion text of the PET / CT image report. Furthermore, the classification model removes image presentation text content irrelevant to the image conclusions and categorizes the presentation text by body part, achieving a hierarchical display of the image conclusions.
[0111] As can be seen from the above embodiments, when generating image conclusion text using the knowledge graph-based PET / CT image report conclusion-assisted generation method of the present invention, the historical PET / CT image report text is first analyzed to extract the second image manifestation text and the second image conclusion text. The fasttext text classification model is then trained based on the second image manifestation text. The trained fasttext text classification model predicts and classifies sentences in the first image manifestation text according to body parts, outputting a structured text set of sentences categorized by body parts. This ensures that the image manifestation text summary output in the next step is generated according to the set of sentences categorized by body parts. During the generation of image manifestation text summaries by category and the text binary classification filtering process, a pointer-generator text generation model generates image manifestation text summaries for different categories of body parts. A trained BERT text binary classification model filters text summaries with normal representations from the image manifestation text, retaining those with abnormal representations. In the knowledge graph-based diagnostic suggestion text generation process, a trained BiLSTM-CRF named entity model is used to identify the central entity in the first image representation text. Based on the identified central entity, a search query is constructed, and then the most relevant diagnostic suggestions in the knowledge graph are retrieved and output. Similarly, in the knowledge graph-based disease type text generation process, a trained BiLSTM-CRF named entity model is used to identify the central entity in the first image representation text. Based on the identified central entity, a search query is constructed, and then the most relevant disease type in the knowledge graph is retrieved and output.
[0112] Correspondingly, the present invention also discloses a knowledge graph-based PET / CT image report conclusion auxiliary generation system. The system includes a processor and a memory. The memory stores computer instructions, and the processor is used to execute the computer instructions stored in the memory. When the computer instructions are executed by the processor, the system implements the steps of the method as described in any of the above embodiments.
[0113] Figure 5 This is a schematic diagram of the architecture of a knowledge graph-based PET / CT image report conclusion assistance generation system according to an embodiment of the present invention, such as... Figure 5As shown, the system includes at least the following modules: image report text preprocessing module, image summary generation module, diagnostic suggestion generation module, disease type generation module, and diagnostic conclusion generation module. The image report text preprocessing module extracts image features and conclusions from historical PET / CT image report datasets. It also categorizes the image feature text of the user-input image report to be predicted according to body parts, obtaining a set of image feature text sentences for several different body parts. The image summary generation module generates image feature text summaries for different body parts, discarding summaries with normal image features and retaining those with abnormal image features. The diagnostic suggestion generation module loads a named entity recognition model to identify the central entity in the image feature text, constructs a retrieval statement based on the central entity, and then retrieves and outputs the most relevant diagnostic suggestion through a knowledge graph. The disease type generation module loads a named entity recognition model to identify the central entity in the image feature sentence, constructs a retrieval statement based on the central entity, and retrieves and outputs the most relevant disease type through a knowledge graph. The diagnostic conclusion generation module outputs the text summary, diagnostic suggestion, and disease type for abnormal features.
[0114] For example, the image report text preprocessing module includes an image report text extraction module, a fasttext classification model training module, and a fasttext classification model invocation module. The image report text extraction module is responsible for extracting the image manifestations and image conclusions from the PET / CT image report. The fasttext classification model training module trains the fasttext classification model using a first sample dataset constructed based on historical PET / CT image reports, evaluates the training results, and obtains the trained model. The fasttext classification model invocation module is responsible for invoking the trained fasttext classification model. The input to the fasttext classification model invocation module is a set of sentences representing the image manifestations in the image report to be predicted, and the output is structured text categorized by body part; that is, the input image manifestation text sentences are categorized by body part to obtain structured text corresponding to several different body parts.
[0115] refer to Figure 6 After the user inputs the PET / CT image data to be predicted, the image report text extraction module extracts the image manifestation text from the image data and initiates a request to generate a diagnostic conclusion. The image manifestation text is then preprocessed (stop words are removed and Jieba word segmentation is performed), and then the FastText classification model is loaded. After the FastText classification model is loaded, the image manifestation text of the image data to be predicted is classified according to body part and the classified structured text is output.
[0116] refer to Figure 7 The image summarization module includes a pointer-generator text generation model module and a BERT text classification model module. The pointer-generator text generation model module comprises a pointer-generator model training module and a pointer-generator model invocation module. The pointer-generator model training module is responsible for training the pointer-generator model based on the second sample dataset and storing the trained pointer-generator model as a file. The pointer-generator model invocation module is responsible for invoking the trained pointer-generator text generation model. The input to the pointer-generator model invocation module is the structured text, already categorized by body part, output from the image report text preprocessing module, and the output is a text summary of the image representation of different body parts. Furthermore, the BERT text classification model module also includes a BERT text classification model training module and a BERT text classification model calling module. The BERT text classification model training module is responsible for training the BERT text classification model based on the third sample dataset, evaluating the training results, and obtaining the trained model. The BERT text classification model calling module is responsible for performing binary classification on the image representation text summaries of different body parts output by the pointer-generator model, classifying them into normal and abnormal representations, and removing text summaries with normal representations based on the classification labels, and outputting text summaries with abnormal image representations.
[0117] The diagnostic suggestion generation module includes a named entity recognition module and a knowledge graph retrieval module. The named entity recognition module comprises a named entity recognition training module and a named entity recognition invocation module. The named entity recognition training module trains a BiLSTM-CRF model based on the fourth sample dataset, evaluates the training results, obtains the trained entity extraction model, and saves the model as a file. The named entity recognition invocation module is mainly used for: 1. Calling the BiLSTM-CRF model to identify different types of entities in historical PET / CT image reports and storing them in the knowledge graph database; 2. Preprocessing the image presentation text to be predicted (removing stop words and using Jieba segmentation), and loading the BiLSTM-CRF model to identify several central entities in the image presentation text to be predicted. The knowledge graph retrieval module is responsible for constructing a query statement based on several central entities corresponding to the image presentation text to be predicted, and then retrieving diagnostic suggestions or disease types corresponding to these central entities from the knowledge graph based on the query statement, outputting them in natural language. If the retrieval fails, it can also trigger user-assisted completion as compensation, allowing users to manually supplement the knowledge graph retrieval results.
[0118] refer to Figure 8 First, the image representation text to be predicted is input into the diagnostic suggestion generation module, which then preprocesses the image representation text. The module loads a BiLSTM-CRF model to parse the preprocessed image representation text and identify several different types of central entities. These identified central entities are used as input for knowledge graph retrieval to construct a knowledge graph query statement. The diagnostic suggestion generation module then queries the knowledge graph for entity information of the type "diagnostic suggestion" based on the query statement. According to preset rules, it generates natural language answers from the retrieved entity information of the type "diagnostic suggestion," which are then output as diagnostic suggestion text. If the diagnostic suggestion generation module does not find any entity information for diagnostic suggestions in the knowledge graph based on the query statement, it can trigger a mechanism for users to fill in diagnostic suggestions, thereby supplementing the knowledge graph. The filled-in diagnostic suggestions are then output as diagnostic suggestion text.
[0119] Similarly, the disease type generation module reuses the named entity recognition module and knowledge graph retrieval module from the diagnosis suggestion generation module; it combines a natural language template library to construct and output a complete text statement of the disease type conclusion. For example, refer to... Figure 9The system takes the text of the image to be predicted as input to the disease type generation module, which then preprocesses the input text. The disease type generation module loads a BiLSTM-CRF model to parse the preprocessed text, identifying and storing several different types of central entities. These identified central entities are then used as input for knowledge graph retrieval to construct a knowledge graph query statement. Further, the disease type generation module queries the knowledge graph for entity information with the disease type and outputs the disease inference text. Similar to the diagnosis suggestion generation module, if the disease type generation module fails to find a disease type in the knowledge graph based on the query statement, it can also trigger a mechanism for the user to fill in a suspected disease, thereby supplementing the knowledge graph and outputting the filled-in suspected disease as the disease inference text.
[0120] In addition, the data storage module can consist of Neo4j, HDFS, and a MySQL database. Neo4j is used to store entity and relation information of the knowledge graph; HDFS primarily stores FastText classification model files, BiLSTM-CRF model files, and BERT binary classification model files; and MySQL is used to store structured data such as natural language template libraries.
[0121] As can be seen from the above embodiments, the knowledge graph-based PET / CT image report conclusion generation method and apparatus of this application applies text generation technology from the computer field to the image conclusion generation process of PET / CT image reports, assisting physicians in efficiently generating image conclusions and effectively reducing the workload of physicians in editing image conclusion text, thereby improving the efficiency of image conclusion generation. This plays an important role in reducing the workload of physicians, improving the service efficiency of hospitals, and improving the accuracy of image report conclusions. The PET / CT image report conclusion generation method and apparatus of this application not only solves the problem of the inability to automatically generate diagnostic conclusions in PET / CT image reports in the industry, but also innovatively integrates the construction and application of knowledge graphs to achieve accurate generation of disease inference text and diagnostic suggestion text in PET / CT image report diagnostic conclusions, taking into account the structural and content characteristics of medical text in diagnostic conclusions in PET / CT image reports. It also innovatively combines a classification model to remove text content that represents normal image manifestations and is irrelevant to the diagnostic conclusion. Furthermore, the method and apparatus innovatively incorporate a classification model, classifying text according to body parts to achieve hierarchical representation of image conclusions.
[0122] In summary, the knowledge graph-based PET / CT image report conclusion generation method and device of this application automatically generates diagnostic conclusion text for PET / CT image reports based on knowledge graphs. This allows for more accurate diagnostic suggestions and disease type conclusions compared to manual analysis methods, thereby improving the accuracy of the generated image conclusion text. Furthermore, this method achieves hierarchical representation of image conclusions in terms of diagnostic conclusion text classification. It also innovatively incorporates a binary classification model to classify text summaries of image manifestations into two categories: those representing normal and those representing abnormalities. This filters out text content irrelevant to the diagnostic conclusion while retaining the text content representing abnormalities required for the diagnosis.
[0123] In addition, the invention also discloses a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method as described in any of the above embodiments.
[0124] Those skilled in the art will understand that the exemplary components, systems, and methods described in conjunction with the embodiments disclosed herein can be implemented in hardware, software, or a combination of both. Whether implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this invention. When implemented in hardware, it can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this invention are programs or code segments used to perform the desired tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0125] It should also be noted that the exemplary embodiments mentioned in this invention describe methods or systems based on a series of steps or apparatus. However, this invention is not limited to the order of the steps described above; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0126] In this invention, features described and / or illustrated for one embodiment may be used in the same or similar manner in one or more other embodiments, and / or combined with or in place of features of other embodiments.
[0127] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, various modifications and variations can be made to the embodiments of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A knowledge graph-based method for assisting in the generation of PET / CT image report conclusions, characterized in that, The method includes: Acquire PET / CT image data to be predicted, wherein the PET / CT image data includes first image representation text information; The text information of the first image is input into the trained text classification model to obtain structured text classification results categorized by different body parts; The structured text classification results are input into the trained text generation model to obtain image representation text summaries corresponding to each category of body parts. The image representation text summaries are then input into the trained binary classification model so that the binary classification model removes image representation text summaries that represent normal images and retains image representation text summaries that represent abnormal images, thus obtaining image abnormal representation summaries. A knowledge graph is constructed based on historical image reports; and the knowledge graph is stored in a graph database, such as Neo4j, 3store, DLDB or Jena. The first image representation text information is input into the trained entity extraction model to obtain the first entity of the first image representation text information. Based on the first entity and the knowledge graph, the diagnostic suggestion text and disease type text corresponding to the first image representation text information are determined. The summary of the abnormal image manifestations, the diagnostic suggestion text, and the disease type text are used as the first image conclusion text of the PET / CT image data to be predicted; The construction of a knowledge graph based on historical image reports includes: obtaining second image performance text and second image conclusion text from historical image reports; annotating second entities in the second image performance text and second image conclusion text, wherein the types of the second entities include disease, diagnostic suggestion, body part, abnormal symptoms, and normal symptoms; aligning second entities representing the same content in different historical image reports and fusing the information contained in the aligned second entities; and constructing a knowledge graph based on the multiple second entities after alignment and information fusion. The knowledge graph includes five important entity types from historical image reports: disease, diagnostic suggestion, body part, abnormal symptoms, and normal symptoms. The knowledge graph includes five entity types and eight entity relationships, wherein the eight entity relationships include: relationships established between body parts and abnormal symptoms, relationships established between abnormal symptoms and diseases, relationships established between body parts and diseases, relationships established between normal performance and diseases, relationships established between body parts and normal performance, relationships established between normal performance and diagnostic suggestions, relationships established between body parts and diagnostic suggestions, and relationships established between abnormal performance and diagnostic suggestions. The step of determining the diagnostic suggestion text and disease type text corresponding to the first image representation text information based on the first entity and the knowledge graph includes: querying entity information of entity type "diagnostic suggestion" from the knowledge graph, constructing an answer according to the template library and natural language form rules, and outputting the diagnostic suggestion text; querying entity information of entity type "disease" from the knowledge graph, constructing an answer according to the template library and natural language form rules, and outputting the disease type text; if the query from the knowledge graph fails, a mechanism for the user to fill in diagnostic suggestions and suspected diseases is triggered to supplement the knowledge graph and output the corresponding diagnostic suggestion text and disease type text.
2. The knowledge graph-based PET / CT image report conclusion-assisted generation method according to claim 1, characterized in that, The method further includes: Based on the historical image report, a first sample dataset, a second sample dataset, a third sample dataset, and a fourth sample dataset are constructed; Based on the first sample dataset, the second sample dataset, the third sample dataset, and the fourth sample dataset, the first network model, the second network model, the third network model, and the fourth network model are pre-trained respectively to obtain the trained text classification model, text generation model, binary classification model, and entity extraction model.
3. The knowledge graph-based PET / CT image report conclusion-assisted generation method according to claim 2, characterized in that, Based on the historical image report, a first sample dataset, a second sample dataset, a third sample dataset, and a fourth sample dataset are constructed, including: Obtain the second image presentation text and the second image conclusion text from the historical image report; The obtained second image representation text and second image conclusion text are preprocessed; Based on the preprocessed second image performance text and second image conclusion text, a first sample dataset, a second sample dataset, a third sample dataset, and a fourth sample dataset are constructed; The sample data in the first sample dataset includes category information of body parts and structured text information; the sample data in the second sample dataset includes text summary pairs; the sample data in the third sample dataset includes image representation text summary and text representation type; and the sample data in the fourth sample dataset includes a second entity and its type.
4. The knowledge graph-based PET / CT image report conclusion-assisted generation method according to claim 2, characterized in that, The text classification model, text generation model, binary classification model, and entity extraction model are respectively the FastText model, Pointer-Generator model, BERT model, and BiLSTM-CRF model.
5. The knowledge graph-based PET / CT image report conclusion-assisted generation method according to claim 1, characterized in that, The information contained in the aligned second entity is merged, including: The string similarity of the information contained in the aligned second entity is calculated based on the string similarity model. The semantic similarity of the information contained in the aligned second entity is calculated based on the semantic similarity model. The string similarity and the semantic similarity are fused to obtain the fused similarity. The calculation formula used in the string similarity model is as follows: in, This represents the string similarity between entity x and entity y, where x and y represent two entities with similar strings. This represents the list of characters after decomposing entity x. This represents the list of characters after disassembling entity y; The semantic similarity model uses the following calculation formula: in, This represents the semantic similarity between entity x and entity y. This represents the i-th value in the word vector of entity x. Let represent the i-th value in the word vector of entity y, and n represent the number of elements in the word vector.
6. The knowledge graph-based PET / CT image report conclusion-assisted generation method according to claim 5, characterized in that, The formula for calculating the fusion similarity is: in, This represents the fusion similarity between entity x and entity y. This represents the weighting coefficient.
7. A knowledge graph-based PET / CT image report conclusion assistance generation system, the system comprising a processor and a memory, characterized in that, The memory stores computer instructions, and the processor executes the computer instructions stored in the memory. When the computer instructions are executed by the processor, the system implements the steps of the method as described in any one of claims 1 to 6.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the steps of the method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Medical image diagnosis report entity extraction method, device and equipment
CN113903422A
Medical image diagnosis method and device based on film reading knowledge graph
CN115062165A
