Intelligent extraction method of doctor-patient text based on large language model

By calculating the word neighborhood cohesion and entity belongingness in medical data sets, combined with the named entity recognition model, we solve the problem of large language models identifying proprietary words and entities in medical and patient texts, and achieve more accurate information extraction and Standardized document generation improves medical work efficiency and text quality.

CN117787282BActive Publication Date: 2024-09-06HANGZHOU QUANXIAN MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311856050.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2024-09-06
Estimated Expiration
2043-12-29

AI Technical Summary

Technical Problem

It is difficult for existing large language models to accurately identify specialized vocabulary and entities in the medical field in doctor-patient texts, resulting in biased text semantic understanding and inaccurate information extraction.

Method used

By obtaining medical data sets, the neighborhood cohesion and entity belongingness of words are calculated, combined with the named entity recognition model, enhanced training to obtain entity integrity, and finally combined with the large language model for intelligent extraction.

Benefits of technology

It improves the accuracy and standardization of information extraction from doctor-patient texts, generates medical documents that are more in line with standards, and improves medical work efficiency and text quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117787282B
    Figure CN117787282B
Patent Text Reader

Abstract

The present invention relates to the technical field of text processing, and in particular to a method for intelligent extraction of medical text based on a large language model, the method comprising: obtaining a medical data set; constructing neighborhood adhesion for the distribution characteristics of each word in a sentence sequence in the medical data set and the words connected thereto; extracting nouns in the sentence sequence; analyzing the neighborhood adhesion of each word in the sentence sequence and the distribution of nouns to construct entity attribution; obtaining entities in the sentence sequence; obtaining entity neighborhood adhesion; constructing entity integrity according to entity neighborhood adhesion and entity attribution distribution; obtaining the entity integrity of the sentence sequence; training a named entity recognition model in combination with the entity integrity of the sentence sequence to obtain complete entities of the text to be written; and completing intelligent extraction of medical text in combination with a large language model. The present invention aims to improve the quality of entity extraction from medical text, thereby improving the quality of medical text based on a large language model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of text processing, and in particular to a method for intelligent extraction of medical-patient texts based on a large language model. Background Art

[0002] Traditional doctor-patient communication texts contain a large amount of information, including diagnosis, treatment plan, condition description, etc., which are of great significance to doctors and medical research. However, these data usually require doctors to spend a lot of time to complete tedious tasks such as case records, surgical records and admission reports.

[0003] In order to improve work efficiency, it is necessary to intelligently extract information from texts. Doctor-patient communication usually uses natural language and often contains a lot of professional terms and medical knowledge. Through natural language processing technology, semantic understanding and analysis of doctor-patient texts can be achieved, key information can be extracted, and doctors can quickly and accurately understand patients' needs and conditions. In addition, doctor-patient texts contain a lot of medical knowledge and experience. Through text mining and analysis, new medical knowledge, laws and trends can be discovered. With the development of large language models, it has become a trend to understand doctor-patient consultation data through pre-trained language models and automatically write standard case documents. Through the rational use of text processing technology, the needs of both doctors and patients can be better met, and the overall medical level and patient experience can be improved.

[0004] However, there are usually many professional words in the field of medical consultation, and human language is complex and diverse. Among them, nested entities have their own complex structure. In text data, the model often cannot accurately distinguish these medical-specific words, which leads to deviations in the understanding of text semantics and cannot accurately extract the information in the text. Summary of the invention

[0005] In order to solve the above technical problems, the present invention provides an intelligent extraction method of medical-patient text based on a large language model to solve the existing problems.

[0006] The method for intelligent extraction of doctor-patient text based on a large language model of the present invention adopts the following technical solutions:

[0007] An embodiment of the present invention provides a method for intelligently extracting doctor-patient text based on a large language model, the method comprising the following steps:

[0008] Obtain medical data and segment the medical data using a word segmentation toolkit to obtain a medical data set;

[0009] For each sentence sequence in the medical data set; obtain the neighborhood adhesion of each word in the sentence sequence according to the distribution characteristics of the words connected to it in the medical data set; use the part-of-speech tagging model to extract the nouns in the sentence sequence; obtain the entity attribution of each word according to the neighborhood adhesion of each word in the sentence sequence and the distribution of nouns; use the named entity recognition model to obtain the entities in the sentence sequence; use the same calculation method as the neighborhood adhesion to obtain the entity neighborhood adhesion of each entity; obtain the entity integrity of each entity according to the entity neighborhood adhesion of each entity and the entity attribution distribution of each word in the sentence sequence;

[0010] The entity integrity of each sentence sequence is obtained according to the entity integrity distribution of each entity in each sentence sequence; the entity integrity of each sentence sequence is used as the label of each sentence sequence, and the named entity recognition model is enhanced to obtain the complete entities of the text to be written; based on the complete entities of the text to be written and the large language model, the intelligent extraction of medical texts is completed.

[0011] Preferably, the medical field data specifically includes doctor-patient consultation data and medical classics data.

[0012] Preferably, the neighborhood adhesion of each word is obtained according to the distribution characteristics of each word in the sentence sequence and the words connected to it in the medical data set, specifically:

[0013] Obtain the front neighborhood adhesion and the back neighborhood adhesion of each word in the sentence sequence; calculate the sum of the front neighborhood adhesion and the back neighborhood adhesion of each word, and take half of the sum of each word as the neighborhood adhesion of each word.

[0014] Preferably, the obtaining of the front neighborhood adhesion and the back neighborhood adhesion of each word in the sentence sequence is specifically as follows:

[0015] For each word in the sentence sequence, count the number of times each word appears in the medical data set; save the number of times each word and the previous word form a continuous word segment in the medical data set as the previous number of occurrences; save the number of times each word and the next word form a continuous word segment in the medical data set as the next number of occurrences;

[0016] The ratio of the number of front occurrences to the number of times each word appears in the medical data set is used as the front neighborhood adhesion of each word in the sentence sequence; the ratio of the number of back occurrences to the number of times each word appears in the medical data set is used as the back neighborhood adhesion of each word in the sentence sequence.

[0017] Preferably, the part-of-speech tagging model is used to extract nouns in the sentence sequence, specifically:

[0018] The sentence sequence is used as the input of the hidden Markov model HMM, the output of the hidden Markov model HMM is the part-of-speech tag of each word in the sentence sequence, and each word whose part-of-speech tag is a noun is extracted.

[0019] Preferably, the entity attribution of each word is obtained according to the neighborhood adhesion and noun distribution of each word in the sentence sequence, specifically:

[0020] For each word in a sentence sequence, obtain the position number of each word in the sentence sequence; obtain the position number of each noun in the sentence sequence; calculate the absolute value of the difference between the position number of each word and each noun in the sentence sequence; calculate the mean of the absolute values ​​of the difference between each word and all nouns in the sentence sequence; use the mean of each word as the exponent of an exponential function with a natural constant as the base; use the product of the exponential function of each word and the corresponding neighborhood adhesion as the entity attribution degree of each word.

[0021] Preferably, the named entity recognition model is used to obtain entities in the sentence sequence, specifically:

[0022] The sentence sequence is used as the input of the BERT-Bi-LSTM-CRF named entity recognition model, and the output of the BERT-Bi-LSTM-CRF sequence labeling model is the entities in the sentence sequence.

[0023] Preferably, the entity integrity of each entity is obtained according to the entity neighborhood adhesion of each entity and the entity attribution distribution of each word in the sentence sequence. The specific expression is:

[0024]

[0025] In the formula, γ k Indicates the entity completeness of the kth entity in the sentence sequence; Represents the entity neighborhood adhesion of the kth entity in the sentence sequence; Indicates the entity belongingness of the next word adjacent to the k-th entity word in the sentence sequence; represents the entity belonging degree of a word adjacent to the k-th entity word in the sentence sequence; N2 represents the number of words contained in the k-th entity in the sentence sequence; Represents the entity attribution degree of the vth word in the kth entity in the sentence sequence.

[0026] Preferably, the entity completeness of the sentence sequence is specifically the average of the entity completeness of all entities in the sentence sequence.

[0027] Preferably, the intelligent extraction of the medical-patient text is completed based on the complete entities of the text to be written and the large language model, specifically: the complete entities of the text to be written are used as the input of the large language model, and the output of the large language model is the normative medical-patient text.

[0028] The present invention has at least the following beneficial effects:

[0029] The present invention mainly obtains a more powerful intelligent extraction method for medical and patient texts through the distribution characteristics of words in the sentence sequence of medical data sets. Specifically, by analyzing the neighborhood adhesion of each word in the sentence sequence of the medical data set, the entity attribution degree of each word in the sentence sequence is further calculated, and the original named entity recognition model annotation and entity integrity are calculated through the two. Finally, the original general named entity recognition model is incrementally trained with data with classification integrity labels to obtain a named entity recognition model that is more suitable for medical data sets and has higher entity recognition integrity. Finally, a more standardized medical document is generated in conjunction with a large language model to extract more accurate text information. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0031] Figure 1 A flowchart of the method for intelligent extraction of medical and patient texts based on a large language model provided by the present invention;

[0032] Figure 2 A flowchart for obtaining entity integrity. DETAILED DESCRIPTION

[0033] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation method, structure, features and effects of the intelligent extraction method of medical and patient text based on a large language model proposed by the present invention are described in detail below in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0034] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0035] The specific scheme of the method for intelligent extraction of medical and patient texts based on a large language model provided by the present invention is described in detail below with reference to the accompanying drawings.

[0036] An embodiment of the present invention provides a method for intelligent extraction of medical and patient texts based on a large language model.

[0037] Specifically, the following intelligent extraction method of doctor-patient text based on large language model is provided, please refer to Figure 1 , the method comprises the following steps:

[0038] Step S001: Obtain doctor-patient consultation data and medical book data, and pre-process the relevant data.

[0039] This embodiment collects doctor-patient consultation data and medical classics data. The doctor-patient consultation data includes the conversation between the patient and the doctor, medical records, and diagnosis report data; the medical classics data can be obtained from the biomedical literature database PubMed.

[0040] In order to facilitate the subsequent operation of text data, the above data is preprocessed here, and the preprocessing includes segmenting the collected data through the word segmentation toolkit jieba, and removing those words that appear frequently but have no practical meaning in the text according to the stop word list of Harbin Institute of Technology. Among them, the word segmentation toolkit jieba is an existing well-known technology and will not be repeated in this embodiment. The data in the medical field finally obtained is used as a medical data set.

[0041] Step S002: Based on the distribution characteristics of words in the sentence sequence of the medical data set, the entity completeness of the sentence sequence entities is obtained by using a named entity recognition model.

[0042] When using a large language model to automatically generate documents such as medical records and diagnostic reports, the resulting text is often flawed because the model cannot accurately identify entities in the medical field. In order to enable the model to generate medical text more smoothly and better help doctors complete complex writing tasks, we will use the following technical means to improve the accuracy of entity word extraction in medical text.

[0043] In order for the model to better understand the semantics of the text, it must first be able to accurately distinguish the entities described in the text. Entities can be understood as specific things or abstract concepts in the real world, such as people, places, organizations, products, events, concepts, etc., which are continuous word fragments composed of one or more words.

[0044] 1) Calculate the neighborhood adhesion of each word in the sentence sequence.

[0045] In medical data, there is often secondary entity nesting, that is, one entity contains another entity as its attribute or field. This nesting can be a one-to-one relationship or a one-to-many relationship. This makes it difficult for the model to distinguish the boundaries of entities during entity recognition.

[0046] For a sentence sequence W = {w1,w2,…,wn}, where the sentence is a word sequence after word segmentation processing, and the following calculations in this embodiment are all based on the sentence sequence W as an example. According to the distribution characteristics of each word in the sentence, its neighborhood adhesion is calculated, that is, the probability of a continuous word segment composed of the current word and other words in its neighborhood appearing in the entire medical data set, as follows:

[0047]

[0048]

[0049]

[0050] Among them, α i Represents the neighborhood adhesion of the i-th word in the sentence sequence; and Respectively represent the post-neighborhood adhesion and pre-neighborhood adhesion of the i-th word in the sentence sequence; Count(w i w i+1 ) represents the number of times the continuous word fragment consisting of the i-th word and the i+1-th word in the sentence sequence appears in the medical dataset; Count(w i-1 w i ) represents the number of times the continuous word fragment consisting of the i-1th word and the i-th word in the sentence sequence appears in the medical dataset; Count(w i ) represents the number of times the i-th word in the sentence sequence appears in the entire medical data set. i w i+1 ) is saved as the number of occurrences, and Count(w i-1 w i ) is saved as the previous occurrence count.

[0051] The greater the probability of the word fragment consisting of a word in a sentence sequence and its neighboring words appears, the higher the neighborhood adhesion of the word is, and the more likely it is to appear as part of other entities. Conversely, the lower the neighborhood adhesion of the word is, the more likely it is to be an independent entity or not an entity.

[0052] 2) Calculate the entity attribution of the word based on the neighborhood adhesion of the word and the noun distribution in the sentence sequence.

[0053] In actual medical text sentences, some words may often form continuous segments with other words, that is, the neighborhood adhesion of the word is high, but the words that form the continuous segment do not belong to the same entity as the word. For example, "measure blood pressure" is a phrase that appears continuously, but "measurement" and "blood pressure" are just a description of an action process and do not belong to the same entity. Entities usually include nouns, proper nouns, adjectives, verbs, etc., among which the most important are nouns, because most entities exist in the form of nouns. Nouns can directly refer to various people, things, objects or concepts, and are the most direct way to describe entities. Therefore, the entity belongingness of a word is determined by the distribution of nouns in the sentence and the neighborhood adhesion of words in the sentence. The specific steps are as follows:

[0054] In order to analyze the distribution of nouns in sentences, we use a part-of-speech tagging model based on the hidden Markov model HMM to tag the sentence sequence with parts of speech. The input of the model is a sentence sequence, and the input is the part-of-speech tag corresponding to each word in the sentence sequence. It should be noted that the hidden Markov model HMM is an existing well-known technology and will not be repeated in this embodiment. According to the part-of-speech tag, the nouns in each sentence sequence are obtained, the position number of each noun in the sentence sequence is obtained, and then the entity attribution degree of the word in the sentence sequence is calculated, and the expression is:

[0055]

[0056] Among them, β i represents the entity belonging degree of the i-th word in the sentence sequence W; N1 represents the number of nouns in the sentence sequence; Represents the position number of the i-th word in the sentence sequence W; Indicates the position number of the jth noun in the sentence sequence; α i It represents the neighborhood adhesion of the i-th word in the sentence sequence W, and EXP() represents an exponential function with a natural constant as the base.

[0057] Due to the importance of nouns in entity representation, most entities contain nouns. When the average distance between the i-th word in the sentence sequence W and the nouns in the sentence is closer, the word is more likely to be part of the entity, that is, its entity belonging degree is greater. Conversely, the less likely the word is to be part of the entity, the smaller the entity belonging degree is. At the same time, when the neighborhood adhesion of the i-th word in the sentence sequence W is greater, it is more likely to belong to the same entity as the surrounding words, and the entity belonging degree is greater. Conversely, the less likely it is to belong to the same entity as the surrounding words, the entity belonging degree is smaller.

[0058] 3) Calculate the entity completeness of entities in the sentence based on the entity attribution and neighborhood adhesion of words in the sentence sequence.

[0059] For entities in a sentence sequence, they are usually composed of one or more words. The completeness of an entity depends on whether the entity contains all the words related to the entity in the context. First, the BERT-Bi-LSTM-CRF named entity recognition model is used to annotate the sentences. The text sequence can be annotated and classified, and the entities can be effectively identified. It should be noted that the BERT-Bi-LSTM-CRF named entity recognition model is an existing well-known technology and will not be repeated in this embodiment. It is then obtained by calculating the entity attribution of the words contained in the entity and the neighborhood adhesion of the entity. The specific calculation is as follows:

[0060]

[0061]

[0062] In the formula, γ k Indicates the entity completeness of the kth entity in the sentence sequence; Represents the entity neighborhood adhesion of the kth entity in the sentence sequence; Represents the next word adjacent to the k-th entity in the sentence sequence; Indicates the number of times the k-th entity word and the adjacent next word in the sentence sequence appear in the medical dataset; Indicates the number of times the k-th entity word and the adjacent previous word in the sentence sequence appear in the medical dataset; Count(En k ) represents the number of times the k-th entity word in the sentence sequence appears in the medical dataset; Indicates the entity belongingness of the next word adjacent to the k-th entity word in the sentence sequence; represents the entity belonging degree of the previous word adjacent to the k-th entity word in the sentence sequence; N2 represents the number of words contained in the k-th entity in the sentence sequence; represents the entity attribution degree of the vth word in the kth entity in the sentence sequence. The process of obtaining entity completeness is as follows: Figure 2 shown.

[0063] When the entity neighborhood adhesion of the kth entity in a sentence sequence is greater and the entity attribution of the preceding and following words of the entity is greater, it indicates that the probability of the entity and the preceding and following words co-occurring is relatively large, and the possibility that the preceding and following words are part of the entity is also greater, that is, the entity integrity of the entity is smaller; conversely, it indicates that the probability of the entity and the preceding and following words co-occurring is smaller, and the possibility that the preceding and following words are part of the entity is also smaller, that is, the entity integrity of the entity is greater; when the entity attribution of the words contained in the entity itself in the sentence is higher, it indicates that the entity is more likely to be a complete entity, that is, the entity integrity is greater; conversely, it indicates that the entity is more likely to be an incomplete entity, that is, the entity integrity is smaller.

[0064] Step S003: Based on the entity integrity of the medical data set, incremental training is performed on the basis of the original named entity recognition model to obtain a named entity recognition model that is more suitable for the current data set to complete the intelligent extraction of doctor-patient texts.

[0065] In the process of intelligent text extraction, the most important thing is how to accurately identify the core of the text, that is, where the entity is. Therefore, here we characterize the entity integrity of the named entity recognition model by calculating the integrity of each sentence sequence in the medical data set, that is, taking the mean of the entity integrity of all entities in the sentence sequence as the entity integrity of the sentence. And taking the sentence entity integrity as the label of each sentence, the original general BERT-Bi-LSTM-CRF named entity recognition model is incrementally trained. That is, the model is retrained on the medical data set with the sentence entity integrity label, so that the model can better fit the current medical data set, thereby obtaining more complete entities and improving the accuracy of text extraction.

[0066] Then, the BERT-Bi-LSTM-CRF named entity recognition model after incremental training is used to obtain the entities of the text to be written as the input of the large language model, and the corresponding normative medical text is generated by the large language model. Specifically:

[0067] First, we use the incremental BERT-Bi-LSTM-CRF named entity recognition model to perform entity recognition and annotation on the written text. This model can identify entities in the text and assign a specific label to each entity, such as a person's name, place, organization, etc.

[0068] Then, the identified entities are used as input to generate normative documents through the large language model. The large language model can generate text with grammatical correctness and coherence based on the input context and entity information. In this way, the doctor only needs to review the generated text, which can further improve the doctor's work efficiency and ensure the quality of the generated text. It should be noted that the large language model in this embodiment uses GPT-3. The implementer can choose a suitable large language model according to the actual situation, and there is no limitation in this embodiment.

[0069] At this point, the intelligent extraction of doctor-patient texts is completed.

[0070] In summary, the embodiment of the present invention obtains a more powerful intelligent extraction method for medical and patient texts through the distribution characteristics of words in the sentence sequence of the medical data set. Specifically, by analyzing the neighborhood adhesion of each word in the sentence sequence of the medical data set, the entity attribution degree of each word in the sentence sequence is further calculated, and the original named entity recognition model annotation and entity integrity are calculated through the two. Finally, the original general named entity recognition model is incrementally trained with data with classification integrity labels to obtain a named entity recognition model that is more suitable for medical data sets and has higher entity recognition integrity. Finally, a more standardized medical document is generated in conjunction with a large language model to extract more accurate text information.

[0071] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The above is a description of a specific embodiment of this specification. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0072] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0073] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Modifications to the technical solutions recorded in the aforementioned embodiments, or equivalent replacement of some of the technical features therein, do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. An intelligent extraction method of doctor-patient text based on a large language model, characterized in that: The method comprises the following steps: Obtain medical data and segment the medical data using a word segmentation toolkit to obtain a medical data set; For each sentence sequence in the medical data set; obtain the neighborhood adhesion of each word in the sentence sequence according to the distribution characteristics of the words connected to it in the medical data set; use the part-of-speech tagging model to extract the nouns in the sentence sequence; obtain the entity attribution of each word according to the neighborhood adhesion of each word in the sentence sequence and the distribution of nouns; use the named entity recognition model to obtain the entities in the sentence sequence; use the same calculation method as the neighborhood adhesion to obtain the entity neighborhood adhesion of each entity; obtain the entity integrity of each entity according to the entity neighborhood adhesion of each entity and the entity attribution distribution of each word in the sentence sequence; The entity integrity of each sentence sequence is obtained according to the entity integrity distribution of each entity in each sentence sequence; the entity integrity of each sentence sequence is used as the label of each sentence sequence, and the named entity recognition model is enhanced to obtain the complete entity of the text to be written; the intelligent extraction of the doctor-patient text is completed according to the complete entity of the text to be written and the large language model; The neighborhood adhesion of each word is obtained according to the distribution characteristics of each word in the sentence sequence and the words connected to it in the medical data set, specifically: Obtaining the front neighborhood adhesion and the back neighborhood adhesion of each word in the sentence sequence; calculating the sum of the front neighborhood adhesion and the back neighborhood adhesion of each word, and taking half of the sum of each word as the neighborhood adhesion of each word; The method of obtaining the front neighborhood adhesion and the back neighborhood adhesion of each word in the sentence sequence is specifically as follows: For each word in the sentence sequence, count the number of times each word appears in the medical data set; save the number of times each word and the previous word form a continuous word segment in the medical data set as the previous number of occurrences; save the number of times each word and the next word form a continuous word segment in the medical data set as the next number of occurrences; The ratio of the number of front occurrences to the number of occurrences of each word in the medical data set is used as the front neighborhood cohesion of each word in the sentence sequence; the ratio of the number of back occurrences to the number of occurrences of each word in the medical data set is used as the back neighborhood cohesion of each word in the sentence sequence; The entity attribution of each word is obtained according to the neighborhood adhesion of each word in the sentence sequence and the noun distribution, specifically: For each word in the sentence sequence, obtain the position number of each word in the sentence sequence; obtain the position number of each noun in the sentence sequence; calculate the absolute value of the difference between the position number of each word and each noun in the sentence sequence; calculate the average of the absolute values ​​of the difference between each word and all nouns in the sentence sequence; use the average of each word as the exponent of an exponential function with a natural constant as the base; use the product of the exponential function of each word and the corresponding neighborhood adhesion as the entity attribution degree of each word; The entity integrity of each entity is obtained according to the entity neighborhood adhesion of each entity and the entity attribution distribution of each word in the sentence sequence. The specific expression is: In the formula, Indicates the entity completeness of the kth entity in the sentence sequence; Represents the entity neighborhood adhesion of the kth entity in the sentence sequence; Indicates the entity belongingness of the next word adjacent to the k-th entity word in the sentence sequence; Indicates the entity belongingness of a word adjacent to the k-th entity word in the sentence sequence; Indicates the number of words contained in the kth entity in the sentence sequence; Represents the entity attribution degree of the vth word in the kth entity in the sentence sequence.

2. The method for intelligent extraction of medical and patient texts based on a large language model as claimed in claim 1, characterized in that: The medical field data specifically refers to doctor-patient consultation data and medical classics data.

3. The method for intelligent extraction of medical and patient texts based on a large language model as claimed in claim 1, characterized in that: The part-of-speech tagging model is used to extract nouns in the sentence sequence, specifically: The sentence sequence is used as the input of the hidden Markov model HMM, the output of the hidden Markov model HMM is the part-of-speech tag of each word in the sentence sequence, and each word whose part-of-speech tag is a noun is extracted.

4. The method for intelligent extraction of medical and patient texts based on a large language model as claimed in claim 1, characterized in that: The named entity recognition model is used to obtain entities in the sentence sequence, specifically: The sentence sequence is used as the input of the BERT-Bi-LSTM-CRF named entity recognition model, and the output of the BERT-Bi-LSTM-CRF sequence labeling model is the entities in the sentence sequence.

5. The method for intelligent extraction of medical and patient texts based on a large language model as claimed in claim 1, characterized in that: The entity completeness of the sentence sequence is specifically the average value of the entity completeness of all entities in the sentence sequence.

6. The method for intelligent extraction of medical and patient texts based on a large language model as claimed in claim 1, characterized in that: The intelligent extraction of the medical-patient text is completed according to the complete entity of the text to be written and the large language model, specifically: the complete entity of the text to be written is used as the input of the large language model, and the output of the large language model is the normative medical-patient text.