Disease prediction method, apparatus, device, and medium

By extracting disease description features through a semantic representation model and matching them based on similarity, the problem of poor scalability of existing disease prediction models is solved, resulting in stronger disease prediction scalability and accuracy, and improving the functionality of online medical systems.

CN115985510BActive Publication Date: 2026-11-20TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211611854.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-13
Publication Date
2026-11-20
Estimated Expiration
2042-12-13

AI Technical Summary

Technical Problem

Existing disease prediction models have poor scalability when expanding to include more disease types, requiring model retraining and impacting the functional expansion of online healthcare systems.

Method used

A semantic representation model is used to extract the expressive features of disease description information. Disease prediction is performed by matching the similarity between candidate diseases and the diseases to be predicted, and the expansion of disease types is supported.

Benefits of technology

It achieves high scalability in disease prediction, enabling the addition of candidate diseases without retraining the model, enhancing the functional scalability of online medical systems, and improving prediction accuracy through correlation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115985510B_ABST
    Figure CN115985510B_ABST
Patent Text Reader

Abstract

The application discloses a disease prediction method, device, equipment and medium, provides a semantic expression model, which can extract features from description information of diseases. When the model is applied to disease prediction, first, input the description information of the candidate disease into the semantic expression model to obtain corresponding expression features, and input the description information of the disease to be predicted into the semantic expression model to obtain corresponding expression features. The disease to be predicted can also be obtained according to the similarity between the expression features of the candidate disease and the disease to be predicted. The method applies the similarity between disease features to disease prediction, and more diseases can be predicted by increasing the candidate diseases, which has strong scalability. Meanwhile, the features extracted by the model are associated with the description information of other dimensions of the disease, have rich expression ability while expressing semantics, and depend on the similarity between the expression features to predict the disease, which can effectively improve the prediction accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure generally relates to the field of disease prediction technology, and specifically to a disease prediction method, apparatus, device, and medium. Background Technology

[0002] With the development of artificial intelligence, disease prediction functions are widely used in online healthcare, such as intelligent triage and online consultations. In these technologies, classification models are typically trained using a limited set of samples and labels, and then used for disease prediction. In practical applications, the classification model outputs a disease label matched by its input, serving as the disease prediction result.

[0003] Although classification models can predict diseases, the number of classification results (i.e. disease labels) that the model can predict is very limited. Furthermore, when adding diseases, the model needs to be retrained based on the newly added disease labels, which severely limits the scalability of the model and seriously affects the functional expansion of online medical systems. Summary of the Invention

[0004] In view of the above-mentioned defects or deficiencies in the prior art, it is desirable to provide a disease prediction method, device, equipment and medium that can effectively support the expansion of disease types in disease prediction scenarios, thereby effectively improving the functional expansion of online medical systems.

[0005] In a first aspect, embodiments of this application provide a disease prediction method, including: Descriptive information of each candidate disease from a plurality of candidate diseases is obtained, and semantic extraction is performed on the descriptive information based on a semantic expression model to obtain the expression features of the candidate disease; the expression features of the candidate disease are used to characterize the correlation between the descriptive information corresponding to the expression features of the candidate disease and other descriptive information; Obtain descriptive information of the disease to be predicted, and perform semantic extraction on the descriptive information of the disease to be predicted based on the semantic expression model to obtain the expression features of the disease to be predicted; The disease to be predicted is determined from the plurality of candidate diseases based on the expression features of the disease to be predicted and the similarity between the expression features of the plurality of candidate diseases.

[0006] Secondly, embodiments of this application provide a disease prediction device, comprising: The first expression module is used to acquire descriptive information of each candidate disease from a plurality of candidate diseases, and to perform semantic extraction on the descriptive information based on a semantic expression model to obtain the expression features of the candidate disease; the expression features of the candidate disease are used to characterize the correlation between the descriptive information corresponding to the expression features of the candidate disease and other descriptive information. The second expression module is used to obtain descriptive information of the disease to be predicted, and to perform semantic extraction on the descriptive information of the disease to be predicted based on the semantic expression model to obtain the expression features of the disease to be predicted. A determination module is used to determine the disease to be predicted from the plurality of candidate diseases based on the expression features of the disease to be predicted and the similarity between the expression features of the plurality of candidate diseases.

[0007] Thirdly, embodiments of this application provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method described in embodiments of this application.

[0008] Fourthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in embodiments of this application.

[0009] Fifthly, embodiments of this application provide a computer program product, including a computer program, characterized in that, when the computer program is executed by a processor, it implements the method described in embodiments of this application.

[0010] The disease prediction method proposed in this application provides a semantic expression model, which can extract features from the descriptive information of a certain dimension of a disease. When this model is applied to disease prediction, it first determines the expression features of candidate diseases based on their descriptive information and the expression features of the disease to be predicted based on its descriptive information. Then, it predicts the disease to be predicted based on the similarity between the expression features of the candidate diseases and the expression features of the disease to be predicted. This application uses the similarity between disease features for disease prediction. While achieving disease prediction, it can also predict more diseases by adding candidate diseases, demonstrating strong scalability. For example, by adding candidate diseases and obtaining the expression features of the new candidate diseases through the semantic expression model, and using the expression features of the new candidate diseases as matching objects for the disease to be predicted, more types of disease prediction can be achieved. This effectively avoids the problems of needing to retrain the model according to the new disease prediction requirements and the poor model scalability when using classification models for disease prediction. In disease prediction scenarios, it can effectively support the expansion of disease types, thereby effectively improving the functional expansion of online medical systems.

[0011] Furthermore, when descriptive information of a disease in one dimension is input into a semantic expression model for feature extraction, the extracted expressive features are correlated with descriptive information in other dimensions of the disease. Such expressive features possess rich expressive power while simultaneously conveying semantics. This application relies on the similarity between expressive features for disease prediction, focusing not only on the semantics of the disease description itself but also on the relationships between different descriptive information. Based on these two characteristics, features more similar to the expressive features of the disease to be predicted can be effectively matched, and accurate disease prediction can be performed based on the matched features.

[0012] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description

[0013] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings: Figure 1 The diagram illustrates the implementation environment architecture of the disease prediction method provided in this application embodiment; Figure 2 This illustration shows a flowchart of a user inputting a description of symptoms through an application, according to an embodiment of this application. Figure 3 A schematic flowchart of a disease prediction method provided in an embodiment of this application is shown; Figure 4 A schematic diagram illustrating the relationship between expressive features provided in an embodiment of this application is shown; Figure 5 A flowchart illustrating a disease prediction method provided in another embodiment of this application is shown; Figure 6 This illustration shows a schematic diagram of the principle of determining the first loss based on two historical medical records according to an embodiment of this application; Figure 7 This illustration shows a schematic diagram illustrating the principle of determining a second loss based on historical medical records and disease names according to an embodiment of this application; Figure 8 This illustration shows a schematic diagram of the principle of determining a second loss based on a disease overview and disease name according to an embodiment of this application; Figure 9 This illustration shows a schematic diagram of the principle of determining a second loss based on disease symptoms and disease name according to an embodiment of this application; Figure 10 This illustration shows a schematic diagram illustrating the principle of determining a first loss based on a historical medical record, according to an embodiment of this application. Figure 11A flowchart illustrating a disease prediction method provided in yet another embodiment of this application is shown; Figure 12 A structural block diagram of a disease prediction device provided in an embodiment of this application is shown; Figure 13 A structural block diagram of a disease prediction device provided in another embodiment of this application is shown; Figure 14 A schematic diagram of the structure of a computer system suitable for implementing an electronic device or server according to embodiments of this application is shown. Detailed Implementation

[0014] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings.

[0015] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0016] Artificial intelligence (AI) is the theory, methods, technology, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to achieve optimal results. In other words, AI is a comprehensive technology within computer science that attempts to understand the essence of intelligence and produce a new kind of intelligent machine that can react in a way similar to human intelligence. AI studies the design principles and implementation methods of various intelligent machines, enabling them to possess the functions of perception, reasoning, and decision-making.

[0017] Artificial intelligence (AI) is a comprehensive discipline encompassing a wide range of fields, including both hardware and software technologies. Fundamental AI technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies primarily include computer vision, speech processing, natural language processing, and machine learning / deep learning.

[0018] Computer vision (CV) is a science that studies how to enable machines to "see." More specifically, it refers to machine vision, which uses cameras and computers to replace human eyes in recognizing and measuring targets, and then performs image processing to create images more suitable for human observation or transmission to instruments. As a scientific discipline, computer vision studies related theories and technologies, attempting to build artificial intelligence systems capable of extracting information from images or multidimensional data. Computer vision technologies typically include image processing, image recognition, image semantic understanding, image retrieval, OCR, video processing, video semantic understanding, video content / behavior recognition, 3D object reconstruction, 3D technology, virtual reality, augmented reality, simultaneous localization and mapping (SLAM), and common biometric recognition technologies such as facial recognition and fingerprint recognition.

[0019] Key technologies in speech technology include Automatic Speech Recognition (ASR), Text-to-Speech (TTS), and Voiceprint Recognition. Enabling computers to hear, see, speak, and feel is the future direction of human-computer interaction, with speech emerging as one of the most promising methods.

[0020] Natural Language Processing (NLP) is an important field within computer science and artificial intelligence. It studies the theories and methods for enabling effective communication between humans and computers using natural language. NLP is a science that integrates linguistics, computer science, and mathematics. Therefore, research in this field involves natural language—the language people use in daily life—and thus it has a close relationship with linguistic research. NLP techniques typically include text processing, semantic understanding, machine translation, question answering, and knowledge graphs.

[0021] Machine learning (ML) is a multidisciplinary field involving probability theory, statistics, approximation theory, convex analysis, and algorithm complexity theory. It specifically studies how computers can simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to endow computers with intelligence; its applications span all areas of artificial intelligence. Machine learning and deep learning typically include techniques such as artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and instructional learning.

[0022] Autonomous driving technology typically includes high-precision mapping, environmental perception, behavior decision-making, path planning, and motion control. Autonomous driving technology has broad application prospects. With the research and advancement of artificial intelligence (AI) technology, AI is being studied and applied in various fields, such as smart homes, smart wearable devices, virtual assistants, smart speakers, smart marketing, autonomous driving, drones, robots, smart healthcare, and smart customer service. It is believed that with the development of technology, AI will be applied in more fields and play an increasingly important role.

[0023] The solutions provided in this application involve technologies such as natural language processing in artificial intelligence, and are specifically illustrated through the following embodiments.

[0024] For the specific implementation environment of the disease prediction method proposed in this application, please refer to [link / reference needed]. Figure 1 . Figure 1 This diagram illustrates the implementation environment architecture of the disease prediction method provided in an embodiment of this application. Figure 1 As shown, the implementation environment architecture includes: client 101 and server 102.

[0025] Client 101 is an application installed on the user's terminal device, supporting online medical functions such as health cards and health mini-programs. Client 101 receives and responds to user-triggered operations and interacts with server 102 based on these operations. For example, client 101 receives disease description information input by the user and, in response to the user's confirmation, sends the acquired disease description information to server 102. Server 102 performs disease prediction based on the received disease description information and sends the prediction result to client 101 for display.

[0026] For example, such as Figure 2 As shown, in a disease prediction scenario, client 101 and server 102 can perform the following steps: 201, Client 101 responds to the user's selection operation on the application interface by calling the disease description interface.

[0027] The application homepage includes configuration options for various online medical functions, such as a "Disease Self-Test" option. Users can trigger a disease prediction process by activating the "Disease Self-Test" option. For example, client 101 receives user selection operations on the "Disease Self-Test" control (e.g., clicking, double-clicking, dragging, etc.) and invokes the disease description interface in response to the user's selection operation.

[0028] 202, Client 101 responds to the user's configuration operation on the disease description interface and obtains the description information of the disease to be predicted.

[0029] The disease description interface includes various symptom configuration options, such as symptom input boxes or common symptom selection options.

[0030] In other words, after the client 101 presents the disease description interface, the user can input various disease description information corresponding to themselves by operating on the various configuration items in the disease description interface. For example, the user can click "knee pain" in the "Common Disease Selection Items", and the client 101 can receive the corresponding disease description information.

[0031] 203. Client 101 sends the description information of the disease to be predicted to server 102.

[0032] Client 101 sends the disease symptom information input by the user as descriptive information of the disease to be predicted to server 102. Client 101 can send multiple descriptive phrases (such as "knee pain", "15 days", etc.) directly to server 102, or it can concatenate descriptive phrases into a descriptive statement (such as "knee pain for 15 days") and send it to server 102.

[0033] 204. Server 102 performs semantic extraction on the descriptive information of the disease to be predicted based on the semantic expression model to obtain the expressive features of the disease to be predicted.

[0034] The semantic expression model is trained based on the descriptive information of the sample disease. The expression features obtained based on the semantic expression model can characterize the relationship between the descriptive information of the disease to be predicted and other descriptive information of the disease to be predicted.

[0035] 205. Server 102 determines the predicted disease from multiple candidate diseases based on the expression features of the disease to be predicted and the similarity between the expression features of multiple candidate diseases.

[0036] In other words, after obtaining the expression features of the disease to be predicted, the server 102 compares the similarity between the expression features of the disease to be predicted and the expression features of the candidate diseases obtained in advance, and then determines the disease to be predicted based on the similarity between the expression features of the disease to be predicted and the expression features of multiple candidate diseases.

[0037] 206. Server 102 sends the predicted disease information to client 101.

[0038] In other words, after performing disease prediction, server 102 obtains the disease prediction result (e.g., the disease name). Server 102 can also determine auxiliary consultation information such as the department for registration based on the disease prediction result. Furthermore, server 102 can also send the disease prediction result and auxiliary consultation information to client 101. After receiving the disease prediction result and auxiliary consultation information, client 101 can display them through its interface.

[0039] The disease prediction method provided in this application embodiment can be executed on server 102 or client 101. Correspondingly, the semantic expression model mentioned below in this application can be deployed on server 102 or client 101, depending on the actual application scenario. For example, the disease prediction method of this application can be deployed on client 101 as an algorithm program. The client can be a mobile phone, personal computer, platform computer, smartphone, vehicle terminal, wearable device, etc., with disease prediction functionality; this application embodiment does not limit this.

[0040] Server 102 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0041] Client 101 and server 102 are connected directly or indirectly via wired or wireless communication. Optionally, the aforementioned wireless or wired network uses standard communication technologies and / or protocols. The network is typically the Internet, but can also be any network, including but not limited to any combination of Local Area Network (LAN), Metropolitan Area Network (MAN), Wide Area Network (WAN), mobile, wired or wireless network, private network, or virtual private network.

[0042] It should be noted that the acquisition of various information involved in this application complies with relevant legal provisions, such as medical records and symptoms obtained when making disease predictions.

[0043] To further illustrate the technical solutions provided in the embodiments of this application, a detailed description is provided below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiments of this application provide method operation instruction steps as shown in the following embodiments or drawings, the method may include more or fewer operation instruction steps based on conventional or non-creative effort. In steps where there is no logically necessary causal relationship, the execution order of these steps is not limited to the execution order provided in the embodiments of this application. In actual processing or when the device executes the method, it may be executed sequentially or in parallel according to the method shown in the embodiments or drawings.

[0044] Please refer to Figure 3 , Figure 3 A schematic flowchart of a disease prediction method provided in an embodiment of this application is shown. Figure 3As shown, the method includes: 301. Obtain the descriptive information of each candidate disease from multiple candidate diseases, and extract the semantics of the descriptive information based on the semantic expression model to obtain the expression features of the candidate diseases; the expression features of the candidate diseases are used to characterize the relationship between the descriptive information corresponding to the expression features of the candidate diseases and other descriptive information.

[0045] Candidate diseases are those that can be used as prediction results, such as diseases in medical dictionaries. The descriptive information for candidate diseases is data used to describe the candidate diseases, including but not limited to one or more of the following: disease name, medical history, disease overview, and disease symptoms.

[0046] It should be understood that each descriptive information of any candidate disease can be semantically extracted based on a semantic expression model to obtain the expressive features of the candidate disease. The expressive features of multiple descriptive information can characterize the relationship between different descriptive information. The relationship can be a similarity relationship. For example, the expressive features corresponding to multiple descriptive information of the same candidate disease have high similarity and are located in the same or similar spatial regions in the multidimensional spatial coordinate system. The expressive features corresponding to multiple descriptive information of different candidate diseases have low similarity and are located in different spatial regions in the multidimensional spatial coordinate system.

[0047] For example, such as Figure 4 As shown, in a two-dimensional spatial coordinate system, the expression features of the medical records and the expression features of the disease name of the same candidate disease are distributed in the same spatial region, while the expression features of the descriptive information of different candidate diseases are distributed in different spatial regions. Among them, the expression features of candidate diseases belonging to the same category (such as acute upper respiratory tract infection, acute bronchitis, acute tonsillitis, etc., which belong to acute respiratory diseases) are distributed in similar (adjacent) spatial regions.

[0048] 302. Obtain the descriptive information of the disease to be predicted. Based on the semantic expression model, perform semantic extraction on the descriptive information of the disease to be predicted to obtain the expressive features of the disease to be predicted.

[0049] It should be noted that the descriptive information of the disease to be predicted is the user's description of their own symptoms obtained through client interaction information. It can be a phrase describing the symptoms, or a sentence or other descriptive method. The specific settings can be set according to the way the client guides the user to describe the symptoms. This application does not make any specific limitations.

[0050] In one feasible implementation, to ensure the accuracy of the expressive features extracted based on the description information of the disease to be predicted, a fusion process can be performed on the received multiple description information before semantic extraction based on the semantic expression model. This fusion process can be a concatenation operation. For example, multiple descriptive phrases input by a user multiple times, such as "knee has been hurting" or "15 days," can be concatenated to form the description information of the user's corresponding disease to be predicted, such as "knee joint pain for 15 consecutive days." This concatenated description information is then input into the semantic expression model for semantic extraction to obtain the expressive features of the disease to be predicted.

[0051] It should be understood that the semantic expression model for extracting the descriptive information of the disease to be predicted is the same semantic expression model for extracting the descriptive information of the candidate disease. This semantic expression model is trained so that the expression features can characterize the relationship between different descriptive information. Therefore, the expression features of the disease to be predicted obtained based on this semantic expression model also contain the relationship between other substantially related descriptive information of the disease to be predicted.

[0052] 303. Based on the expression features of the disease to be predicted and the similarity between the expression features of multiple candidate diseases, the disease to be predicted is determined from multiple candidate diseases.

[0053] In other words, the expression features of the disease to be predicted can be compared with the expression features of multiple candidate diseases to calculate similarity. At least one candidate disease whose similarity meets the similarity threshold can be identified as the disease to be predicted. Alternatively, a preset number of candidate diseases in descending order of similarity can be identified as the disease to be predicted. The specific identification strategy can be set according to the product needs, and this application does not impose any specific limitations.

[0054] The similarity can be cosine similarity, meaning that the cosine similarity between the expression features of the disease to be predicted and the expression features of the candidate disease is calculated, and the result is used as the similarity between the disease to be predicted and the candidate disease. When there are multiple expression features of the candidate disease, that is, multiple descriptive information from the candidate disease, multiple similarities can be obtained between the expression features of the disease to be predicted and the multiple expression features of the candidate disease. In this case, the average of the multiple similarities can be used as the similarity between the disease to be predicted and the candidate disease.

[0055] In one feasible implementation, the expression features of the disease to be predicted are compared with the expression features of multiple candidate diseases obtained based on multiple descriptive information. Expression features with a similarity greater than or equal to a similarity threshold are obtained, and at least one candidate disease is determined based on these features. Then, the at least one candidate disease is sorted according to similarity, and the 2-3 candidate diseases with the highest similarity in the sequence are determined as the disease to be predicted. The predicted disease name is sent to the client to display the prediction result to the user. Alternatively, based on the determined predicted disease name, information such as a disease overview and symptoms is obtained and sent to the client so that the user can verify and analyze their own symptoms based on the disease overview and symptoms.

[0056] In one feasible implementation, when it is necessary to add candidate diseases to the application, the descriptive information of the new candidate diseases can be obtained, and the semantics of the descriptive information of the new candidate diseases can be extracted based on the semantic expression model to obtain the expression features of the new candidate diseases. This enables the predicted diseases that are predicted later to obtain the similarity between the expression features of the new candidate diseases, effectively enriching the scalability of disease prediction.

[0057] In another feasible implementation, when any candidate disease is confirmed by the medical community to need to be deleted, the description information of the candidate disease to be deleted can be deleted to avoid obtaining the expression features of the candidate disease to be deleted. Alternatively, the expression features of the candidate disease to be deleted can be deleted from the stored expression features of the candidate diseases to avoid similarity calculation between the expression features of the disease to be predicted and the expression features of the candidate disease to be deleted.

[0058] Therefore, the disease prediction method proposed in this application trains a semantic representation model, which can extract features from the descriptive information of a certain dimension of a disease. When this model is applied to disease prediction, it first determines the expression features of candidate diseases based on their descriptive information and the expression features of the disease to be predicted based on its descriptive information. Then, it predicts the disease to be predicted based on the similarity between the expression features of the candidate diseases and the expression features of the disease to be predicted. This application uses the similarity between disease features for disease prediction. While achieving disease prediction, it can also predict more diseases by adding candidate diseases, demonstrating strong scalability. For example, candidate diseases can be added, and the expression features of the newly added candidate diseases can be obtained through the semantic representation model. These new candidate disease expression features can also be used as matching objects for the disease to be predicted, thus enabling the prediction of more types of diseases. This effectively avoids the problems of needing to retrain the model according to the new disease prediction requirements and the poor model scalability when using classification models for disease prediction. In disease prediction scenarios, it can effectively support the expansion of disease types, thereby effectively improving the functional expansion of online medical systems.

[0059] Furthermore, when descriptive information of a disease in one dimension is input into a semantic expression model for feature extraction, the extracted expressive features are correlated with descriptive information in other dimensions of the disease. Such expressive features possess rich expressive power while simultaneously conveying semantics. This application relies on the similarity between expressive features for disease prediction, focusing not only on the semantics of the disease description itself but also on the relationships between different descriptive information. Based on these two characteristics, features more similar to the expressive features of the disease to be predicted can be effectively matched, and accurate disease prediction can be performed based on the matched features.

[0060] In another embodiment of this application, a training method for the above-described semantic representation model is also provided. For example, refer to... Figure 5 The method includes the following steps: 501. Obtain historical description information of multiple sample diseases, input the historical description information into the initial model for semantic extraction, and obtain the expression features corresponding to the historical description information.

[0061] It should be noted that the sample diseases include at least some of the candidate diseases, and the historical description information of the sample diseases includes at least the historical medical records, disease name, disease overview, and disease symptoms.

[0062] In one feasible embodiment, the initial model may be a feature extraction model or encoding model for semantic extraction, such as an encoder like the BERT model.

[0063] 502. The initial model is iteratively trained based on the expressive features corresponding to different historical descriptive information. A semantic expression model is obtained when there is a correlation between the expressive features corresponding to different historical descriptive information.

[0064] In other words, the relationships between expressive features obtained based on the semantic expression model are derived from training the semantic expression model. In other words, by training the semantic expression model, relationships can be established between expressive features corresponding to different historical descriptive information, and a semantic expression model can be obtained when these relationships exist.

[0065] In one feasible implementation, for each disease sample, the initial model is iteratively trained based on the loss between the expressive features corresponding to different historical descriptive information, and a semantic expression model is obtained when the loss converges.

[0066] The loss includes a first loss between the expressive features corresponding to different descriptive information under the same dimension, and a second loss between the expressive features corresponding to descriptive information under different dimensions.

[0067] It's important to note that in the traditional training process of neural network models, because we want the output of the neural network model to be as close as possible to the desired output value, we compare the current output value of the network with the desired target value, and then update the weight vector of each layer of the neural network based on the difference between the two (of course, there is usually an initialization process before the first update, that is, pre-configuring the parameters of each layer in the neural network). For example, if the network's output value is too high, the weight vector is adjusted to lower the output value. Through continuous adjustments, the neural network model is trained until it can output the desired target value or a value very close to the desired target value. Therefore, it is necessary to predefine "how to compare the difference between the output value and the target value," which is the loss function or objective function, an important equation used to measure the difference between the output value and the target value. Taking the loss function as an example, the output value (loss) of the loss function, i.e., the loss, a higher value indicates a greater difference. Therefore, the training of the neural network model becomes a process of minimizing this loss as much as possible, that is, the process of training the loss to converge.

[0068] In this embodiment, a loss function can be set to characterize the correlation between expressive features corresponding to different historical descriptive information. For example, the loss function can be set based on the similarity between expressive features. The higher the similarity between expressive features with a correlation, the smaller the loss.

[0069] For example, the first or second loss corresponding to any sample disease is related to the following relationship: ,

[0070] in, The expressive features of the first historical descriptive information corresponding to the sample disease. The expressive characteristics of the second historical description information corresponding to the sample disease, whether the first historical description information and the second historical description information belong to the same dimension or different dimensions. Expression characteristics of historical descriptive information for other sample diseases besides the sample disease.

[0071] It should be understood that when the first historical description information and the second historical description information belong to the same dimension, the first loss can be calculated, and when the first historical description information and the second historical description information belong to different dimensions, the second loss can be calculated.

[0072] In one feasible implementation, the loss can be calculated using the following formula:

[0073] Where τ is the smoothing coefficient and n is the amount of descriptive information.

[0074] It should be understood that the numerator of this loss function calculation formula is related to the similarity between the first and second historical descriptions of the sample disease, while the denominator is related to the similarity between the expression features of any historical description of the sample disease and all other historical descriptions in the entire sample set. In other words, in When expressing the characteristics of the first historical descriptive information corresponding to the sample disease. When defining the expression features of the second historical descriptive information corresponding to a sample disease, the denominator in the formula represents the expression features of the first historical descriptive information of the sample disease. The expressive features of the second historical description information respectively Similarity between them, and expression characteristics of diseases in other samples. The similarity between them; When expressing the characteristics of the second historical descriptive information corresponding to the sample disease, When considering the expressive features of the first historical descriptive information corresponding to a sample disease, the denominator in the formula represents the expressive features of the second historical descriptive information of the sample disease. The expressive characteristics of the first historical description information respectively Similarity between them, and expression characteristics of diseases in other samples. The similarity between them. In other words, and These are two historical descriptive information entries for the sample disease, and they do not correspond to specific historical descriptive information attributes. When using them, you only need to match the expression features of the two historical descriptive information entries for the sample disease.

[0075] Therefore, the higher the similarity between the expressive features corresponding to two descriptive information of the same disease, the smaller the loss. When the loss no longer decreases with iterative training, it is determined that the loss has converged, thus obtaining the semantic expression model.

[0076] In one feasible implementation, when the loss is the first loss between the representational features corresponding to different descriptive information under the same dimension, the historical descriptive information may include historical medical records. That is, for any disease, there may be multiple historical medical records, such as multiple historical medical records of the same patient, or multiple historical medical records of different patients. In this case, the first loss can be calculated based on the association relationship between different historical medical records belonging to the same sample disease.

[0077] For example, for each sample disease, a first loss is determined based on the expression features of at least two historical medical records corresponding to the sample disease. The first loss is used to characterize the association between at least two medical records.

[0078] In other words, historical medical records can be input into the initial model in pairs to obtain the corresponding two expression features, and then the corresponding first loss can be calculated. The initial model can then be iteratively trained based on the obtained first loss, and the semantic expression model can be obtained when the first loss converges.

[0079] It should be understood that, in order to fully ensure the influence of other expressive features on the first loss, that is, to ensure that the influence of other expressive features in the denominator of the loss function is sufficient, multiple pairs of historical medical records can be obtained at the same time as a sample set, so that multiple historical medical records that are not related in the sample set can be used as other expressive features.

[0080] For example, such as Figure 6 As shown, each pair of historical medical records includes two historical medical records based on the same sample disease. For example, the sample set includes historical medical records 1 and 2 corresponding to sample disease 1, historical medical records 1 and 2 corresponding to sample disease 2, and so on, including historical medical records 1 and 2 corresponding to sample disease n. Then, multiple pairs of historical medical records from the sample set are simultaneously input into the initial model to obtain the expression features of each historical medical record. Finally, for each pair of historical medical records, the two obtained expression features are used as positive samples (i.e.,...). and ), using the expressive features of other historical medical records as negative samples (i.e. Then, the loss between the two historical medical records corresponding to each sample disease is calculated separately. For example, the expression features of historical medical record 1 for sample disease 1 are used as... The expression characteristics of historical medical records of disease 1 as... Historical medical records 1, 2, ..., 1 and 2 of sample disease n are all used as... At this point, the loss between the two historical medical records corresponding to sample disease 1 can be calculated. After obtaining the loss between the two historical medical records corresponding to each sample disease in the sample set, the average of the losses of multiple sample diseases in the sample set is used as the loss of the current sample set, and the initial model is corrected based on the loss of the current sample set. Then, the next sample set is obtained, and so on, to iteratively train the initial model until the loss converges, thus obtaining the semantic representation model.

[0081] Therefore, by training the initial model based on two different historical medical records corresponding to the same candidate disease, the semantic expression model can output expression features that can characterize the relationship between historical medical records. Expression features belonging to the same candidate disease have higher similarity and stronger relationship, while expression features of different candidate diseases have lower similarity and weaker relationship.

[0082] In one feasible implementation, when the loss is a second loss between the expressive features corresponding to the descriptive information under different dimensions, the historical descriptive information includes historical medical records and disease names.

[0083] For example, for each sample disease, a second loss is determined based on the expression features of the historical diseases corresponding to the sample disease and the expression features of the disease name. The second loss is used to characterize the association between historical medical records and disease names.

[0084] In other words, the disease name and historical medical records of the sample disease can be input into the initial model to obtain the expression features corresponding to the disease name and the expression features corresponding to the historical medical records. Then, the second loss between the expression features corresponding to the disease name and the expression features corresponding to the historical medical records can be calculated. Then, the initial model is iteratively trained based on the obtained second loss, and the semantic expression model is obtained when the loss converges.

[0085] It should be understood that, in order to fully ensure the impact of other expressive features on the loss function, multiple sets of disease names and historical medical records can be obtained simultaneously as a sample set.

[0086] For example, such as Figure 7As shown, each set of sample data includes the disease name and historical medical records of the sample disease. For example, the sample set includes the disease name and historical medical records corresponding to sample disease 1, sample disease 2, ..., sample disease n. The disease names corresponding to multiple sample diseases can be the same or different. For example, sample disease 1 and sample disease 2 can be the same or different. When sample disease 1 and sample disease 2 are the same, sample disease 1 includes the disease name and historical medical record 1, and sample disease 2 includes the disease name and historical medical record 2, thus forming different sample diseases through different historical medical records. Then, the disease names and historical medical records from the sample set are simultaneously input into the initial model to obtain the expression features corresponding to the disease names and historical medical records of each sample disease. Finally, the expression features of the disease names and historical medical records corresponding to each sample disease are used as positive samples (i.e.,...). and The expression features of disease names and historical medical records corresponding to other sample diseases are used as negative samples (i.e., Then, the loss corresponding to each sample disease is calculated separately. For example, the expression features of the historical medical records of sample disease 1 are used as... The expression features of the disease name of sample disease 1 as The historical medical records and disease names of sample disease 2... and the historical medical records and disease names of sample disease n are all used as... At this point, the loss between the historical medical records and the disease name corresponding to sample disease 1 can be calculated. After obtaining the loss between the historical medical records and the disease name corresponding to each sample disease in the sample set, the average loss of multiple sample diseases in the sample set is taken as the loss of the current sample set, and the initial model is corrected based on the loss of the current sample set. Then, the next sample set is obtained, and so on, to iteratively train the initial model. When the loss converges, the semantic representation model is obtained.

[0087] Therefore, by training the initial model based on historical medical records and disease names corresponding to the same candidate disease, the semantic expression model can output expression features that can characterize the relationship between historical medical records and disease names. The expression features of historical medical records belonging to the same candidate disease and the expression features of disease names have higher similarity and stronger relationship, while the expression features of historical medical records of different candidate diseases and the expression features of disease names have lower similarity and weaker relationship.

[0088] In one feasible implementation, when the loss is a second loss between the expressive features corresponding to the descriptive information under different dimensions, the historical descriptive information includes a disease overview and a disease name.

[0089] For example, for each sample disease, a second loss is determined based on the expression features of the historical diseases corresponding to the sample disease and the expression features of the disease name. The second loss is used to characterize the association between the disease overview and the disease name.

[0090] In other words, the disease name and disease overview of the sample disease can be input into the initial model to obtain the expression features corresponding to the disease name and the expression features corresponding to the disease overview. Then, the second loss between the expression features corresponding to the disease name and the expression features corresponding to the disease overview can be calculated. The initial model can then be iteratively trained based on the obtained second loss. When the loss converges, the semantic expression model is obtained.

[0091] It should be understood that, in order to fully ensure the impact of other expressive features on the loss function, multiple sets of disease names and disease overviews can be obtained simultaneously as a sample set.

[0092] For example, such as Figure 8 As shown, each set of sample data includes the disease name and disease overview of the sample disease. For example, the sample set includes the disease name and disease overview corresponding to sample disease 1, sample disease 2, ..., sample disease n. Then, the disease names and disease overviews from the sample set are simultaneously input into the initial model to obtain the expression features corresponding to the disease name and the disease overview for each sample disease. Finally, the expression features of the disease name and the expression features of the disease overview for each sample disease are used as positive samples (i.e.,...). and The expression features of disease names and disease overviews corresponding to other sample diseases are used as negative samples (i.e., Then, the loss corresponding to each sample disease is calculated separately. For example, the expression features of the disease overview of sample disease 1 are used as... The expression features of the disease name of sample disease 1 as The disease overview and name of sample disease 2... the disease overview and name of sample disease n are all used as... At this point, the loss between the disease overview and the disease name corresponding to sample disease 1 can be calculated. After obtaining the loss between the disease overview and the disease name for each sample disease in the sample set, the average of the losses for multiple sample diseases in the sample set is used as the loss for the current sample set, and the initial model is corrected based on the loss for the current sample set. Then, the next sample set is obtained, and so on, to iteratively train the initial model until the loss converges, thus obtaining the semantic representation model.

[0093] Therefore, by training the initial model based on the disease overview and disease name corresponding to the same candidate disease, the semantic expression model can output expression features that can characterize the relationship between the disease overview and the disease name. The expression features of the disease overview and the expression features of the disease name belonging to the same candidate disease have higher similarity and stronger relationship, while the expression features of the disease overview and the expression features of the disease name of different candidate diseases have lower similarity and weaker relationship.

[0094] In one feasible implementation, when the loss is a second loss between the expressive features corresponding to the descriptive information under different dimensions, the historical descriptive information includes disease symptoms and disease name.

[0095] For example, for each sample disease, a second loss is determined based on the expression features of the historical diseases corresponding to the sample disease and the expression features of the disease name. The second loss is used to characterize the association between disease symptoms and disease name.

[0096] In other words, the disease name and symptoms of the sample disease can be input into the initial model to obtain the expression features corresponding to the disease name and the expression features corresponding to the disease symptoms. Then, the second loss between the expression features corresponding to the disease name and the expression features corresponding to the disease symptoms can be calculated. The initial model can then be iteratively trained based on the obtained second loss. When the loss converges, the semantic expression model is obtained.

[0097] It should be understood that, in order to fully ensure the influence of other expressive features on the loss function, multiple sets of disease names and disease symptoms can be obtained simultaneously as a sample set.

[0098] For example, such as Figure 9 As shown, each set of sample data includes the disease name and symptoms of the sample disease. For example, the sample set includes the disease name and symptoms corresponding to sample disease 1, sample disease 2, ..., sample disease n. Then, the disease names and symptoms from the sample set are simultaneously input into the initial model to obtain the expression features corresponding to the disease name and the expression features corresponding to the disease symptoms for each sample disease. Finally, the expression features of the disease name and the expression features of the disease symptoms for each sample disease are used as positive samples (i.e.,...). and The expression features of disease names and disease symptoms corresponding to other sample diseases are used as negative samples (i.e., Then, the loss corresponding to each sample disease is calculated separately. For example, the expression features of disease symptoms of sample disease 1 are used as... The expression features of the disease name of sample disease 1 as The symptoms and name of disease 2 in sample disease 2... and the symptoms and name of disease n in sample disease n are all used as... At this point, the loss between the disease symptoms and the disease name corresponding to sample disease 1 can be calculated. After obtaining the loss between the disease symptoms and the disease name for each sample disease in the sample set, the average of the losses for multiple sample diseases in the sample set is used as the loss for the current sample set, and the initial model is corrected based on the loss of the current sample set. Then, the next sample set is obtained, and so on, to iteratively train the initial model until the loss converges, thus obtaining the semantic representation model.

[0099] Therefore, by training the initial model based on the disease symptoms and disease names corresponding to the same candidate disease, the semantic expression model can output expression features that can characterize the relationship between disease symptoms and disease names. The expression features of disease symptoms belonging to the same candidate disease have higher similarity and stronger relationship with the expression features of disease names. The expression features of disease symptoms belonging to different candidate diseases have lower similarity and weaker relationship with the expression features of disease names.

[0100] In one feasible implementation, the second loss may also be the loss between historical medical records and disease description, or the loss between historical medical records and disease symptoms, or the loss between disease description and disease symptoms, etc., which will not be elaborated here.

[0101] In one feasible implementation, the second loss can be multiple second losses derived from combinations of various historical descriptive information. For example, the second loss could include a second loss where the historical descriptive information is a combination of historical medical records and disease names, a second loss where the historical descriptive information is a combination of disease overview and disease names, and a second loss where the historical descriptive information is a combination of disease symptoms and disease names. Therefore, when iteratively training the initial model based on the second loss, iterative training can be performed using only one type of second loss (as described in the aforementioned feasible implementation) or iterative training can be performed using multiple types of second losses.

[0102] For example, obtain the disease name, historical medical records, disease overview, and disease symptoms corresponding to each sample disease. For instance, a training set for multiple sample diseases can be created as shown in the table below:

[0103] Then, the disease name, historical medical records, disease overview, and disease symptoms corresponding to the current sample disease are input into the initial model. The expression features of the disease name, historical medical records, disease overview, and disease symptoms are obtained respectively. Based on these expression features, second losses are obtained between the expression features of historical medical records and disease name, disease overview and disease name, and disease symptoms and disease name. These second losses are recorded. The disease name, historical medical records, disease overview, and disease symptoms corresponding to the next sample disease are obtained and input into the initial model. The second losses between the expression features of historical medical records and disease name, disease overview and disease name, and disease symptoms and disease name are obtained for the next sample disease. Each second loss for the current sample disease is compared with each second loss for the next sample disease. If any second loss converges, the semantic expression model is considered to have converged. For example, if the second loss between the expression features of the historical medical records corresponding to the current sample disease and the expression features of the disease name is equal to the second loss between the expression features of the historical medical records corresponding to the next sample disease and the expression features of the disease name, then the loss is considered to have converged, and the semantic expression model is obtained.

[0104] In one feasible implementation, the first loss and the second loss can be used alternately to iteratively train the initial model.

[0105] For example, the initial model can be trained iteratively once based on the first loss, and then trained iteratively once based on the second loss. This process can be repeated until at least one of the first and second losses converges, at which point the semantic representation model is obtained.

[0106] Taking historical descriptive information, including historical medical records and disease names, as an example, for each sample disease, at least two historical medical records are obtained, for example, three historical medical records. Two of these historical medical records are used as the first training samples for calculating the first loss, and the other historical medical record and disease name are used as the second training samples for calculating the second loss. The first training sample corresponding to the first sample disease is input into the initial model to obtain the first loss corresponding to the first sample disease. Then, the second training sample corresponding to the first sample disease is input into the initial model to obtain the second loss corresponding to the first sample disease. The initial model is then corrected based on the first loss and / or the second loss. Then, the first training sample corresponding to the second sample disease is input into the initial model to obtain the first loss corresponding to the second sample disease. Then, the second training sample corresponding to the second sample disease is input into the initial model to obtain the second loss corresponding to the second sample disease. If either the first loss or the second loss of the second sample disease is consistent with the first loss and the second loss of the first sample disease, then the initial model is considered to have converged to obtain the semantic representation model.

[0107] Optionally, to ensure timely confirmation that the initial model has converged to obtain the semantic representation model, a comparison can be made each time the loss is acquired. For example, when the first loss for the second sample disease is acquired, it is determined whether the first loss for the second sample disease is equal to the first loss for the first sample disease. If they are equal, it is determined that the loss has converged to obtain the semantic representation model. If they are not equal, the initial model is corrected based on the first loss for the second sample disease, and the second loss for the second sample disease is acquired. It is then determined whether the second loss for the second sample disease is equal to the second loss for the first sample disease. If they are equal, it is determined that the loss has converged to obtain the semantic representation model. If they are not equal, the initial model is corrected based on the second loss for the second sample disease, and the first loss for the third sample disease is acquired, and so on, until the loss converges to obtain the semantic representation model.

[0108] Optionally, to prevent loss convergence from being falsely triggered due to the similarity of the sample diseases or other incidental reasons such as sample similarity, loss convergence can also be determined based on multiple consecutive equal losses.

[0109] For example, when the first loss of the second sample disease is obtained, it is determined whether the first loss of the second sample disease is equal to the first loss of the first sample disease. If they are equal, the number of times the first loss is equal is recorded, and it is determined whether the number of times the first loss is equal reaches a first preset number. If the first preset number is reached, it is determined that the loss has converged to obtain the semantic expression model. If the first preset number is not reached, the initial model is corrected based on the first loss of the second sample disease, and the second loss of the second sample disease is obtained again. It is determined whether the second loss of the second sample disease is equal to the second loss of the first sample disease, and when the second loss is equal, it is determined whether the number of times the second loss is equal reaches a second preset number. If the second preset number is reached, it is determined that the loss has converged to obtain the semantic expression model. If the second preset number is not reached, the initial model is corrected based on the second loss of the second sample disease, and the first loss of the third sample disease is obtained again, and so on, until the loss converges to obtain the semantic expression model.

[0110] In one feasible implementation, while iteratively training the initial model using alternating first and second losses, multiple second losses can also be used simultaneously or alternately with the first loss for training.

[0111] For example, for each sample disease, two historical medical records, a disease overview, and disease symptoms can be obtained to generate a sample set for that sample disease. Then, a sample set of 16 sample diseases is obtained to construct the current sample set unit. First, the 32 historical medical records in the current sample set unit are input into the initial unit to obtain 32 expression features corresponding to the 32 historical medical records. The loss between historical medical records is calculated based on the expression features of historical medical records with the same sample disease, resulting in the loss between 16 historical medical records. The average of the losses between the 16 historical medical records is taken to obtain the first loss corresponding to the current sample set unit. The initial model is then corrected based on the first loss corresponding to the current sample set unit. Next, the disease name and one historical medical record for each sample disease in the current sample set unit are input into the initial unit to obtain 16 sets of corresponding expression features. The second loss for the 16 sets of historical medical records and disease name combinations is calculated, and the second loss for the 16 sets of historical medical records and disease name combinations is used to obtain the second loss for the historical medical records and disease name combinations corresponding to the current sample set unit. The initial model is then corrected based on the second loss for the historical medical records and disease name combinations corresponding to the current sample set unit. Then, the current sample set unit is... The disease name and disease overview of each sample disease in this unit are input into the initial unit, resulting in 16 sets of corresponding expression features. The second loss for each of the 16 combinations of disease overview and disease name is calculated, and this second loss is used to obtain the second loss for the disease overview and disease name combination corresponding to the current sample unit. The initial model is then corrected based on this second loss. Next, the disease name and disease symptoms of each sample disease in the current sample unit are input into the initial unit, resulting in 16 sets of corresponding expression features. The second loss for each of the 16 combinations of disease symptoms and disease name is calculated, and this second loss is used to obtain the second loss for the disease symptoms and disease name combination corresponding to the current sample unit. The initial model is then corrected based on this second loss. Select the next sample set unit corresponding to the next disease in the sample set, and perform the training process described above for the current sample set unit. After the initial model is trained on the next sample set unit, determine whether the first loss corresponding to the next sample set unit is equal to the first loss corresponding to the current sample set unit, or whether the second loss of the combination of historical medical records and disease names corresponding to the next sample set unit is equal to the second loss of the combination of historical medical records and disease names corresponding to the current sample set unit, or whether the second loss of the combination of disease overview and disease names corresponding to the next sample set unit is equal to the second loss of the combination of disease overview and disease names corresponding to the current sample set unit, or whether the second loss of the combination of disease symptoms and disease names corresponding to the next sample set unit is equal to the second loss of the combination of disease symptoms and disease names corresponding to the current sample set unit. If the first loss or the second loss of any combination is equal, it is determined that the loss has converged and a semantic expression model has been obtained. If the first loss and the second loss of all combinations are not equal, it is determined that the loss has not converged, and the next sample set unit is taken as the current sample set unit, and the next sample set unit is obtained.

[0112] In one feasible implementation, to ensure the stability of the final semantic representation model, the convergence of the loss can be determined when both the first loss and all second losses converge, thus obtaining the semantic representation model.

[0113] Therefore, by using multiple descriptive information of candidate diseases to perform association training between disease names and superimposing cross-iterative training between different descriptive information, the disease name can be used as a bridge to enable the expression features corresponding to other descriptive information to have an association relationship. It is not necessary to perform traversal iterative training for each combination of descriptive information. This not only ensures the expressive feature output by the semantic expression model can express the association relationship, but also effectively reduces the amount of data training, greatly saving model training time and cost.

[0114] In one feasible implementation, the first loss can also be obtained by performing different semantic extractions on the same descriptive information.

[0115] For example, any historical medical record from the historical description information is input into the two Dropout layers of the initial model for semantic extraction, resulting in two expressive features corresponding to the historical medical record.

[0116] It's important to note that the Dropout layer is a strategy layer that causes the model to ignore some nodes. This means that after inputting the same historical medical record into the initial model, two different Dropout layers can yield two sets of corresponding representational features. Since these two features originate from the same descriptive information, they belong to the same dimension. Therefore, the loss between the two features is the first loss. The initial model can then be iteratively trained based on this first loss. The Dropout value can be 0.3, meaning 30% of the neurons are randomly ignored. The values ​​corresponding to the two Dropout layers can be the same, but the randomly ignored neurons differ, resulting in two different representational features based on different ignoring outcomes.

[0117] In one feasible implementation, when training the initial model using the first loss obtained from different Dropout layers, the correlation coefficient can also be used to obtain the semantic representation model.

[0118] For example, such as Figure 10 As shown, multiple historical medical records can be compiled into a sample set and simultaneously input into the initial model. Under the action of two Dropout layers in the initial model, each historical medical record obtains two corresponding expression features. Then, based on the two expression features of each historical medical record, the first loss corresponding to each historical medical record is calculated, and the average of the first losses of multiple historical medical records is calculated. The initial model is then corrected based on the average of the first losses. At the same time, based on the two expression features of any historical medical record, the correlation coefficient between the two expression features is calculated, such as the Spearman correlation coefficient. If the calculated correlation coefficient reaches a preset threshold, such as 0.9, the semantic expression model is determined. If the calculated correlation coefficient does not reach the preset threshold, the next sample set is obtained to train the initial model until the correlation coefficient reaches the preset threshold, thus obtaining the semantic expression model.

[0119] In one feasible implementation, since the intervention of the Dropout layer will cause the ignored nodes to be unable to be better suspended, the initial model can be trained based on the Dropout layer first. When the exit condition is met, the initial model can be trained again based on the first loss and the second loss. This not only achieves the goal of training all nodes in the semantic expression model, but also further improves the semantic expression model's ability to express the relationship between various descriptive information such as disease name, disease overview and disease symptoms.

[0120] For example, historical medical records of the sample disease are obtained, and the historical medical records are made into multiple sample sets. Two Dropout layers are added to the initial model. The initial model is iteratively trained based on the sample sets corresponding to multiple historical medical records. When the correlation coefficient between two expression features of any historical medical record reaches a preset threshold, the current training phase ends.

[0121] Then, the two Dropout layers in the initial model are removed. A sample set is constructed based on two historical medical records, the disease name, the disease overview, and the disease symptoms of the sample disease. First, the two historical medical records corresponding to the sample disease in the current sample set are input into the trained initial model for further training to obtain the expression features of each historical medical record. A first loss is calculated, and then the initial model is further refined based on the first loss. The historical medical records and the disease name are then input into the refined initial model to obtain the expression features of the historical medical records and the disease name, and a second loss between the historical medical records and the disease name is calculated. The initial model is then refined based on the second loss between the historical medical records and the disease name, and the disease overview and the disease name are then input into the refined initial model to obtain the expression features of the disease overview and the disease name, and the second loss between the disease overview and the disease name is calculated. The second loss is calculated, and then the initial model is corrected based on the second loss between the disease overview and the disease name. The disease symptoms and the disease name are input into the corrected initial model to obtain the expression features of the disease symptoms and the expression features of the disease name. The second loss between the disease symptoms and the disease name is calculated, and the first loss and three second losses are recorded. The next sample set is obtained and the corresponding first loss and three second losses are obtained. It is determined whether the first loss and three second losses corresponding to the next sample set are consistent with the first loss and three second losses corresponding to the current sample set. If the first loss and three second losses are consistent, it is determined that the loss has converged and the semantic expression model is obtained. If any loss is inconsistent, it is determined that the loss has not converged. The next sample set is used as the current sample set, and the next sample set is obtained for iterative training until the loss converges and the semantic expression model is obtained.

[0122] In another embodiment of this application, a complete disease prediction method is also provided. For example, refer to... Figure 11 The method includes the following steps: 1101, retrieve historical descriptions of diseases from multiple samples.

[0123] The historical description information of the sample disease includes the sample disease's historical medical records, disease name, disease overview, and disease symptoms. There can be multiple historical medical records for each sample disease.

[0124] 1102, construct sample units based on historical description information of multiple sample diseases.

[0125] Each sample unit includes multiple sample diseases and multiple historical descriptive information for each sample disease.

[0126] For example, each sample unit may include 4 sample diseases, each sample disease includes a disease name, disease overview, disease symptoms and 2 historical medical records, forming a multidimensional sample unit.

[0127] 1103. Input the sample units into the initial model, iteratively train the initial model, and obtain the semantic expression model.

[0128] It should be noted that the sample units train the initial model in stages according to the preset training phase, based on different historical descriptive information (historical descriptive information of different dimensions), so that the loss of the initial model converges and a semantic expression model is obtained. When the loss converges, the expression features of different descriptive information of the same sample disease obtained based on the semantic expression model have similar correlations, while the expression features of different descriptive information of different sample diseases do not have similar correlations.

[0129] 1104. Obtain the descriptive information of each candidate disease from multiple candidate diseases, and extract the semantics of the descriptive information based on the semantic expression model to obtain the expression features of the candidate diseases.

[0130] Among them, the candidate disease can be disease information that can provide disease prediction, and the description information of the candidate disease can be one or more of the following: the candidate disease's historical medical history, disease name, disease overview, and disease symptoms. Preferably, it can be the name of the candidate disease.

[0131] Optionally, candidate diseases can be selected according to needs. For example, when a new disease emerges, it can be used as a candidate disease and input into the semantic expression model to obtain the expression features of the new disease. Thus, more diseases can be predicted by increasing the number of candidate diseases, which has strong scalability.

[0132] 1105. Obtain the descriptive information of the disease to be predicted. Based on the semantic expression model, perform semantic extraction on the descriptive information of the disease to be predicted to obtain the expression features of the disease to be predicted.

[0133] The descriptive information of the disease to be predicted can be obtained through the client. The obtained descriptive information of the disease to be predicted is input into the semantic expression model to obtain the expression features of the disease to be predicted.

[0134] 1106. Based on the expression features of the disease to be predicted and the similarity between the expression features of multiple candidate diseases, the disease to be predicted is determined from multiple candidate diseases.

[0135] In other words, the similarity between the expression features of the disease to be predicted and the expression features of multiple candidate diseases can be calculated. At least one candidate disease whose similarity meets the similarity threshold can be identified as the disease to be predicted. Alternatively, a preset number of candidate diseases in descending order of similarity can be identified as the disease to be predicted.

[0136] Figure 12 A structural block diagram of a disease prediction device according to an embodiment of this application is shown. Figure 12 As shown, the disease prediction device 10 includes: The first expression module 11 is used to acquire descriptive information of each candidate disease among multiple candidate diseases, and perform semantic extraction on the descriptive information based on a semantic expression model to obtain the expression features of the candidate disease; the expression features of the candidate disease are used to characterize the correlation between the descriptive information corresponding to the expression features of the candidate disease and other descriptive information. The second expression module 12 is used to obtain descriptive information of the disease to be predicted, and to perform semantic extraction on the descriptive information of the disease to be predicted based on the semantic expression model to obtain the expression features of the disease to be predicted. The determination module 13 is used to determine the disease to be predicted from the plurality of candidate diseases based on the expression features of the disease to be predicted and the similarity between the expression features of the plurality of candidate diseases.

[0137] In some embodiments, such as Figure 13 As shown, the disease prediction device 10 also includes a training unit 14. The training module 14 is used to acquire historical description information of multiple sample diseases, input the historical description information into an initial model for semantic extraction, and obtain the expression features corresponding to the historical description information; iteratively train the initial model based on the expression features corresponding to different historical description information, and obtain the semantic expression model when there is a correlation between the expression features corresponding to different historical description information.

[0138] In some embodiments, the training module 14 is further configured to: For each of the aforementioned sample diseases, the initial model is iteratively trained based on the loss between the expression features corresponding to different historical description information, and the semantic expression model is obtained when the loss converges. The loss includes a first loss between the expressive features corresponding to different descriptive information under the same dimension, and a second loss between the expressive features corresponding to descriptive information under different dimensions.

[0139] In some embodiments, the historical description information includes historical medical records, and the training module 14 is further configured to: for each of the sample diseases, determine the first loss based on the expression features of at least two historical medical records corresponding to the sample disease, wherein the first loss is used to characterize the association between the at least two medical records.

[0140] In some embodiments, the historical description information includes historical medical records and disease names. The training module 14 is further configured to: for each sample disease, determine the second loss based on the expression features of the historical medical records corresponding to the sample disease and the expression features of the disease name. The second loss is used to characterize the association between the historical medical records and the disease name.

[0141] In some embodiments, the historical description information includes a disease overview and a disease name. The training module 14 is further configured to: for each sample disease, determine a second loss based on the expression features of the disease overview and the expression features of the disease name corresponding to the sample disease. The second loss is used to characterize the association between the disease overview and the disease name.

[0142] In some embodiments, the historical description information includes disease symptoms and disease names, and the training module 14 is further configured to: for each sample disease, determine the second loss based on the expression features of the disease symptoms and the expression features of the disease name corresponding to the sample disease, wherein the second loss is used to characterize the association between the disease symptoms and the disease name.

[0143] In some embodiments, the training module 14 is further configured to: input any historical medical record from the historical description information into the two Dropout layers of the initial model for semantic extraction, thereby obtaining two expressive features corresponding to the historical medical record.

[0144] In some embodiments, the first loss or the second loss corresponding to any of the sample diseases is related to the following relationship: , ; in, The expression features of the first historical descriptive information corresponding to the sample disease. The expression features of the second historical description information corresponding to the sample disease, wherein the first historical description information and the second historical description information belong to the same dimension or different dimensions. The expressive features of historical descriptive information for other sample diseases besides the aforementioned sample diseases.

[0145] Therefore, the disease prediction device proposed in this application trains a semantic expression model, which can extract features from the descriptive information of a certain dimension of a disease. When this model is applied to disease prediction, it first determines the expression features of candidate diseases based on their descriptive information and the expression features of the disease to be predicted based on its descriptive information. Then, it predicts the disease to be predicted based on the similarity between the expression features of the candidate diseases and the expression features of the disease to be predicted. This application uses the similarity between disease features for disease prediction. While achieving disease prediction, it can also predict more diseases by adding candidate diseases, demonstrating strong scalability. For example, candidate diseases can be added, and the expression features of the newly added candidate diseases can be obtained through the semantic expression model. These newly added candidate disease expression features can also be used as matching objects for the disease to be predicted, thus enabling the prediction of more types of diseases. This effectively avoids the problems of needing to retrain the model according to the new disease prediction requirements and the poor model scalability when using classification models for disease prediction. In disease prediction scenarios, it can effectively support the expansion of disease types, thereby effectively improving the functional expansion of online medical systems.

[0146] Furthermore, when descriptive information of a disease in one dimension is input into a semantic expression model for feature extraction, the extracted expressive features are correlated with descriptive information in other dimensions of the disease. Such expressive features possess rich expressive power while simultaneously conveying semantics. This application relies on the similarity between expressive features for disease prediction, focusing not only on the semantics of the disease description itself but also on the relationships between different descriptive information. Based on these two characteristics, features more similar to the expressive features of the disease to be predicted can be effectively matched, and accurate disease prediction can be performed based on the matched features.

[0147] It should be understood that the units or modules described in the disease prediction device 10 are related to the reference... Figure 3 The steps in the described method correspond to each other. Therefore, the operations and features described above for the method also apply to the disease prediction device 10 and the units contained therein, and will not be repeated here. The disease prediction device 10 can be pre-implemented in the browser or other secure applications of an electronic device, or it can be loaded into the browser or other secure applications of an electronic device by downloading or other means. The corresponding units in the disease prediction device 10 can cooperate with the units in the electronic device to implement the solutions of the embodiments of this application.

[0148] The division of modules or units mentioned in the detailed description above is not mandatory. In fact, according to the embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0149] The following is for reference. Figure 14 , Figure 14 A schematic diagram of the structure of a computer system suitable for implementing the embodiments of this application is shown. like Figure 14 As shown, the computer system includes a central processing unit (CPU) 1301, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 1302 or programs loaded from storage section 1308 into random access memory (RAM) 1303. RAM 1303 also stores various programs and data required for the system's operating instructions. CPU 1301, ROM 1302, and RAM 1303 are interconnected via bus 1304. Input / output (I / O) interface 1305 is also connected to bus 1304.

[0150] The following components are connected to I / O interface 1305: an input section 1306 including a keyboard, mouse, etc.; an output section 1307 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 1308 including a hard disk, etc.; and a communication section 1309 including a network interface card such as a LAN card, modem, etc. The communication section 1309 performs communication processing via a network such as the Internet. A drive 1310 is also connected to I / O interface 1305 as needed. Removable media 1311, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 1310 as needed so that computer programs read from them can be installed into storage section 1308 as needed.

[0151] Specifically, according to embodiments of this application, the flowchart above refers to... Figure 2 The described process can be implemented as a computer software program. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowchart. In such an embodiment, the computer program contains program code for performing the methods shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via communication section 1309, and / or installed from removable medium 1311. When the computer program is executed by central processing unit (CPU) 1301, it performs the functions defined in the system of this application.

[0152] It should be noted that the computer-readable medium shown in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0153] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operational instructions of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two connected blocks may actually be executed substantially in parallel, or they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified functions or operational instructions, or using a combination of dedicated hardware and computer instructions.

[0154] The units or modules described in the embodiments of this application can be implemented in software or hardware. The described units or modules can also be housed in a processor; for example, a processor can be described as including a first expression module, a second expression module, and a determination module. The names of these units or modules do not necessarily limit the specific unit or module itself. For example, the first expression module can also be described as "acquiring descriptive information for each of a plurality of candidate diseases, performing semantic extraction on the descriptive information based on a semantic expression model, and obtaining the expression features of the candidate disease; the expression features of the candidate disease are used to characterize the correlation between different descriptive information."

[0155] In another aspect, this application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments, or may exist independently and not assembled into the electronic device. The aforementioned computer-readable storage medium stores one or more programs that, when used by one or more processors, execute the disease prediction method described in this application.

[0156] The above description is merely a preferred embodiment of this application and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this application is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the foregoing disclosed concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this application.

Claims

1. A disease prediction method, characterized in that, include: Obtain descriptive information for each of multiple candidate diseases, and extract semantic features of the candidate disease based on a semantic expression model. The expression features of the candidate disease are used to characterize the correlation between the descriptive information corresponding to the expression features of the candidate disease and other descriptive information. The training process of the semantic expression model includes: acquiring historical medical records of the sample disease, creating multiple sample sets from the historical medical records of the sample disease, adding two Dropout layers to the initial model, iteratively training the initial model based on the sample sets corresponding to multiple historical medical records, and ending the current training phase when the correlation coefficient between two expression features of any historical medical record reaches a preset threshold; removing the two Dropout layers in the initial model at the end of the current training phase, acquiring historical descriptive information of multiple sample diseases, and inputting the historical descriptive information into the removed Dropout layers. The initial model after the ut layer performs semantic extraction to obtain the expression features corresponding to the historical description information. For each sample disease, the initial model is iteratively trained based on the loss between the expression features corresponding to different historical description information. When the loss converges, the semantic expression model is obtained. The loss includes a first loss and a second loss. The historical description information includes historical medical records, disease name, disease overview, and disease symptoms. The first loss is used to characterize the association between at least two historical medical records. The second loss is used to characterize the association between the historical medical records and the disease name, the association between the disease overview and the disease name, and the association between the disease symptoms and the disease name. Obtain descriptive information of the disease to be predicted, and perform semantic extraction on the descriptive information of the disease to be predicted based on the semantic expression model to obtain the expression features of the disease to be predicted; The disease to be predicted is determined from the plurality of candidate diseases based on the expression features of the disease to be predicted and the similarity between the expression features of the plurality of candidate diseases.

2. The method according to claim 1, characterized in that, The method further includes: For each of the sample diseases, the first loss is determined based on the expression features of at least two historical medical records corresponding to the sample disease.

3. The method according to claim 1 or 2, characterized in that, The historical description information includes historical medical records and disease names, and the method further includes: For each of the sample diseases, the second loss is determined based on the expression features of the historical medical records corresponding to the sample disease and the expression features of the disease name.

4. The method according to claim 1 or 2, characterized in that, The method further includes: For each of the sample diseases, the second loss is determined based on the expression features of the disease overview and the expression features of the disease name corresponding to the sample disease.

5. The method according to claim 1 or 2, characterized in that, The method further includes: For each of the sample diseases, the second loss is determined based on the expression features of the disease symptoms and the expression features of the disease name corresponding to the sample disease.

6. The method according to claim 1, characterized in that, The first loss or the second loss corresponding to any of the sample diseases is related to the following relationship: 、 ; in, The expression features of the first historical descriptive information corresponding to the sample disease. The expression features of the second historical description information corresponding to the sample disease, wherein the first historical description information and the second historical description information belong to the same dimension or different dimensions. The expressive features of historical descriptive information for other sample diseases besides the aforementioned sample diseases.

7. A disease prediction device, characterized in that, include: The first expression module is used to obtain the descriptive information of each candidate disease among multiple candidate diseases, and to perform semantic extraction on the descriptive information based on the semantic expression model to obtain the expression features of the candidate disease; The expression features of the candidate disease are used to characterize the relationship between the descriptive information corresponding to the expression features of the candidate disease and other descriptive information; the semantic expression model is obtained based on the training module, which is used to obtain the historical medical records of the sample disease, make the historical medical records of the sample disease into multiple sample sets, add two Dropout layers to the initial model, and iteratively train the initial model based on the sample sets corresponding to multiple historical medical records. When the correlation coefficient between two expression features of any historical medical record reaches a preset threshold, the current training stage ends. Two Dropout layers in the initial model at the end of the current training phase are removed to obtain historical description information of multiple sample diseases. This historical description information is then input into the initial model after removing the two Dropout layers for semantic extraction to obtain the expression features corresponding to the historical description information. For each sample disease, the initial model is iteratively trained based on the loss between the expression features corresponding to different historical description information. When the loss converges, the semantic expression model is obtained. The loss includes a first loss and a second loss. The historical description information includes historical medical records, disease name, disease overview, and disease symptoms. The first loss is used to characterize the association between at least two historical medical records. The second loss is used to characterize the association between the historical medical records and the disease name, the association between the disease overview and the disease name, and the association between the disease symptoms and the disease name. The second expression module is used to obtain descriptive information of the disease to be predicted, and to perform semantic extraction on the descriptive information of the disease to be predicted based on the semantic expression model to obtain the expression features of the disease to be predicted. A determination module is used to determine the disease to be predicted from the plurality of candidate diseases based on the expression features of the disease to be predicted and the similarity between the expression features of the plurality of candidate diseases.

8. The apparatus according to claim 7, characterized in that, The training module is further configured to: for each of the sample diseases, determine the first loss based on the expression features of at least two historical medical records corresponding to the sample disease, wherein the first loss is used to characterize the association between the at least two medical records.

9. The apparatus according to claim 7 or 8, characterized in that, The training module is further configured to: for each of the sample diseases, determine the second loss based on the expression features of the historical medical records corresponding to the sample disease and the expression features of the disease name.

10. The apparatus according to claim 7 or 8, characterized in that, The training module is further configured to: for each of the sample diseases, determine the second loss based on the expression features of the disease symptoms and the expression features of the disease name corresponding to the sample disease.

11. The apparatus according to claim 7 or 8, characterized in that, The training module is further configured to: for each of the sample diseases, determine the second loss based on the expression features of the disease symptoms and the expression features of the disease name corresponding to the sample disease.

12. The apparatus according to claim 7, characterized in that, The first loss or the second loss corresponding to any of the sample diseases is related to the following relationship: 、 ; in, The expression features of the first historical descriptive information corresponding to the sample disease. The expression features of the second historical description information corresponding to the sample disease, wherein the first historical description information and the second historical description information belong to the same dimension or different dimensions. The expressive features of historical descriptive information for other sample diseases besides the aforementioned sample diseases.

13. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the disease prediction method as described in any one of claims 1-6.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the disease prediction method as described in any one of claims 1-6.

15. A computer product comprising a computer program, characterized in that, When executed by a processor, the computer program implements the disease prediction method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Disease prediction method and device, terminal and storage medium

    CN109326352A

  • Generation method of data processing model and data processing method and device

    CN114723576A

  • Electronic medical record data pre-training method based on comparative learning

    CN115019923A