Disease diagnosis intelligent prompting method, device and equipment based on vector retrieval

Through the combination of vector retrieval and rule engine, it solves the problem of existing electronic case analysis methods being limited by annotated data, and achieves rapid acquisition and accurate disease diagnosis intelligent prompts. It is suitable for rapid diagnosis of first-time patients and is suitable for large-scale data Quick retrieval of collections.

CN118629624APending Publication Date: 2024-09-10TONGFANG KNOWLEDGE NETWORK DIGITAL PUBLISHING TECHNOLOGY CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410697980.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing electronic case analysis and mining methods rely on supervised learning and are limited by the quality and quantity of annotated data. They are difficult to adapt to the rapidly changing medical environment and cannot cover all clinical situations. They also need to prepare corpus in advance for training, which limits their scope of application. .

Method used

An intelligent prompting method for disease diagnosis based on vector retrieval is adopted. Historical case records are obtained from the hospital's electronic medical record system, semantic conversion and coding are performed, and a case vector library is generated. Vector retrieval is used to obtain similar cases of the cases to be diagnosed, and the results are filtered using a rule engine. , provides intelligent diagnostic prompts, suitable for rapid diagnosis of first-time patients.

Benefits of technology

There is no need to prepare corpus in advance for supervised training, and it can quickly obtain patient consultation information. It is especially suitable for rapid diagnosis of first-time patients. It has designed methods to shorten text length and convert semantics, accurately capture case context, and provide more similar disease diagnosis results. It is suitable for for fast retrieval of large-scale data sets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629624A
    Figure CN118629624A
Patent Text Reader

Abstract

The invention provides a disease diagnosis intelligent prompting method and device based on vector retrieval, computer equipment, a storage medium and a computer program product, and relates to the technical field of artificial intelligence recommendation. The method is implemented by computer equipment, from the perspective of semantic search, hospital electronic cases are vectorized and then stored in a vector database, the most similar cases and disease diagnosis are obtained through vector retrieval, then retrieval results are screened through a rule engine, and intelligent prompt results of the disease diagnosis are provided for clinicians. The embodiment does not need to prepare corpora in advance for supervised training, has the characteristic of obtaining less patient visiting information, and is particularly suitable for intelligent prompt of rapid diagnosis of the patient visiting for the first time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence recommendation technology, and in particular to a disease diagnosis intelligent prompt method and device based on vector retrieval, a computer device, a storage medium and a computer program product. Background Art

[0002] With the rapid development of medical information technology, the informatization construction of hospitals has reached a new height, especially in the promotion and application of electronic medical record systems, which have achieved the transformation from paper medical records to electronic management. Electronic medical records not only improve the efficiency and accuracy of medical record management, but also accumulate a large amount of clinical data resources for hospitals. These data contain rich patient information, disease characteristics, treatment processes and results, etc., providing valuable information for medical research and clinical decision-making. At present, when using and analyzing these data, compliance requirements such as data privacy and security need to be met.

[0003] The implementation of the electronic medical record system application level grading evaluation has further standardized the use and management of electronic medical records and improved the quality and availability of data. Through the electronic medical record system, hospitals can more effectively collect, store, retrieve and analyze medical data, thereby providing clinicians with more comprehensive and in-depth medical decision-making support.

[0004] However, although electronic medical records provide a rich data resource for medical decision-making, existing electronic medical record analysis and mining methods still have some limitations. At present, most methods use supervised learning to train models with existing annotated data and recommend similar cases. Although this method can provide help to a certain extent, it is limited by the quality and quantity of annotated data and may not cover all clinical situations. It is also difficult to adapt to the rapidly changing medical environment. Therefore, this technical problem needs to be solved urgently. Summary of the invention

[0005] In view of the above problems, this application is proposed to provide a disease diagnosis intelligent prompt method and device based on vector retrieval, a computer device, a storage medium and a computer program product that overcome the above problems or at least partially solve the above problems. The technical solution is as follows:

[0006] In a first aspect, a disease diagnosis intelligent prompt method based on vector retrieval is provided, which is implemented by a computer device, and the method comprises:

[0007] Obtain multiple historical case records containing case information of existing patients from the hospital's electronic case system;

[0008] According to one or more preset keywords and case information in each historical case record, multiple historical case records are analyzed and excluded to screen out at least one qualified historical case record;

[0009] Performing semantic conversion processing on the case information in each qualified historical case record to obtain the case semantic conversion result corresponding to each qualified historical case record;

[0010] Semantically encode the case semantic conversion results corresponding to each qualified historical case record to obtain the case text vector corresponding to each qualified historical case record, and then generate a case vector library including the case text vector corresponding to each qualified historical case record;

[0011] Obtaining preliminary information of the case to be diagnosed, performing vectorization processing on the preliminary information of the case to be diagnosed, and obtaining a preliminary text vector corresponding to the case to be diagnosed;

[0012] Perform similarity search on the preliminary text vector corresponding to the case to be diagnosed in the case vector library to obtain one or more case text vectors matching the preliminary text vector;

[0013] According to a preset screening strategy, recommended historical case records are screened out from the qualified historical case records corresponding to one or more case text vectors;

[0014] The historical case records will be recommended as diagnostic prompt results for the cases to be diagnosed.

[0015] In a second aspect, a disease diagnosis intelligent prompting device based on vector retrieval is provided, which is implemented by a computer device, and the device includes:

[0016] The case acquisition module is used to obtain multiple historical case records containing case information of existing patients from the hospital's electronic case system; analyze and exclude multiple historical case records according to one or more preset keywords and case information in each historical case record, and screen out at least one qualified historical case record;

[0017] A semantic conversion module is used to perform semantic conversion processing on the case information in each qualified historical case record to obtain the case semantic conversion result corresponding to each qualified historical case record;

[0018] A semantic encoding module, used to semantically encode the case semantic conversion results corresponding to each qualified historical case record, obtain the case text vector corresponding to each qualified historical case record, and then generate a case vector library including the case text vector corresponding to each qualified historical case record;

[0019] A vector retrieval module is used to obtain preliminary information of the case to be diagnosed, perform vectorization processing on the preliminary information of the case to be diagnosed, and obtain a preliminary text vector corresponding to the case to be diagnosed; perform similarity retrieval on the preliminary text vector corresponding to the case to be diagnosed in the case vector library, and obtain one or more case text vectors matching the preliminary text vector;

[0020] The disease diagnosis prompt module is used to filter out recommended historical case records from qualified historical case records corresponding to one or more case text vectors according to a preset screening strategy; and use the recommended historical case records as the diagnosis prompt results of the case to be diagnosed.

[0021] In a third aspect, a computer device is provided, comprising a processor and a memory, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute any one of the above-mentioned vector retrieval-based intelligent prompt methods for disease diagnosis.

[0022] In a fourth aspect, a storage medium is provided, wherein the storage medium stores a computer program, wherein the computer program is configured to execute any of the above-mentioned vector retrieval-based intelligent prompt methods for disease diagnosis when running.

[0023] In a fifth aspect, a computer program product is provided, comprising a computer program, wherein the computer program is configured to execute any of the above-mentioned vector retrieval-based intelligent prompt methods for disease diagnosis when running.

[0024] By means of the above technical scheme, the embodiments of the present application provide a method and apparatus for intelligent disease diagnosis prompting based on vector retrieval, a computer device, a storage medium and a computer program product. The method is implemented by a computer device to obtain multiple historical case records containing case information of existing patients from the electronic case system of a hospital; according to one or more preset keywords and the case information in each historical case record, the multiple historical case records are analyzed and excluded to screen out at least one qualified historical case record; the case information in each qualified historical case record is semantically converted to obtain the case semantic conversion result corresponding to each qualified historical case record; and the case semantic conversion result corresponding to each qualified historical case record is converted into a semantic conversion result. The results are semantically encoded to obtain case text vectors corresponding to each qualified historical case record, and then a case vector library including case text vectors corresponding to each qualified historical case record is generated; preliminary information of the case to be diagnosed is obtained, and the preliminary information of the case to be diagnosed is vectorized to obtain the preliminary text vector corresponding to the case to be diagnosed; the preliminary text vector corresponding to the case to be diagnosed is similarly searched in the case vector library to obtain one or more case text vectors matching the preliminary text vector; according to the preset screening strategy, recommended historical case records are screened out from the qualified historical case records corresponding to one or more case text vectors; the recommended historical case records are used as the diagnosis prompt results of the case to be diagnosed. It can be seen that the embodiment of the present application starts from the perspective of semantic search, vectorizes the hospital electronic case and stores it in the vector database, obtains the most similar cases and disease diagnoses through vector retrieval, and then screens the retrieval results through the rule engine to provide clinicians with intelligent prompt results for disease diagnosis. This embodiment does not require the preparation of corpus for supervised training in advance, and has the characteristics of obtaining less patient visit information, which is particularly suitable for intelligent prompts for rapid diagnosis of patients who visit the doctor for the first time. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.

[0026] Figure 1 A flowchart of a disease diagnosis intelligent prompt method based on vector retrieval provided in an embodiment of the present application is shown;

[0027] Figure 2 The following is an architecture diagram of a disease diagnosis intelligent prompting method based on vector retrieval provided in another embodiment of the present application;

[0028] Figure 3 A flowchart of the current medical history processing provided by an embodiment of the present application is shown;

[0029] Figure 4 The case semantic conversion result provided by the embodiment of the present application is shown;

[0030] Figure 5 The structure diagram of the disease diagnosis intelligent prompt device based on vector retrieval provided in the embodiment of the present application is shown;

[0031] Figure 6 A structural diagram of a computer device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0032] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that such use is interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the term "including" and its variants are to be interpreted as open-ended terms meaning "including but not limited to".

[0034] In order to solve the above technical problems, the present application embodiment provides a disease diagnosis intelligent prompt method based on vector retrieval, such as Figure 1 As shown, the disease diagnosis intelligent prompt method based on vector retrieval is implemented by a computer device and may include the following steps S101 to S108:

[0035] Step S101, obtaining multiple historical case records containing case information of existing patients from the hospital's electronic case system.

[0036] In this step, multiple historical case records containing case information of existing patients are obtained from the hospital's electronic medical record system. This needs to meet compliance requirements such as data privacy and security. The data must be authorized by the patient or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0037] Step S102: Analyze and exclude multiple historical case records according to one or more preset keywords and case information in each historical case record, and select at least one qualified historical case record.

[0038] In this step, the case information in each historical case record may include gender, age, department, chief complaint, current medical history, and disease diagnosis results, etc., which is not limited in this embodiment.

[0039] For example, when the disease diagnosis result is empty, contains multiple diagnoses, contains uncertain and irregular diagnosis results, such as suspected, pending, inspection and other keywords, the record is excluded; when the chief complaint is empty or contains keywords such as patient request for re-examination, re-examination, examination, medical history is the same as before, come to dispense medicine, make an appointment for hospitalization, outpatient charges, etc., it is also excluded. It should be noted that the enumeration here is only illustrative and does not limit this embodiment.

[0040] Step S103, performing semantic conversion processing on the case information in each qualified historical case record to obtain a case semantic conversion result corresponding to each qualified historical case record.

[0041] Step S104, semantic encoding is performed on the case semantic conversion results corresponding to each qualified historical case record to obtain the case text vector corresponding to each qualified historical case record, and then a case vector library including the case text vector corresponding to each qualified historical case record is generated.

[0042] Step S105, obtaining preliminary information of the case to be diagnosed, performing vectorization processing on the preliminary information of the case to be diagnosed, and obtaining a preliminary text vector corresponding to the case to be diagnosed.

[0043] Step S106, performing a similarity search on the preliminary text vector corresponding to the case to be diagnosed in the case vector library to obtain one or more case text vectors matching the preliminary text vector.

[0044] Step S107 , according to a preset screening strategy, filter out recommended historical case records from the qualified historical case records corresponding to one or more case text vectors.

[0045] Step S108: recommending historical case records as diagnosis prompt results for the case to be diagnosed.

[0046] The embodiment of the present application starts from the perspective of semantic search, vectorizes the electronic medical records of the hospital and stores them in the vector database, obtains the most similar cases and disease diagnoses through vector retrieval, and then filters the retrieval results through the rule engine to provide clinicians with intelligent prompt results for disease diagnosis. This embodiment does not require the preparation of corpus for supervised training in advance, and has the characteristic of obtaining less patient medical information, which is particularly suitable for intelligent prompts for rapid diagnosis of patients who visit the doctor for the first time.

[0047] In the embodiment of the present application, a possible implementation method is provided. In the above step S102, multiple historical case records are analyzed and excluded according to one or more preset keywords and case information in each historical case record, and at least one qualified historical case record is screened out. Specifically, the following steps A1 and A2 may be included:

[0048] Step A1, setting the chief complaint and / or disease diagnosis result in each historical case record to a maximum character length L, and grouping them; wherein L is a positive integer;

[0049] Step A2, match the grouping results in descending order of frequency with one or more preset keywords. If a match is found, the historical case record is excluded; if no match is found, the historical case record is retained to obtain at least one qualified historical case record.

[0050] In this embodiment, the chief complaint and / or disease diagnosis result in each historical case record can be set to a maximum character length L, and grouped. The grouping results are matched with one or more preset keywords in descending order of frequency. If a match is found, the historical case record is excluded; if no match is found, the historical case record is retained to obtain at least one qualified historical case record. In this way, at least one qualified historical case record can be obtained accurately and efficiently.

[0051] The present application provides a possible implementation method. In the above step S103, the case information in each qualified historical case record is semantically converted to obtain the case semantic conversion result corresponding to each qualified historical case record. Specifically, the following steps B1 to B3 may be included:

[0052] Step B1, according to the set formula, convert the digital age in each qualified historical case record into Chinese characters containing semantic information.

[0053] For example, the formula is set as follows:

[0054]

[0055] When age is less than or equal to 11, the digital age is converted to a child; when age is greater than 11 and less than or equal to 18, the digital age is converted to a teenager; when age is greater than 18 and less than or equal to 35, the digital age is converted to a young person; when age is greater than 35 and less than or equal to 60, the digital age is converted to a middle-aged person; when age is greater than 60, the digital age is converted to an elderly person. It should be noted that the examples listed here are only illustrative and do not limit the present embodiment.

[0056] Step B2, remove negative words and meaningless and irrelevant phrases or sentences from the current medical history in each qualified historical case record, and intercept at most the first ML characters for output, to obtain the output result of the current medical history in each qualified historical case record; wherein ML is a positive integer.

[0057] Step B3, combining the output results of the digital age in each qualified historical case record converted into Chinese characters containing semantic information and the current medical history in each qualified historical case record, splicing them in the order of gender, age, department, chief complaint and current medical history to generate the case semantic conversion results corresponding to each qualified historical case record.

[0058] This embodiment ultimately generates semantic conversion results for each case record, and these results will contain richer semantic information to facilitate subsequent analysis or processing.

[0059] A possible implementation method is provided in an embodiment of the present application. The preliminary information of the case to be diagnosed mentioned in step S105 above may include gender, age, department, chief complaint and current medical history, which is not limited in this embodiment.

[0060] In the embodiment of the present application, a possible implementation method is provided. In the above step S107, according to a preset screening strategy, recommended historical case records are screened out from the qualified historical case records corresponding to one or more case text vectors, which may specifically include the following steps C1 to C4:

[0061] Step C1, according to the gender of the case to be diagnosed, excluding records with gender opposite to that of the case to be diagnosed from among the qualified historical case records corresponding to one or more case text vectors;

[0062] Step C2, counting the number of categories in the positive and negative semantic dictionary according to the positive and negative semantic dictionary, determining the positive and negative of the overall disease diagnosis results of the qualified historical case records corresponding to each of the one or more case text vectors, and excluding the records with negative disease diagnosis results in the qualified historical case records corresponding to each of the one or more case text vectors;

[0063] Step C3, according to the chief complaint and / or the disease site in the current medical history of the case to be diagnosed, exclude the records that do not contain the chief complaint and / or the disease site in the current medical history of the case to be diagnosed in the qualified historical case records corresponding to each of the one or more case text vectors;

[0064] Step C4, after excluding the corresponding records based on gender, semantics and disease site, the remaining records are output in descending order of the number of occurrences, excluding the first T records whose number of occurrences does not exceed K and do not appear in the original sorting, to obtain the recommended historical case records; wherein K and T are both positive integers.

[0065] This embodiment processes the qualified historical case records corresponding to one or more case text vectors according to rules such as gender, semantics, location, frequency, etc., to generate a final disease diagnosis prompt result.

[0066] The above introduces Figure 1There are multiple implementation methods for each link of the illustrated embodiment. The disease diagnosis intelligent prompt method based on vector retrieval in the embodiment of the present application will be further explained below through specific embodiments.

[0067] Figure 2 The architecture diagram of the disease diagnosis intelligent prompt method based on vector retrieval provided by another embodiment of the present application is shown. Figure 2 It includes electronic medical case library, semantic conversion, semantic coding, case vector library, cases to be diagnosed, semantic conversion, semantic coding, and vectors of cases to be diagnosed. Similarity search is performed on the vectors of cases to be diagnosed in the case vector library to obtain vector search results; next, gender diagnosis, semantic diagnosis, location diagnosis, and frequency diagnosis are performed, and finally the diagnosis prompt results are obtained; this will be introduced in detail below.

[0068] 1. Case acquisition module

[0069] Obtain the patient's case information from the hospital's electronic medical record system. The case information obtained may be gender, age, department, chief complaint, current medical history, and disease diagnosis results. When the disease diagnosis result is empty, contains multiple diagnoses, contains uncertain and irregular diagnosis results, such as suspected, pending, inspection and other keywords, the record will be excluded; when the chief complaint is empty or contains keywords such as patient request for re-examination, re-visit, inspection, same medical history, coming to dispense medicine, appointment for hospitalization, outpatient charges, etc., it will also be excluded.

[0070] The keywords listed in the above diagnosis results and chief complaints are obtained by limiting the diagnosis results or chief complaints to a maximum character length of L, grouping them in descending order of frequency, and then checking them one by one. L is generally set to 10.

[0071] It should be noted that obtaining multiple historical case records containing case information of existing patients from the hospital's electronic medical record system needs to meet compliance requirements such as data privacy and security. The data must be authorized by the patient or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0072] 2. Semantic conversion module

[0073] 2.1 The age in the case information is converted into Chinese characters containing semantic information according to the following formula, where age is the age.

[0074]

[0075] When age is less than or equal to 11, the digital age is converted to a child; when age is greater than 11 and less than or equal to 18, the digital age is converted to a teenager; when age is greater than 18 and less than or equal to 35, the digital age is converted to a young person; when age is greater than 35 and less than or equal to 60, the digital age is converted to a middle-aged person; when age is greater than 60, the digital age is converted to an elderly person. It should be noted that the examples listed here are only illustrative and do not limit the present embodiment.

[0076] 2.2 Since the history of present illness in case information is generally long, negative words and meaningless and irrelevant phrases or sentences are removed through regular expressions and rule templates, and the maximum length of the history of present illness is limited to ML, which is generally set to 350. Figure 3 As shown, the method for processing the text of the history of present illness is as follows:

[0077] Step 1: Set the negative word dictionary to "none, not, no, normal, negative", etc. If the phrases after the current medical history split contain the above negative words, they will be automatically removed. This method can remove negative word phrases and meaningless phrases such as "no fever and cough" and "normal appetite".

[0078] Step 2: First, remove the sentences containing "medical history" in the current medical history. If the processed value is empty, go to step 3; if it is not empty, count the percentage of non-Chinese characters in each sentence, and delete the sentences with more than 60%. If the processed value is empty, go to step 3, otherwise intercept at most the first ML characters as the result output.

[0079] Step 3: If the current medical history after processing in step 1 has a value, but the value after processing in step 2 is empty, then after processing in step 1, skip step 2 and directly intercept at most the first ML characters of the result of step 1 as the result output.

[0080] 2.3 After the conversions in 2.1 and 2.2 above, the data are spliced ​​in the order of gender, age, department, chief complaint and current medical history. The results are as follows: Figure 4 It should be noted that Figure 4 The case semantic conversion results are only illustrative, and this embodiment is not limited to this.

[0081] 3. Semantic encoding module

[0082] The currently open-source E5 text embedding model is suitable for any scenario that requires text vectorization, including retrieval, clustering, and classification, and has good performance in both zero-shot and fine-tuning situations. In the zero-shot case, the E5 text embedding model is the first text embedding model that exceeds the BM25 retrieval algorithm on the BEIR (dataset name) retrieval benchmark dataset without using any labeled data.

[0083] This embodiment uses the multilingual version of the E5 model, multilingual-e5-base (multilingual version of the E5 base model), to semantically encode the converted case text. Since the purpose of vectorizing the case text is to perform similarity retrieval, the prefix "query:" is concatenated in all case texts, and then vectorized to generate a 768-dimensional dense vector.

[0084] 4. Vector retrieval module

[0085] After the case text is converted into a 768-dimensional dense vector, this embodiment uses the 8.11.3 version of Elasticsearch (search and analysis engine) for storage and as a vector search engine for subsequent similar retrieval. The 8.11.3 version of Elasticsearch supports the use of the HNSW (Hierarchical Navigable Small World) algorithm for indexing dense vectors. HNSW is an algorithm for fast approximate nearest neighbor search ANN (Artificial Neural Network), with ultra-fast search speed and excellent recall rate, suitable for ANN queries in large-scale data sets.

[0086] Input the relevant information of the patient. Just like the case acquisition module, only the patient's gender, age, department, chief complaint and current medical history are obtained. Then the semantic conversion module is used for processing. The semantic encoding module generates a semantic vector. Similarity retrieval is performed through Elasticsearch to obtain the T cases most similar to the current case. T is generally set to 30.

[0087] 5. Disease diagnosis prompt module

[0088] In order to save the valuable consultation time of clinicians, some obviously unreasonable recommendation results are filtered out in advance through rules. The disease diagnosis results of the most similar T cases output by the vector retrieval module are extracted and processed according to the following rules.

[0089] 5.1 Principles of gender diagnosis

[0090] According to the gender of the patient to be diagnosed, the exclusion vector retrieves the disease diagnoses of the opposite gender recommended. As shown in Table 1, if the gender of the patient to be diagnosed is male, the female-related disease diagnoses appearing in the diagnosis results are excluded; if the gender of the patient to be diagnosed is female, the male-related disease diagnoses appearing in the diagnosis results are excluded.

[0091]

[0092] Table 1 Gender-related disease diagnosis

[0093] 5.2 Principles of semantic diagnosis

[0094] Check the top P most similar results recommended by similar search, count the number of positive and negative semantic dictionary categories according to the positive and negative semantic dictionary, determine the positive and negative nature of the overall disease diagnosis results, and then exclude all negative diagnosis results, P is generally 5. As shown in Table 2, if 3 of the top 5 results recommended by vector search contain words with positive semantics such as "increase" and "increase", the diagnosis with negative semantics is excluded from the overall disease diagnosis results.

[0095] Semantics Disease diagnosis Positive rise, increase, more, hyperplasia, growth, hypertrophy, slow growth, hypertrophy, enlargement Reverse decrease, low, little, insufficient, exhausted, weak, excessive, defective, missing

[0096] Table 2 Semantically related disease diagnoses

[0097] 5.3 Principles of site diagnosis

[0098] If the disease diagnosis result output by the vector retrieval module is related to the disease site, the corresponding disease site must appear in the text description of the current patient to be diagnosed, otherwise the recommended disease diagnosis result is excluded. As shown in Table 3, if the recommended disease diagnosis result is "dizziness", the main complaint or current medical history of the current patient to be diagnosed must contain the site word "head", otherwise the recommended disease diagnosis result will not be output to the final result.

[0099] Location Disease diagnosis head Dizziness, headache, scalp swelling, head injury Eye Conjunctivitis, dry eyes, eye fatigue, eye contusion nose Nosebleeds, nasal injuries, nasal polyps, nasal tumors Ear Otitis externa, foreign body in the ear canal, ear injury Stomach Gastric malignant tumor, gastric polyp, gastric space-occupying lesion, gastric mass intestinal Colon polyps, rectal malignancies, small intestinal malignancies milk Breast malignancy, breast nodules, breast lumps liver Hepatic insufficiency, hepatic hemangioma, liver malignancy, liver nodules

[0100] Table 3 Disease diagnosis related to body part

[0101] 5.4 Frequency Diagnosis Principle

[0102] After invalid diagnoses are excluded according to the rules of gender diagnosis, semantic diagnosis, and location diagnosis, the diagnostic results output by vector retrieval are output in descending order of the number of occurrences, while excluding results whose number of occurrences does not exceed K and which do not appear in the first T diagnoses in the original sorting. K is generally 1 and T is generally 10.

[0103] In summary, the various modules of this embodiment are implemented as follows:

[0104] 1) Case acquisition module, which obtains the case information of existing patients from the hospital's electronic case system. The case information obtained may include gender, age, department, chief complaint, current medical history, and disease diagnosis results, and excludes irregular and invalid data.

[0105] 2) Semantic conversion module, which converts the patient's age into Chinese characters with semantic information; and normalizes the patient's current medical history according to the rules.

[0106] 3) The semantic encoding module vectorizes the text of the processed gender, age, department, chief complaint, and current medical history fields.

[0107] 4) Vector retrieval module: the processed case data is put into the vector database, and the vector database is queried after the diagnosed cases are vectorized to generate the recommended results of disease diagnosis.

[0108] 5) The disease diagnosis prompt module processes the recommended disease diagnosis results according to gender, semantics, location, frequency and other rules to generate the final disease diagnosis prompt results.

[0109] This embodiment can achieve the following technical effects:

[0110] (1) This embodiment does not require the preparation of corpus for supervised training in advance, has a wide range of applications, and only requires obtaining a small amount of medical information of the patients, which is particularly suitable for rapid diagnosis recommendations for patients who visit the doctor for the first time.

[0111] (2) A series of methods and rules were designed to shorten the length of text and transform text semantics, so as to more accurately capture the semantics of the case context, which is conducive to recommending more similar disease diagnoses to doctors for reference.

[0112] (3) The HNSW algorithm with ultra-fast search speed and excellent recall rate is used for retrieval, which is suitable for ANN queries in large-scale data sets and can quickly return prompt results of disease diagnosis in real time.

[0113] It should be noted that the size of the sequence number of each step in the above embodiment does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. In practical applications, all the above possible implementation methods can be combined in any way to form possible embodiments of the present application, which will not be described one by one here.

[0114] Based on the disease diagnosis intelligent prompt method based on vector retrieval provided in the above embodiments, and based on the same inventive concept, the embodiment of the present application also provides a disease diagnosis intelligent prompt device based on vector retrieval.

[0115] Figure 5 is a structural diagram of a disease diagnosis intelligent prompt device based on vector retrieval provided in an embodiment of the present application. Figure 5 As shown, the disease diagnosis intelligent prompt device based on vector retrieval is implemented by a computer device. The device can specifically include a case acquisition module 510, a semantic conversion module 520, a semantic encoding module 530, a vector retrieval module 540 and a disease diagnosis prompt module 550.

[0116] The case acquisition module 510 is used to acquire multiple historical case records containing case information of existing patients from the electronic case system of the hospital; analyze and exclude multiple historical case records according to one or more preset keywords and case information in each historical case record, and screen out at least one qualified historical case record;

[0117] The semantic conversion module 520 is used to perform semantic conversion processing on the case information in each qualified historical case record to obtain the case semantic conversion result corresponding to each qualified historical case record;

[0118] A semantic encoding module 530, for semantically encoding the case semantic conversion results corresponding to each qualified historical case record, obtaining a case text vector corresponding to each qualified historical case record, and then generating a case vector library including the case text vector corresponding to each qualified historical case record;

[0119] The vector retrieval module 540 is used to obtain preliminary information of the case to be diagnosed, perform vectorization processing on the preliminary information of the case to be diagnosed, and obtain preliminary text vectors corresponding to the case to be diagnosed; perform similarity search on the preliminary text vector corresponding to the case to be diagnosed in the case vector library, and obtain one or more case text vectors matching the preliminary text vector;

[0120] The disease diagnosis prompt module 550 is used to filter out recommended historical case records from the qualified historical case records corresponding to one or more case text vectors according to a preset screening strategy; and use the recommended historical case records as the diagnosis prompt results of the case to be diagnosed.

[0121] A possible implementation method is provided in an embodiment of the present application, where the case information in each historical case record includes gender, age, department, chief complaint, current medical history, and disease diagnosis results.

[0122] A possible implementation method is provided in the embodiment of the present application, wherein the case acquisition module 510 is further used to:

[0123] The chief complaint and / or disease diagnosis result in each historical case record is set to a maximum character length of L and grouped; where L is a positive integer;

[0124] The grouping results are sorted in descending order of frequency and then matched with one or more preset keywords. If a match is found, the historical case record is excluded; if no match is found, the historical case record is retained to obtain at least one qualified historical case record.

[0125] A possible implementation method is provided in an embodiment of the present application, wherein the semantic conversion module 520 is further configured to:

[0126] According to the set formula, the digital age in each qualified historical case record is converted into Chinese characters containing semantic information;

[0127] Remove negative words and meaningless and irrelevant phrases or sentences from the history of current illness in each qualified historical case record, and intercept at most the first ML characters for output, to obtain the output result of the history of current illness in each qualified historical case record; wherein ML is a positive integer;

[0128] Combined with the Chinese characters containing semantic information converted from the digital age in each qualified historical case record and the output results of the current medical history in each qualified historical case record, they are spliced ​​in the order of gender, age, department, chief complaint and current medical history to generate the case semantic conversion results corresponding to each qualified historical case record.

[0129] A possible implementation method is provided in an embodiment of the present application, where the preliminary information of the case to be diagnosed includes gender, age, department, chief complaint and current medical history.

[0130] A possible implementation method is provided in the embodiment of the present application, wherein the disease diagnosis prompt module 550 is further used to:

[0131] According to the gender of the case to be diagnosed, exclude records whose gender is opposite to that of the case to be diagnosed in the qualified historical case records corresponding to each of the one or more case text vectors;

[0132] According to the positive and negative semantic dictionary, the number of categories in the positive and negative semantic dictionary is counted, the positive and negative of the overall disease diagnosis results of the qualified historical case records corresponding to each of the one or more case text vectors are determined, and the records with negative disease diagnosis results in the qualified historical case records corresponding to each of the one or more case text vectors are excluded;

[0133] According to the disease site in the chief complaint and / or the current medical history of the case to be diagnosed, exclude the records that do not contain the disease site in the chief complaint and / or the current medical history of the case to be diagnosed in the qualified historical case records corresponding to each of the one or more case text vectors;

[0134] After excluding the corresponding records based on gender, semantics and disease site, the remaining records are output in descending order of the number of occurrences, excluding the first T records whose number of occurrences does not exceed K and do not appear in the original sorting, to obtain the recommended historical case records; where K and T are both positive integers.

[0135] Based on the same inventive concept, an embodiment of the present application also provides a computer device, including a processor and a memory, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the charging pile information processing method of any one of the above embodiments.

[0136] In an exemplary embodiment, a computer device is provided, such as Figure 6 As shown, Figure 6 The computer device 600 shown includes: a processor 601 and a memory 603. The processor 601 and the memory 603 are connected, such as through a bus 602. Optionally, the computer device 600 may also include a transceiver 604. It should be noted that in actual applications, the transceiver 604 is not limited to one, and the structure of the computer device 600 does not constitute a limitation on the embodiments of the present application.

[0137] Processor 601 may be a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 601 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0138] The bus 602 may include a path to transmit information between the above components. The bus 602 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 602 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0139] The memory 603 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0140] The memory 603 is used to store the computer program code for executing the solution of the present application, and the execution is controlled by the processor 601. The processor 601 is used to execute the computer program code stored in the memory 603 to implement the contents shown in the above method embodiment.

[0141] Among them, computer devices include but are not limited to: mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The computer device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0142] Based on the same inventive concept, an embodiment of the present application further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute any one of the above-mentioned embodiments of the intelligent disease diagnosis prompt method based on vector retrieval when running.

[0143] Those skilled in the art can clearly understand that the specific working processes of the systems, devices, and modules described above can refer to the corresponding processes in the aforementioned method embodiments, and for the sake of brevity, they are not further described here.

[0144] Those skilled in the art can understand that the technical solution of the present application can be embodied in the form of a software product in essence or in whole or in part. The computer software product is stored in a storage medium, which includes a number of program instructions to enable a computer device (such as a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application when running the program instructions. The aforementioned storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0145] Alternatively, all or part of the steps of implementing the aforementioned method embodiments may be accomplished by hardware associated with program instructions (such as a computer device such as a personal computer, a server, or a network device), and the program instructions may be stored in a computer-readable storage medium. When the program instructions are executed by a processor of a computer device, the computer device executes all or part of the steps of the method described in each embodiment of the present application.

[0146] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that within the spirit and principles of the present application, they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not deviate from the protection scope of the present application.

Claims

1. A disease diagnosis intelligent prompt method based on vector retrieval, characterized in that: Implementation by a computer device, the method includes: Obtain multiple historical case records containing case information of existing patients from the hospital's electronic case system; According to one or more preset keywords and case information in each historical case record, multiple historical case records are analyzed and excluded to screen out at least one qualified historical case record; Performing semantic conversion processing on the case information in each qualified historical case record to obtain the case semantic conversion result corresponding to each qualified historical case record; Semantically encode the case semantic conversion results corresponding to each qualified historical case record to obtain the case text vector corresponding to each qualified historical case record, and then generate a case vector library including the case text vector corresponding to each qualified historical case record; Obtaining preliminary information of the case to be diagnosed, performing vectorization processing on the preliminary information of the case to be diagnosed, and obtaining a preliminary text vector corresponding to the case to be diagnosed; Perform similarity search on the preliminary text vector corresponding to the case to be diagnosed in the case vector library to obtain one or more case text vectors matching the preliminary text vector; According to a preset screening strategy, recommended historical case records are screened out from the qualified historical case records corresponding to one or more case text vectors; The historical case records will be recommended as diagnostic prompt results for the cases to be diagnosed.

2. The method according to claim 1, characterized in that: The case information in each historical case record includes gender, age, department, chief complaint, current medical history, and disease diagnosis results.

3. The method according to claim 2, characterized in that According to one or more preset keywords and the case information in each historical case record, multiple historical case records are analyzed and excluded, and at least one qualified historical case record is screened out, including: The chief complaint and / or disease diagnosis result in each historical case record is set to a maximum character length of L and grouped; where L is a positive integer; The grouping results are sorted in descending order of frequency and then matched with one or more preset keywords. If a match is found, the historical case record is excluded; if no match is found, the historical case record is retained to obtain at least one qualified historical case record.

4. The method according to claim 2, characterized in that: The case information in each qualified historical case record is semantically converted to obtain the case semantic conversion results corresponding to each qualified historical case record, including: According to the set formula, the digital age in each qualified historical case record is converted into Chinese characters containing semantic information; Remove negative words and meaningless and irrelevant phrases or sentences from the history of current illness in each qualified historical case record, and intercept at most the first ML characters for output, to obtain the output result of the history of current illness in each qualified historical case record; wherein ML is a positive integer; Combined with the Chinese characters containing semantic information converted from the digital age in each qualified historical case record and the output results of the current medical history in each qualified historical case record, they are spliced ​​in the order of gender, age, department, chief complaint and current medical history to generate the case semantic conversion results corresponding to each qualified historical case record.

5. The method according to claim 2, characterized in that: The preliminary information of the cases to be diagnosed includes gender, age, department, chief complaint and current medical history.

6. The method according to claim 5, characterized in that According to the preset screening strategy, recommended historical case records are screened out from the qualified historical case records corresponding to one or more case text vectors, including: According to the gender of the case to be diagnosed, exclude records whose gender is opposite to that of the case to be diagnosed in the qualified historical case records corresponding to each of the one or more case text vectors; According to the positive and negative semantic dictionary, the number of categories in the positive and negative semantic dictionary is counted, the positive and negative of the overall disease diagnosis results of the qualified historical case records corresponding to each of the one or more case text vectors are determined, and the records with negative disease diagnosis results in the qualified historical case records corresponding to each of the one or more case text vectors are excluded; According to the disease site in the chief complaint and / or the current medical history of the case to be diagnosed, exclude the records that do not contain the disease site in the chief complaint and / or the current medical history of the case to be diagnosed in the qualified historical case records corresponding to each of the one or more case text vectors; After excluding the corresponding records based on gender, semantics and disease site, the remaining records are output in descending order of the number of occurrences, excluding the first T records whose number of occurrences does not exceed K and do not appear in the original sorting, to obtain the recommended historical case records; where K and T are both positive integers.

7. A disease diagnosis intelligent prompt device based on vector retrieval, characterized in that: Implemented by a computer device, the apparatus comprises: The case acquisition module is used to obtain multiple historical case records containing case information of existing patients from the hospital's electronic case system; analyze and exclude multiple historical case records according to one or more preset keywords and case information in each historical case record, and screen out at least one qualified historical case record; A semantic conversion module is used to perform semantic conversion processing on the case information in each qualified historical case record to obtain the case semantic conversion result corresponding to each qualified historical case record; A semantic encoding module, used to semantically encode the case semantic conversion results corresponding to each qualified historical case record, obtain the case text vector corresponding to each qualified historical case record, and then generate a case vector library including the case text vector corresponding to each qualified historical case record; A vector retrieval module is used to obtain preliminary information of the case to be diagnosed, perform vectorization processing on the preliminary information of the case to be diagnosed, and obtain a preliminary text vector corresponding to the case to be diagnosed; perform similarity retrieval on the preliminary text vector corresponding to the case to be diagnosed in the case vector library, and obtain one or more case text vectors matching the preliminary text vector; The disease diagnosis prompt module is used to filter out recommended historical case records from qualified historical case records corresponding to one or more case text vectors according to a preset screening strategy; and use the recommended historical case records as the diagnosis prompt results of the case to be diagnosed.

8. A computer device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the disease diagnosis intelligent prompting method based on vector retrieval according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the disease diagnosis intelligent prompt method based on vector retrieval according to any one of claims 1 to 6 when running.

10. A computer program product, comprising a computer program, characterized in that The computer program is configured to execute the disease diagnosis intelligent prompt method based on vector retrieval according to any one of claims 1 to 6 when running.

Citation Information

Cited By

  • Diagnosis recommendation method and device, equipment, storage medium and program product

    CN119920439A