Model-based data prediction method, device, computer equipment and storage medium
Through the model-based data prediction method, the pre-trained prediction model and the medical treatment recommendation recommendation model are used to generate the user's predicted category information and medical treatment recommendations, which solves the problems of low efficiency and insufficient accuracy of manual evaluation and achieves efficient and accurate Chronic disease risk prediction and preventive treatment.
Patent Information
- Application Number
- CN202111154354.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-29
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-09-29
AI Technical Summary
The existing manual assessment method through reasoning and analysis of users' medical information is inefficient, requires large labor costs, and has certain deviations, resulting in low accuracy of assessment conclusions.
The model-based data prediction method is used to obtain the target user's medical information, and the prediction category information is generated through the pre-trained prediction model. If it belongs to the specified category, the abnormal data is extracted and input into the medical treatment recommendation recommendation model, and the target medical treatment recommendation is output. The method includes selecting models with high accuracy and high processing efficiency from multiple prediction models, generating prediction category information corresponding to the user's medical information, and pushing medical treatment recommendations.
It improves the efficiency and accuracy of generating prediction category information, reduces the need for manual analysis, improves the effect of preventive treatment, is suitable for smart medical scenarios, and promotes the construction of smart cities.
Smart Images

Figure CN113889262B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a model-based data prediction method, apparatus, computer equipment and storage medium. Background Art
[0002] Chronic diseases are a large class of multifactorial diseases that are affected by environmental and genetic factors. They are the result of the combined effects of multiple risk factors. Chronic diseases have an insidious onset, a long incubation period, and rapid progression, making it difficult for many patients to detect and treat them in a timely manner. In addition, since the etiology and pathogenesis of most chronic diseases are still not very clear, and the treatment effect is poor, it is of practical significance to prevent the occurrence of chronic diseases.
[0003] Timely identification of people at risk of chronic diseases is conducive to relevant prevention and treatment of relevant people as soon as possible, so as to reduce the impact of chronic diseases on people's lives. At present, the main way to predict whether a user is at risk of chronic diseases is through information communication between doctors and users. Users need to go to the hospital to communicate with doctors face to face about their condition. Doctors refer to the user's medical information, relevant data in the medical information, their own experience, or existing data in the expert database for reference reasoning to obtain a preliminary assessment of whether the user is at risk of chronic diseases. However, this manual evaluation method of reasoning and analyzing the user's medical information is inefficient and requires a large amount of manpower costs. At the same time, there are certain deviations in manual evaluation, which makes the accuracy of the evaluation conclusions obtained low. Summary of the invention
[0004] The main purpose of this application is to provide a model-based data prediction method, device, computer equipment and storage medium, aiming to solve the technical problems that the existing manual evaluation method of reasoning and analyzing the user's medical information is inefficient and requires a large amount of manpower costs. At the same time, manual evaluation has certain deviations, resulting in low accuracy of the evaluation conclusions.
[0005] The present application proposes a data prediction method based on a model, the method comprising the steps of:
[0006] Obtain medical information of target users;
[0007] Obtain a preset number of pre-trained prediction models, and determine a target prediction model from all the prediction models according to preset rules; wherein each of the prediction models is obtained by training based on a different training sample set, each of the training sample sets includes a number of specified medical information and category label information corresponding to the specified medical information, the number of the training sample sets is equal to the preset number, and the number of the target prediction models is multiple;
[0008] Inputting the medical information into the target prediction model, and generating prediction category information corresponding to the medical information through the target prediction model;
[0009] Determining whether the predicted category information belongs to designated category information;
[0010] If it belongs to the designated category of information, extract abnormal data from the medical information;
[0011] Inputting the abnormal data into a pre-trained medical advice recommendation model, and outputting a target medical advice corresponding to the abnormal data through the medical advice recommendation model;
[0012] The target medical consultation recommendation is pushed to the target user.
[0013] Optionally, the step of determining a target prediction model from all the prediction models according to a preset rule includes:
[0014] Generating the prediction accuracy of each prediction model based on a preset validation sample set; and,
[0015] Generating a processing efficiency value of each of the prediction models based on the validation sample set;
[0016] Filter out a first prediction model whose prediction accuracy is greater than a preset accuracy threshold from the prediction models;
[0017] Determining whether the number of the first prediction models is greater than a specified number;
[0018] If yes, sort the numerical values of the processing efficiency values of all the first prediction models in descending order to obtain a corresponding first sorting result;
[0019] Starting from the processing efficiency value ranked first in the first sorting result, sequentially obtaining a plurality of target processing efficiency values that are equal to the specified number;
[0020] Selecting second prediction models corresponding to the target processing efficiency values from the first prediction models;
[0021] The second prediction model is used as the target prediction model.
[0022] Optionally, the step of generating a processing efficiency value of each prediction model based on the validation sample set includes:
[0023] Acquire the verification sample set; wherein the verification sample set includes a plurality of verification sample data;
[0024] When the third prediction model obtains each of the verification sample data, the processing time spent by the third prediction model to output the prediction results corresponding to each of the verification sample data is counted respectively; wherein the third prediction model is any one of all the prediction models;
[0025] Sorting all the processing times in descending order according to the numerical values to obtain a corresponding second sorting result;
[0026] Determine whether the amount of time spent on all the processing is an even number;
[0027] If yes, obtain the time taken for two specified processes in the middle position of the second sorting result;
[0028] Calculating the average between the time taken for two of the specified processes;
[0029] The average value is used as the processing efficiency value of the third prediction model.
[0030] Optionally, the step of generating prediction category information corresponding to the medical information based on the target prediction model includes:
[0031] The medical information is input into each of the target prediction models, and the medical information is predicted and processed by each of the target prediction models, and prediction results corresponding to the medical information are output respectively; wherein each of the prediction results includes prediction category information and a prediction probability corresponding to the prediction category information, and the prediction category information is used to indicate a disease;
[0032] Deduplication processing is performed on all prediction category information in all the prediction results to obtain first prediction category information;
[0033] Based on all the prediction probabilities, respectively calculate the prediction scores corresponding to each of the first prediction category information;
[0034] Filter out the target prediction score with the largest value from all the prediction scores;
[0035] Obtaining target prediction category information corresponding to the target prediction score;
[0036] The target prediction category information is used as the prediction category information.
[0037] Optionally, the step of calculating the prediction scores corresponding to each of the first prediction category information based on all the prediction probabilities includes:
[0038] Acquire all designated prediction probabilities corresponding to second prediction category information from all the prediction probabilities; wherein the second prediction category information is any one of all the first prediction category information;
[0039] Obtaining, from the target prediction model, model weights of fourth prediction models corresponding to the respective specified prediction probabilities;
[0040] Performing weighted sum processing on each of the specified prediction probabilities based on the model weight to obtain a corresponding first sum value;
[0041] The first sum value is used as a prediction score corresponding to the second prediction category information.
[0042] Optionally, the step of acquiring, from the target prediction model, a model weight of a fourth prediction model corresponding to each of the specified prediction probabilities, comprises:
[0043] Obtaining a specified prediction accuracy rate of a fifth prediction model; wherein the fifth prediction model is any one of all the fourth prediction models;
[0044] Calculating a second sum of target prediction accuracy rates of all target prediction models;
[0045] Calculating a ratio between the specified prediction accuracy and the second sum value;
[0046] The ratio is used as the model weight of the fifth prediction model.
[0047] Optionally, before the step of obtaining a preset number of pre-trained prediction models and determining a target prediction model from all the prediction models according to a preset rule, the step includes:
[0048] Obtaining a preset number of training sample sets; wherein each of the training sample sets includes a number of specified medical information and category label information corresponding to the specified medical information;
[0049] Acquire a designated training sample set from the training sample set; wherein the designated training sample set is any sample set among all the training sample sets;
[0050] Inputting the specified medical information in the specified training sample set into the input embedding layer in the preset initial model to obtain the corresponding specified medical vector; wherein the input embedding layer includes a type embedding layer and a value embedding layer;
[0051] Inputting the designated medical vector in the input embedding layer into the middle layer of the initial model, performing data processing on the designated medical vector through the middle layer to generate a corresponding feature vector;
[0052] Input the feature vector in the intermediate layer to the classification layer of the initial model, calculate the probability value of the feature vector belonging to the category label information corresponding to the input designated medical information through a preset function, and determine whether the preset loss function converges based on the probability value;
[0053] If the loss function converges, the model training process is determined to be completed, and the obtained trained initial model is used as the prediction model corresponding to the specified training sample set.
[0054] The present application also provides a model-based data prediction device, comprising:
[0055] A first acquisition module is used to acquire medical information of a target user;
[0056] A first determination module is used to obtain a preset number of pre-trained prediction models, and determine a target prediction model from all the prediction models according to preset rules; wherein each of the prediction models is obtained by training based on a different training sample set, each of the training sample sets includes a number of specified medical information and category label information corresponding to the specified medical information, the number of the training sample sets is equal to the preset number, and the number of the target prediction models is multiple;
[0057] A first generating module, used for inputting the medical information into the target prediction model, and generating prediction category information corresponding to the medical information through the target prediction model;
[0058] A first judgment module, used to judge whether the predicted category information belongs to the specified category information;
[0059] An extraction module, for extracting abnormal data from the medical information if it belongs to a specified category of information;
[0060] A second generating module is used to input the abnormal data into a pre-trained medical advice recommendation model, and output a target medical advice corresponding to the abnormal data through the medical advice recommendation model;
[0061] A push module is used to push the target medical consultation recommendation to the target user.
[0062] The present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0063] The present application also provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the steps of the above method when executed by a processor.
[0064] The model-based data prediction method, device, computer device and storage medium provided in this application have the following beneficial effects:
[0065] The model-based data prediction method, device, computer device and storage medium provided in the present application, after obtaining the medical information of the target user, will first determine the target prediction model from the pre-trained prediction model, and then generate the prediction category information corresponding to the medical information based on the target prediction model. If the prediction category information belongs to the specified category information, the abnormal data will be extracted from the medical information, and the abnormal data will be input into the pre-trained medical advice recommendation model, and the target medical advice corresponding to the abnormal data will be output through the medical advice recommendation model, and finally the target medical advice will be pushed to the target user. The present application can accurately predict the prediction category information corresponding to the target user by using the target prediction model, so as to accurately determine whether the target user has the risk of suffering from chronic diseases. Since there is no need to manually analyze a large amount of medical data, the generation efficiency of the prediction category information can be improved, and the accuracy of the obtained prediction category information can be improved. In addition, abnormal data can also be extracted from the medical information, and the preset medical advice recommendation model can be used to accurately output the target medical advice corresponding to the abnormal data, so that the user can perform corresponding preventive treatment according to the target medical advice, so as to effectively improve the preventive treatment effect. This application is also used in smart medical scenarios to promote the construction of smart cities. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 is a flow chart of a model-based data prediction method according to an embodiment of the present application;
[0067] Figure 2 is a schematic diagram of the structure of a model-based data prediction device according to an embodiment of the present application;
[0068] Figure 3 It is a schematic diagram of the structure of a computer device according to an embodiment of the present application.
[0069] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0070] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0071] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as herein.
[0072] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0073] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0074] Reference Figure 1 , a model-based data prediction method according to an embodiment of the present application includes:
[0075] S10: Obtaining medical information of target users;
[0076] S20: Obtain a preset number of pre-trained prediction models, and determine a target prediction model from all the prediction models according to preset rules; wherein each of the prediction models is obtained by training based on a different training sample set, each of the training sample sets includes a number of specified medical information and category label information corresponding to the specified medical information, the number of the training sample sets is equal to the preset number, and the number of the target prediction models is multiple;
[0077] S30: inputting the medical information into the target prediction model, and generating prediction category information corresponding to the medical information through the target prediction model;
[0078] S40: Determine whether the predicted category information belongs to designated category information;
[0079] S50: If the information belongs to a specified category, extract abnormal data from the medical information;
[0080] S60: inputting the abnormal data into a pre-trained medical advice recommendation model, and outputting a target medical advice corresponding to the abnormal data through the medical advice recommendation model;
[0081] S70: Pushing the target medical consultation recommendation to the target user.
[0082] As described in the above steps S10 to S70, the execution subject of the embodiment of the present method is a model-based data prediction device. In practical applications, the above-mentioned model-based data prediction device can be implemented by a virtual device, such as software code, or by a physical device with relevant execution code written or integrated, and can interact with the user through a keyboard, mouse, remote control, touchpad or voice control device. The model-based data prediction device in this embodiment, after obtaining the user's medical information, can automatically and accurately generate the user's prediction category information based on the use of the target prediction model, and intelligently generate corresponding medical advice based on the use of the medical advice recommendation model. Specifically, the medical information of the target user is first obtained. Among them, the medical information may include the basic information of the target user, such as gender, age, height, weight and other information, as well as the user's verification and detection information such as blood pressure, glycated hemoglobin and other information.
[0083] Then, a preset number of pre-trained prediction models are obtained, and a target prediction model is determined from all the prediction models according to preset rules. Each of the prediction models is obtained by training based on different training sample sets, and each of the training sample sets includes a number of specified medical information and category label information corresponding to the specified medical information. The information format of the specified medical information is the same as the information format of the medical information. The number of training sample sets is equal to the preset number, and the number of target prediction models is multiple. In addition, the specific implementation process of training and generating prediction models, and the specific implementation process of determining the target prediction model from all the prediction models according to preset rules, will be further described in the subsequent specific embodiments of the present invention, which will not be repeated here. After obtaining the target prediction model, the medical information is input into the target prediction model, and the prediction category information corresponding to the medical information is generated by the target prediction model. The prediction category information may be a disease name. Specifically, the medical information can be input into each of the target prediction models to obtain the prediction results corresponding to the medical information output by each of the target prediction models; all the prediction category information in all the prediction results are deduplicated to obtain the first prediction category information; based on all the prediction probabilities, the prediction scores corresponding to each of the first prediction category information are calculated respectively; finally, the target prediction score with the largest value is selected from all the prediction scores, and the target prediction category information corresponding to the target prediction score is used as the prediction category information.
[0084] Then, it is determined whether the predicted category information belongs to the specified category information. The specified category may represent the type corresponding to the chronic disease, and the specified category information may be represented as the name of the chronic disease. The full name of chronic disease is chronic non-communicable disease, which does not specifically refer to a certain disease, but is a general term for a class of diseases with hidden onset, long course and prolonged illness, lack of definite infectious biological etiology evidence, complex etiology, and some diseases that have not yet been fully confirmed. Common chronic diseases mainly include cardiovascular and cerebrovascular diseases, cancer, diabetes, chronic respiratory diseases, etc. Specifically, a chronic disease name table can be created in advance and stored in the device, and all chronic diseases in the chronic disease name table can be traversed; the predicted category information is compared with the traversed chronic diseases; when the predicted category information is the same as any chronic disease in the traversed chronic diseases, it is determined that the predicted category information belongs to the specified category information. If it belongs to the specified category information, abnormal data is extracted from the medical information. Among them, the abnormal data refers to data in the medical information that does not match the normal value. In addition, the method of extracting abnormal data from the medical information can refer to the existing technology, and the method of extracting the abnormal data will not be elaborated in detail for the time being.
[0085] Subsequently, the abnormal data is input into a pre-trained medical advice recommendation model, and the target medical advice corresponding to the abnormal data is output through the medical advice recommendation model. Among them, the training generation process of the medical advice recommendation model may include: using web crawler technology to obtain historical data; inputting the historical data into the forgetting gate layer for forgetting processing to obtain training data; using cross-validation method to divide the training data into a training set and a validation set; inputting the data in the training set into the input gate layer for training to obtain a learner; adjusting the learner according to the data in the validation set to obtain the medical strategy recommendation model. In addition, by adjusting the learner with the data in the validation set, the medical strategy recommendation model can be accurately obtained. Finally, the target medical advice is pushed to the target user. Among them, there is no limitation on the push mode of the target medical advice, for example, it can be in the form of text messages, voice, etc. In addition, by extracting abnormal data related to the predicted category information from the medical information, the scope of data analysis can be narrowed, thereby improving the analysis efficiency of medical data, which is conducive to improving the generation efficiency of diagnostic advice.
[0086] After obtaining the medical information of the target user, this embodiment will first determine the target prediction model from the pre-trained prediction model, and then generate the prediction category information corresponding to the medical information based on the target prediction model. If the prediction category information belongs to the specified category information, the abnormal data will be extracted from the medical information, and the abnormal data will be input into the pre-trained medical advice recommendation model, and the target medical advice corresponding to the abnormal data will be output through the medical advice recommendation model, and finally the target medical advice will be pushed to the target user. This embodiment can accurately predict the prediction category information corresponding to the target user by using the target prediction model, so as to accurately determine whether the target user has the risk of suffering from chronic diseases. Since there is no need to manually analyze a large amount of medical data, the generation efficiency of the prediction category information can be improved, and the accuracy of the obtained prediction category information can be improved. In addition, abnormal data can also be extracted from the medical information, and the preset medical advice recommendation model can be used to accurately output the target medical advice corresponding to the abnormal data, so that the user can perform corresponding preventive treatment according to the target medical advice, so as to effectively improve the preventive treatment effect. This application is also applied to smart medical scenarios, thereby promoting the construction of smart cities.
[0087] Furthermore, in one embodiment of the present application, the above step S2 includes:
[0088] S200: generating the prediction accuracy of each prediction model based on a preset validation sample set; and,
[0089] S201: generating a processing efficiency value of each prediction model based on the verification sample set;
[0090] S202: Filtering out a first prediction model whose prediction accuracy is greater than a preset accuracy threshold from the prediction models;
[0091] S203: Determine whether the number of the first prediction models is greater than a specified number;
[0092] S204: If yes, sort the numerical values of the processing efficiency values of all the first prediction models in descending order to obtain a corresponding first sorting result;
[0093] S205: starting from the processing efficiency value ranked first in the first sorting result, sequentially acquiring a plurality of target processing efficiency values that are the same as the specified number;
[0094] S206: Filtering out second prediction models corresponding to the target processing efficiency values from the first prediction models;
[0095] S207: Using the second prediction model as the target prediction model.
[0096] As described in steps S200 to S207 above, the step of determining the target prediction model from all the prediction models according to the preset rules may specifically include: first, generating the prediction accuracy of each prediction model based on a preset verification sample set. The verification sample set may be generated based on the training sample set, such as randomly obtaining data with a preset numerical ratio from the training sample set as the verification sample set, and the preset numerical ratio may be set according to actual needs, for example, it may be set to 30%. In addition, the verification sample set includes a plurality of verification sample data, and category label information corresponding to each of the verification sample data. Specifically, the process of generating the prediction accuracy of each prediction model may include: inputting each verification sample data into the sixth prediction model, obtaining the first category information corresponding to each verification sample data output by the sixth prediction model; wherein the sixth prediction model is any one of all the prediction models; based on the category label information corresponding to each verification sample data, obtaining the second category information predicted correctly in all the first category information; obtaining the first quantity of the first category information, and obtaining the second quantity of the second category information; calculating the quotient between the second quantity and the first quantity; using the quotient as the prediction accuracy of the sixth prediction model. And generating the processing efficiency value of each prediction model based on the verification sample set. Wherein, the specific implementation process of generating the processing efficiency value of each prediction model based on the verification sample set will be further described in the subsequent specific embodiments of this application, and will not be repeated here. Then, the first prediction model with a prediction accuracy greater than a preset accuracy threshold is selected from the prediction model. Wherein, the value of the preset accuracy threshold is not specifically limited and can be set according to actual needs. Then, it is determined whether the number of the first prediction models is greater than the specified number. There is no specific limitation on the value of the specified number, which can be set according to actual needs. Specifically, the memory usage information inside the device can be obtained, and the quantity corresponding to the memory usage information can be queried based on the preset memory-quantity mapping table as the specified number. The memory-quantity mapping table can be generated based on test results, online problem analysis and expert experience, and is a data table that records the mapping relationship between memory information and the number of model operations. And selecting the corresponding model quantity from the mapping table based on the memory information can ensure that the loss cost of the data calculation and processing process of the model inside the device is small, and ensure that the data calculation and processing is at a normal rate and the device will not freeze. If it is greater than the specified number, the values of the processing efficiency values of all the first prediction models are sorted in order from large to small to obtain the corresponding first sorting result. After obtaining the first sorting result, starting from the first-ranked processing efficiency value in the first sorting result, multiple target processing efficiency values that are the same as the specified number are obtained in sequence.Subsequently, a second prediction model corresponding to each of the target processing efficiency values is screened out from the first prediction model. Finally, the second prediction model is used as the target prediction model. After obtaining a preset number of pre-trained prediction models, this embodiment will also comprehensively consider the prediction accuracy and processing efficiency values of all the prediction models. After screening out multiple first prediction models with a value greater than the preset accuracy threshold, a specified number of second prediction models with higher processing efficiency values will be screened out from the multiple first prediction models as target prediction models. Since the obtained target prediction model has a higher prediction accuracy and a higher processing efficiency, when subsequently using the target prediction model to generate prediction category information corresponding to the medical information, it can effectively improve the processing efficiency of risk prediction of whether the user suffers from chronic diseases based on medical information on the basis of ensuring the accuracy of the prediction category information output by the target prediction model.
[0097] Furthermore, in an embodiment of the present application, the above step S201 includes:
[0098] S2010: Acquire the verification sample set; wherein the verification sample set includes a plurality of verification sample data;
[0099] S2011: when the third prediction model obtains each of the verification sample data, respectively counting the processing time taken for the third prediction model to output a prediction result corresponding to each of the verification sample data; wherein the third prediction model is any one of all the prediction models;
[0100] S2012: sorting all the processing time in descending order according to the numerical values to obtain a corresponding second sorting result;
[0101] S2013: Determine whether the amount of time spent on all the processing is an even number;
[0102] S2014: If yes, obtain the time taken for two designated processes in the middle position in the second sorting result;
[0103] S2015: Calculate the average value between the time taken for the two specified processes;
[0104] S2016: Using the average value as the processing efficiency value of the third prediction model.
[0105] As described in the above steps S2010 to S2016, the step of generating the processing efficiency value of each prediction model based on the verification sample set may specifically include: first obtaining the verification sample set. Wherein, the verification sample set includes multiple verification sample data. Then, when the third prediction model obtains each of the verification sample data, the processing time of the third prediction model outputting the prediction result corresponding to each of the verification sample data is counted respectively. Wherein, the third prediction model is any one of all the prediction models. In addition, the processing time refers to the time taken by the third prediction model from receiving any verification sample data to outputting the prediction result corresponding to the verification sample data. For example, if the time when the third prediction model receives the verification sample data x is T1, and the time when the third prediction model successfully outputs the prediction result y of the verification sample data x is T2, then the processing time of the third prediction model corresponding to the verification sample data x can be obtained as T=T2-T1. Then, all the processing time is sorted in descending order according to the numerical value to obtain the corresponding second sorting result. After obtaining the second sorting result, it is determined whether the number of all the processing time is an even number. If it is an even number, obtain the two specified processing times in the middle position of the second sorting result. Subsequently calculate the average value between the two specified processing times. Finally, use the average value as the processing efficiency value of the third prediction model. Among them, by using the median value of all the processing times as the processing efficiency value of the third prediction model, the generated processing efficiency value is not easily affected by extreme values in the data, which is beneficial to improve the accuracy of the obtained processing efficiency value. In addition, if the number of all the processing times is an odd number, the processing time in the middle position of the second sorting result is used as the processing efficiency value of the third prediction model. In this embodiment, the processing efficiency value of each prediction model can be quickly calculated by using the verification sample set, which is beneficial to the subsequent screening of all prediction models based on the processing efficiency value and the prediction accuracy of each prediction model to generate the final target prediction model, and then accurately predict the medical information of the target user based on the target prediction model and generate corresponding prediction category information. Since the target prediction model obtained based on the prediction model screening has high prediction accuracy and processing efficiency, when the target prediction model is subsequently used to predict and process the user's medical information, it can effectively improve the processing efficiency of the prediction processing of medical information on the basis of ensuring the accuracy of the prediction category information output by the target prediction model.
[0106] Furthermore, in one embodiment of the present application, the above step S3 includes:
[0107] S300: inputting the medical information into each of the target prediction models, performing prediction processing on the medical information through each of the target prediction models, and outputting prediction results corresponding to the medical information respectively; wherein each of the prediction results includes prediction category information and a prediction probability corresponding to the prediction category information, and the prediction category information is used to indicate a disease;
[0108] S301: performing deduplication processing on all prediction category information in all the prediction results to obtain first prediction category information;
[0109] S302: Based on all the prediction probabilities, respectively calculate the prediction scores corresponding to each of the first prediction category information;
[0110] S303: Filtering out the target prediction score with the largest value from all the prediction scores;
[0111] S304: Acquire target prediction category information corresponding to the target prediction score;
[0112] S305: Using the target prediction category information as the prediction category information.
[0113] As described in the above steps S300 to S305, the step of generating prediction category information corresponding to the medical information based on the target prediction model may specifically include: first, inputting the medical information into each of the target prediction models, performing prediction processing on the medical information through each of the target prediction models, and outputting prediction results corresponding to the medical information respectively. Wherein, each of the prediction results includes prediction category information and prediction probability corresponding to the prediction category information, and the prediction category information is used to indicate a disease. Then, all the prediction category information in all the prediction results are deduplicated to obtain the first prediction category information. Wherein, the deduplication process refers to the process of retaining only one of the same prediction category information that appears multiple times and deleting the remaining prediction category information. After that, based on all the prediction probabilities, the prediction scores corresponding to each of the first prediction category information are calculated respectively. Wherein, the specific implementation process of calculating the prediction scores corresponding to each of the first prediction category information respectively based on all the prediction probabilities will be further described in the subsequent specific embodiments of this application, and will not be repeated here. After obtaining the prediction score, the target prediction score with the largest value is selected from all the prediction scores. Subsequently, the target prediction category information corresponding to the target prediction score is obtained. Finally, the target prediction category information is used as the prediction category information. In this embodiment, after obtaining the prediction results corresponding to the medical information output by each of the target prediction models, the prediction scores of each prediction category information are intelligently calculated through the prediction probabilities in the prediction results, so that the target prediction category information corresponding to the target prediction score with the largest value is used as the prediction category information, so as to quickly and accurately determine the prediction category information. Since the accuracy and processing efficiency of the multiple target prediction models screened out are high, the use of the multiple target prediction models to predict and process the user's medical information can ensure the comprehensiveness and accuracy of the prediction category information generated subsequently, which not only avoids the use of only one prediction model to process the target user's medical information, resulting in excessive prediction errors, but also does not require the use of all prediction models generated by training to process, resulting in excessive data processing, effectively improving the prediction accuracy of medical information, ensuring the processing fluency of model prediction, and improving the generation rate and generation intelligence of prediction category information.
[0114] Furthermore, in an embodiment of the present application, the above step S302 includes:
[0115] S3020: Acquire all designated prediction probabilities corresponding to second prediction category information from all the prediction probabilities; wherein the second prediction category information is any one of all the first prediction category information;
[0116] S3021: Obtaining, from the target prediction model, model weights of fourth prediction models corresponding to the respective specified prediction probabilities;
[0117] S3022: performing weighted sum processing on each of the specified prediction probabilities based on the model weight to obtain a corresponding first sum value;
[0118] S3023: Use the first sum value as the prediction score corresponding to the second prediction category information.
[0119] As described in steps S3020 to S3023 above, the step of calculating the prediction scores corresponding to each of the first prediction category information based on all the prediction probabilities may specifically include: first, obtaining all the specified prediction probabilities corresponding to the second prediction category information from all the prediction probabilities. Wherein, the second prediction category information is any one of all the first prediction category information. Then, the model weight of the fourth prediction model corresponding to each of the specified prediction probabilities is obtained from the target prediction model. Wherein, the specific value of the model weight of the prediction model is not specifically limited, and can be set according to actual needs, for example, it can be generated according to the test accuracy of the prediction model, or it can be generated according to expert experience, and so on. Then, based on the model weight, each of the specified prediction probabilities is weighted and summed to obtain the corresponding first sum value. Finally, the first sum value is used as the prediction score corresponding to the second prediction category information. In this embodiment, for each type of prediction category information, the corresponding prediction score can be quickly calculated based on all specified prediction probabilities corresponding to the prediction category information and the model weight of the prediction model corresponding to each specified prediction probability, which is conducive to the subsequent rapid and accurate determination of the prediction category information corresponding to the target user based on the prediction score, and then based on the obtained prediction category information, intelligently and accurately detecting whether the target user is at risk of suffering from a chronic disease.
[0120] Furthermore, in an embodiment of the present application, the above step S3021 includes:
[0121] S30210: Obtaining a specified prediction accuracy rate of a fifth prediction model; wherein the fifth prediction model is any one of all the fourth prediction models;
[0122] S30211: Calculate the second sum of the target prediction accuracy rates of all the target prediction models;
[0123] S30212: Calculate the ratio between the specified prediction accuracy and the second sum value;
[0124] S30213: Using the ratio as the model weight of the fifth prediction model.
[0125] As described in steps S30210 to S30213 above, the step of obtaining the model weight of the fourth prediction model corresponding to each of the specified prediction probabilities from the target prediction model may specifically include: first obtaining the specified prediction accuracy of the fifth prediction model. Wherein, the fifth prediction model is any one of all the fourth prediction models. Then calculate the second sum between the target prediction accuracy of all the target prediction models. Then calculate the ratio between the specified prediction accuracy and the second sum. Finally, use the ratio as the model weight of the fifth prediction model. For example, the model weight of the fifth prediction model can be calculated based on the following formula Q=C / H, where Q is the model weight, C is the specified prediction accuracy of the fifth prediction model, and H is the second sum between the target prediction accuracy of all the target prediction models. In this embodiment, based on the prediction accuracy of each prediction model and the prediction accuracy of all prediction models, the model weights of each prediction model can be quickly and accurately generated, so that the prediction scores corresponding to each first prediction category information can be quickly generated based on the obtained model weights, and then the target prediction category information corresponding to the target prediction score with the largest value among all prediction scores is used as the prediction category information, so as to quickly and accurately determine the prediction category information corresponding to the target user. And whether the user has the risk of suffering from chronic diseases can be accurately detected based on the obtained prediction category information.
[0126] Furthermore, in an embodiment of the present application, before the above step S20, the following steps are included:
[0127] S210: Obtain a preset number of training sample sets; wherein each of the training sample sets includes a number of specified medical information and category label information corresponding to the specified medical information;
[0128] S211: Acquire a designated training sample set from the training sample set; wherein the designated training sample set is any sample set among all the training sample sets;
[0129] S212: inputting the designated medical information in the designated training sample set into the input embedding layer in the preset initial model to obtain a corresponding designated medical vector; wherein the input embedding layer includes a type embedding layer and a value embedding layer;
[0130] S213: inputting the designated medical vector in the input embedding layer into the middle layer of the initial model, performing data processing on the designated medical vector through the middle layer to generate a corresponding feature vector;
[0131] S214: Input the feature vector in the intermediate layer to the classification layer of the initial model, calculate the probability value of the feature vector belonging to the category label information corresponding to the input designated medical information through a preset function, and determine whether the preset loss function converges based on the probability value;
[0132] S215: If the loss function converges, it is determined that the model training process is completed, and the obtained trained initial model is used as the prediction model corresponding to the specified training sample set.
[0133] As described in the above steps S210 to S215, the step of obtaining a preset number of pre-trained prediction models and determining the target prediction model from all the prediction models according to the preset rules may also include a prediction model training generation process. Specifically, a preset number of training sample sets are first obtained. Each of the training sample sets includes a number of specified medical information and category label information corresponding to the specified medical information. In addition, the specified medical information may include basic information of the user (such as gender, age, height, weight) and verification and detection information of the user (such as blood pressure, glycosylated hemoglobin) and other information. There are two cases for the value of the specified medical information, one of which is the value in numerical form, such as weight of 58 kg, height of 178 cm, glycosylated hemoglobin of 6%, etc.; the other is the value in category form, such as gender has two values: male or female, etc.; the above category label information can also be called diagnosis label information, which refers to the diagnosis of the disease information corresponding to the user (for example, it may include multiple categories of disease name information). Then obtain the specified training sample set from the training sample set. The specified training sample set is any one of all the training sample sets. Then, the designated medical information in the designated training sample set is input into the input embedding layer in the preset initial model to obtain the corresponding designated medical vector. Wherein, the input embedding layer includes a type embedding layer and a value embedding layer. In addition, the initial model may be a deep learning model, and the designated medical information may be processed by the value embedding layer (value embeddings) and the type embedding layer (type embeddings) of the deep learning model to generate a designated medical vector corresponding to the designated medical information. Specifically, the designated medical information may be first converted into type name data and numerical data, and then the numerical data may be input into the value embedding layer of the deep learning model, and the type name data may be input into the type embedding layer of the deep learning model; then, based on the data contained in the value embedding layer and the type embedding layer, a designated medical vector corresponding to the designated medical information is generated. For example, if the designated medical information includes: weight is 48 kg, height is 168 cm, and glycated hemoglobin is 6%, the designated medical information may be split into 3 type names: weight, height, and glycated hemoglobin, and 3 numerical data may be obtained: 48, 168, and 6. In addition, type name data corresponding to the type name of the structured data may be pre-set, for example, weight corresponds to 1, height corresponds to 2, and glycated hemoglobin corresponds to 3, and the type name is converted into the corresponding type name data. Furthermore, the related data with corresponding relationships contained in the value embedding layer and the type embedding layer may be searched out respectively, and then the related data may be spliced to generate the specified medical vector.After obtaining the designated medical vector, the designated medical vector in the input embedding layer is input into the middle layer of the initial model, and the designated medical vector is processed through the middle layer to generate a corresponding feature vector. Among them, the transformer structure in the BERT model can be used as the middle layer of the deep learning model, and the designated medical vector input by the input embedding layer is integrated and processed through the middle layer, and the multi-dimensionality is reduced to one dimension to complete further feature extraction, and the generated feature vector output is transmitted to the classification layer. Subsequently, the feature vector in the middle layer is input into the classification layer of the initial model, and the probability value that the feature vector belongs to the category label information corresponding to the input designated medical information is calculated through a preset function, and whether the preset loss function converges is judged based on the probability value. Among them, the above preset function can specifically be the softmax function:. is the probability value of the feature vector belonging to each category label information, W p is the weight matrix of the classification layer, u is the feature vector, and b is the bias term. The above loss function can be specifically a cross entropy function: y is the true probability distribution, To predict the output distribution, that is, the probability value of the feature vector belonging to each category label information, is the cross entropy function of two distributions. In addition, the training goal of the model is to reduce the cross entropy loss, and the process of judging the convergence of the loss function may include: substituting the probability value generated in the classification layer into the loss function, and then judging whether the loss function reaches the preset loss value, if the preset loss value is reached, the loss function is judged to converge, and if the preset loss value is not reached, the loss function is judged not to converge. If the above loss function converges, it is judged that the model training process is completed, and the obtained trained deep learning model is used as the above prediction model. Among them, if the above loss function does not converge, the weights and biases of the above deep learning are further adjusted according to the above loss function using the back propagation algorithm, and the above training steps are continued until the loss function converges, thereby completing the training process. The above back propagation algorithm can refer to the existing algorithm and will not be elaborated on here. If the loss function converges, it is judged that the model training process is completed, and the obtained trained initial model is used as the prediction model corresponding to the specified training sample set. Among them, the obtained prediction model can be stored in the blockchain network, and the prediction model generated by the training can be stored and managed by using the blockchain, which can effectively ensure the security and non-tamperability of the above prediction model. This embodiment trains a preset initial model based on a pre-collected training sample set to generate a corresponding prediction model, which is beneficial for subsequent use of the prediction model to perform predictive processing on the target user's medical information regarding category information classification to output corresponding prediction category information, so as to quickly and intelligently complete the disease prediction processing for the target user, and further, based on the obtained prediction category information, intelligently and accurately detect whether the target user is at risk of suffering from a chronic disease.
[0134] The model-based data prediction method in the embodiment of the present application can also be applied to the blockchain field, such as storing the above-mentioned prediction category information and other data on the blockchain. By using the blockchain to store and manage the above-mentioned prediction category information, the security and non-tamperability of the above-mentioned prediction category information can be effectively guaranteed.
[0135] The above-mentioned blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0136] The underlying blockchain platform can include processing modules such as user management, basic services, smart contracts, and operation monitoring. Among them, the user management module is responsible for the identity information management of all blockchain participants, including maintaining public and private key generation (account management), key management, and the maintenance of the correspondence between the user's real identity and the blockchain address (authority management), etc., and, under authorization, supervises and audits the transactions of certain real identities and provides risk control rule configuration (risk control audit); the basic service module is deployed on all blockchain node devices to verify the validity of business requests, and records valid requests to storage after consensus is reached. For a new business request, the basic service first adapts the interface for parsing and authentication (interface adaptation), and then encrypts the business information through the consensus algorithm (consensus management). The smart contract module is responsible for the registration and issuance of contracts, as well as contract triggering and contract execution. Developers can define the contract logic in a programming language and publish it to the blockchain (contract registration). According to the logic of the contract terms, the key or other events are called to trigger the execution and complete the contract logic. It also provides the function of contract upgrade and cancellation. The operation monitoring module is mainly responsible for the deployment, configuration modification, contract setting, cloud adaptation and real-time status visualization output of the product during the product release process, such as alarm, network monitoring, node equipment health monitoring, etc.
[0137] Reference Figure 2 In one embodiment of the present application, a model-based data prediction device is also provided, comprising:
[0138] The first acquisition module 1 is used to acquire the medical information of the target user;
[0139] The first determination module 2 is used to obtain a preset number of pre-trained prediction models, and determine a target prediction model from all the prediction models according to preset rules; wherein each of the prediction models is obtained by training based on a different training sample set, each of the training sample sets includes a number of specified medical information and category label information corresponding to the specified medical information, the number of the training sample sets is equal to the preset number, and the number of the target prediction models is multiple;
[0140] A first generating module 3, used for inputting the medical information into the target prediction model, and generating prediction category information corresponding to the medical information through the target prediction model;
[0141] A first judgment module 4, used to judge whether the predicted category information belongs to the specified category information;
[0142] An extraction module 5, for extracting abnormal data from the medical information if it belongs to a specified category of information;
[0143] A second generating module 6 is used to input the abnormal data into a pre-trained medical advice recommendation model, and output a target medical advice corresponding to the abnormal data through the medical advice recommendation model;
[0144] The push module 7 is used to push the target medical consultation recommendation to the target user.
[0145] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the model-based data prediction method in the aforementioned implementation mode, and will not be repeated here.
[0146] Furthermore, in an embodiment of the present application, the first determining module 2 includes:
[0147] A first acquisition submodule is used to generate the prediction accuracy of each prediction model based on a preset verification sample set; and
[0148] A second acquisition submodule, used for generating a processing efficiency value of each prediction model based on the verification sample set;
[0149] A first screening submodule, used to screen out a first prediction model having a prediction accuracy greater than a preset accuracy threshold from the prediction models;
[0150] A judging submodule, used to judge whether the number of the first prediction models is greater than a specified number;
[0151] A sorting submodule, for sorting the processing efficiency values of all the first prediction models in descending order of numerical values to obtain a corresponding first sorting result;
[0152] A third acquisition submodule is used to sequentially acquire a plurality of target processing efficiency values that are the same as the specified number, starting from the processing efficiency value ranked first in the first sorting result;
[0153] A second screening submodule, used to screen out second prediction models corresponding to each of the target processing efficiency values from the first prediction models;
[0154] The first determination submodule is used to use the second prediction model as the target prediction model.
[0155] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the model-based data prediction method in the aforementioned implementation mode, and will not be repeated here.
[0156] Furthermore, in one embodiment of the present application, the second acquisition submodule includes:
[0157] A first acquisition unit, configured to acquire the verification sample set; wherein the verification sample set includes a plurality of verification sample data;
[0158] A statistical unit, for respectively counting the processing time taken for the third prediction model to output a prediction result corresponding to each of the verification sample data when the third prediction model obtains each of the verification sample data; wherein the third prediction model is any one of all the prediction models;
[0159] A sorting unit, used for sorting all the processing time in descending order according to the numerical value, to obtain a corresponding second sorting result;
[0160] A judging unit, used for judging whether the amount of time spent on all the processing is an even number;
[0161] A second obtaining unit, configured to obtain two designated processing time spent in the middle position of the second sorting result;
[0162] A first calculation unit, used for calculating an average value between two designated processing time;
[0163] The first determining unit is configured to use the average value as a processing efficiency value of the third prediction model.
[0164] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the model-based data prediction method in the aforementioned implementation mode, and will not be repeated here.
[0165] Furthermore, in an embodiment of the present application, the first generating module 3 includes:
[0166] A first processing submodule, used for inputting the medical information into each of the target prediction models, performing prediction processing on the medical information through each of the target prediction models, and outputting prediction results corresponding to the medical information respectively; wherein each of the prediction results includes prediction category information and a prediction probability corresponding to the prediction category information, and the prediction category information is used to indicate a disease;
[0167] A second processing submodule is used to perform a deduplication process on all the prediction category information in all the prediction results to obtain the first prediction category information;
[0168] A calculation submodule, used to calculate the prediction score corresponding to each of the first prediction category information based on all the prediction probabilities;
[0169] A third screening submodule is used to screen out the target prediction score with the largest value from all the prediction scores;
[0170] A fourth acquisition submodule is used to acquire target prediction category information corresponding to the target prediction score;
[0171] The second determining submodule is configured to use the target prediction category information as the prediction category information.
[0172] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the model-based data prediction method in the aforementioned implementation mode, and will not be repeated here.
[0173] Furthermore, in one embodiment of the present application, the above-mentioned calculation submodule includes:
[0174] a third acquisition unit, configured to acquire all specified prediction probabilities corresponding to second prediction category information from all the prediction probabilities; wherein the second prediction category information is any one of all the first prediction category information;
[0175] A fourth acquisition unit, used for acquiring, from the target prediction model, a model weight of a fourth prediction model corresponding to each of the specified prediction probabilities;
[0176] A second calculation unit is used to perform weighted sum processing on each of the specified prediction probabilities based on the model weight to obtain a corresponding first sum value;
[0177] The second determining unit is configured to use the first sum as a prediction score corresponding to the second prediction category information.
[0178] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the model-based data prediction method in the aforementioned implementation mode, and will not be repeated here.
[0179] Furthermore, in an embodiment of the present application, the fourth obtaining unit includes:
[0180] An acquisition subunit, used to acquire a specified prediction accuracy of a fifth prediction model; wherein the fifth prediction model is any one of all the fourth prediction models;
[0181] A first calculation subunit, used to calculate a second sum value between target prediction accuracy rates of all the target prediction models;
[0182] A second calculation subunit, used for calculating the ratio between the specified prediction accuracy and the second sum value;
[0183] A determination subunit is used to use the ratio as a model weight of the fifth prediction model.
[0184] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the model-based data prediction method in the aforementioned implementation mode, and will not be repeated here.
[0185] Furthermore, in one embodiment of the present application, the above-mentioned model-based data prediction device includes:
[0186] A second acquisition module is used to acquire a preset number of training sample sets; wherein each of the training sample sets includes a number of specified medical information and category label information corresponding to the specified medical information;
[0187] A third acquisition module is used to acquire a specified training sample set from the training sample set; wherein the specified training sample set is any sample set among all the training sample sets;
[0188] A third generation module is used to input the specified medical information in the specified training sample set into an input embedding layer in a preset initial model to obtain a corresponding specified medical vector; wherein the input embedding layer includes a type embedding layer and a value embedding layer;
[0189] a fourth generating module, configured to input the designated medical vector in the input embedding layer into the middle layer of the initial model, perform data processing on the designated medical vector through the middle layer, and generate a corresponding feature vector;
[0190] A second judgment module is used to input the feature vector in the intermediate layer to the classification layer of the initial model, calculate the probability value of the feature vector belonging to the category label information corresponding to the input specified medical information through a preset function, and judge whether the preset loss function converges based on the probability value;
[0191] The second determination module is used to determine that the model training process is completed if the loss function converges, and use the obtained trained initial model as the prediction model corresponding to the specified training sample set.
[0192] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the model-based data prediction method in the aforementioned implementation mode, and will not be repeated here.
[0193] Reference Figure 3 In an embodiment of the present application, a computer device is also provided. The computer device may be a server, and its internal structure may be as follows: Figure 3As shown. The computer device includes a processor, a memory, a network interface, a display screen, an input device and a database connected through a system bus. Among them, the processor designed for the computer device is used to provide computing and control capabilities. The memory of the computer device includes a storage medium and an internal memory. The storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the storage medium. The database of the computer device is used to store medical information, target prediction models, prediction category information, abnormal data, a recommendation model for medical advice, and target medical advice. The network interface of the computer device is used to communicate with an external terminal through a network connection. The display screen of the computer device is an indispensable graphic output device in the computer, which is used to convert digital signals into optical signals so that text and graphics are displayed on the screen of the display screen. The input device of the computer device is the main device for information exchange between the computer and the user or other devices, and is used to transmit data, instructions and certain sign information to the computer. When the computer program is executed by the processor, a model-based data prediction method is implemented.
[0194] The processor executes the steps of the model-based data prediction method:
[0195] Obtain medical information of target users;
[0196] Obtain a preset number of pre-trained prediction models, and determine a target prediction model from all the prediction models according to preset rules; wherein each of the prediction models is obtained by training based on a different training sample set, each of the training sample sets includes a number of specified medical information and category label information corresponding to the specified medical information, the number of the training sample sets is equal to the preset number, and the number of the target prediction models is multiple;
[0197] Inputting the medical information into the target prediction model, and generating prediction category information corresponding to the medical information through the target prediction model;
[0198] Determining whether the predicted category information belongs to designated category information;
[0199] If it belongs to the designated category of information, extract abnormal data from the medical information;
[0200] Inputting the abnormal data into a pre-trained medical advice recommendation model, and outputting a target medical advice corresponding to the abnormal data through the medical advice recommendation model;
[0201] The target medical consultation recommendation is pushed to the target user.
[0202] Those skilled in the art will understand that Figure 3 The structure shown in is merely a block diagram of a portion of the structure related to the present application scheme, and does not constitute a limitation on the devices and computer equipment to which the present application scheme is applied.
[0203] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, a model-based data prediction method is implemented, specifically:
[0204] Obtain medical information of target users;
[0205] Obtain a preset number of pre-trained prediction models, and determine a target prediction model from all the prediction models according to preset rules; wherein each of the prediction models is obtained by training based on a different training sample set, each of the training sample sets includes a number of specified medical information and category label information corresponding to the specified medical information, the number of the training sample sets is equal to the preset number, and the number of the target prediction models is multiple;
[0206] Inputting the medical information into the target prediction model, and generating prediction category information corresponding to the medical information through the target prediction model;
[0207] Determining whether the predicted category information belongs to designated category information;
[0208] If it belongs to the designated category of information, extract abnormal data from the medical information;
[0209] Inputting the abnormal data into a pre-trained medical advice recommendation model, and outputting a target medical advice corresponding to the abnormal data through the medical advice recommendation model;
[0210] The target medical consultation recommendation is pushed to the target user.
[0211] In summary, the model-based data prediction method, device, computer equipment and storage medium provided in the embodiments of the present application, after obtaining the medical information of the target user, will first determine the target prediction model from the pre-trained prediction model, and then generate the prediction category information corresponding to the medical information based on the target prediction model. If the prediction category information belongs to the specified category information, the abnormal data will be extracted from the medical information, and the abnormal data will be input into the pre-trained medical advice recommendation model, and the target medical advice corresponding to the abnormal data will be output through the medical advice recommendation model, and finally the target medical advice will be pushed to the target user. The embodiments of the present application can accurately predict the prediction category information corresponding to the target user by using the target prediction model, so as to accurately determine whether the target user has the risk of suffering from the specified category information. Since there is no need to manually analyze a large amount of medical data, the generation efficiency of the prediction category information can be improved, and the accuracy of the obtained prediction category information can be improved. In addition, abnormal data can be extracted from the medical information, and a preset medical advice recommendation model can be used to accurately output target medical advice corresponding to the abnormal data, so that users can perform corresponding preventive treatments based on the target medical advice, thereby effectively improving the preventive treatment effect of the specified category information.
[0212] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in the present application and used in the embodiments can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0213] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.
[0214] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A data prediction method based on a model, characterized in that: include: Obtain medical information of target users; Obtain a preset number of pre-trained prediction models, and determine a target prediction model from all the prediction models according to preset rules; wherein each of the prediction models is obtained by training based on a different training sample set, each of the training sample sets includes a number of specified medical information and category label information corresponding to the specified medical information, the number of the training sample sets is equal to the preset number, and the number of the target prediction models is multiple; Inputting the medical information into the target prediction model, and generating prediction category information corresponding to the medical information through the target prediction model; Determining whether the predicted category information belongs to designated category information; If it belongs to the designated category of information, extract abnormal data from the medical information; Inputting the abnormal data into a pre-trained medical advice recommendation model, and outputting a target medical advice corresponding to the abnormal data through the medical advice recommendation model; Pushing the target medical consultation recommendation to the target user; The step of determining a target prediction model from all the prediction models according to a preset rule comprises: Generating the prediction accuracy of each prediction model based on a preset validation sample set; and, Generating a processing efficiency value of each of the prediction models based on the validation sample set; Filter out a first prediction model whose prediction accuracy is greater than a preset accuracy threshold from the prediction models; Determining whether the number of the first prediction models is greater than a specified number; If yes, sort the numerical values of the processing efficiency values of all the first prediction models in descending order to obtain a corresponding first sorting result; Starting from the processing efficiency value ranked first in the first sorting result, sequentially obtaining a plurality of target processing efficiency values that are equal to the specified number; Selecting second prediction models corresponding to the target processing efficiency values from the first prediction models; Using the second prediction model as the target prediction model; The step of generating the processing efficiency value of each prediction model based on the verification sample set includes: Acquire the verification sample set; wherein the verification sample set includes a plurality of verification sample data; When the third prediction model obtains each of the verification sample data, the processing time spent by the third prediction model to output the prediction results corresponding to each of the verification sample data is counted respectively; wherein the third prediction model is any one of all the prediction models; Sorting all the processing times in descending order according to the numerical values to obtain a corresponding second sorting result; Determine whether the amount of time spent on all the processing is an even number; If yes, obtain the time taken for two specified processes in the middle position of the second sorting result; Calculating the average between the time taken for two of the specified processes; Using the average value as the processing efficiency value of the third prediction model; The step of generating prediction category information corresponding to the medical information based on the target prediction model comprises: The medical information is input into each of the target prediction models, and the medical information is predicted and processed by each of the target prediction models, and prediction results corresponding to the medical information are output respectively; wherein each of the prediction results includes prediction category information and a prediction probability corresponding to the prediction category information, and the prediction category information is used to indicate a disease; Deduplication processing is performed on all prediction category information in all the prediction results to obtain first prediction category information; Based on all the prediction probabilities, respectively calculate the prediction scores corresponding to each of the first prediction category information; Filter out the target prediction score with the largest value from all the prediction scores; Obtaining target prediction category information corresponding to the target prediction score; Using the target prediction category information as the prediction category information; The step of calculating the prediction score corresponding to each of the first prediction category information based on all the prediction probabilities includes: Acquire all designated prediction probabilities corresponding to second prediction category information from all the prediction probabilities; wherein the second prediction category information is any one of all the first prediction category information; Obtaining, from the target prediction model, model weights of fourth prediction models corresponding to the respective specified prediction probabilities; Performing weighted sum processing on each of the specified prediction probabilities based on the model weight to obtain a corresponding first sum value; The first sum value is used as a prediction score corresponding to the second prediction category information.
2. The model-based data prediction method according to claim 1, characterized in that: The step of acquiring, from the target prediction model, the model weights of the fourth prediction model corresponding to each of the specified prediction probabilities, comprises: Obtaining a specified prediction accuracy rate of a fifth prediction model; wherein the fifth prediction model is any one of all the fourth prediction models; Calculating a second sum of target prediction accuracy rates of all target prediction models; Calculating a ratio between the specified prediction accuracy and the second sum value; The ratio is used as the model weight of the fifth prediction model.
3. The model-based data prediction method according to claim 1, characterized in that: Before the step of obtaining a preset number of pre-trained prediction models and determining a target prediction model from all the prediction models according to a preset rule, the method includes: Obtaining a preset number of training sample sets; wherein each of the training sample sets includes a number of specified medical information and category label information corresponding to the specified medical information; Acquire a designated training sample set from the training sample set; wherein the designated training sample set is any sample set among all the training sample sets; Inputting the specified medical information in the specified training sample set into the input embedding layer in the preset initial model to obtain the corresponding specified medical vector; wherein the input embedding layer includes a type embedding layer and a value embedding layer; Inputting the designated medical vector in the input embedding layer into the middle layer of the initial model, performing data processing on the designated medical vector through the middle layer to generate a corresponding feature vector; Input the feature vector in the intermediate layer to the classification layer of the initial model, calculate the probability value of the feature vector belonging to the category label information corresponding to the input designated medical information through a preset function, and determine whether the preset loss function converges based on the probability value; If the loss function converges, the model training process is determined to be completed, and the obtained trained initial model is used as the prediction model corresponding to the specified training sample set.
4. A data prediction device based on a model, characterized in that: The method for implementing the model-based data prediction method according to any one of claims 1 to 3 comprises: A first acquisition module is used to acquire medical information of a target user; A first determination module is used to obtain a preset number of pre-trained prediction models, and determine a target prediction model from all the prediction models according to preset rules; wherein each of the prediction models is obtained by training based on a different training sample set, each of the training sample sets includes a number of specified medical information and category label information corresponding to the specified medical information, the number of the training sample sets is equal to the preset number, and the number of the target prediction models is multiple; A first generating module, used for inputting the medical information into the target prediction model, and generating prediction category information corresponding to the medical information through the target prediction model; A first judgment module, used to judge whether the predicted category information belongs to the specified category information; An extraction module, for extracting abnormal data from the medical information if it belongs to a specified category of information; A second generating module is used to input the abnormal data into a pre-trained medical advice recommendation model, and output a target medical advice corresponding to the abnormal data through the medical advice recommendation model; A push module is used to push the target medical consultation recommendation to the target user.
5. A computer device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Model-based data processing method and device, computer equipment and storage medium
CN112908473A
Data category determination method and apparatus, terminal device, and storage medium
WO2021159813A1
Cited By
Class prediction based on class accuracy of multiple models
US12353516B2
Class prediction based on class accuracy of multiple models
US20230153395A1
