Data processing method and device, computer equipment and readable storage medium
By constructing an inspection item data set and a user data set, and using multiple prediction sub-models for stacking and integration processing, the problem of low inspection time accuracy in the existing technology is solved, and a more accurate inspection time prediction and personalized appointment experience are achieved. Improved resource utilization efficiency.
Patent Information
- Application Number
- CN202410636540.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-09-06
AI Technical Summary
Existing data processing methods have the problem of low accuracy when determining the inspection time of the user to be inspected, because the inspection time between different users is greatly different, resulting in inaccurate use of historical inspection time as the inspection time.
Using a method based on prediction models, by constructing inspection item data sets and user data sets, multiple prediction sub-models are used for stacked integration processing to determine the inspection time of the user to be inspected, taking into account the user's personalized differences, and improving accuracy.
It improves the accuracy of the inspection time of users to be inspected, enhances the accuracy of data processing methods, provides a more personalized reservation strategy, reduces user waiting time, and optimizes resource utilization.
Smart Images

Figure CN118609772A
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical technology, and in particular to a data processing method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] With the rapid development of medical technology, medical examinations have become more and more complex and sophisticated. In order to ensure the full utilization of medical resources, reduce the waiting time of users to be examined, and improve the medical experience, it is necessary to use data processing methods to determine the examination time of each examination item for the user to be examined, and then make an appointment for the examination item based on the examination time.
[0003] The current data processing method obtains the historical inspection time set of each inspection item corresponding to the user to be inspected, and performs mean processing on each historical inspection time set to obtain the mean historical inspection time of each inspection item. Then, the mean historical inspection time of each inspection item is determined as the inspection time of the inspection item, and the inspection time of the user to be inspected is determined by the sum of the inspection times of each inspection item.
[0004] However, in the current data processing method, there are large differences in the inspection time between different users to be inspected, and it is inaccurate to use the historical inspection time as the inspection time, which leads to inaccurate inspection time of the user to be inspected. Therefore, the accuracy of the current data processing method is low. Summary of the invention
[0005] Based on this, it is necessary to provide a data processing method, apparatus, computer device, computer-readable storage medium and computer program product to address the above technical issues.
[0006] In a first aspect, the present application provides a data processing method, comprising:
[0007] Obtain user data and inspection items of the user to be inspected;
[0008] constructing an inspection item data set based on the inspection item, the number of the inspection items and the user data;
[0009] The inspection time of the user to be inspected is determined based on the prediction model and the inspection item data set; the prediction model includes multiple prediction sub-models, and the position of the prediction sub-model in the prediction model is determined based on the prediction deviation rate of the prediction sub-model; the inspection item data set is processed through multiple prediction sub-models in sequence based on the position of the prediction model to obtain the inspection time of the user to be inspected.
[0010] In one embodiment, constructing the inspection item data set based on the inspection items, the number of the inspection items and the user data includes:
[0011] If the number of the inspection items is 1, an inspection item data subset is constructed according to the user data and the inspection items, and the inspection item data subset is determined to be an inspection item data set.
[0012] In one embodiment, constructing the inspection item data set based on the inspection items, the number of the inspection items and the user data includes:
[0013] If the number of the inspection items is not 1, the inspection items are combined according to the preset constraint conditions to obtain inspection item groups;
[0014] Combining each of the inspection item groups with the user data to obtain each of the inspection item data subsets;
[0015] Combining each of the inspection items and the user data to obtain a data subset of each inspection item;
[0016] An inspection item data set is constructed according to each of the inspection item data subsets.
[0017] In one of the embodiments, before determining the inspection time of the user to be inspected based on the prediction model and the inspection item data set, the method further includes:
[0018] Acquire a historical data sample set; the historical data sample set includes a training sample set and a verification sample set;
[0019] Training each preset machine learning model according to the training sample set to obtain each trained machine learning model;
[0020] The prediction deviation rate of each of the trained machine learning models is determined according to the verification sample set, and a prediction model is constructed based on each of the prediction deviation rates and each of the trained machine learning models.
[0021] In one embodiment, determining the prediction deviation rate of each of the trained machine learning models according to the validation sample set, and constructing a prediction model based on each of the prediction deviation rates and each of the trained machine learning models, includes:
[0022] For each of the trained machine learning models, prediction processing is performed on the feature data sample set of each user in the verification sample set based on the trained machine learning model to obtain the predicted inspection time of each of the inspection items of each of the users;
[0023] According to the deviation rate algorithm, data processing is performed on each of the predicted inspection times and the historical inspection time of each of the inspection items in the verification sample set to obtain a prediction deviation rate of the trained machine learning model;
[0024] According to a preset number of predictions and a prediction deviation rate of each trained machine learning model, each trained machine learning model is screened to obtain each prediction sub-model;
[0025] The order of the prediction sub-models is determined according to the prediction deviation rate of each prediction sub-model from low to high, and each prediction sub-model is stacked and integrated to obtain a prediction model.
[0026] In one embodiment, determining the inspection time of the user to be inspected based on the prediction model and the inspection item data set includes:
[0027] For each inspection item data subset in the inspection item data set, prediction processing is performed on the inspection item data subset by each prediction sub-model in the prediction model to obtain a prediction time of the inspection item data subset;
[0028] Taking the full amount of inspection items of the user to be inspected as the target, combining the item data subsets to obtain the item data subset groups;
[0029] For each of the item data subset groups, the inspection time of the item data subset group is determined according to the predicted time of inspecting the item data subset in the item data subset group, and the inspection time is determined as the inspection time of the user to be inspected.
[0030] In one embodiment, the prediction model includes a first prediction sub-model, a second prediction sub-model and a third prediction sub-model, and for each inspection item data subset in the inspection item data set, performing prediction processing on the inspection item data subset by each of the prediction sub-models in the prediction model to obtain the prediction time of the inspection item data subset includes:
[0031] For each inspection item data subset in the inspection item data set, performing prediction processing on the inspection item data subset based on the first prediction sub-model to obtain a first prediction time;
[0032] Performing prediction processing on the inspection item data subset and the first prediction time by using the second prediction sub-model to obtain a second prediction time;
[0033] The inspection item data subset and the second prediction time are predicted by the third prediction sub-model to obtain a third prediction time, and the third prediction time is determined as the inspection time of the inspection item data subset.
[0034] In a second aspect, the present application further provides a data processing device, comprising:
[0035] The acquisition module is used to obtain the user data and inspection items of the user to be inspected;
[0036] A construction module, configured to construct an inspection item data set based on the inspection item, the number of the inspection items and the user data;
[0037] A determination module is used to determine the inspection time of the user to be inspected based on the prediction model and the inspection item data set; the prediction model includes multiple prediction sub-models, and the position of the prediction sub-model in the prediction model is determined based on the prediction deviation rate of the prediction sub-model; the inspection item data set is processed in sequence through multiple prediction sub-models based on the position of the prediction model to obtain the inspection time of the inspected user.
[0038] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0039] Obtain user data and inspection items of the user to be inspected;
[0040] constructing an inspection item data set based on the inspection item, the number of the inspection items and the user data;
[0041] The inspection time of the user to be inspected is determined based on the prediction model and the inspection item data set; the prediction model includes multiple prediction sub-models, and the position of the prediction sub-model in the prediction model is determined based on the prediction deviation rate of the prediction sub-model; the inspection item data set is processed through multiple prediction sub-models in sequence based on the position of the prediction model to obtain the inspection time of the user to be inspected.
[0042] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0043] Obtain user data and inspection items of the user to be inspected;
[0044] constructing an inspection item data set based on the inspection item, the number of the inspection items and the user data;
[0045] The inspection time of the user to be inspected is determined based on the prediction model and the inspection item data set; the prediction model includes multiple prediction sub-models, and the position of the prediction sub-model in the prediction model is determined based on the prediction deviation rate of the prediction sub-model; the inspection item data set is processed through multiple prediction sub-models in sequence based on the position of the prediction model to obtain the inspection time of the user to be inspected.
[0046] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0047] Obtain user data and inspection items of the user to be inspected;
[0048] constructing an inspection item data set based on the inspection item, the number of the inspection items and the user data;
[0049] The inspection time of the user to be inspected is determined based on the prediction model and the inspection item data set; the prediction model includes multiple prediction sub-models, and the position of the prediction sub-model in the prediction model is determined based on the prediction deviation rate of the prediction sub-model; the inspection item data set is processed through multiple prediction sub-models in sequence based on the position of the prediction model to obtain the inspection time of the user to be inspected.
[0050] The above-mentioned data processing method, apparatus, computer equipment, computer-readable storage medium and computer program product obtain user data and inspection items of the user to be inspected; construct an inspection item data set based on the inspection items, the number of inspection items and the user data; determine the inspection time of the user to be inspected based on the prediction model and the inspection item data set; the prediction model includes multiple prediction sub-models, and the position of the prediction sub-model in the prediction model is determined based on the prediction deviation rate of the prediction sub-model; the inspection item data set is processed by multiple prediction sub-models in sequence based on the position of the prediction model to obtain the inspection time of the inspected user. According to this method, an inspection item data set is constructed based on the number of inspection items, user data and inspection items, and an inspection item data set representing the personalized information of the user to be inspected is obtained. The inspection item data containing the personalized information of the user to be inspected is processed by the prediction model to obtain the inspection time of the user to be inspected, and the personalized differences of the users to be inspected are taken into account, thereby improving the accuracy of the inspection time of the users to be inspected, thereby improving the accuracy of the data processing method. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions 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 related drawings can be obtained based on these drawings without paying creative work.
[0052] FIG1 is a schematic flow chart of a data processing method in one embodiment;
[0053] FIG2 is a schematic diagram of a process for constructing an inspection item data set in one embodiment;
[0054] FIG3 is a schematic diagram of a process for training a machine learning model in one embodiment;
[0055] FIG4 is a schematic diagram of a process for constructing a prediction model in one embodiment;
[0056] FIG5 is a schematic diagram of a process of determining a check time for a user to be checked in one embodiment;
[0057] FIG6 is a comparison diagram of the inspection time of the prior art and the inspection time obtained by the data processing method in one embodiment;
[0058] FIG7 is a schematic diagram of a process for processing a subset of inspection item data in one embodiment;
[0059] FIG8 is a schematic diagram of data changes in a data processing method according to an embodiment;
[0060] FIG9 is a schematic diagram of the architecture of a reservation system in one embodiment;
[0061] FIG10 is a block diagram of a data processing device in one embodiment;
[0062] FIG. 11 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0063] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. 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.
[0064] In one embodiment, as shown in FIG. 1 , a data processing method is provided. The embodiment of the present application takes the method applied to a computer device as an example for explanation. The embodiment of the present application does not limit the execution device of the data processing method, and includes the following steps 102 to 106:
[0065] Step 102: Obtain user data and inspection items of the user to be inspected.
[0066] The user data is the characteristic data of the user to be checked, and the inspection items are the items that the user to be checked needs to check.
[0067] In implementation, the computer device obtains the user data of the user to be checked and the check items of the user to be checked. If there are multiple users to be checked, the computer device obtains the user data and check items of each user to be checked.
[0068] In an exemplary embodiment, when a user needs to make an appointment, the user initiates an appointment request to a computer device. In response to the appointment request, the computer device displays an appointment template. The appointment template includes a user template and an inspection item template, and the inspection item template includes various candidate inspection items. The user determines the user data of the user to be inspected based on the user template, and determines the inspection item in the various candidate inspection items of the inspection item template. The computer device obtains the user data and the inspection item of the user to be inspected.
[0069] Optionally, the user data includes, but is not limited to, the age, gender, and disease characteristic data of the user to be examined. The examination items are medical items, such as X-rays, CT (Computed Tomography), etc. The embodiment of the present application does not limit the user data and examination items.
[0070] Step 104 : constructing an inspection item data set based on the inspection items, the number of inspection items and user data.
[0071] The number of inspection items is a natural number and is greater than or equal to 1.
[0072] In implementation, the computer device determines whether the number of inspection items is equal to 1. If the number of inspection items is equal to 1, the computer device constructs an inspection item data set based on the inspection items and the user data. If the number of inspection items is greater than 1, the computer device constructs each inspection item group based on each inspection item. Then, the computer device constructs an inspection item data set based on each inspection item group, each inspection item and the user data.
[0073] Step 106: Determine the examination time of the user to be examined based on the prediction model and the examination item data set.
[0074] The prediction model includes multiple prediction sub-models, and the position of the prediction sub-model in the prediction model is determined based on the prediction deviation rate of the prediction sub-model; the inspection item data set is processed by multiple prediction sub-models in sequence based on the position of the prediction model to obtain the inspection time of the user to be inspected. The prediction deviation rate represents the prediction accuracy of the prediction sub-model. The higher the prediction deviation rate, the lower the accuracy of the prediction sub-model; the lower the prediction deviation rate, the higher the accuracy of the prediction sub-model.
[0075] In implementation, each machine learning model is pre-set in the computer device. The computer device obtains a historical data sample set, and determines the prediction deviation rate of each machine learning model based on the historical data sample set. Then, the computer device determines each prediction sub-model in each machine learning model according to the prediction deviation rate, and determines the order of each prediction sub-model in the order of prediction deviation rate from low to high. The computer device stacks and integrates each prediction sub-model in the order of each prediction sub-model to obtain a prediction model. Then, the computer device processes the inspection item data set through each prediction sub-model according to the position of the prediction model to obtain the inspection time of the user to be inspected.
[0076] In the above data processing method, an inspection item data set is constructed based on the number of inspection items, user data and inspection items, and an inspection item data set representing the personalized information of the user to be inspected is obtained. The inspection item data containing the personalized information of the user to be inspected is processed by a prediction model to obtain the inspection time of the user to be inspected. The personalized differences of the users to be inspected are taken into account, and the accuracy of the inspection time of the users to be inspected is improved, thereby improving the accuracy of the data processing method.
[0077] In an exemplary embodiment, as shown in FIG2 , the specific processing process of step 104 includes:
[0078] If the number of inspection items is 1, an inspection item data subset is constructed according to the user data and the inspection items, and the inspection item data subset is determined to be an inspection item data set.
[0079] In implementation, the computer device determines whether the number of inspection items is 1. If the number of inspection items is 1, the computer device combines the user data and the inspection items to obtain an inspection item data set for the inspection item. Then, the computer device determines the inspection item data subset as the inspection item data set.
[0080] In this embodiment, when the number of inspection items is 1, an inspection item data set is constructed based on user data and inspection items, and an inspection item data set containing user personalized information is obtained, which facilitates the subsequent determination of the inspection duration based on the inspection item data set.
[0081] In an exemplary embodiment, as shown in FIG2 , the specific processing process of step 104 includes steps 202 to 208. Among them:
[0082] Step 202: If the number of inspection items is not 1, combine the inspection items according to preset constraints to obtain inspection item groups.
[0083] In implementation, a constraint condition is pre-set in the computer device. The constraint condition is used to constrain whether each inspection item can be combined. If the number of inspection items is not 1, the computer device determines that the number of inspection items is greater than 1. Then, the computer device combines each inspection item according to the number of inspection items and the preset constraint condition to obtain each inspection item group.
[0084] Specifically, the computer device combines the inspection items according to the number of the inspection items to obtain the initial inspection item groups. Then, the computer device screens the initial inspection item groups according to the preset constraint conditions to obtain the inspection item groups.
[0085] In an exemplary embodiment, the inspection items are A, B, C, and D. The constraint conditions are that A and B cannot be combined, and C and D cannot be combined. The computer device combines inspection item A with inspection items B, C, and D respectively for inspection item A to obtain initial inspection item groups AB, AC, AD, ABC, ABD, ACD, and ABCD. The computer device screens the initial inspection item groups according to the preset constraint conditions to obtain inspection item groups AC and AD. Then, the computer device combines inspection item B with inspection items C and D for inspection item B to obtain initial inspection item groups BC, BD, and BCD. Then, the computer device screens the initial inspection item groups based on the preset constraint conditions to obtain inspection item groups BC and BD. The computer device combines inspection item C with inspection item D for inspection item C to obtain initial inspection item group CD. Then, the computer device screens the initial inspection item groups based on the constraint conditions. The inspection item groups obtained by the computer device are AC, AD, BD, and BC.
[0086] Step 204: Combine each inspection item group and user data to obtain each inspection item data subset.
[0087] In implementation, the computer device combines the user data with each inspection item group to obtain an inspection item data subset corresponding to each inspection item group.
[0088] Step 206: Combine each inspection item and user data to obtain a data subset of each inspection item.
[0089] In implementation, the computer device combines the user data with each inspection item to obtain an inspection item data subset corresponding to each inspection item.
[0090] Step 208: construct an inspection item data set according to each inspection item data subset.
[0091] In implementation, the computer device constructs the inspection item data set according to each inspection item data subset.
[0092] In this embodiment, when the number of inspection items is greater than 1, an inspection item group is constructed based on each inspection item, and then the inspection time of the inspection item data set corresponding to the inspection item group is determined, which provides a more flexible combination, facilitates subsequent appointment strategies, and improves user experience. In addition, the inspection item data set is constructed based on the inspection items and user data, which facilitates the subsequent prediction of the inspection time based on the user data of the user to be inspected and the specific needs of the inspection items, taking into account individual differences and providing a more personalized appointment experience. Then, based on the personalized inspection time, a more accurate appointment strategy is provided for the user to be inspected, so that the user can more accurately predict the start and end time of the inspection, which improves the user experience.
[0093] In an exemplary embodiment, before determining the inspection time based on the prediction model, it is necessary to first determine each prediction sub-model and construct the prediction model based on each prediction sub-model. As shown in FIG3 , before step 106 is executed, the specific processing process of the data processing method also includes steps 302 to 306. Among them:
[0094] Step 302, obtaining a historical data sample set.
[0095] Among them, the historical data sample set includes a training sample set and a verification sample set.
[0096] The characteristic data sample set includes each inspection item of the user and the historical inspection time corresponding to each inspection item;
[0097] In implementation, the computer device obtains an initial historical data set of each user, and performs data processing on each initial historical data set to obtain a characteristic data sample set of each user.
[0098] In an exemplary embodiment, a computer device obtains an initial historical user data set for each user. The initial historical user data set includes basic user data, historical medical records, and historical appointment data. The computer device preprocesses each initial historical user data set to obtain each historical user data set. Among them, the preprocessing includes data cleaning, missing value processing, outlier processing, etc. By preprocessing the initial historical user data set, the data quality in the historical data sample set is guaranteed, and a more accurate and clean data source is provided to facilitate the subsequent training of the machine learning model. For each historical user data set, the computer device constructs a user's feature data sample set based on the extracted user feature data and examination item feature data, and the feature data sample set fully reflects the user's feature portrait. By fully understanding the patient's characteristics, the subsequent machine learning model can more accurately predict the examination time of the examination item, and also provide support for personalized medical services. A historical data sample set is constructed based on the feature data sample set of each user, and the historical data sample set is divided to obtain a training sample set and a verification sample set.
[0099] In an exemplary embodiment, preprocessing includes filtering out data whose examination start time is greater than the examination end time, filtering out data whose examination start time and examination end time are empty, filtering out data whose time consumption (time consumption = examination end time - examination start time) is greater than a specific examination item threshold (for example, the examination item threshold for CT is 30 minutes), and conversion of examination names and other category variable dictionary values.
[0100] Optionally, the initial historical user data set may be, but is not limited to, institutionalized data provided by a PACS (Picture Archiving and Communication System) system. The embodiment of the present application does not limit the source of the initial historical data set.
[0101] Optionally, the user characteristic data includes but is not limited to the user's age, gender and condition characteristic data (severity of the condition). The examination item characteristic data includes but is not limited to the examination item type, appointment time, application department, etc. The present application embodiment does not limit the user characteristic data and the examination item characteristic data.
[0102] Step 304: Train each preset machine learning model according to the training sample set to obtain each trained machine learning model.
[0103] In implementation, each machine learning model is pre-set in the computer device. The computer device trains each machine learning model according to the training sample set to obtain each trained machine learning model.
[0104] Optionally, the machine learning model includes but is not limited to random forest, decision tree, LTSM (Long Short-Term Memory) and LightGBM (Light Gradient Boosting Machine, a gradient boosting decision tree model), etc. The embodiment of the present application does not limit the machine learning model.
[0105] Step 306, determining the prediction deviation rate of each trained machine learning model according to the verification sample set, and constructing a prediction model based on each prediction deviation rate and each trained machine learning model.
[0106] In implementation, the computer device determines the prediction deviation rate of the trained machine learning model according to the validation sample set for each trained machine learning model. The computer device determines the prediction sub-model in each trained machine learning model according to the preset prediction quantity and each prediction deviation rate. Then, the computer device constructs the prediction model according to the prediction deviation rate of each prediction sub-model and each prediction sub-model.
[0107] In this embodiment, each machine learning model is trained by a training sample set to obtain each trained machine learning model, thereby improving the accuracy of the machine learning model. Then, a prediction model is constructed based on the prediction deviation rate and each trained machine learning model, thereby improving the accuracy of the prediction model. Furthermore, the inspection time of the user to be inspected is determined based on the prediction model, thereby improving the accuracy of the inspection time.
[0108] In an exemplary embodiment, as shown in FIG4 , the specific processing process of step 306 includes steps 402 to 408. Among them:
[0109] Step 402: For each trained machine learning model, prediction processing is performed on the feature data sample set of each user in the verification sample set based on the trained machine learning model to obtain the predicted inspection time of each inspection item of each user.
[0110] During implementation, the computer device inputs the feature data sample set of each user in the verification sample set into the trained machine learning model for each trained machine learning model, performs predictive processing on the feature data sample set through the trained machine learning model, and obtains the predicted inspection time for each inspection item in the feature data sample set.
[0111] Step 404, according to the deviation rate algorithm, data processing is performed on each predicted inspection time and the historical inspection time of each inspection item in the verification sample set to obtain the predicted deviation rate of the trained machine learning model.
[0112] The verification sample set includes the historical inspection time of each inspection item. The prediction deviation rate represents the accuracy of the machine learning after training. The higher the prediction deviation rate, the lower the accuracy of the machine learning model after training; the lower the prediction deviation rate, the higher the accuracy of the machine learning model after training.
[0113] In implementation, a deviation rate algorithm is set in the computer device. The deviation rate algorithm is shown in the following formula (1):
[0114] (1)
[0115] In the above formula (1), the predicted time is the predicted inspection time, the actual time is the historical inspection time, and the total number of items is the inspection items included in the user. The computer device processes the data of each predicted inspection time and the historical inspection time of each inspection item according to the deviation rate algorithm to obtain the predicted deviation rate of the user. Then, the computer device performs mean processing on the predicted deviation rate of each user in the verification sample set to obtain the predicted deviation rate of the trained machine learning model.
[0116] Step 406, screening each trained machine learning model according to a preset prediction quantity and a prediction deviation rate of each trained machine learning model to obtain each prediction sub-model.
[0117] In implementation, a prediction quantity is preset in the computer device. The computer device sorts the trained machine learning models in descending order of the prediction deviation rate to obtain a list of machine learning models. Then, the computer device selects the trained machine learning models of the previous prediction quantity in the list of machine learning models to obtain each prediction sub-model.
[0118] Optionally, the predicted number can be but is not limited to 3 or 5, and generally does not exceed 10, which is determined based on the prediction requirements. The embodiment of the present application does not limit the predicted number.
[0119] Step 408, determine the order of each prediction sub-model according to the prediction deviation rate of each prediction sub-model from low to high, and perform stacking and integration processing on each prediction sub-model to obtain a prediction model.
[0120] In implementation, the computer device determines the order of each prediction sub-model according to the order of the prediction deviation rate of each prediction sub-model from low to high. Then, the computer device performs stacked ensemble processing (Stacked Ensemble processing) on each prediction sub-model according to the order of each prediction sub-model to obtain a prediction model.
[0121] In this embodiment, by determining the prediction deviation rate of each trained machine learning model and determining the prediction sub-model based on the prediction deviation rate, a prediction sub-model with higher accuracy is obtained. Then, the prediction sub-models are stacked and integrated in order of prediction deviation rate from low to high to obtain a prediction model, thereby improving the accuracy of the prediction model, and then determining the inspection time of the user to be inspected according to the prediction model, thereby improving the accuracy of the inspection time.
[0122] In an exemplary embodiment, as shown in FIG5 , the specific processing process of step 106 includes steps 502 to 506. Among them:
[0123] Step 502: for each inspection item data subset in the inspection item data set, prediction processing is performed on the inspection item data subset by using each prediction sub-model in the prediction model to obtain a prediction time of the inspection item data subset.
[0124] During implementation, the computer device inputs each inspection item data subset in the inspection item data set into the prediction model, and performs prediction processing on the inspection item data subset through each prediction sub-model in the prediction model in turn to obtain the predicted time of the inspection item data subset.
[0125] In an exemplary embodiment, the examination items included in the examination item data subset are breast examination items of the hospital. FIG6 is a comparison chart of the examination time of the prior art and the examination time obtained by the data processing method. The prior art determines the examination time based on the method of taking the average value (10min) of the time consumed by the examination item in the historical data. As shown in FIG6, the abscissa in FIG6 is the difference between the real examination time and the examination time, and the ordinate is the number of people of the difference. The triangular polyline in FIG6 is the polyline of the difference in examination time and the number of people of the difference in the prior art. By analyzing the examination data of the past year, the real examination time of most users exceeds the examination time of the prior art. The illustrated triangular polyline is overall biased to the left relative to the zero point, with the longest timeout of 6 minutes. The overall bias to the left will further worsen the waiting time as the number of users accumulates, so the user needs to wait for a long time. The polyline of the difference in examination time and the number of people of the difference obtained by the data processing method of the present application is the dot polyline in FIG6. The dot polyline conforms to the normal distribution, and the mean of the difference approaches the zero point. The normal distribution can also neutralize the positive and negative deviation patients, so the user waiting for the examination greatly shortens the waiting time of the user. At the same time, it enables users and medical staff to more accurately predict the start and end times of examinations, thereby optimizing individual or hospital schedules.
[0126] Step 504 , taking all the examination items of the user to be examined as the target, combining the data subsets of each item to obtain the data subset groups of each item.
[0127] In implementation, the full set of inspection items for the user to be inspected of the computer device is taken as the target, and the data subsets of each item are combined to obtain the data subset groups of each item, and the inspection items contained in the obtained item data subset groups are the full set of items for the user to be inspected.
[0128] In an exemplary embodiment, the full amount of inspection items for the user to be inspected is A, B, C and D. The inspection items contained in each item data subset obtained by the computer device are A, B, C, D, AC, AD and BC respectively. The computer device combines each item data subset with the full amount of inspection items for the items to be inspected as the target to obtain each item data subset group. The inspection items contained in each item data subset group are {A, B, C, D}, {AC, BD}, {AC, B, D}, {A, C, BD}, {AD, BC}, {A, D, BC} and {AD, B, C}.
[0129] Step 506 , for each project data subset group, determine the inspection time of the project data subset group according to the predicted time of inspecting the project data subset in the project data subset group, and determine the inspection time as the inspection time of the user to be inspected.
[0130] In implementation, the computer device performs addition operation on the predicted time of each inspection item data subset contained in the item data subset group for each item data subset group to obtain the sum of the predicted time. Then, the computer device determines the sum of the predicted time as the predicted time of the item data subset group.
[0131] In this embodiment, each inspection item data subset is predicted and processed through the prediction model to obtain the inspection time of the inspection item data subset, and each inspection item data subset is combined to obtain the inspection time of the user to be inspected, providing the inspection user with a variety of different inspection combinations and improving the flexibility of the data processing method. Furthermore, according to each inspection time, dynamic reservation of inspection items is realized, reducing the idle time of inspection resources for inspection items and avoiding congestion caused by appointment queuing. More flexible allocation of inspection time helps to smooth resource usage peaks and valleys and improve the working efficiency of inspection equipment.
[0132] In an exemplary embodiment, the prediction model includes a first prediction sub-model, a second prediction sub-model and a third prediction sub-model, as shown in FIG7 , and the specific processing process of step 502 includes steps 702 to 707. Among them:
[0133] Step 702: for each inspection item data subset in the inspection item data set, prediction processing is performed on the inspection item data subset based on the first prediction sub-model to obtain a first prediction time.
[0134] In implementation, the computer device inputs each inspection item data subset in the inspection item data set into the first prediction sub-model, performs prediction processing on the inspection item data subset through the first prediction sub-model, and obtains a first prediction time.
[0135] Step 704: perform prediction processing on the inspection item data subset and the first prediction time through the second prediction sub-model to obtain a second prediction time.
[0136] During implementation, the computer device simultaneously inputs the first prediction time and the inspection item data subset into the second prediction sub-model, and performs prediction processing on the first prediction time and the inspection item data subset through the second prediction sub-model to obtain the second prediction time.
[0137] Step 706: perform prediction processing on the inspection item data subset and the second prediction time through the third prediction sub-model to obtain a third prediction time, and determine the third prediction time as the inspection time of the inspection item data subset.
[0138] In implementation, the computer device simultaneously inputs the second prediction time and the inspection item data subset into the third prediction sub-model, and performs prediction processing on the second prediction time and the inspection item data subset through the third prediction sub-model to obtain a third prediction time. The computer device determines the third prediction time as the inspection time of the inspection item data subset, that is, the third prediction time is the inspection time of the inspection item included in the inspection item data subset.
[0139] In this embodiment, each prediction sub-model of the prediction model performs prediction processing on the inspection item data subset in turn, and obtains the inspection time of the item data subset, thereby improving the accuracy of the inspection time.
[0140] In an exemplary embodiment, FIG8 is a schematic diagram of data changes in a data processing method. As shown in FIG8, historical examination data and patient (patient is user) information data are associated through a patient global ID (Identity Document, unique code). The computer device constructs a database containing various training data through historical examination data and patient information data. The database contains the initial historical user data set of each patient. Associating historical examination data and patient information data through the patient global ID ensures that the examination records and personal information of each patient are accurately matched, laying the foundation for subsequent preprocessing and feature extraction. The computer device preprocesses each initial historical user data set in the database to obtain each historical user data set. Preprocessing includes but is not limited to data cleaning (removing duplicates, processing missing values), data standardization and normalization operations. Then, the computer device extracts key features from each historical user data set to obtain each feature data sample set. The key features include the patient's age, gender, disease type, historical examination results, appointment time, etc. Each feature data sample set will be used to train a machine learning model. The computer device trains each machine learning model based on each feature data sample set to obtain each trained machine learning model. Then, the computer device constructs a prediction model based on each trained machine learning model. The machine learning model can be a regression model, such as a random forest, a gradient boosting tree, or a deep neural network. When a new appointment request arrives, the computer device extracts the user data and examination items of each patient corresponding to the request. And the examination time of each patient is determined based on the prediction model and the user data and examination items of each patient. The examination time is the required examination time for each examination item of the patient. The computer device uses the scheduling model to allocate the optimal examination time period for each examination appointment based on the predicted examination time. The scheduling model takes into account factors such as equipment usage, doctor scheduling, and patient priority to ensure efficient use of resources and reduce patient waiting time.
[0141] In an exemplary embodiment, FIG9 is a schematic diagram of the architecture of the reservation system. As shown in FIG9, a reservation system to which the data processing method of the present application is applied is provided. The reservation system includes a user interface and interaction module, a resource scheduling algorithm module, a duration calculation module, and a data collection and preprocessing module. The duration calculation module includes a patient portrait construction module, a machine learning training module, and a project duration prediction module.
[0142] The data collection and preprocessing module is used to obtain the user's basic information, historical medical records, and historical appointment data to obtain each initial historical user data set. Then, each initial historical user data set is preprocessed to obtain each historical user data set. Preprocessing includes data cleaning, missing value processing, outlier processing, etc. to ensure data quality and provide an accurate and clean data source for subsequent analysis and learning processes.
[0143] The patient portrait construction module is used to extract the characteristic data of each historical user data set, including the patient's age, gender, severity of illness, appointment time, type of medical technology project, application department, etc., to obtain each characteristic data sample set, and construct a historical data sample set based on each characteristic sample data set. The characteristic data sample set is a portrait that fully reflects the patient's characteristics. By fully understanding the patient's characteristics, the subsequent machine learning model can more accurately predict the execution time of the examination project, and also provide support for personalized medical services.
[0144] The machine learning model training module is used to train each machine learning model using the historical data sample set provided by the aforementioned modules to obtain a prediction model. The prediction model can predict the inspection time of inspection items under different conditions. The prediction model uses machine learning algorithms (including but not limited to random forests, decision trees, etc.) to learn and simulate the relationship between different user characteristics and the inspection time of inspection items.
[0145] The inspection project duration prediction module is used to predict the inspection time of the user to be inspected using the trained prediction model. It also provides an interface or method for the reservation system to dynamically adjust the time allocation. The inspection project duration prediction module provides the reservation system with real-time and accurate execution duration prediction, supporting the reservation system to more effectively manage time and schedule resources.
[0146] The resource scheduling algorithm module is used to schedule resources according to the preset scheduling algorithm, taking into account equipment usage, doctor scheduling, patient priority, etc. to allocate the optimal examination time period for each examination appointment. Based on real-time feedback and data, dynamic adjustment of appointment arrangements can effectively shorten the patient's waiting time. By accurately predicting patient needs, resource allocation can be adjusted in advance to reduce unplanned waiting due to emergencies.
[0147] The user interface and interaction module is used to provide an operation interface for medical staff and patients, display the predicted examination time, collect user feedback, and allow necessary manual adjustments. Provide an intuitive and user-friendly operation interface for medical staff and patients to query the prediction results, make appointments, etc.
[0148] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0149] Based on the same inventive concept, the embodiment of the present application also provides a data processing device for implementing the data processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more data processing device embodiments provided below can refer to the limitations on the data processing method above, and will not be repeated here.
[0150] In an exemplary embodiment, as shown in FIG10 , a data processing device 1000 is provided, comprising: obtaining a model 1001, constructing a model 1002, and a determining module 1003, wherein:
[0151] The acquisition module 1001 is used to acquire the user data and the inspection items of the user to be inspected.
[0152] The construction module 1002 is used to construct an inspection item data set based on the inspection items, the number of inspection items and user data.
[0153] Determination module 1003 is used to determine the inspection time of the user to be inspected based on the prediction model and the inspection item data set; the prediction model includes multiple prediction sub-models, and the position of the prediction sub-model in the prediction model is determined based on the prediction deviation rate of the prediction sub-model; the inspection item data set is processed through multiple prediction sub-models in sequence based on the position of the prediction model to obtain the inspection time of the inspection user.
[0154] In an exemplary embodiment, building block 1002 includes:
[0155] The first construction submodule is used for constructing an inspection item data subset according to the user data and the inspection items if the number of the inspection items is 1, and determining the inspection item data subset as the inspection item data set.
[0156] In an exemplary embodiment, building block 1002 includes:
[0157] The first combining submodule is used to combine the inspection items according to preset constraints to obtain inspection item groups if the number of inspection items is not 1.
[0158] The second combining submodule is used to combine each inspection item group with the user data to obtain each inspection item data subset.
[0159] The third combining submodule is used to combine each inspection item with the user data to obtain a data subset of each inspection item.
[0160] The second construction submodule is used to construct an inspection item data set according to each inspection item data subset.
[0161] In an exemplary embodiment, the data processing device 1000 further includes:
[0162] The second acquisition module is used to acquire a historical data sample set; the historical data sample set includes a training sample set and a verification sample set.
[0163] The training module is used to train each preset machine learning model according to the training sample set to obtain each trained machine learning model.
[0164] The second construction module is used to determine the prediction deviation rate of each trained machine learning model according to the verification sample set, and to construct a prediction model based on each prediction deviation rate and each trained machine learning model.
[0165] In an exemplary embodiment, the second building block is used to:
[0166] The first processing submodule is used to perform prediction processing on the feature data sample set of each user in the verification sample set based on the trained machine learning model for each trained machine learning model, so as to obtain the predicted inspection time of each inspection item of each user.
[0167] The second processing submodule is used to process the predicted inspection time and the historical inspection time of each inspection item in the verification sample set according to the deviation rate algorithm to obtain the predicted deviation rate of the trained machine learning model;
[0168] A first screening submodule is used to screen each trained machine learning model according to a preset prediction quantity and a prediction deviation rate of each trained machine learning model to obtain each prediction submodel;
[0169] The integration submodule is used to determine the order of each prediction submodel according to the prediction deviation rate of each prediction submodel from low to high, and stack and integrate each prediction submodel to obtain a prediction model.
[0170] In an exemplary embodiment, the determination module 1003 is used to:
[0171] A third processing submodule is used for performing prediction processing on each inspection item data subset in the inspection item data set by using each prediction submodel in the prediction model to obtain a prediction time of the inspection item data subset;
[0172] The fourth combining submodule is used to combine the data subsets of each item with the full amount of examination items of the user to be examined as the target, so as to obtain the data subset group of each item;
[0173] The determination submodule is used to determine, for each project data subset group, the inspection time of the project data subset group according to the predicted time of inspecting the project data subset in the project data subset group, and determine the inspection time as the inspection time of the user to be inspected.
[0174] In an exemplary embodiment, the prediction model includes a first prediction sub-model, a second prediction sub-model and a third prediction sub-model, and the third processing sub-module includes:
[0175] The fourth processing submodule is used to perform prediction processing on each inspection item data subset in the inspection item data set based on the first prediction submodel to obtain a first prediction time.
[0176] The fifth processing submodule is used to perform prediction processing on the inspection item data subset and the first prediction time through the second prediction submodel to obtain a second prediction time.
[0177] The sixth processing submodule is used to perform prediction processing on the inspection item data subset and the second prediction time through the third prediction submodel to obtain a third prediction time, and determine the third prediction time as the inspection time of the inspection item data subset.
[0178] Each module in the above data processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0179] In an exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG11. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner may be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a data processing method is implemented. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0180] Those skilled in the art will understand that the structure shown in FIG. 11 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0181] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0182] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0183] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0184] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0185] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile 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 the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0186] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0187] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A data processing method, characterized in that: The method comprises: Obtain user data and inspection items of the user to be inspected; constructing an inspection item data set based on the inspection item, the number of the inspection items and the user data; The inspection time of the user to be inspected is determined based on the prediction model and the inspection item data set; the prediction model includes multiple prediction sub-models, and the position of the prediction sub-model in the prediction model is determined based on the prediction deviation rate of the prediction sub-model; the inspection item data set is processed through multiple prediction sub-models in sequence based on the position of the prediction model to obtain the inspection time of the user to be inspected.
2. The method according to claim 1, characterized in that The constructing the inspection item data set based on the inspection item, the number of the inspection items and the user data includes: If the number of the inspection items is 1, an inspection item data subset is constructed according to the user data and the inspection items, and the inspection item data subset is determined to be an inspection item data set.
3. The method according to claim 1, characterized in that The constructing the inspection item data set based on the inspection item, the number of the inspection items and the user data includes: If the number of the inspection items is not 1, the inspection items are combined according to the preset constraint conditions to obtain inspection item groups; Combining each of the inspection item groups with the user data to obtain each of the inspection item data subsets; Combining each of the inspection items and the user data to obtain a data subset of each inspection item; An inspection item data set is constructed according to each of the inspection item data subsets.
4. The method according to claim 1, characterized in that: Before determining the inspection time of the user to be inspected based on the prediction model and the inspection item data set, the method further includes: Acquire a historical data sample set; the historical data sample set includes a training sample set and a verification sample set; Training each preset machine learning model according to the training sample set to obtain each trained machine learning model; The prediction deviation rate of each of the trained machine learning models is determined according to the verification sample set, and a prediction model is constructed based on each of the prediction deviation rates and each of the trained machine learning models.
5. The method according to claim 4, characterized in that Determining the prediction deviation rate of each of the trained machine learning models according to the validation sample set, and constructing a prediction model based on each of the prediction deviation rates and each of the trained machine learning models, includes: For each of the trained machine learning models, predictive processing is performed on the feature data sample set of each user in the verification sample set based on the trained machine learning model to obtain a predicted inspection time for each of the inspection items of each of the users; According to the deviation rate algorithm, data processing is performed on each of the predicted inspection times and the historical inspection time of each of the inspection items in the verification sample set to obtain a prediction deviation rate of the trained machine learning model; According to a preset number of predictions and a prediction deviation rate of each trained machine learning model, each trained machine learning model is screened to obtain each prediction sub-model; The order of the prediction sub-models is determined according to the prediction deviation rate of each prediction sub-model from low to high, and each prediction sub-model is stacked and integrated to obtain a prediction model.
6. The method according to claim 1, characterized in that The determining the inspection time of the user to be inspected based on the prediction model and the inspection item data set includes: For each inspection item data subset in the inspection item data set, prediction processing is performed on the inspection item data subset by each prediction sub-model in the prediction model to obtain a prediction time of the inspection item data subset; Taking the full amount of inspection items of the user to be inspected as the target, combining the item data subsets to obtain the item data subset groups; For each of the item data subset groups, the inspection time of the item data subset group is determined according to the predicted time of inspecting the item data subset in the item data subset group, and the inspection time is determined as the inspection time of the user to be inspected.
7. The method according to claim 6, characterized in that The prediction model comprises a first prediction sub-model, a second prediction sub-model and a third prediction sub-model, and for each inspection item data subset in the inspection item data set, performing prediction processing on the inspection item data subset by each prediction sub-model in the prediction model to obtain a prediction time of the inspection item data subset comprises: For each inspection item data subset in the inspection item data set, performing prediction processing on the inspection item data subset based on the first prediction sub-model to obtain a first prediction time; Performing prediction processing on the inspection item data subset and the first prediction time by using the second prediction sub-model to obtain a second prediction time; The inspection item data subset and the second prediction time are predicted by the third prediction sub-model to obtain a third prediction time, and the third prediction time is determined as the inspection time of the inspection item data subset.
8. A data processing device, characterized in that: The device comprises: The acquisition module is used to obtain the user data and inspection items of the user to be inspected; A construction module, configured to construct an inspection item data set based on the inspection item, the number of the inspection items and the user data; A determination module is used to determine the inspection time of the user to be inspected based on the prediction model and the inspection item data set; the prediction model includes multiple prediction sub-models, and the position of the prediction sub-model in the prediction model is determined based on the prediction deviation rate of the prediction sub-model; the inspection item data set is processed in sequence through multiple prediction sub-models based on the position of the prediction model to obtain the inspection time of the inspected user.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. 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 7 are implemented.
