A detection index prediction method, device, equipment and storage medium
Through information extraction and feature fusion of historical detection indicators, model training and parameter adjustment based on multiple time periods, the problem of the impact of dynamic changes in detection indicator prediction is solved, and the accuracy and efficiency of detection indicator prediction are improved.
Patent Information
- Application Number
- CN202410041556.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-11
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-01-11
AI Technical Summary
Existing detection index prediction methods have the problem of low accuracy in considering the dynamic changes of detection indicators, resulting in inaccurate prediction results.
By extracting information and features from users' historical detection indicators, integrating structured and unstructured feature data, training models based on historical detection indicators in multiple time periods, adjusting model parameters to consider dynamic changes in detection indicators, and performing detection indicators predict.
It improves the accuracy of detection indicator prediction, reduces the actual number of detections and economic expenditures, can more accurately predict changes in users' detection indicators, and provides timely preventive measures.
Smart Images

Figure CN117556265B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a detection index prediction method, device, equipment and storage medium. Background Art
[0002] Testing index prediction refers to a data analysis method that uses existing testing index data to predict future testing index data. In the context of digital development, the application of testing index prediction methods is becoming more and more widespread.
[0003] In actual application scenarios, future detection indicators can be predicted based on detection indicators of a certain period of time in the past. Since detection indicators may change over time, the current static prediction of future detection indicators based on detection indicators of a certain period of time in the past does not consider the impact of dynamic changes in detection indicators on the prediction results of detection indicators, which leads to the problem of low accuracy of existing detection indicator prediction methods. Summary of the invention
[0004] Based on the above problems, the present application provides a detection index prediction method, device, equipment and storage medium.
[0005] The embodiments of the present application disclose the following technical solutions:
[0006] First aspect: The present application provides a detection index prediction method, comprising:
[0007] Extracting information from a first historical detection indicator of a user to obtain a structured indicator corresponding to the first historical detection indicator and an unstructured indicator corresponding to the first historical detection indicator;
[0008] Performing feature extraction on a structured indicator corresponding to the first historical detection indicator and an unstructured indicator corresponding to the first historical detection indicator to obtain structured feature data corresponding to the structured indicator and unstructured feature data corresponding to the unstructured indicator;
[0009] Performing feature fusion on the structured feature data and the unstructured feature data, and training a prediction model based on the first feature data obtained by the feature fusion and the fourth historical detection index to obtain a first index prediction model;
[0010] Inputting the first historical detection indicator into the first indicator prediction model for prediction, obtaining a first historical prediction result and an intermediate layer output vector corresponding to the first indicator prediction model;
[0011] Based on the intermediate layer output vector corresponding to the first indicator prediction model, the first historical prediction result and the second historical detection indicator, adjusting the first model parameter of the first indicator prediction model to obtain the second model parameter, wherein the generation time of the second historical detection indicator is after the generation time of the first historical detection indicator and the fourth historical detection indicator;
[0012] The second historical detection index is input into the second index prediction model corresponding to the second model parameter, and the current detection index of the user is predicted to obtain a detection index prediction result.
[0013] In a possible implementation, the step of fusing the structured feature data and the unstructured feature data, and training a prediction model based on the first feature data obtained by the feature fusion and the fourth historical detection index to obtain a first index prediction model includes:
[0014] According to the dimension of the structured feature data, the dimension of the unstructured feature data is adjusted to obtain unstructured feature data after the dimension is adjusted;
[0015] The structured feature data and the unstructured feature data after the dimension adjustment are subjected to feature fusion, and a prediction model is trained based on the first feature data obtained by the feature fusion and the fourth historical detection index to obtain a first index prediction model.
[0016] In a possible implementation, adjusting the first model parameter of the first indicator prediction model based on the intermediate layer output vector corresponding to the first indicator prediction model, the first historical prediction result, and the second historical detection indicator to obtain the second model parameter includes:
[0017] Based on the intermediate layer output vector corresponding to the first indicator prediction model, the first historical prediction result and the third historical detection indicator, adjusting the first model parameter of the first indicator prediction model to obtain the third model parameter, the generation time of the third historical detection indicator is after the generation time of the first historical detection indicator and the fourth historical detection indicator, and the generation time of the third historical detection indicator is before the generation time of the second historical detection indicator;
[0018] Input the third historical detection indicator into the third indicator prediction model corresponding to the third model parameter, predict the second historical detection indicator of the user, and obtain the second historical prediction result and the intermediate layer output vector corresponding to the third indicator prediction model;
[0019] Based on the intermediate layer output vector corresponding to the third indicator prediction model, the second historical prediction result and the second historical detection indicator, the third model parameters of the third indicator prediction model are adjusted to obtain the second model parameters.
[0020] In a possible implementation, adjusting the first model parameter of the first indicator prediction model based on the intermediate layer output vector corresponding to the first indicator prediction model, the first historical prediction result, and the second historical detection indicator to obtain the second model parameter includes:
[0021] Comparing the first historical prediction result with the second historical detection index to obtain a prediction error;
[0022] Based on the intermediate layer output vector corresponding to the first indicator prediction model and the prediction error, the first model parameters of the first indicator prediction model are adjusted to obtain the second model parameters.
[0023] In a possible implementation, the detection index prediction result is represented by a preset field item.
[0024] Second aspect: The present application provides a detection index prediction device, comprising:
[0025] An information extraction unit, a feature extraction unit, a training unit, a first prediction unit, an adjustment unit, and a second prediction unit;
[0026] The information extraction unit is used to extract information from the first historical detection indicator of the user to obtain a structured indicator corresponding to the first historical detection indicator and an unstructured indicator corresponding to the first historical detection indicator;
[0027] The feature extraction unit is used to extract features of the structured indicator corresponding to the first historical detection indicator and the unstructured indicator corresponding to the first historical detection indicator to obtain structured feature data corresponding to the structured indicator and unstructured feature data corresponding to the unstructured indicator;
[0028] The training unit is used to perform feature fusion on the structured feature data and the unstructured feature data, and train the prediction model based on the first feature data and the fourth historical detection index obtained by the feature fusion to obtain a first index prediction model;
[0029] The first prediction unit is used to input the first historical detection indicator into the first indicator prediction model for prediction, and obtain a first historical prediction result and an intermediate layer output vector corresponding to the first indicator prediction model;
[0030] The adjustment unit is used to adjust the first model parameter of the first indicator prediction model based on the intermediate layer output vector corresponding to the first indicator prediction model, the first historical prediction result and the second historical detection indicator to obtain the second model parameter, and the generation time of the second historical detection indicator is after the generation time of the first historical detection indicator and the fourth historical detection indicator;
[0031] The second prediction unit is used to input the second historical detection index into a second index prediction model corresponding to the second model parameter, predict the current detection index of the user, and obtain a detection index prediction result.
[0032] In a possible implementation, the training unit includes: a dimension adjustment subunit and a training subunit;
[0033] The dimension adjustment subunit is used to adjust the dimension of the unstructured feature data according to the dimension of the structured feature data to obtain the unstructured feature data after the dimension is adjusted;
[0034] The training subunit is used to perform feature fusion on the structured feature data and the unstructured feature data after adjusting the dimension, and train the prediction model based on the first feature data and the fourth historical detection index obtained by the feature fusion to obtain a first index prediction model.
[0035] In a possible implementation, the adjusting unit includes:
[0036] A first model parameter adjustment subunit, a second historical detection index prediction subunit, and a third model parameter adjustment subunit;
[0037] The first model parameter adjustment subunit is used to adjust the first model parameter of the first indicator prediction model based on the intermediate layer output vector corresponding to the first indicator prediction model, the first historical prediction result and the third historical detection indicator to obtain the third model parameter, wherein the generation time of the third historical detection indicator is after the generation time of the first historical detection indicator and the fourth historical detection indicator, and the generation time of the third historical detection indicator is before the generation time of the second historical detection indicator;
[0038] The second historical detection indicator prediction subunit is used to input the third historical detection indicator into a third indicator prediction model corresponding to the third model parameter, predict the second historical detection indicator of the user, and obtain a second historical prediction result and an intermediate layer output vector corresponding to the third indicator prediction model;
[0039] The third model parameter adjustment subunit is used to adjust the third model parameters of the third indicator prediction model based on the intermediate layer output vector corresponding to the third indicator prediction model, the second historical prediction result and the second historical detection indicator to obtain the second model parameters.
[0040] In a possible implementation, the adjusting unit includes:
[0041] Alignment subunit and regulation subunit;
[0042] The comparison subunit is used to compare the first historical prediction result with the second historical detection index to obtain a prediction error;
[0043] The adjustment subunit is used to adjust the first model parameters of the first indicator prediction model based on the intermediate layer output vector corresponding to the first indicator prediction model and the prediction error to obtain the second model parameters.
[0044] In a possible implementation, the detection index prediction result is represented by a preset field item.
[0045] A third aspect: The present application provides an electronic device, the electronic device comprising: a processor and a memory;
[0046] The memory is used to store program code and transmit the program code to the processor;
[0047] The processor is used to execute the steps of the detection index prediction method as described above according to the instructions in the program code.
[0048] Fourth aspect: The present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of a detection index prediction method as described above are implemented.
[0049] Compared with the prior art, this application has the following beneficial effects:
[0050] The present application provides a detection index prediction method, apparatus, device and storage medium, which extract information from a first historical detection index of a user to obtain a structured index corresponding to the first historical detection index and an unstructured index corresponding to the first historical detection index; extract features from the structured index corresponding to the first historical detection index and the unstructured index corresponding to the first historical detection index to obtain structured feature data corresponding to the structured index and unstructured feature data corresponding to the unstructured index; perform feature fusion on the structured feature data and the unstructured feature data to obtain first feature data corresponding to the first historical detection index; perform model training based on the first feature data and the fourth historical detection index to obtain a first indicator prediction model; input the first historical detection index into the first indicator prediction model for prediction to obtain a first historical prediction result and an intermediate layer output vector corresponding to the first indicator prediction model; adjust the first model parameter of the first indicator prediction model based on the intermediate layer output vector corresponding to the first indicator prediction model, the first historical prediction result and the second historical detection index to obtain a second model parameter, and the generation time of the second historical detection index is after the generation time of the first historical detection index; input the second historical detection index into the second indicator prediction model corresponding to the second model parameter, predict the user's current detection index, and obtain a detection index prediction result. In this application, historical detection indicators based on multiple time periods are used, that is, a second indicator prediction model is obtained by model training based on the first historical detection indicator and the second historical detection indicator to predict the detection indicators. The dynamic changes of the detection indicators are taken into account, which can effectively improve the accuracy of the detection indicator prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0052] Figure 1 A flow chart of a detection index prediction method provided in an embodiment of the present application;
[0053] Figure 2 A schematic diagram of adjusting the dimension of feature data provided in an embodiment of the present application;
[0054] Figure 3 A schematic diagram of obtaining a second model parameter provided in an embodiment of the present application;
[0055] Figure 4 A schematic diagram of a detection index prediction model provided in an embodiment of the present application;
[0056] Figure 5 A schematic diagram of the structure of a detection index prediction device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0057] As described above, how to improve the accuracy of detection index prediction has become a technical problem that needs to be solved urgently by technical personnel in this field.
[0058] In actual application scenarios, future detection indicators can be predicted based on detection indicators of a certain period of time in the past. Since detection indicators may change over time, the current static prediction of future detection indicators based on detection indicators of a certain period of time in the past does not consider the impact of dynamic changes in detection indicators on the prediction results of detection indicators, which leads to the problem of low accuracy of existing detection indicator prediction methods.
[0059] For example, when many diseases occur, patients need to be treated within a limited time. In order to provide timely treatment for patients, the probability of the patient's disease can be predicted through the user's historical detection indicators so that corresponding preventive measures can be taken in advance.
[0060] Based on the current detection index prediction method, the detection index of the user in the near future or in the future can be predicted based on the detection index of the user in a certain period of time in the past. However, since the user's physical condition is constantly changing, for example, the user's physical condition was not good in a certain period of time in the past, but due to certain measures taken recently, the user's physical condition has improved. If only the detection index when the user's physical condition was not good is used to predict the user's recent probability of illness, the prediction process does not take into account the change that the user's physical condition has improved later, which leads to inaccurate detection index prediction results, and the detection index prediction results cannot provide effective reference for users.
[0061] Based on this, the present application provides a detection index prediction method, which uses historical detection indicators based on multiple time periods, that is, uses a second indicator prediction model obtained by model training based on a first historical detection indicator, a fourth historical detection indicator, and a second historical detection indicator to predict detection indicators, taking into account the dynamic changes of detection indicators, and can effectively improve the accuracy of detection indicator prediction. At the same time, the detection index prediction method provided by the present application can reduce the actual number of detection times of users, saving users' detection time and economic expenditure.
[0062] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0063] It should be noted that the user information and data involved in this application (including but not limited to the user's first historical detection indicators, second historical detection indicators, and data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0064] See also Figure 1 , which is a flow chart of a detection index prediction method provided in an embodiment of the present application, including S101-S106.
[0065] S101. Extract information from a first historical detection indicator of a user to obtain a structured indicator corresponding to the first historical detection indicator and an unstructured indicator corresponding to the first historical detection indicator.
[0066] Exemplarily, the user's first historical detection index, and the second historical detection index and the third historical detection index involved later may include data in the user's electronic medical record, examination report, etc. In one example, the user's first historical detection index, the second historical detection index, and the third historical detection index are indicators that can characterize the user's physical condition.
[0067] In the embodiment of the present application, the user's first historical detection index can be composed of structured index and unstructured index. Among them, the structured index can be index data represented in a certain format such as a table or a database; the unstructured index can be index data such as text, audio, video, or picture.
[0068] Taking the first historical detection indicator as the user's electronic medical record in the past period of time as an example, the unstructured indicator may include data in a magnetic resonance imaging (MRI) image report, and the structured indicator may include blood indicator examination data.
[0069] S102: Perform feature extraction on a structured indicator corresponding to the first historical detection indicator and an unstructured indicator corresponding to the first historical detection indicator to obtain structured feature data corresponding to the structured indicator and unstructured feature data corresponding to the unstructured indicator.
[0070] Exemplarily, for the unstructured indicator corresponding to the first historical detection indicator, a natural language processing model such as Bidirectional Encoder Representations from Transformers (BERT) can be used to extract features therefrom to obtain unstructured feature data.
[0071] S103: Fusing the structured feature data and the unstructured feature data, and training a prediction model based on the first feature data obtained by the feature fusion and the fourth historical detection index to obtain a first index prediction model.
[0072] After the structured feature data and the unstructured feature data are obtained, feature fusion may be performed by splicing the structured feature data and the unstructured feature data to obtain the first feature data.
[0073] Since unstructured feature data usually accounts for a large proportion, the prediction result may be biased towards the unstructured index due to its large proportion, resulting in inaccurate prediction results. In a possible implementation, the dimension of the unstructured feature data can be adjusted according to the dimension of the structured feature data to obtain the unstructured feature data after the dimension is adjusted. The structured feature data and the unstructured feature data after the dimension is adjusted are feature fused, and the prediction model is trained based on the first feature data obtained by the feature fusion and the fourth historical detection index to obtain a first index prediction model.
[0074] For example, Figure 2 As shown, the figure is a schematic diagram of adjusting the dimension of feature data provided by an embodiment of the present application. In the embodiment of the present application, a natural language processing model such as BERT can be used to vectorize the unstructured indicators. A layer of structure is added after the last layer of the natural language processing model, and the number of neurons N is determined according to the number of features of the structured feature data. N is a positive integer, and its value can fluctuate up and down, but it is at the same order of magnitude as the number of features of the structured feature data, to prevent the unstructured indicators from having too many features corresponding to the unstructured indicators, thereby reducing the accuracy of the prediction results of the detection indicators.
[0075] After obtaining the dimensionally adjusted unstructured feature data, the structured feature data and the dimensionally adjusted unstructured feature data may be concatenated to obtain first feature data corresponding to the first historical detection indicator.
[0076] S104: Input the first historical detection indicator into the first indicator prediction model for prediction, and obtain a first historical prediction result and an intermediate layer output vector corresponding to the first indicator prediction model.
[0077] Exemplarily, the first historical detection indicator may be a blood test and imaging report, and the fourth historical detection indicator may be a scoring indicator made at the same time as or shortly after the first historical detection indicator, such as the National Institute of Health Stroke Scale (NIHSS) score, etc. In the embodiment of the present application, the fourth historical detection indicator may be used as the output of the first indicator prediction model, and the feature data extracted based on the first historical detection indicator may be used as the input of the first indicator prediction model to train the parameters of the model, achieve parameter optimization, and obtain the second indicator prediction model.
[0078] S105. Based on the intermediate layer output vector corresponding to the first indicator prediction model, the first historical prediction result and the second historical detection indicator, adjust the first model parameters of the first indicator prediction model to obtain the second model parameters.
[0079] The generation time of the second historical detection indicator is after the generation time of the first historical detection indicator and the fourth historical detection indicator.
[0080] In a possible implementation, the first historical prediction result and the second historical detection index can be compared to obtain a prediction error; based on the intermediate layer output vector corresponding to the first index prediction model and the prediction error, the first model parameter of the first index prediction model is adjusted to obtain the second model parameter. Comparing the first historical prediction result and the second historical detection index is equivalent to comparing the prediction result with the actual real index data, thereby obtaining the prediction error to adjust the first model parameter.
[0081] In one example, the user's first historical detection index is the user's detection index 3 years ago, and the user's second historical detection index is the user's detection index 1 year ago. The detection index 3 years ago can be used as input to perform model training to obtain a first indicator prediction model. The detection index 3 years ago is input into the trained first indicator prediction model to obtain the intermediate layer output vector and the first historical prediction result of the first indicator prediction model. The first historical prediction result is compared with the detection index 1 year ago to obtain a prediction error, and based on the prediction error, the first model parameter of the first indicator prediction model can be adjusted to obtain the second model parameter.
[0082] For example, Figure 3As shown, this figure is a schematic diagram of obtaining the second model parameters provided by an embodiment of the present application. The user's first feature data is used as the input of the model, and the first indicator prediction model and the first historical prediction result corresponding to the first feature data are obtained through training. After obtaining the first indicator prediction model, the hidden layer before the Rectifying Linear Units (Relu) in the first indicator prediction model when the training is completed can be taken out, that is, the output vector of the intermediate layer.
[0083] The first model parameters of the first indicator prediction model can be adjusted based on the intermediate layer output vector of the first indicator prediction model, the first historical prediction result and the second historical detection indicator of the user to obtain the second model parameters, which correspond to the second indicator prediction model.
[0084] like Figure 4 As shown, this figure is a schematic diagram of a detection index prediction model provided in an embodiment of the present application. In the embodiment of the present application, based on the intermediate layer output vector of the first index prediction model, the first historical prediction result and the second historical detection index of the user, the first model parameter of the first index prediction model is adjusted to obtain the second model parameter. After obtaining the second model parameter, S106 can be executed, the second historical detection index can be input into the second index prediction model corresponding to the second model parameter, the current detection index of the user can be predicted, and the detection index prediction result can be obtained.
[0085] In a possible implementation, the test index prediction result is represented by a preset field item, such as the test index of the user after a period of time, or scores in various aspects, such as NIHSS scores, etc.
[0086] Taking the user's first historical detection indicator as the user's detection indicator three years ago and the user's second historical detection indicator as the user's detection indicator one year ago as an example, the second model parameter is obtained by adjusting the first model parameter based on the user's detection indicator three years ago and the user's detection indicator one year ago. When the user's detection indicator one year ago is input into the second indicator prediction model corresponding to the second model parameter, the dynamic changes of the user's detection indicator are taken into account in the process of detecting the indicator prediction. Therefore, the detection indicator prediction result obtained based on the second indicator prediction model can be more accurate.
[0087] It should be noted that, in the present application, the first model parameter can be adjusted based on the historical detection indicators of multiple time periods to obtain the adjusted second model parameter. The number of time periods is not specifically limited in the present application. For example, the detection indicator prediction can be performed based on the historical detection indicators of at least two time periods in the present application. At the same time, the intervals between different time periods are not specifically limited in the present application.
[0088] It is understandable that the above description is only based on the user's detection indicators 1 year ago and 3 years ago. Exemplarily, in this application, detection indicator prediction can be performed based on the user's detection indicators 1 month ago and 1 year ago, or based on the user's detection indicators 1 month ago, 3 months ago, and 1 year ago. This application does not specifically limit this.
[0089] In a possible implementation, the first model parameters of the first indicator prediction model can be adjusted based on the intermediate layer output vector corresponding to the first indicator prediction model, the first historical prediction result and the third historical detection indicator to obtain the third model parameters.
[0090] The generation time of the third historical detection indicator is after the generation time of the first historical detection indicator and the fourth historical detection indicator, and the generation time of the third historical detection indicator is before the generation time of the second historical detection indicator.
[0091] After obtaining the third model parameters through adjustment, the third historical detection indicator can be input into the third indicator prediction model corresponding to the third model parameter, and the second historical detection indicator of the user can be predicted to obtain the second historical prediction result and the intermediate layer output vector corresponding to the third indicator prediction model; based on the intermediate layer output vector corresponding to the third indicator prediction model, the second historical prediction result and the second historical detection indicator, the third model parameter of the third indicator prediction model is adjusted to obtain the second model parameter.
[0092] Exemplarily, the second historical detection index of the user may be the detection index of the user 5 years ago, the third historical detection index may be the detection index of the user 3 years ago, and the first historical detection index of the user may be the detection index of the user 1 year ago.
[0093] In this case, the detection index 5 years ago can be used as input to perform model training to obtain the first indicator prediction model. The detection index 5 years ago is input into the trained first indicator prediction model to obtain the detection index prediction result corresponding to the detection data 5 years ago, that is, the first historical prediction result. Based on the intermediate layer output vector of the first indicator prediction model and the detection index 3 years ago, as well as the first historical prediction result, the first model parameter of the first indicator prediction model can be adjusted to obtain the third model parameter. Model training is performed based on the third model parameter to obtain the third indicator prediction model.
[0094] By inputting the detection index 3 years ago into the third index prediction model, the detection index prediction result corresponding to the detection index 3 years ago can be obtained, that is, the second historical prediction result. Based on the historical prediction result, the intermediate layer output vector of the third index prediction model and the detection index 1 year ago, the third model parameters can be adjusted to obtain the second model parameters.
[0095] By inputting the detection index one year ago into the second index prediction model corresponding to the second model parameter, the current detection index of the user can be predicted to obtain the detection index prediction result.
[0096] At this time, the second indicator prediction model is trained based on the detection indicators 5 years ago, 3 years ago and 1 year ago. In the process of inputting the detection indicators 1 year ago into the second indicator prediction model for detection indicator prediction, the dynamic changes of the user's detection indicators are taken into account. Therefore, the detection indicator prediction results obtained based on the second indicator prediction model can be more accurate. Based on the detection indicator prediction results, the direction of change of the user's detection indicators in the near future or in the future and the degree of possible changes can be understood, so that relevant measures can be taken in advance.
[0097] In an embodiment of the present application, the detection indicators of the user in the near future or in the future can be predicted based on the detection indicators of the user in multiple different time periods. The more time periods taken, the more accurate the detection indicator prediction results obtained.
[0098] In summary, the present application provides a detection index prediction method, which uses historical detection indicators based on multiple time periods, that is, uses a second indicator prediction model obtained by model training based on a first historical detection indicator and a second historical detection indicator to predict detection indicators, taking into account the dynamic changes of detection indicators, and can effectively improve the accuracy of detection indicator prediction. At the same time, based on the detection indicator prediction method provided by the present application, the actual number of detection times of users can be reduced, saving users' detection time and economic expenditure.
[0099] In the application scenario of predicting the probability of a user's illness, based on the user's detection indicators at different stages, dynamic prediction of the user's status can be achieved, improving the accuracy of the detection indicator prediction results, making it easier to understand the direction and degree of possible changes in the user's condition, so as to take corresponding measures in advance and assist the user in improving his condition.
[0100] This application provides a detection index prediction device, see Figure 5 , this figure is a structural schematic diagram of a detection index prediction device provided in an embodiment of the present application. Its specific implementation method is consistent with the implementation method and the technical effect achieved in the embodiment of the above method, and some contents will not be repeated here.
[0101] The present application provides a detection index prediction device 1100, comprising:
[0102] An information extraction unit 1101, a feature extraction unit 1102, a training unit 1103, a first prediction unit 1104, an adjustment unit 1105, and a second prediction unit 1106;
[0103] The information extraction unit 1101 is used to extract information from a first historical detection indicator of a user to obtain a structured indicator corresponding to the first historical detection indicator and an unstructured indicator corresponding to the first historical detection indicator;
[0104] The feature extraction unit 1102 is used to extract features from the structured indicator corresponding to the first historical detection indicator and the unstructured indicator corresponding to the first historical detection indicator to obtain structured feature data corresponding to the structured indicator and unstructured feature data corresponding to the unstructured indicator;
[0105] The training unit 1103 is used to perform feature fusion on the structured feature data and the unstructured feature data, and train the prediction model based on the first feature data and the fourth historical detection index obtained by the feature fusion to obtain a first index prediction model;
[0106] The first prediction unit 1104 is used to input the first historical detection indicator into the first indicator prediction model for prediction, and obtain a first historical prediction result and an intermediate layer output vector corresponding to the first indicator prediction model;
[0107] The adjusting unit 1105 is used to adjust the first model parameter of the first indicator prediction model based on the intermediate layer output vector corresponding to the first indicator prediction model, the first historical prediction result and the second historical detection indicator to obtain the second model parameter, and the generation time of the second historical detection indicator is after the generation time of the first historical detection indicator and the fourth historical detection indicator;
[0108] The second prediction unit 1106 is used to input the second historical detection index into the second index prediction model corresponding to the second model parameter, predict the current detection index of the user, and obtain a detection index prediction result.
[0109] In a possible implementation, the training unit includes: a dimension adjustment subunit and a training subunit;
[0110] The dimension adjustment subunit is used to adjust the dimension of the unstructured feature data according to the dimension of the structured feature data to obtain the unstructured feature data after the dimension is adjusted;
[0111] The training subunit is used to perform feature fusion on the structured feature data and the unstructured feature data after adjusting the dimension, and train the prediction model based on the first feature data and the fourth historical detection index obtained by the feature fusion to obtain a first index prediction model.
[0112] In a possible implementation, the adjusting unit includes:
[0113] A first model parameter adjustment subunit, a second historical detection index prediction subunit, and a third model parameter adjustment subunit;
[0114] The first model parameter adjustment subunit is used to adjust the first model parameter of the first indicator prediction model based on the intermediate layer output vector corresponding to the first indicator prediction model, the first historical prediction result and the third historical detection indicator to obtain the third model parameter, wherein the generation time of the third historical detection indicator is after the generation time of the first historical detection indicator and the fourth historical detection indicator, and the generation time of the third historical detection indicator is before the generation time of the second historical detection indicator;
[0115] The second historical detection indicator prediction subunit is used to input the third historical detection indicator into a third indicator prediction model corresponding to the third model parameter, predict the second historical detection indicator of the user, and obtain a second historical prediction result and an intermediate layer output vector corresponding to the third indicator prediction model;
[0116] The third model parameter adjustment subunit is used to adjust the third model parameters of the third indicator prediction model based on the intermediate layer output vector corresponding to the third indicator prediction model, the second historical prediction result and the second historical detection indicator to obtain the second model parameters.
[0117] In a possible implementation, the adjusting unit includes:
[0118] Alignment subunit and regulation subunit;
[0119] The comparison subunit is used to compare the first historical prediction result with the second historical detection index to obtain a prediction error;
[0120] The adjustment subunit is used to adjust the first model parameters of the first indicator prediction model based on the intermediate layer output vector corresponding to the first indicator prediction model and the prediction error to obtain the second model parameters.
[0121] In a possible implementation, the detection index prediction result is represented by a preset field item.
[0122] In summary, the device provided by the present application uses historical detection indicators based on multiple time periods, that is, uses the second indicator prediction model obtained by model training based on the first historical detection indicator and the second historical detection indicator to predict the detection indicators, taking into account the dynamic changes of the detection indicators, and can effectively improve the accuracy of the detection indicator prediction. At the same time, the detection indicator prediction device provided by the present application can reduce the actual number of detection times of the user, saving the user's detection time and economic expenditure.
[0123] The present application provides an electronic device, the electronic device comprising: a processor and a memory;
[0124] The memory is used to store program code and transmit the program code to the processor;
[0125] The processor is used to execute the steps of the detection index prediction method as described above according to the instructions in the program code.
[0126] The present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of a detection index prediction method as described above are implemented.
[0127] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A detection index prediction method, characterized in that: include: Extracting information from a first historical detection indicator of a user to obtain a structured indicator corresponding to the first historical detection indicator and an unstructured indicator corresponding to the first historical detection indicator; Performing feature extraction on a structured indicator corresponding to the first historical detection indicator and an unstructured indicator corresponding to the first historical detection indicator to obtain structured feature data corresponding to the structured indicator and unstructured feature data corresponding to the unstructured indicator; Performing feature fusion on the structured feature data and the unstructured feature data, and training a prediction model based on the first feature data obtained by the feature fusion and the fourth historical detection index to obtain a first index prediction model; Inputting the first historical detection indicator into the first indicator prediction model for prediction, obtaining a first historical prediction result and an intermediate layer output vector corresponding to the first indicator prediction model; Based on the intermediate layer output vector corresponding to the first indicator prediction model, the first historical prediction result and the second historical detection indicator, adjusting the first model parameter of the first indicator prediction model to obtain the second model parameter, wherein the generation time of the second historical detection indicator is after the generation time of the first historical detection indicator and the fourth historical detection indicator; Inputting the second historical detection index into a second index prediction model corresponding to the second model parameter, predicting the current detection index of the user, and obtaining a detection index prediction result; The step of fusing the structured feature data and the unstructured feature data, and training the prediction model based on the first feature data and the fourth historical detection index obtained by the feature fusion to obtain the first index prediction model includes: According to the dimension of the structured feature data, the dimension of the unstructured feature data is adjusted to obtain unstructured feature data after the dimension is adjusted; Performing feature fusion on the structured feature data and the unstructured feature data after the dimension adjustment, and training a prediction model based on the first feature data obtained by the feature fusion and the fourth historical detection index to obtain a first index prediction model; The adjusting of the first model parameters of the first indicator prediction model based on the intermediate layer output vector corresponding to the first indicator prediction model, the first historical prediction result and the second historical detection indicator to obtain the second model parameters includes: Based on the intermediate layer output vector corresponding to the first indicator prediction model, the first historical prediction result and the third historical detection indicator, adjusting the first model parameter of the first indicator prediction model to obtain the third model parameter, the generation time of the third historical detection indicator is after the generation time of the first historical detection indicator and the fourth historical detection indicator, and the generation time of the third historical detection indicator is before the generation time of the second historical detection indicator; Input the third historical detection indicator into the third indicator prediction model corresponding to the third model parameter, predict the second historical detection indicator of the user, and obtain the second historical prediction result and the intermediate layer output vector corresponding to the third indicator prediction model; Based on the intermediate layer output vector corresponding to the third indicator prediction model, the second historical prediction result and the second historical detection indicator, the third model parameters of the third indicator prediction model are adjusted to obtain the second model parameters.
2. The method according to claim 1, characterized in that The detection index prediction result is represented by a preset field item.
3. A detection index prediction device, characterized in that: include: An information extraction unit, a feature extraction unit, a training unit, a first prediction unit, an adjustment unit, and a second prediction unit; The information extraction unit is used to extract information from the first historical detection indicator of the user to obtain a structured indicator corresponding to the first historical detection indicator and an unstructured indicator corresponding to the first historical detection indicator; The feature extraction unit is used to extract features of the structured indicator corresponding to the first historical detection indicator and the unstructured indicator corresponding to the first historical detection indicator to obtain structured feature data corresponding to the structured indicator and unstructured feature data corresponding to the unstructured indicator; The training unit is used to perform feature fusion on the structured feature data and the unstructured feature data, and train the prediction model based on the first feature data and the fourth historical detection index obtained by the feature fusion to obtain a first index prediction model; The first prediction unit is used to input the first historical detection indicator into the first indicator prediction model for prediction, and obtain a first historical prediction result and an intermediate layer output vector corresponding to the first indicator prediction model; The adjustment unit is used to adjust the first model parameter of the first indicator prediction model based on the intermediate layer output vector corresponding to the first indicator prediction model, the first historical prediction result and the second historical detection indicator to obtain the second model parameter, and the generation time of the second historical detection indicator is after the generation time of the first historical detection indicator and the fourth historical detection indicator; The second prediction unit is used to input the second historical detection index into a second index prediction model corresponding to the second model parameter, predict the current detection index of the user, and obtain a detection index prediction result; Wherein, the training unit comprises: a dimension adjustment subunit and a training subunit; The dimension adjustment subunit is used to adjust the dimension of the unstructured feature data according to the dimension of the structured feature data to obtain the unstructured feature data after the dimension is adjusted; The training subunit is used to perform feature fusion on the structured feature data and the unstructured feature data after the dimension adjustment, and train the prediction model based on the first feature data and the fourth historical detection index obtained by the feature fusion to obtain a first index prediction model; Wherein, the adjustment unit comprises: A first model parameter adjustment subunit, a second historical detection index prediction subunit, and a third model parameter adjustment subunit; The first model parameter adjustment subunit is used to adjust the first model parameter of the first indicator prediction model based on the intermediate layer output vector corresponding to the first indicator prediction model, the first historical prediction result and the third historical detection indicator to obtain the third model parameter, wherein the generation time of the third historical detection indicator is after the generation time of the first historical detection indicator and the fourth historical detection indicator, and the generation time of the third historical detection indicator is before the generation time of the second historical detection indicator; The second historical detection indicator prediction subunit is used to input the third historical detection indicator into a third indicator prediction model corresponding to the third model parameter, predict the second historical detection indicator of the user, and obtain a second historical prediction result and an intermediate layer output vector corresponding to the third indicator prediction model; The third model parameter adjustment subunit is used to adjust the third model parameters of the third indicator prediction model based on the intermediate layer output vector corresponding to the third indicator prediction model, the second historical prediction result and the second historical detection indicator to obtain the second model parameters.
4. An electronic device, characterized in that: The electronic device comprises: a processor and a memory; The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the steps of a detection index prediction method as described in any one of claims 1-2 according to the instructions in the program code.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of a detection index prediction method according to any one of claims 1 to 2 are implemented.
