Health guidance information generation method and device
Through the server-side health guidance information generation method, using large language models and feature extraction technology, it solves the problem of people having difficulty understanding health data on their own, provides accurate health guidance, helps users improve their health, and is suitable for home and telemedicine scenarios.
Patent Information
- Application Number
- CN202410801997.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-20
AI Technical Summary
Due to lack of medical knowledge, people find it difficult to understand and improve their own health status on their own, especially when faced with complex health examination data.
Through the server-side health guidance information generation method, a large language model is used to process the health description text and the feature extraction health description image to generate two types of health guidance information, conduct information fusion, and provide it to users to improve their health status.
It lowers the threshold for generating health guidance information, provides accurate health guidance, and helps users improve their health status independently. It is suitable for families and primary medical institutions, and is especially effective in telemedicine scenarios.
Smart Images

Figure CN118675730A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, in particular to the field of artificial intelligence technology, and more particularly to a method and device for generating health guidance information. Background Art
[0002] Nowadays, people's pace of life is getting faster and faster, and people are paying more and more attention to their health. However, faced with complex examination data, most people lack medical knowledge and find it difficult to understand their own health status, which makes it even more difficult for them to improve their health status in a targeted manner.
[0003] In view of this, it is necessary to provide a solution that can generate health guidance information. Summary of the invention
[0004] The present invention provides a method and device for generating health guidance information.
[0005] According to one aspect of the present disclosure, a method for generating health guidance information is provided, which is applied to a server and includes:
[0006] Obtain health description text and health description image uploaded by the user;
[0007] Inputting the health description text into a large language model to obtain first health guidance information output by the large language model;
[0008] Extracting features from the health description image to obtain a feature map representing the health status of the user, and generating second health guidance information based on the feature map;
[0009] The first health guidance information and the second health guidance information are integrated to obtain health guidance information to be pushed to the user.
[0010] According to another aspect of the present disclosure, there is provided a health guidance information generating device, applied to a server, comprising:
[0011] A data acquisition module is used to obtain health description text and health description images uploaded by users;
[0012] A model processing module, used for inputting the health description text into a large language model to obtain first health guidance information output by the large language model;
[0013] An image processing module, configured to extract features from the health description image to obtain a target feature map representing the health status of the user, and generate second health guidance information based on the target feature map;
[0014] The information fusion module is used to fuse the first health guidance information and the second health guidance information to obtain the health guidance information to be pushed to the user.
[0015] According to another aspect of the present disclosure, there is provided an electronic device, comprising:
[0016] at least one processor; and
[0017] a memory communicatively connected to the at least one processor; wherein,
[0018] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the aforementioned health guidance information generating method.
[0019] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the aforementioned health guidance information generating method.
[0020] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, which implements the aforementioned health guidance information generating method when executed by a processor.
[0021] From the above, it can be seen that when applying the solution provided by the present invention to generate health guidance information, the health description text is processed to obtain the first health guidance information, the health description image is processed to obtain the second health guidance information, and the first health guidance information and the second health guidance information are fused to obtain the final health guidance information. In this way, the health guidance information can be pushed to users to help users improve their health status.
[0022] Moreover, this solution performs two different processes on the health description text and the health description image respectively to obtain two kinds of health guidance information, that is, to obtain health guidance information from two perspectives, namely, from the perspective of the health status described by the text and the perspective of the health status described by the image. In this way, the first and second health guidance information are integrated to comprehensively obtain the health guidance information to be pushed to the user accurately. Therefore, the health guidance information generation solution provided by the present disclosure can push accurate health guidance information to the user.
[0023] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0025] Figure 1 A flowchart of a method for generating health guidance information provided by an embodiment of the present disclosure;
[0026] Figure 2 A schematic diagram of interaction between a server and a client provided in an embodiment of the present disclosure;
[0027] Figure 3 A schematic diagram of the structure of a health guidance information generating device provided by an embodiment of the present disclosure;
[0028] Figure 4 It is a block diagram of an electronic device used to implement the health guidance information generating method of the embodiment of the present disclosure. DETAILED DESCRIPTION
[0029] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0030] First, the execution subject and application scenario of the solution provided by the embodiment of the present disclosure are explained.
[0031] The executor of the solution provided by the embodiment of the present disclosure is a server, which is communicatively connected with a client. The client can obtain the health description text and health description image input by the user, and upload the obtained health description text and health description image to the server. After the server receives the health description text and health description image uploaded by the client, it can generate health guidance information based on the health description text and health description image, and send the health guidance information to the client. In this way, after the client receives the health guidance information, it can push the health guidance information to the user, so that after the user views the health guidance information, he can improve his health condition in a targeted manner.
[0032] In addition, since the execution subject of the solution provided by the embodiment of the present disclosure is a server, the server can be a cloud computing platform, and the client used by the user only plays the role of data transmission and display. Therefore, the user does not need to purchase expensive equipment and can obtain health guidance information by relying on the cloud computing platform and the client. Therefore, the solution provided by the embodiment of the present disclosure can be applied to families and primary medical institutions to help family members understand and improve their own health conditions, assist primary doctors in their work, and can also help doctors better understand the health conditions of users in telemedicine scenarios and accurately perform remote diagnosis and treatment.
[0033] The health guidance information generation method and device provided by the present disclosure are described below through specific embodiments.
[0034] See also Figure 1 , Figure 1 A flowchart of a method for generating health guidance information provided in an embodiment of the present disclosure is provided. In this embodiment, the method is applied to a server and includes the following steps S101-S104.
[0035] Step S101: Obtain the health description text and health description image uploaded by the user.
[0036] The health description text is a text describing the user's health status. For example, the health description text may include the user's physical examination results, test reports, or a description of the user's own health status.
[0037] The above health description image is an image that describes the user's health condition. For example, the above health description image may include at least one medical image of the user, such as a CT image, an X-ray image, or an image of a lesion site taken by the user.
[0038] Specifically, the server is connected to the client through communication, and the user interface of the client may include a text upload component and an image upload component, so that the user can use the text upload component to input the health description text, and use the image upload component to input the health description image. After the client obtains the health description text and health description image input by the user, it uploads the obtained health description text and health description image to the server, so that the server can obtain the health description text and health description image uploaded by the user through the client.
[0039] When the client uploads the health description text and the health description image, the health description text and the health description image can be transmitted in an encrypted upload manner to protect the user's privacy.
[0040] Step S102: input the health description text into the large language model to obtain the first health guidance information output by the large language model.
[0041] The first health guidance information may include information that the user needs to pay attention to based on his or her health condition, precautions for the user's health condition, or information for improving the user's health condition.
[0042] For example, the first health guidance information may include diseases that the user needs to pay attention to; the first health guidance information may also include precautions that the user needs to pay attention to in terms of diet, work, etc., such as eating a light diet, not sitting for long periods of time during work, etc.; the first health guidance information may also include information that recommends the user to do things frequently, such as drink more water and exercise more.
[0043] The large language model can be a model created using natural language processing (NLP) technology, such as the BioBERT model. The large language model is a pre-trained model used to output health guidance information based on the text input into the model.
[0044] The specific manner in which the large language model obtains the first health guidance information according to the health description text may be found in subsequent embodiments and will not be described in detail here.
[0045] In addition, before inputting the health description text into the large language model, the health description text may be preprocessed such as word segmentation and denoising, and then the preprocessed health description text may be input into the large language model.
[0046] Step S103: extracting features from the health description image to obtain a target feature map representing the user's health status, and generating second health guidance information based on the target feature map.
[0047] Among them, the above-mentioned second health guidance information is similar to the above-mentioned first health guidance information, and can also include information that recommends the user to pay attention to based on his or her own health status, precautions for the user's health status, or information used to improve the user's health status.
[0048] Specifically, when extracting features from health description images, the health description images can be input into a pre-trained feature extraction network, such as a convolutional neural network (CNN), to obtain a feature map output by the feature extraction network as a target feature map; or a pre-set convolution operator can be used to perform a convolution operation on the health description image to obtain a feature map after the operation as a target feature map.
[0049] After obtaining the target characteristic graph, since the target characteristic graph represents the user's health status, generating the second health guidance information based on the target characteristic graph can be understood as generating the second health guidance information that is consistent with the user's health status in a targeted manner based on the user's health status represented by the target characteristic graph.
[0050] Specifically, based on the target feature map, the second health guidance information can be generated by any of the following two implementation methods.
[0051] In the first implementation, the second health guidance information may be generated by comparing the target characteristic graph with a disease characteristic graph corresponding to at least one preset disease. For a specific description, please refer to the subsequent embodiments, which will not be described in detail here.
[0052] In the second implementation method, computer vision technology can be used to create and train an image processing model, so that the target feature map is input into the image processing model to obtain the second health guidance information output by the image processing model.
[0053] Step S104: Fusing the first health guidance information and the second health guidance information to obtain health guidance information to be pushed to the user.
[0054] Specifically, the first health guidance information and the second health guidance information may be integrated through any one of the following two implementation methods.
[0055] In the first implementation method, when the first health guidance information and the second health guidance both contain diseases that the user needs to pay attention to, information fusion can be performed according to the inclusion relationship between the diseases and the correspondence between at least one preset disease and the preset guidance information to obtain the health guidance information to be pushed to the user. The specific description can be found in the subsequent embodiments and will not be described in detail here.
[0056] In a second implementation manner, the first health guidance information and the second health guidance information may be merged, and duplicate information may be removed to obtain merged health guidance information.
[0057] From the above, it can be seen that when applying the solution provided by the present invention to generate health guidance information, the health description text is processed to obtain the first health guidance information, the health description image is processed to obtain the second health guidance information, and the first health guidance information and the second health guidance information are fused to obtain the final health guidance information. In this way, the health guidance information can be pushed to users to help users improve their health status.
[0058] Moreover, this solution performs two different processes on the health description text and the health description image respectively to obtain two kinds of health guidance information, that is, to obtain health guidance information from two perspectives, namely, from the perspective of the health status described by the text and the perspective of the health status described by the image. In this way, the first and second health guidance information are integrated to comprehensively obtain the health guidance information to be pushed to the user accurately. Therefore, the health guidance information generation solution provided by the present disclosure can push accurate health guidance information to the user.
[0059] From the user's perspective, the user only needs to input health description text and health description image in the client to obtain health guidance information pushed by the client. The user operation is simple and there is no need to require the user to understand complex examination data and master medical knowledge. Therefore, the application of the health guidance information generation scheme provided by the present invention can lower the usage threshold of generating health guidance information, especially for areas with poor medical conditions. Users in primary medical institutions or families in the area can obtain health guidance information remotely through the health guidance information generation scheme provided by the present invention, thereby improving their own health status.
[0060] The specific manner in which the large language model obtains the first health guidance information according to the health description text is described below.
[0061] In one embodiment of the present disclosure, the large language model obtains the first health guidance information according to the following steps 1 to 3:
[0062] Step 1: Identify the target medical parameters appearing in the health description text, and extract the parameter values of the target medical parameters from the health description text.
[0063] Specifically, at least one preset medical parameter may be stored in the server. After obtaining the health description text, the large language model may search for the preset medical parameter existing in the health description text as the target medical parameter. In addition, after identifying the target medical parameter, the parameter value of the target medical parameter may be extracted from the health description text.
[0064] For example, the preset medical parameter may be a disease name, symptom, examination item, such as blood pressure, blood lipids, cholesterol, etc. If the examination item of blood pressure exists in the health description text, and the blood pressure value is K, then the target medical parameter appearing in the health description text may be identified as blood pressure, and the parameter value of the target medical parameter K may be extracted from the health description text.
[0065] Step 2: Compare the extracted parameter value with the parameter value of the target medical parameter under at least one preset disease to obtain a parameter value comparison result.
[0066] Among them, the above-mentioned preset diseases are pre-set diseases.
[0067] The parameter value of the target medical parameter under the above-mentioned preset disease can be understood as the parameter value of the target medical parameter of the user when the user suffers from the preset disease.
[0068] For ease of description, the parameter value of the target medical parameter extracted from the health description text is referred to here as the first parameter value of the target medical parameter, and the parameter value of the target medical parameter under the preset disease is referred to as the second parameter value of the target medical parameter.
[0069] The parameter value comparison result includes: a comparison result of a first parameter value of the target medical parameter and a second parameter value of the target medical parameter for each preset disease of the at least one preset disease.
[0070] Specifically, the server may store a second parameter value of the target medical parameter under at least one preset disease. For each of the at least one preset disease, the first parameter value of the target medical parameter and the second parameter value of the target medical parameter under the preset disease may be compared to obtain a comparison result of the preset disease.
[0071] In addition, there may be multiple target medical parameters. During comparison, the first parameter value and the second parameter value of each of the multiple target medical parameters may be compared to obtain a comparison result of each of the multiple target medical parameters.
[0072] For example, the server may store parameter values of blood pressure and blood lipids under preset disease 1, which are K1 and U1 respectively, and parameter values of blood pressure and blood lipids under preset disease 2, which are K2 and U2 respectively.
[0073] If the identified target medical parameters are blood pressure and blood lipids, the extracted blood pressure value is K3, and the extracted blood lipid value is U3, then for the preset disease 1, the sizes of K1 and K3 can be compared to obtain a comparison result, and the sizes of U1 and U3 can be compared to obtain another comparison result, so that the comparison result of the preset disease 1 includes these two comparison results;
[0074] For the preset disease 2, the sizes of K2 and K3 can be compared to obtain a comparison result, and the sizes of U2 and U3 can be compared to obtain another comparison result. In this way, the comparison result of the preset disease 2 includes these two comparison results.
[0075] After the comparison of the preset diseases 1 and 2 is completed, a parameter value comparison result including the comparison results of the preset diseases 1 and 2 can be obtained.
[0076] Step 3: Generate the first health guidance information based on the parameter value comparison result.
[0077] Specifically, the parameter value comparison result includes a comparison result of a first parameter value of the target medical parameter and a second parameter value of the target medical parameter for each preset disease among the at least one preset disease. The comparison result of each preset disease among the at least one preset disease actually reflects whether the user needs to pay attention to the preset disease. If the comparison result of the target medical parameter in the comparison result is consistent with the symptoms of the user suffering from the preset disease, that is, the comparison result of the target medical parameter is consistent with the preset comparison result corresponding to the preset disease, it means that the user needs to pay attention to the preset disease to improve the user's health condition and avoid the user from contracting the preset disease.
[0078] Therefore, based on the parameter value comparison results, the preset disease that the user needs to pay attention to can be determined, so that the first health guidance information containing the name of the preset disease, the medical subject to which it belongs, etc. can be generated to remind the user to pay attention to the preset disease.
[0079] In addition, the server may also store coping measures information for at least one preset disease, so that after determining the preset disease that the user needs to pay attention to, the coping measures information for the determined preset disease can be obtained, thereby generating the first health guidance information containing the determined preset disease and / or the obtained coping measures information.
[0080] As can be seen from the above, when the scheme provided by the present disclosure is applied to generate health guidance information, by comparing the parameter value of the target medical parameter extracted from the health description text with the parameter value of the target medical parameter under at least one preset disease, a parameter value comparison result is obtained, and the parameter value comparison result can reflect whether the user needs to pay attention to the disease in the at least one preset disease. According to the parameter value comparison result, the first health guidance information can be accurately generated. And then the health guidance information to be pushed can be accurately generated. Therefore, the application of the health guidance information generation scheme provided by the present disclosure can improve the accuracy of the generated information.
[0081] The second parameter value of the target parameter under the above preset disease can be expressed as a parameter value range. In this case, the above parameter value comparison result can be obtained in the following manner:
[0082] Determine whether the extracted parameter value belongs to the parameter value range of the target medical parameter under at least one preset disease; and generate a parameter value comparison result based on the determination result.
[0083] Specifically, for each of the at least one preset disease mentioned above, it is possible to determine whether the first parameter value of the target medical parameter belongs to the parameter value range of the target medical parameter under the preset disease, and obtain a judgment result, which may be yes or no.
[0084] In addition, there may be multiple target medical parameters. When comparing, it is possible to determine whether the first parameter value of each of the multiple target medical parameters belongs to the parameter value range of the same target medical parameter under the preset disease, and obtain the judgment result of each of the multiple target medical parameters.
[0085] After obtaining the judgment results corresponding to each preset disease and each target medical parameter, the parameter value comparison results can be generated according to the judgment results in either of the following two implementation methods.
[0086] In a first implementation manner, for each preset disease, the number of first parameters corresponding to the preset disease in the target medical parameters may be counted to obtain a parameter value comparison result.
[0087] Among them, the first parameter corresponding to each preset disease is: a target medical parameter whose parameter value belongs to the parameter value range of the target medical parameter under the preset disease, and the parameter value is the first parameter value of the target medical parameter.
[0088] Specifically, for each preset disease, according to the judgment result, among all the target medical parameters, the first parameter whose first parameter value belongs to the parameter value range of the target medical parameter under the preset disease can be determined, and the number of the determined first parameters can be counted. After counting the number of first parameters corresponding to the at least one preset disease, the parameter value comparison result including the number of first parameters corresponding to the at least one preset disease can be accurately obtained.
[0089] Furthermore, in this case, when the first health guidance information is generated, the first health guidance information can be generated according to the number of the first parameters corresponding to the at least one preset disease.
[0090] Since the first parameter corresponding to the preset disease is: the target medical parameter whose first parameter value belongs to the parameter value range of the target medical parameter under the preset disease, the larger the number of first parameters, the more the user needs to pay attention to the preset disease. Therefore, based on the number of first parameters corresponding to at least one of the above preset diseases, the multiple preset diseases with the largest corresponding number can be determined. These preset diseases are the diseases that the user needs to pay attention to, so that the first health guidance information can be accurately generated based on the determined preset diseases, and the final health guidance information can be accurately generated.
[0091] In the second implementation method, for each preset disease, after counting the number of first parameters corresponding to the preset disease, the proportion of the first parameter in the target medical parameters can be calculated, or the proportion of the first parameter in the medical parameters under the preset disease can be calculated, thereby obtaining a parameter value comparison result including the proportion corresponding to at least one of the above preset diseases.
[0092] As can be seen from the above, when the scheme provided by the present disclosure is used to generate health guidance information, it is determined whether the parameter value of the target medical parameter extracted from the health description text belongs to the parameter value range of the target medical parameter under at least one preset disease. According to the judgment result, the parameter value comparison result can be accurately generated, and thus according to the parameter value comparison result, the first health guidance information can be accurately generated, and then the final health guidance information to be pushed can be accurately generated. Therefore, the application of the health guidance information generation scheme provided by the present disclosure can improve the accuracy of the generated information.
[0093] In one embodiment of the present disclosure, the first health guidance information includes: a first disease that the user needs to pay attention to, and first concern information representing the degree to which the user needs to pay attention to the first disease.
[0094] The first disease and the first attention information are determined according to the number of first parameters corresponding to at least one preset disease.
[0095] Specifically, after counting the number of first parameters corresponding to at least one preset disease, one or more preset diseases with the largest corresponding number can be determined from the at least one preset disease as the first disease.
[0096] Moreover, if the number of first parameters corresponding to preset diseases is greater, it means that the user needs to pay more attention to the preset disease, that is, the degree of attention is higher. Therefore, after determining the first disease, the first attention information of the first disease can be determined according to the number of first parameters corresponding to the first disease in any one of the following two implementation methods.
[0097] In the first implementation method, the correspondence between the first attention information representing different levels of attention and the preset quantity range of the first parameter can be pre-set. In this way, after the first disease is determined, the preset quantity range of the quantity of the first parameter corresponding to the first disease can be determined, and the first attention information of the first disease can be determined based on the correspondence.
[0098] For example, for the first parameter, the number range of 0-3 can be pre-set to correspond to the first attention information 1 representing a weaker level of attention, the number range of 4-6 can correspond to the first attention information 2 representing a medium level of attention, and the number range greater than 6 can correspond to the first attention information 3 representing a stronger level of attention. If the number of the first parameter corresponding to the first disease is 8, and 8 is greater than 6, then the first attention information of the first disease can be determined to be the first attention information 3.
[0099] In the second implementation method, the preset quantity range of the above-mentioned first parameter can be replaced by a preset proportion range of the first parameter, and the proportion of the first parameter can be the proportion of the first parameter in all target medical parameters, or the proportion of the first parameter in all medical parameters under the first disease.
[0100] In this solution, the first health guidance information includes the first disease and the first concern information indicating the degree of concern that the user needs to pay to the first disease. After the health guidance information to be pushed is generated based on the first health guidance information, the user can view the health guidance information to know the disease that he needs to pay attention to and the degree of concern that he needs to pay attention to the disease, thereby helping the user to improve his health status in a targeted manner. Therefore, applying the health guidance information generation solution provided by the present disclosure can help users improve their health status, thereby improving user stickiness.
[0101] The server may store parameter values of medical parameters for a large number of preset diseases. If the first parameter value of the target medical parameter is compared with the second parameter value of the target medical parameter for at least one preset disease, the workload is large.
[0102] In response to this situation, in one embodiment of the present disclosure, when comparing the parameter values extracted from the health description text with the parameter values of the target medical parameters under at least one preset disease, the target medical subject related to the target medical parameter can be determined; and the extracted parameter values are compared with the parameter values of the target medical parameters under at least one preset disease in the target medical subject to obtain the parameter value comparison result.
[0103] There are many medical subjects, such as otolaryngology, stomatology, internal medicine, surgery, etc. Medical parameters related to a medical subject can be considered as medical parameters used in the process of diagnosing a disease under the medical subject.
[0104] Specifically, the correlation between medical subjects and medical parameters can be set in advance. After identifying the target medical parameters appearing in the health description text, the target medical subjects related to the target medical parameters can be determined based on the correlation. When comparing parameter values, only the first parameter value of the target medical parameter can be compared with the second parameter value of the target medical parameter under at least one preset disease in the determined target medical subject, without the need to compare all preset diseases. This can reduce the task workload of parameter value comparison, improve the efficiency of parameter value comparison, and thereby improve the efficiency of generating health guidance information.
[0105] The first implementation method of generating the second health guidance information mentioned in the above step S103 is described below.
[0106] In one embodiment of the present disclosure, when generating the second health guidance information, the target feature map and the disease feature map corresponding to at least one preset disease can be compared to obtain a feature map comparison result; and the second health guidance information is generated based on the feature map comparison result.
[0107] Among them, the disease characteristic graph corresponding to the above-mentioned preset disease can be considered as a characteristic graph characterizing the user's health status when the user suffers from the preset disease, and can also be considered as a characteristic graph characterizing the symptoms of the preset disease.
[0108] Specifically, the target characteristic graph and the disease characteristic graph corresponding to at least one preset disease may be compared by any one of the following three implementation methods.
[0109] In a first implementation manner, the similarity between the target feature map and the disease feature map corresponding to at least one preset disease is calculated to obtain a feature map comparison result including the similarity corresponding to the at least one preset disease.
[0110] For each of the at least one preset disease mentioned above, the similarity between the target feature map and the disease feature map corresponding to the preset disease can be calculated. After calculating the similarity corresponding to the at least one preset disease mentioned above, a feature map comparison result including the similarity corresponding to the at least one preset disease mentioned above can be obtained.
[0111] In this case, when the second health guidance information is generated according to the feature map comparison result, the second health guidance information can be generated according to the similarity corresponding to the at least one preset disease.
[0112] The higher the similarity corresponding to the preset disease, the more similar the target feature map is to the disease feature map of the preset disease, and thus the more the user needs to pay attention to the preset disease. Therefore, based on the similarity corresponding to at least one preset disease, one or more preset diseases with the highest corresponding similarity can be determined, and then the second health guidance information can be generated based on the determined preset diseases.
[0113] For example, the second health guidance information including the determined preset disease is generated, or the second health guidance information including the coping measure information for the determined preset disease is generated.
[0114] In this method, the higher the similarity corresponding to the preset disease, the more similar the target feature map is to the disease feature map of the preset disease, and thus the user needs to pay more attention to the preset disease. Therefore, according to the similarity corresponding to the at least one preset disease, the second health guidance information can be accurately generated, and the health guidance information to be pushed can be accurately generated according to the second health guidance information. Therefore, applying the health guidance information generation scheme provided by the present disclosure can improve the accuracy of the generated information.
[0115] In the second implementation manner, a histogram comparison method can be used to compare the target feature map with a disease feature map corresponding to at least one preset disease, thereby obtaining a feature map comparison result.
[0116] In a third implementation, image comparison algorithms, models and other technologies may be used to compare a target feature map with a disease feature map corresponding to at least one preset disease, thereby obtaining a feature map comparison result.
[0117] After obtaining the feature map comparison results, the feature map comparison results can reflect the degree of closeness between the target feature map and the disease feature map corresponding to the at least one preset disease. According to the feature map comparison results, one or more diseases that are closest to and most similar to the corresponding disease feature map and the target feature map can be determined among the at least one preset disease, so that the second health guidance information can be generated based on the determined disease.
[0118] As can be seen from the above, when the scheme provided by the present disclosure is used to generate health guidance information, the target feature map and the disease feature map corresponding to the above-mentioned at least one preset disease are compared to obtain the feature map comparison result. According to the feature map comparison result, the second health guidance information can be accurately generated, and thus based on the second health guidance information, the final health guidance information to be pushed can be accurately generated. Therefore, the application of the health guidance information generation scheme provided by the present disclosure can improve the accuracy of the generated information.
[0119] In one embodiment of the present disclosure, the second health guidance information prediction result includes: a second disease that the user needs to pay attention to, and second concern information representing the degree to which the user needs to pay attention to the second disease.
[0120] The second disease and the second attention information are determined according to the similarity corresponding to the at least one preset disease.
[0121] Specifically, the similarity corresponding to the preset disease represents the similarity between the target feature graph and the disease feature graph of the preset disease. The higher the similarity, the more similar the target feature graph is to the disease feature graph of the preset disease, and the more the user needs to pay attention to the preset disease. Therefore, one or more preset diseases with the greatest corresponding similarity can be determined from the at least one preset disease as the second disease.
[0122] Furthermore, the second attention information of the second disease may be determined according to the similarity corresponding to the second disease.
[0123] For example, a correspondence between a similarity range and second attention information representing different attention levels is preset, so that after the second disease is determined, the second attention information corresponding to the similarity corresponding to the second disease is determined according to the correspondence.
[0124] In this solution, the second health guidance information includes the second disease and the second concern information that indicates the degree of concern that the user needs to pay to the second disease. After the health guidance information to be pushed is generated based on the second health guidance information, the user can view the health guidance information to know the disease that he needs to pay attention to and the degree of concern that he needs to pay attention to the disease, thereby helping the user to improve his health status in a targeted manner. Therefore, applying the health guidance information generation solution provided by the present disclosure can help users improve their health status, thereby improving user stickiness.
[0125] The server may store disease feature maps corresponding to a large number of preset diseases. If the target feature map is compared with the disease feature maps corresponding to all preset diseases, the workload will be large.
[0126] In response to this situation, in one embodiment of the present disclosure, when comparing a target characteristic graph with a disease characteristic graph corresponding to at least one preset disease, the target characteristic graph and the disease characteristic graph corresponding to the at least one preset disease in the target medical subject can be compared to obtain a characteristic graph comparison result.
[0127] Among them, the target medical subject is determined based on the target medical parameters.
[0128] Specifically, after identifying the target medical parameters appearing in the health description text, the target medical subjects related to the target medical parameters can be determined, so that the preset diseases in the target medical subjects can be determined. When comparing, only the target characteristic graph and the disease characteristic graph corresponding to at least one of the preset diseases in the target medical subjects can be compared, without the need to compare all preset diseases. This can reduce the task workload of parameter value comparison, improve the efficiency of parameter value comparison, and thereby improve the efficiency of generating health guidance information.
[0129] The following describes a first implementation method of fusing the first health guidance information and the second health guidance information mentioned in the above step S104.
[0130] In one embodiment of the present disclosure, when the first health guidance information contains a first disease that the user needs to pay attention to and the second health guidance information contains a second disease that the user needs to pay attention to, the first disease and the second disease can be merged according to the inclusion relationship between the diseases to obtain the target disease that the user needs to pay attention to; based on the correspondence between at least one preset disease and the preset guidance information, the guidance information corresponding to the target disease is determined as the health guidance information to be pushed to the user.
[0131] Among them, the above-mentioned preset guidance information can be coping measures, diagnostic suggestions, etc. for the corresponding preset diseases.
[0132] There may be an inclusion relationship between different diseases. For example, internal medicine diseases include liver diseases, lung diseases, heart diseases, etc., and liver diseases include cirrhosis, fatty liver, etc. The inclusion relationship between diseases can be pre-stored in the server. In this way, when the first health guidance information includes the first disease and the second health guidance information includes the second disease, according to the inclusion relationship, the disease that does not exist in the first disease and the second disease is determined as the target disease.
[0133] The specific implementation method for determining the target disease can be found in the subsequent embodiments and will not be described in detail here.
[0134] The target disease can be regarded as a disease that the user really needs to pay attention to from the perspectives of both text and images. After the target disease is determined, the guidance information corresponding to the target disease can be determined according to the correspondence between at least one preset disease and preset guidance information as the health guidance information to be pushed to the user.
[0135] From the above, it can be seen that when the scheme provided by the present invention is applied to generate health guidance information, the first disease and the second disease are merged according to the inclusion relationship between the diseases, so as to obtain the target disease that the user really needs to pay attention to from both text and image perspectives, thereby determining the guidance information corresponding to the target disease according to the correspondence between the preset disease and the preset guidance information, and using the determined guidance information as the health guidance information to be pushed, which can improve the accuracy of the health guidance information to be pushed.
[0136] Two implementation methods for determining the target disease are described below.
[0137] In the first implementation, each first candidate disease may be merged and processed according to the following steps four and five to obtain a target disease that the user needs to pay attention to.
[0138] The first candidate disease is the first disease or the second disease, and the second candidate disease is: another disease between the first disease and the second disease except the first candidate disease.
[0139] If the first candidate disease is the first disease, the second candidate disease is the second disease; if the first candidate disease is the second disease, the second candidate disease is the first disease.
[0140] Step 4: According to the inclusion relationship between diseases, if there is a second candidate disease belonging to the first candidate disease, the second candidate disease belonging to the first candidate disease is determined as the target disease.
[0141] If there is a second candidate disease belonging to the first candidate disease, it means that the second candidate disease belonging to the first candidate disease is a more specific and underlying disease and is more worthy of user attention. Therefore, the second candidate disease belonging to the first candidate disease can be determined as the target disease.
[0142] Step 5: If there is no second candidate disease belonging to the first candidate disease, the first candidate disease is determined to be the target disease.
[0143] If there is no second candidate disease belonging to the first candidate disease, it means that the first candidate disease is already the most specific and lower-level disease between the first disease and the second disease. Therefore, the first candidate disease can be determined as the target disease.
[0144] From the above, it can be seen that when the scheme provided by the present invention is applied to generate health guidance information, the most specific and lowest-level target disease among the first disease and the second disease can be accurately determined based on the inclusion relationship between the diseases, thereby generating health guidance information based on the target disease, which can improve the accuracy of the generated health guidance information.
[0145] In the second implementation, according to the above-mentioned inclusion relationship, an integrated learning algorithm, such as a random forest or XGBoost algorithm, can be used to merge the first disease and the second disease to obtain the target disease.
[0146] When the first health guidance information also includes first concern information indicating the degree to which the user needs to pay attention to the first disease, and the second health guidance information also includes first concern information indicating the degree to which the user needs to pay attention to the second disease, the health guidance information to be pushed can be obtained in the following way.
[0147] In one embodiment of the present disclosure, after obtaining the target disease, the guidance information corresponding to the target disease can be determined based on the correspondence between at least one preset disease and preset guidance information; and health guidance information including the target disease, guidance information corresponding to the target disease, and attention information corresponding to the target disease can be generated.
[0148] The implementation method of determining the guidance information corresponding to the target disease can be found in the above-mentioned embodiment, which will not be described in detail here.
[0149] After obtaining the target disease, if the target disease belongs to the first disease, the first attention information corresponding to the target disease can be obtained according to the first health guidance information; if the target disease belongs to the second disease, the second attention information corresponding to the target disease can be obtained according to the second health guidance information.
[0150] After determining the guidance information and attention information corresponding to the target disease, health guidance information including the target disease, guidance information corresponding to the target disease, and attention information corresponding to the target disease can be generated. The generated health guidance information contains rich content, so that the health guidance information is pushed to the user, and the user can check a variety of information, which helps the user improve his or her health status. Therefore, applying the health guidance information generation solution provided by the present disclosure can help users improve their health status, thereby improving user stickiness.
[0151] In one embodiment of the present disclosure, after health guidance information is pushed to the user, health guidance information uploaded by the user and provided by professional health institutions, hospitals, etc. can be obtained. For the sake of ease of description, the health guidance information generated by this scheme is referred to as recommended guidance information, and the health guidance information provided by professional health institutions, hospitals, etc. is referred to as professional guidance information.
[0152] After obtaining the above professional guidance information, the difference between the recommended guidance information and the professional guidance information can be calculated, and the model parameters of various models used in this solution can be adjusted and optimized according to the difference.
[0153] For example, if both the recommended guidance information and the professional guidance information contain diseases that the user needs to pay attention to, the difference between the diseases contained in the recommended guidance information and the professional guidance information can be calculated, and the model parameters of various models used in this solution can be adjusted and optimized based on the difference.
[0154] For another example, if both the recommended guidance information and the professional guidance information contain concern information that represents the degree of concern that the user needs to pay to the disease, the difference between the degree of concern represented by the concern information contained in the recommended guidance information and the professional guidance information can be calculated, and the model parameters of various models used in this solution can be adjusted and optimized based on the difference.
[0155] In one embodiment of the present disclosure, see Figure 2 , provides a schematic diagram of the interaction between the server and the client, from Figure 2 As can be seen from the figure, the client includes a data upload module; the server includes a natural language processing module, a vision module, an information fusion module and a user feedback module.
[0156] Among them, the data upload module is used to upload the information input by the user to the server;
[0157] A natural language processing module, used to execute the aforementioned step S102 to obtain the first health guidance information;
[0158] A visual module, used to execute the aforementioned step S103 to obtain the second health guidance information;
[0159] An information fusion module, used to execute the aforementioned step S104 to obtain health guidance information to be pushed to the user;
[0160] The user feedback module is used to calculate the difference between the health guidance information output by the information fusion module and the health guidance information provided by professional health institutions, hospitals, etc. uploaded by users, and adjust and optimize the model parameters of the models used in the natural language processing module, the visual module and the information fusion module according to the difference.
[0161] Below Figure 2 The interactive process shown is explained as follows:
[0162] After the user enters the health description text and health description image in the client, the data upload module uploads the health description text and health description image to the server. After the server receives the health description text and health description image, the natural language processing module, the visual module and the information fusion module cooperate with each other. The information fusion module obtains the health guidance information to be pushed to the user and feeds back the obtained health guidance information to the client. After receiving the health guidance information, the client displays the health guidance information for the user to review.
[0163] In addition, if the user inputs professional health guidance information provided by professional health institutions, hospitals, etc. in the client, the data upload module in the client uploads the professional health guidance information to the server. After the server receives the health guidance information, the user feedback module adjusts and optimizes the model parameters of the models used in the natural language processing module, the visual module and the information fusion module based on the health guidance information output by the information fusion module and the health guidance information provided by professional health institutions, hospitals, etc. uploaded by the user.
[0164] Corresponding to the health guidance information generating method provided by the embodiment of the present disclosure, the embodiment of the present disclosure also provides a health guidance information generating device.
[0165] In one embodiment of the present disclosure, see Figure 3 , provides a structural schematic diagram of a health guidance information generating device, the device is applied to a server, and includes:
[0166] The data acquisition module 301 is used to obtain the health description text and health description image uploaded by the user;
[0167] A model processing module 302 is used to input the health description text into a large language model to obtain first health guidance information output by the large language model;
[0168] An image processing module 303 is used to extract features from the health description image to obtain a target feature map representing the health status of the user, and generate second health guidance information based on the target feature map;
[0169] The information fusion module 304 is used to fuse the first health guidance information and the second health guidance information to obtain the health guidance information to be pushed to the user.
[0170] From the above, it can be seen that when applying the solution provided by the present invention to generate health guidance information, the health description text is processed to obtain the first health guidance information, the health description image is processed to obtain the second health guidance information, and the first health guidance information and the second health guidance information are fused to obtain the final health guidance information. In this way, the health guidance information can be pushed to users to help users improve their health status.
[0171] Moreover, this solution performs two different processes on the health description text and the health description image respectively to obtain two kinds of health guidance information, that is, to obtain health guidance information from two perspectives, namely, from the perspective of the health status described by the text and the perspective of the health status described by the image. In this way, the first and second health guidance information are integrated to comprehensively obtain the health guidance information to be pushed to the user accurately. Therefore, the health guidance information generation solution provided by the present disclosure can push accurate health guidance information to the user.
[0172] From the user's perspective, the user only needs to input health description text and health description image in the client to obtain health guidance information pushed by the client. The user operation is simple and there is no need to require the user to understand complex examination data and master medical knowledge. Therefore, the application of the health guidance information generation scheme provided by the present invention can lower the usage threshold of generating health guidance information, especially for areas with poor medical conditions. Users in primary medical institutions or families in the area can obtain health guidance information remotely through the health guidance information generation scheme provided by the present invention, thereby improving their own health status.
[0173] In one embodiment of the present disclosure, the large language model obtains the first health guidance information in the following manner:
[0174] Identifying a target medical parameter appearing in the health description text, and extracting a parameter value of the target medical parameter from the health description text;
[0175] Comparing the extracted parameter value with the stored parameter value of the target medical parameter under at least one preset disease to obtain a parameter value comparison result;
[0176] The first health guidance information is generated according to the parameter value comparison result.
[0177] As can be seen from the above, when the scheme provided by the present disclosure is applied to generate health guidance information, by comparing the parameter value of the target medical parameter extracted from the health description text with the parameter value of the target medical parameter under at least one preset disease, a parameter value comparison result is obtained, and the parameter value comparison result can reflect whether the user needs to pay attention to the disease in the at least one preset disease. According to the parameter value comparison result, the first health guidance information can be accurately generated. And then the health guidance information to be pushed can be accurately generated. Therefore, the application of the health guidance information generation scheme provided by the present disclosure can improve the accuracy of the generated information.
[0178] In one embodiment of the present disclosure, the comparing the extracted parameter value with the stored parameter value of the target medical parameter under at least one preset disease to obtain the parameter value comparison result includes:
[0179] Determining whether the extracted parameter value belongs to the parameter value range of the target medical parameter under the at least one preset disease;
[0180] Based on the judgment result, a parameter value comparison result is generated.
[0181] As can be seen from the above, when the scheme provided by the present disclosure is used to generate health guidance information, it is determined whether the parameter value of the target medical parameter extracted from the health description text belongs to the parameter value range of the target medical parameter under at least one preset disease. According to the judgment result, the parameter value comparison result can be accurately generated, and thus according to the parameter value comparison result, the first health guidance information can be accurately generated, and then the final health guidance information to be pushed can be accurately generated. Therefore, the application of the health guidance information generation scheme provided by the present disclosure can improve the accuracy of the generated information.
[0182] In one embodiment of the present disclosure, generating a parameter value comparison result according to the judgment result includes:
[0183] For each preset disease in the at least one preset disease, the number of first parameters corresponding to the preset disease in the target medical parameters is counted to obtain a parameter value comparison result, wherein the first parameter corresponding to the preset disease is: a target medical parameter whose parameter value belongs to the parameter value range of the target medical parameter under the preset disease, and the parameter value comparison result includes the number of first parameters corresponding to the at least one preset disease;
[0184] The generating first health guidance information according to the parameter value comparison result includes:
[0185] First health guidance information is generated according to the number of first parameters corresponding to the at least one preset disease.
[0186] In this scheme, based on the number of first parameters corresponding to at least one of the above-mentioned preset diseases, a plurality of preset diseases with the largest corresponding number can be determined. These preset diseases are the diseases that the user needs to pay attention to, so that the first health guidance information can be accurately generated based on the determined preset diseases, and the final health guidance information can be accurately generated.
[0187] In one embodiment of the present disclosure, the first health guidance information includes: a first disease that the user needs to pay attention to, and first concern information characterizing the degree to which the user needs to pay attention to the first disease, wherein the first disease and the first concern information are determined based on the number of first parameters corresponding to at least one of the above-mentioned preset diseases.
[0188] In this solution, the first health guidance information includes the first disease and the first concern information indicating the degree of concern that the user needs to pay to the first disease. After the health guidance information to be pushed is generated based on the first health guidance information, the user can view the health guidance information to know the disease that he needs to pay attention to and the degree of concern that he needs to pay attention to the disease, thereby helping the user to improve his health status in a targeted manner. Therefore, applying the health guidance information generation solution provided by the present disclosure can help users improve their health status, thereby improving user stickiness.
[0189] In one embodiment of the present disclosure, the comparing the extracted parameter value with the stored parameter value of the target medical parameter under at least one preset disease to obtain the parameter value comparison result includes:
[0190] determining a target medical subject associated with the target medical parameter;
[0191] The extracted parameter value is compared with the parameter value of the target medical parameter under at least one preset disease in the target medical subject to obtain a parameter value comparison result.
[0192] In this scheme, when comparing parameter values, only the first parameter value of the target medical parameter can be compared with the second parameter value of the target medical parameter under at least one preset disease in the determined target medical subject, without the need to compare all preset diseases. This can reduce the task workload of parameter value comparison, improve the efficiency of parameter value comparison, and thus improve the efficiency of generating health guidance information.
[0193] In one embodiment of the present disclosure, the image processing module 303 includes:
[0194] A feature extraction submodule is used to extract features from the health description image to obtain a target feature map representing the health status of the user;
[0195] A feature comparison submodule, used to compare the target feature map with a disease feature map corresponding to at least one preset disease to obtain a feature map comparison result;
[0196] The information generation submodule is used to generate second health guidance information according to the feature map comparison result.
[0197] As can be seen from the above, when the scheme provided by the present disclosure is used to generate health guidance information, the target feature map and the disease feature map corresponding to at least one preset disease are compared to obtain a feature map comparison result. According to the feature map comparison result, the second health guidance information can be accurately generated, and thus based on the second health guidance information, the final health guidance information to be pushed can be accurately generated. Therefore, the application of the health guidance information generation scheme provided by the present disclosure can improve the accuracy of the generated information.
[0198] In one embodiment of the present disclosure, the feature comparison submodule is specifically used to:
[0199] Calculating the similarity between the target feature graph and the disease feature graph corresponding to the at least one preset disease, and obtaining a feature graph comparison result including the similarity corresponding to the at least one preset disease;
[0200] The information generation submodule is specifically used for:
[0201] The second health guidance information is generated according to the similarity corresponding to the at least one preset disease.
[0202] In this solution, the higher the similarity corresponding to the preset disease, the more similar the target feature map is to the disease feature map of the preset disease, and thus the user needs to pay more attention to the preset disease. Therefore, according to the similarity corresponding to the at least one preset disease, the second health guidance information can be accurately generated, and the health guidance information to be pushed can be accurately generated according to the second health guidance information. Therefore, applying the health guidance information generation solution provided by the present disclosure can improve the accuracy of the generated information.
[0203] In one embodiment of the present disclosure, the second health guidance information prediction result includes: a second disease that the user needs to pay attention to, and second concern information characterizing the degree to which the user needs to pay attention to the second disease, wherein the second disease and the second concern information are determined based on the similarity corresponding to the at least one preset disease.
[0204] In this solution, the second health guidance information includes the second disease and the second concern information that indicates the degree of concern that the user needs to pay to the second disease. After the health guidance information to be pushed is generated based on the second health guidance information, the user can view the health guidance information to know the disease that he needs to pay attention to and the degree of concern that he needs to pay attention to the disease, thereby helping the user to improve his health status in a targeted manner. Therefore, applying the health guidance information generation solution provided by the present disclosure can help users improve their health status, thereby improving user stickiness.
[0205] In one embodiment of the present disclosure, the feature comparison submodule is specifically used to:
[0206] The target characteristic graph is compared with a disease characteristic graph corresponding to at least one preset disease in a target medical subject to obtain a characteristic graph comparison result, wherein the target medical subject is determined according to the target medical parameter.
[0207] In this scheme, when comparing, only the target characteristic graph and the disease characteristic graph corresponding to at least one preset disease in the target medical subject can be compared, without the need to compare all preset diseases. This can reduce the task workload of parameter value comparison, improve the efficiency of parameter value comparison, and thus improve the efficiency of generating health guidance information.
[0208] In one embodiment of the present disclosure, the first health guidance information includes a first disease that the user needs to pay attention to, and the second health guidance information includes a second disease that the user needs to pay attention to;
[0209] The information fusion module 304 includes:
[0210] A disease merging submodule, used to merge the first disease and the second disease according to the inclusion relationship between the diseases, to obtain a target disease that the user needs to pay attention to;
[0211] The information determination submodule is used to determine the guidance information corresponding to the target disease according to the correspondence between the at least one preset disease and the preset guidance information, as the health guidance information to be pushed to the user.
[0212] From the above, it can be seen that when the scheme provided by the present invention is applied to generate health guidance information, the first disease and the second disease are merged according to the inclusion relationship between the diseases, so as to obtain the target disease that the user really needs to pay attention to from both text and image perspectives, thereby determining the guidance information corresponding to the target disease according to the correspondence between the preset disease and the preset guidance information, and using the determined guidance information as the health guidance information to be pushed, which can improve the accuracy of the health guidance information to be pushed.
[0213] In one embodiment of the present disclosure, the disease merging submodule is specifically used for:
[0214] Each first candidate disease is combined and processed in the following manner to obtain the target disease that the user needs to pay attention to, wherein the first candidate disease is the first disease or the second disease:
[0215] According to the inclusion relationship between diseases, if there is a second candidate disease belonging to the first candidate disease, the second candidate disease belonging to the first candidate disease is determined as the target disease, wherein the second candidate disease is: another disease between the first disease and the second disease except the first candidate disease;
[0216] If there is no second candidate disease belonging to the first candidate disease, the first candidate disease is determined to be a target disease.
[0217] From the above, it can be seen that when the scheme provided by the present invention is applied to generate health guidance information, the most specific and lowest-level target disease among the first disease and the second disease can be accurately determined based on the inclusion relationship between the diseases, thereby generating health guidance information based on the target disease, which can improve the accuracy of the generated health guidance information.
[0218] In one embodiment of the present disclosure, the first health guidance information further includes first attention information indicating the degree to which the user needs to pay attention to the first disease, and the second health guidance information further includes first attention information indicating the degree to which the user needs to pay attention to the second disease;
[0219] The information determination submodule is specifically used for:
[0220] Determining guidance information corresponding to the target disease according to the correspondence between the at least one preset disease and the preset guidance information;
[0221] Generate health guidance information including the target disease, guidance information corresponding to the target disease, and attention information corresponding to the target disease.
[0222] In this solution, after determining the guidance information and attention information corresponding to the target disease, health guidance information including the target disease, the guidance information corresponding to the target disease, and the attention information corresponding to the target disease can be generated. The generated health guidance information contains rich content, so that the health guidance information is pushed to the user, and the user can check a variety of information, which helps the user improve his or her health status. Therefore, the application of the health guidance information generation solution provided by the present disclosure can help users improve their health status, thereby improving user stickiness.
[0223] In the technical solution of the present invention, the collection, storage, use, processing, transmission, provision and disclosure of information describing the user's health status are in compliance with the relevant laws and regulations and do not violate public order and good morals.
[0224] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0225] In one embodiment of the present disclosure, an electronic device is provided, including:
[0226] at least one processor; and
[0227] a memory communicatively connected to the at least one processor; wherein,
[0228] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the health guidance information generating method provided by any of the aforementioned method embodiments.
[0229] Figure 4 A schematic block diagram of an example electronic device 400 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0230] like Figure 4 As shown, the device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 402 or a computer program loaded from a storage unit 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the device 400 can also be stored. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0231] A number of components in the device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0232] The computing unit 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 401 performs the various methods and processes described above, such as the health guidance information generation method. For example, in some embodiments, the health guidance information generation method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 400 via ROM 402 and / or communication unit 409. When the computer program is loaded into RAM 403 and executed by the computing unit 401, one or more steps of the health guidance information generation method described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform the health guidance information generation method in any other appropriate manner (e.g., by means of firmware).
[0233] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0234] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0235] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0236] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0237] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0238] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0239] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0240] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for generating health guidance information, applied to a server, comprising: Obtain health description text and health description image uploaded by the user; Inputting the health description text into a large language model to obtain first health guidance information output by the large language model; Extracting features from the health description image to obtain a target feature map representing the health status of the user, and generating second health guidance information based on the target feature map; The first health guidance information and the second health guidance information are integrated to obtain health guidance information to be pushed to the user.
2. The method according to claim 1, wherein: The large language model obtains the first health guidance information in the following manner: Identifying a target medical parameter appearing in the health description text, and extracting a parameter value of the target medical parameter from the health description text; Comparing the extracted parameter value with a parameter value of the target medical parameter under at least one preset disease to obtain a parameter value comparison result; The first health guidance information is generated according to the parameter value comparison result.
3. The method according to claim 2, wherein: The comparing the extracted parameter value with the parameter value of the target medical parameter under at least one preset disease to obtain a parameter value comparison result includes: Determining whether the extracted parameter value belongs to the parameter value range of the target medical parameter under the at least one preset disease; Based on the judgment result, a parameter value comparison result is generated.
4. The method according to claim 3, wherein: The generating of the parameter value comparison result according to the judgment result includes: For each preset disease in the at least one preset disease, the number of first parameters corresponding to the preset disease in the target medical parameters is counted to obtain a parameter value comparison result, wherein the first parameter corresponding to the preset disease is: a target medical parameter whose parameter value belongs to the parameter value range of the target medical parameter under the preset disease, and the parameter value comparison result includes the number of first parameters corresponding to the at least one preset disease; The generating first health guidance information according to the parameter value comparison result includes: First health guidance information is generated according to the number of first parameters corresponding to the at least one preset disease.
5. The method according to claim 4, wherein: The first health guidance information includes: a first disease that the user needs to pay attention to, and first concern information representing the degree to which the user needs to pay attention to the first disease, wherein the first disease and the first concern information are determined according to the number of first parameters corresponding to the at least one preset disease.
6. The method according to claim 2, wherein: The comparing the extracted parameter value with the parameter value of the target medical parameter under at least one preset disease to obtain a parameter value comparison result includes: determining a target medical subject associated with the target medical parameter; The extracted parameter value is compared with the parameter value of the target medical parameter under at least one preset disease in the target medical subject to obtain a parameter value comparison result.
7. The method according to claim 1, wherein: The generating second health guidance information based on the target feature graph includes: Comparing the target characteristic graph with a disease characteristic graph corresponding to at least one preset disease to obtain a characteristic graph comparison result; The second health guidance information is generated according to the characteristic graph comparison result.
8. The method according to claim 7, wherein: The step of comparing the target characteristic graph with a disease characteristic graph corresponding to at least one preset disease to obtain a characteristic graph comparison result includes: Calculating the similarity between the target feature graph and the disease feature graph corresponding to the at least one preset disease, and obtaining a feature graph comparison result including the similarity corresponding to the at least one preset disease; Generating the second health guidance information according to the characteristic graph comparison result includes: The second health guidance information is generated according to the similarity corresponding to the at least one preset disease.
9. The method according to claim 8, wherein: The second health guidance information includes: a second disease that the user needs to pay attention to, and second concern information representing the degree to which the user needs to pay attention to the second disease, wherein the second disease and the second concern information are determined based on the similarity corresponding to the at least one preset disease.
10. The method according to claim 7, wherein: The step of comparing the target characteristic graph with a disease characteristic graph corresponding to at least one preset disease to obtain a characteristic graph comparison result includes: The target characteristic graph is compared with a disease characteristic graph corresponding to at least one preset disease in a target medical subject to obtain a characteristic graph comparison result, wherein the target medical subject is determined according to the target medical parameter.
11. The method according to any one of claims 1 to 10, wherein: The first health guidance information includes a first disease that the user needs to pay attention to, and the second health guidance information includes a second disease that the user needs to pay attention to; The fusing the first health guidance information and the second health guidance information to obtain the health guidance information to be pushed to the user includes: According to the inclusion relationship between the diseases, the first disease and the second disease are merged to obtain a target disease that the user needs to pay attention to; According to the correspondence between the at least one preset disease and the preset guidance information, the guidance information corresponding to the target disease is determined as the health guidance information to be pushed to the user.
12. The method according to claim 11, wherein: The step of merging the first disease and the second disease according to the inclusion relationship between the diseases to obtain the target disease that the user needs to pay attention to includes: Each first candidate disease is combined and processed in the following manner to obtain the target disease that the user needs to pay attention to, wherein the first candidate disease belongs to the first disease or the second disease: According to the inclusion relationship between diseases, if there is a second candidate disease belonging to the first candidate disease, the second candidate disease belonging to the first candidate disease is determined as the target disease, wherein the second candidate disease belongs to another disease among the first disease and the second disease except the disease to which the first candidate disease belongs; If there is no second candidate disease belonging to the first candidate disease, the first candidate disease is determined to be the target disease.
13. The method according to claim 11, wherein: The first health guidance information further includes first attention information indicating the degree to which the user needs to pay attention to the first disease, and the second health guidance information further includes first attention information indicating the degree to which the user needs to pay attention to the second disease; The determining, according to the correspondence between the at least one preset disease and the preset guidance information, the guidance information corresponding to the target disease as the health guidance information to be pushed to the user includes: Determining guidance information corresponding to the target disease according to the correspondence between the at least one preset disease and the preset guidance information; Generate health guidance information including the target disease, guidance information corresponding to the target disease, and attention information corresponding to the target disease.
14. A health guidance information generating device, applied to a server, comprising: A data acquisition module is used to obtain health description text and health description images uploaded by users; A model processing module, used for inputting the health description text into a large language model to obtain first health guidance information output by the large language model; An image processing module, configured to extract features from the health description image to obtain a target feature map representing the health status of the user, and generate second health guidance information based on the target feature map; The information fusion module is used to fuse the first health guidance information and the second health guidance information to obtain the health guidance information to be pushed to the user.
15. The device according to claim 14, wherein: The large language model obtains the first health guidance information in the following manner: Identifying a target medical parameter appearing in the health description text, and extracting a parameter value of the target medical parameter from the health description text; Comparing the extracted parameter value with a parameter value of the target medical parameter under at least one preset disease to obtain a parameter value comparison result; The first health guidance information is generated according to the parameter value comparison result.
16. The device according to claim 15, wherein: The comparing the extracted parameter value with the parameter value of the target medical parameter under at least one preset disease to obtain a parameter value comparison result includes: Determining whether the extracted parameter value belongs to the parameter value range of the target medical parameter under the at least one preset disease; Based on the judgment result, a parameter value comparison result is generated.
17. The device according to claim 16, wherein: The generating of the parameter value comparison result according to the judgment result includes: For each preset disease in the at least one preset disease, the number of first parameters corresponding to the preset disease in the target medical parameters is counted to obtain a parameter value comparison result, wherein the first parameter corresponding to the preset disease is: a target medical parameter whose parameter value belongs to the parameter value range of the target medical parameter under the preset disease, and the parameter value comparison result includes the number of first parameters corresponding to the at least one preset disease; The generating first health guidance information according to the parameter value comparison result includes: First health guidance information is generated according to the number of first parameters corresponding to the at least one preset disease.
18. The device according to claim 17, wherein: The first health guidance information includes: a first disease that the user needs to pay attention to, and first concern information representing the degree to which the user needs to pay attention to the first disease, wherein the first disease and the first concern information are determined according to the number of first parameters corresponding to the at least one preset disease.
19. The device according to claim 15, wherein: The comparing the extracted parameter value with the parameter value of the target medical parameter under at least one preset disease to obtain a parameter value comparison result includes: determining a target medical subject associated with the target medical parameter; The extracted parameter value is compared with the parameter value of the target medical parameter under at least one preset disease in the target medical subject to obtain a parameter value comparison result.
20. The device according to claim 14, wherein: The image processing module comprises: A feature extraction submodule is used to extract features from the health description image to obtain a target feature map representing the health status of the user; A feature comparison submodule, used to compare the target feature map with a disease feature map corresponding to at least one preset disease to obtain a feature map comparison result; The information generation submodule is used to generate second health guidance information according to the feature map comparison result.
21. The device according to claim 20, wherein: The feature comparison submodule is specifically used for: Calculating the similarity between the target feature graph and the disease feature graph corresponding to the at least one preset disease, and obtaining a feature graph comparison result including the similarity corresponding to the at least one preset disease; The information generation submodule is specifically used for: The second health guidance information is generated according to the similarity corresponding to the at least one preset disease.
22. The device according to claim 21, wherein The second health guidance information includes: a second disease that the user needs to pay attention to, and second concern information representing the degree to which the user needs to pay attention to the second disease, wherein the second disease and the second concern information are determined based on the similarity corresponding to the at least one preset disease.
23. The device according to claim 20, wherein: The feature comparison submodule is specifically used for: The target characteristic graph is compared with a disease characteristic graph corresponding to at least one preset disease in a target medical subject to obtain a characteristic graph comparison result, wherein the target medical subject is determined according to the target medical parameter.
24. The device according to any one of claims 14 to 23, wherein: The first health guidance information includes a first disease that the user needs to pay attention to, and the second health guidance information includes a second disease that the user needs to pay attention to; The information fusion module comprises: A disease merging submodule, used to merge the first disease and the second disease according to the inclusion relationship between the diseases, to obtain a target disease that the user needs to pay attention to; The information determination submodule is used to determine the guidance information corresponding to the target disease according to the correspondence between the at least one preset disease and the preset guidance information, as the health guidance information to be pushed to the user.
25. The device according to claim 24, wherein: The disease merging submodule is specifically used for: Each first candidate disease is combined and processed in the following manner to obtain the target disease that the user needs to pay attention to, wherein the first candidate disease belongs to the first disease or the second disease: According to the inclusion relationship between diseases, if there is a second candidate disease belonging to the first candidate disease, the second candidate disease belonging to the first candidate disease is determined as the target disease, wherein the second candidate disease belongs to another disease among the first disease and the second disease except the disease to which the first candidate disease belongs; If there is no second candidate disease belonging to the first candidate disease, the first candidate disease is determined to be the target disease.
26. The device according to claim 24, wherein: The first health guidance information further includes first attention information indicating the degree to which the user needs to pay attention to the first disease, and the second health guidance information further includes first attention information indicating the degree to which the user needs to pay attention to the second disease; The information determination submodule is specifically used for: Determining guidance information corresponding to the target disease according to the correspondence between the at least one preset disease and the preset guidance information; Generate health guidance information including the target disease, guidance information corresponding to the target disease, and attention information corresponding to the target disease.
27. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 13.
28. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-13.
29. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 13.
