Processing device, computer equipment and storage medium for patient classification model

By combining the joint loss calculation of short-term and long-term reward prediction parameters and doctor tendency parameters, the patient classification model is adjusted, which solves the problem of low prediction accuracy in the long-term time dimension and improves the accuracy and diagnostic effect of the model.

CN114822741BActive Publication Date: 2024-09-13PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210447273.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-26
Publication Date
2024-09-13
Estimated Expiration
2042-04-26

AI Technical Summary

Technical Problem

Patient classification models have low accuracy in long-term time dimension prediction, resulting in poor medical diagnosis and treatment.

Method used

An initial patient classification model containing the first network and the second network is used, and the joint loss is calculated through the short-term and long-term reward prediction parameters combined with the doctor tendency parameter, and the model is adjusted to improve accuracy.

Benefits of technology

Through supervised learning and deep reinforcement learning, errors in reinforcement learning are reduced, the accuracy of the patient classification model and the accuracy of target patient classification are improved, ensuring that the model output is more consistent with predictions based on doctor experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114822741B
    Figure CN114822741B
Patent Text Reader

Abstract

The embodiment of the present application belongs to the field of artificial intelligence and digital medicine, and relates to a processing device, computer equipment and storage medium for a patient classification model. The device inputs the patient's training sample data into the initial patient classification model to obtain short-term reward prediction parameters, doctor tendency prediction parameters and long-term reward prediction parameters for each candidate classification result; obtains short-term reward parameters and doctor tendency parameters from labels; calculates joint losses based on short-term reward prediction parameters and short-term reward parameters, doctor tendency prediction parameters and doctor tendency parameters, short-term reward prediction parameters and long-term reward prediction parameters, and doctor tendency prediction parameters and long-term reward prediction parameters to adjust the initial patient classification model to obtain a patient classification model; inputs the sample data of the target patient into the patient classification model to obtain a patient classification result. The present application also relates to blockchain technology, and the training sample data can be stored in the blockchain. The present application improves the accuracy of the patient classification model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of digital medical technology, and in particular to a processing device, computer equipment and storage medium for a patient classification model. Background Art

[0002] With the development of computer technology, hospitals and other medical institutions are increasingly using computers for medical diagnosis and medical management. Patient classification is an important issue in the medical field. Patient classification is often related to treatment, diagnosis, risk assessment, etc. Accurate patient classification is of great significance.

[0003] Patient classification technology implemented by computers usually inputs the patient's sample data into a patient classification model based on a neural network. The patient classification model usually predicts from the long-term time dimension and the short-term time dimension and outputs the patient classification result. However, when predicting from the long-term time dimension, it often brings more errors due to the long-term nature of time, resulting in low accuracy of the patient classification model. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a processing device, a computer device and a storage medium for a patient classification model to solve the problem of low accuracy of the patient classification model.

[0005] In order to solve the above technical problems, the embodiment of the present application further provides a patient classification model processing device, which adopts the following technical solution:

[0006] A training acquisition module is used to obtain labeled training sample data of patients;

[0007] A prediction acquisition module, used for inputting the training sample data into an initial patient classification model, so as to output the short-term reward prediction parameters and the doctor's tendency prediction parameters of the training sample data for each candidate classification result through a first network in the initial patient classification model, and to output the long-term reward prediction parameters of the training sample data for each candidate classification result through a second network in the initial patient classification model;

[0008] A label acquisition module, used for acquiring the short-term reward parameter and the doctor's tendency parameter of the training sample data from the label;

[0009] a loss calculation module, configured to calculate a joint loss based on the short-term reward prediction parameter and the short-term reward parameter, the doctor tendency prediction parameter and the doctor tendency parameter, the short-term reward prediction parameter and the long-term reward prediction parameter, and the doctor tendency prediction parameter and the long-term reward prediction parameter;

[0010] A model adjustment module, used for adjusting the initial patient classification model according to the joint loss until the joint loss satisfies the training stop condition to obtain a patient classification model;

[0011] The patient classification module is used to obtain sample data of a target patient and input the sample data into the patient classification model to obtain a patient classification result of the target patient.

[0012] In order to solve the above technical problems, an embodiment of the present application also provides a computer device, including a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the functions of each module in the processing device of the above-mentioned patient classification model are implemented.

[0013] In order to solve the above technical problems, an embodiment of the present application also provides a computer-readable storage medium, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor, the functions of each module in the processing device of the above-mentioned patient classification model are implemented.

[0014] Compared with the prior art, the embodiments of the present application mainly have the following beneficial effects: obtaining patient labeled training sample data and inputting them into an initial patient classification model, wherein the initial patient classification model includes a first network and a second network, and can respectively output short-term reward prediction parameters, doctor tendency prediction parameters and long-term reward prediction parameters for each candidate classification result of the training sample data; the short-term reward parameter measures the reward obtained by selecting each candidate classification result from a shorter time dimension, the long-term reward parameter measures the reward obtained by selecting each candidate classification result from a longer time dimension, and the doctor tendency prediction parameter represents the probability of selecting each candidate classification result according to the doctor's experience; obtaining short-term reward parameters and doctor tendency parameters of the training sample data from the labels; and obtaining the reward parameters according to the short-term reward prediction parameters. The short-term reward prediction parameters and the doctor's tendency prediction parameters are supervised learning, and the long-term reward prediction parameters are deep reinforcement learning. The long-term reward prediction parameters are restricted by the short-term reward prediction parameters and the doctor's tendency prediction parameters, so that the model makes predictions that are more in line with the doctor's experience, reduces the error in reinforcement learning, and makes the calculation of the joint loss more accurate; thereby improving the accuracy of the patient classification model obtained after adjustment according to the joint loss, and further improving the accuracy of classifying target patients according to the patient classification model. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0016] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;

[0017] Figure 2 is a structural schematic diagram of an embodiment of a processing device for a patient classification model according to the present application;

[0018] Figure 3 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION

[0019] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0020] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0021] 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 accompanying drawings.

[0022] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0023] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0024] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, desktop computers, etc.

[0025] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .

[0026] It should be noted that the processing device of the patient classification model provided in the embodiment of the present application is generally set in the server.

[0027] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0028] Continue to refer Figure 2 , shows a schematic diagram of the structure of an embodiment of a processing device for a patient classification model according to the present application. The processing device 200 for a patient classification model may include: a training acquisition module 201, a prediction acquisition module 202, a label acquisition module 203, a loss calculation module 204, a model adjustment module 205 and a patient classification module 206,

[0029] in:

[0030] The training acquisition module 201 is used to obtain labeled training sample data of patients.

[0031] In this embodiment, the processing device of the patient classification model runs on an electronic device (e.g. Figure 1The server shown in the figure) can communicate with the terminal through a wired connection or a wireless connection. It should be noted that the above wireless connection method may include but is not limited to 3G / 4G / 5G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or to be developed in the future.

[0032] Specifically, the present application aims to classify target patients through a patient classification model. Before classifying the target patients, the patient classification model needs to be obtained through model training in advance. In the model training stage, it is necessary to obtain training sample data of the patients, which are related to the patients and have labels.

[0033] The training sample data used in the training phase and the sample data used in the application phase can all be follow-up data generated by following up on patients. Follow-up refers to a method of observation in which a hospital regularly monitors the patient's condition and guides the patient's recovery through communication or other means.

[0034] The patient may be followed up multiple times in advance, and follow-up data may be generated for each follow-up. The follow-up data of multiple follow-ups of the patient may be obtained at one time, and then the obtained follow-up data may be determined as training sample data or sample data.

[0035] The follow-up data may include basic patient information, disease examination information, historical medication information, and doctor's prescription information. Disease examination information may include symptom information. Among them, basic patient information may be information related to the patient's demographics, including gender, age, occupation, marital status, places of entry, etc.; disease examination information may be information obtained from medical examinations of patients, including symptom information describing the patient's symptoms and medical test reports, etc.; historical medication information is the patient's medication information before the follow-up corresponding to the follow-up data, and doctor's prescription information is the patient's prescription information after the follow-up corresponding to the follow-up data.

[0036] Follow-up data include basic patient information, disease examination information, historical medication information, and doctor prescription information. The data dimensions are rich, ensuring the accuracy of the trained patient classification model, thereby ensuring the accuracy of patient classification.

[0037] It should be emphasized that, in order to further ensure the privacy and security of the above training sample data, the above training sample data can also be stored in a node of a blockchain. It can be understood that the sample data can also be stored in a node of a blockchain.

[0038] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0039] The prediction acquisition module 202 is used to input the training sample data into the initial patient classification model to output the short-term reward prediction parameters and doctor preference prediction parameters of the training sample data for each candidate classification result through the first network in the initial patient classification model, and to output the long-term reward prediction parameters of the training sample data for each candidate classification result through the second network in the initial patient classification model.

[0040] Specifically, the patient classification model in this application belongs to the DQN (Deep Q-Learning) model, which is a deep reinforcement learning model for optimizing the long-term cumulative goal of optimizing sequential decision-making problems. Reinforcement learning is an artificial intelligence method in which an agent takes an action based on a certain strategy and obtains a reward for a state, and then optimizes the strategy through the reward obtained. Wherein the strategy refers to an action that should be taken under a specific state to maximize the expected cumulative reward. The DQN model uses a neural network to fit the policy, inputs the state into the neural network, and outputs the Q value (expected cumulative reward) corresponding to each action. The action corresponding to the maximum Q value is the action that the DQN model believes should be selected. Taking the classification of diabetic patients as an example, the input state state is a multidimensional vector composed of sample data (basic information of patients, disease examination information, historical medication information, and doctor's prescription information), and the action action is a unique hot encoding of the patient classification result. The cumulative reward parameter Q includes a long-term reward parameter and a short-term reward parameter, where the long-term reward parameter evaluates the result from a longer time dimension, and the short-term reward parameter evaluates the result from a shorter time dimension. For example, when the patient is a diabetic, the long-term reward parameter is defined as sign (whether complications occurred in the last follow-up) * 5, and the short-term reward parameter is defined as sign (whether the glycated hemoglobin meets the standard in the next follow-up) * 1, where the value of the long-term reward parameter is usually greater than the value of the short-term reward parameter to meet the conventional settings in deep reinforcement learning.

[0041] In this application, the training sample data is input into the initial patient classification model, and the initial patient classification model improves the network structure of the traditional DQN model and proposes a Long-Short-Splited-Q-Network (LSSQN) model. Among them, the LSSQN model includes a first network and a second network. After the data input into the first network passes through two shared neural network layers (NeuralNetwork, NN), an independent neural network layer outputs a short-term prediction reward parameter R, and another independent neural network layer outputs a doctor's preference prediction parameter P. After passing through two neural network layers, the second network outputs a long-term reward prediction parameter F.

[0042] The initial patient classification model presets N candidate classification results, each candidate classification result represents a disease subcategory under a certain disease category, and each candidate classification result can correspond to a short-term prediction reward parameter R, a doctor tendency prediction parameter P, and a long-term reward prediction parameter F. Among them, the short-term reward prediction parameter R is a reward parameter (reward) obtained when the candidate classification result (action action) is taken according to the input sample data (state state) measured from a shorter time dimension. The long-term reward prediction parameter F is a reward parameter (reward) obtained when the candidate classification result (action action) is taken according to the input sample data (state state) measured from a longer time dimension. The doctor tendency prediction parameter P is the probability of taking the candidate classification result (action action) according to the input sample data (state state) measured from the doctor dimension. The larger the value of the reward parameter, the higher the reward obtained, and the more likely it is to take the corresponding candidate classification result.

[0043] The three groups of concepts in this application: long-term reward prediction parameters and long-term reward parameters, short-term reward prediction parameters and short-term reward parameters, doctor tendency prediction parameters and doctor tendency parameters, each group of concepts has the same connotation. In the model training stage, long-term reward prediction parameters, short-term reward prediction parameters and doctor tendency prediction parameters are used; in the model application stage, long-term reward parameters, short-term reward parameters and doctor tendency parameters are used.

[0044] Patient classification in this application is to further divide patients with a certain disease and determine the disease subcategories of the patients under a certain disease category. For example, diabetic patients are divided into 10 subcategories.

[0045] Each disease category has a corresponding patient classification model. That is, different patient classification models are needed for diabetes and heart disease. Therefore, in training and application, the disease identifier can be obtained first. The disease identifier can be the identifier of the disease suffered by the patient, which can be the disease name or disease code. Then, the corresponding initial patient classification model or patient classification model is selected according to the disease identifier.

[0046] The label acquisition module 203 is used to obtain the short-term reward parameters and doctor preference parameters of the training sample data from the labels.

[0047] Specifically, the training sample data has a label, and the real short-term reward parameter and the doctor's tendency parameter of the recorded training sample data can be obtained from the label. The doctor's tendency parameter can be obtained by annotation by a doctor or a medical expert.

[0048] The loss calculation module 204 is used to calculate the joint loss based on the short-term reward prediction parameter and the short-term reward parameter, the doctor tendency prediction parameter and the doctor tendency parameter, the short-term reward prediction parameter and the long-term reward prediction parameter, and the doctor tendency prediction parameter and the long-term reward prediction parameter.

[0049] Specifically, the loss function in this application is a joint loss function, which includes several sub-loss functions. The losses caused by each sub-loss function can be calculated according to the short-term reward prediction parameter and the short-term reward parameter, the doctor's tendency prediction parameter and the doctor's tendency parameter, the short-term reward prediction parameter and the long-term reward prediction parameter, and the doctor's tendency prediction parameter and the long-term reward prediction parameter, and then the joint loss caused by the joint loss function is calculated.

[0050] Furthermore, the above-mentioned loss calculation module 204 may include: a first calculation submodule, a second calculation submodule, a third calculation submodule, a fourth calculation submodule and a joint calculation submodule, wherein:

[0051] The first calculation submodule is used to calculate the first loss according to the short-term reward prediction parameter and the short-term reward parameter.

[0052] Specifically, the first loss can be expressed as:

[0053] L R =(R true -R predict ) 2 (1)

[0054] Among them, R true is the short-term reward parameter. predict is the short-term reward prediction parameter.

[0055] The second calculation submodule is used to calculate the second loss according to the doctor tendency prediction parameter and the doctor tendency parameter.

[0056] Specifically, the second loss can be expressed as:

[0057] L P =-P true *log(P predict )-(1-P true)*log(1-P predict ) (2)

[0058] Among them, P true is the doctor preference parameter, which indicates the patient's preference in the training sample data s t (state state) whether the candidate classification result a(action) is adopted, if adopted, it is 1, otherwise 0. predict It is a prediction parameter of physician preference.

[0059] The third calculation submodule is used to calculate the third loss according to the short-term reward prediction parameter and the long-term reward prediction parameter.

[0060] Specifically, the third loss can be expressed as:

[0061]

[0062] Among them, s t 、a t are the training sample data and candidate classification results at time point t respectively. t ,a t ) is the time point t, input the training sample data s t , the candidate classification result is a t The long-term reward prediction parameters obtained when At time point t, input training sample data s t , the short-term reward prediction parameter in the form of gradient-free when the candidate classification result is a. F(s t+1 ,a) At time point t+1, input training sample data s t+1 , the long-term reward prediction parameters obtained when the candidate classification result is a. The long-term reward parameter for the construction is obtained from each The maximum value selected from is used as a learning target in model training.

[0063] In this embodiment, a long-term reward parameter F is constructed, and the long-term reward prediction parameter F is trained and fitted according to the short-term reward prediction parameter R, thereby reducing the error of the long-term reward prediction parameter and reducing the model error in the long-term dimension.

[0064] The fourth calculation submodule is used to calculate the fourth loss according to the doctor's tendency prediction parameter and the long-term reward prediction parameter.

[0065] Specifically, the fourth loss can be expressed as:

[0066]

[0067] Among them, s t 、a tare the training sample data and candidate classification results at time point t respectively. At time point t, input training sample data s t , the candidate classification result is a t The non-gradient form of the physician preference prediction parameter obtained when is is a fixed estimate. t ,a t ) is the time point t, input the training sample data s t , the candidate classification result is a t The long-term reward prediction parameters obtained when

[0068] It can be understood that the training of the first network is supervised learning, and the training of the second network is reinforcement learning.

[0069] In this embodiment, the doctor's preference prediction parameter P is used to restrict and regularize the long-term reward prediction parameter F, introducing the influence of the doctor's knowledge and experience, so that the long-term reward prediction parameter output by the model is more consistent with the doctor's experience, and the reinforcement learning is extrapolated in a direction that is more consistent with the doctor's experience, reducing the risk of the model learning unreasonable decisions and making the learned decision logic safer and more reasonable.

[0070] The joint calculation submodule is used to perform linear operations on the first loss, the second loss, the third loss and the fourth loss to obtain the joint loss.

[0071] Specifically, the joint loss can be obtained by linearly calculating the first loss, the second loss, the third loss and the fourth loss. In one embodiment, the joint loss can be specifically expressed as:

[0072] L=L R +L P +L F +L reg (5)

[0073] In this embodiment, the joint loss takes into account long-term rewards, short-term rewards and doctor's inclination, and the loss measurement is more accurate, ensuring the accuracy of the final patient classification model.

[0074] The model adjustment module 205 is used to adjust the initial patient classification model according to the joint loss until the joint loss meets the training stop condition to obtain the patient classification model.

[0075] Specifically, with the goal of minimizing the joint loss, the model parameters in the initial patient classification model are adjusted, and the initial patient classification model after parameter adjustment is iteratively trained until the obtained joint loss meets the preset training stop condition, then the training is stopped to obtain the patient classification model. The training stop condition may be that the joint loss is less than a preset loss threshold.

[0076] The patient classification module 206 is used to obtain sample data of the target patient and input the sample data into the patient classification model to obtain the patient classification result of the target patient.

[0077] Specifically, when applying the model, sample data of the target patient is obtained and input into the patient classification model. The trained patient classification model processes the sample data, determines the candidate classification results corresponding to the target patient, and generates the patient classification results based on the determined candidate classification results.

[0078] Furthermore, the patient classification module 206 may include: a sample acquisition submodule, a reward acquisition submodule, a cumulative calculation submodule, and a result determination submodule, wherein:

[0079] The sample acquisition submodule is used to obtain sample data of target patients. The sample data includes basic information of patients, disease examination information, historical medication information and doctor's prescription information.

[0080] The reward acquisition submodule is used to input the sample data into the patient classification model to output the short-term reward parameters of the sample data for each candidate classification result through the first network in the patient classification model, and to output the long-term reward parameters of the sample data for each candidate classification result through the second network in the patient classification model.

[0081] The cumulative calculation submodule is used to calculate the cumulative reward parameters of the sample data for each candidate classification result according to the short-term reward parameters and the long-term reward parameters.

[0082] The result determination submodule is used to select the candidate classification result corresponding to the maximum cumulative reward parameter as the patient classification result.

[0083] Specifically, sample data of the target patient is obtained, and the sample data may be the patient's follow-up data, including the patient's basic information, disease examination information, historical medication information, and doctor's prescription information.

[0084] The sample data is input into the patient classification model, wherein the first network in the patient classification model outputs the short-term reward parameters of the sample data under each candidate classification result, and the second network outputs the long-term reward parameters of the sample data under each candidate classification result.

[0085] When classifying patients, both short-term reward parameters and long-term reward parameters need to be considered. By adding the short-term reward parameters and long-term reward parameters under each candidate classification result, the cumulative reward parameters of the sample data for each candidate classification result can be obtained.

[0086] The cumulative reward parameter corresponds to a candidate classification result. The larger the value of the cumulative reward parameter, the greater the reward obtained when the candidate classification result (action) is taken according to the input sample data (state state). Therefore, the candidate classification result corresponding to the maximum cumulative reward parameter can be selected, and the patient classification result is generated according to the selected candidate classification result and its corresponding cumulative reward parameter.

[0087] In one embodiment, the first network can also output a doctor's tendency parameter, which can provide confidence when the model is applied. If the doctor's tendency parameter is smaller, the output result of the model is less accurate. The doctor's tendency parameter can also be put into the patient classification result to show the accuracy of the patient classification result. In one embodiment, if the value of the doctor's tendency parameter is less than the preset doctor's tendency threshold, an alarm instruction is triggered so that relevant personnel can check or retrain the model.

[0088] In this embodiment, the patient classification model outputs short-term reward parameters and long-term reward parameters, and then calculates the cumulative reward parameters based on the short-term reward parameters and the long-term reward parameters, comprehensively measuring each candidate classification result from the long-term time dimension and the short-term time dimension, thereby improving the accuracy of the patient classification results.

[0089] Furthermore, the processing device 200 of the patient classification model may also include: a prescription query module and a display module, wherein:

[0090] The prescription query module is used to query the prescription information associated with the patient classification results.

[0091] The display module is used to display the patient classification results and prescription information of the target patients through the terminal.

[0092] Specifically, the patient classification result may be an identifier, such as a code, where different codes represent different disease subcategories, and different disease subcategories correspond to different prescription information.

[0093] The prescription information corresponding to the patient classification result is queried, and then the patient classification result and prescription information of the target patient are displayed through the terminal. The terminal can be a terminal used by the target patient or the doctor, thereby automatically realizing the patient classification of the target patient and determining the prescription information.

[0094] In this embodiment, the prescription information corresponding to the patient classification result is queried and displayed, thereby automatically determining the prescription information of the target patient.

[0095] In this embodiment, labeled training sample data of patients are obtained and input into an initial patient classification model. The initial patient classification model includes a first network and a second network, which can respectively output short-term reward prediction parameters, doctor tendency prediction parameters and long-term reward prediction parameters for each candidate classification result of the training sample data; the short-term reward parameter measures the reward obtained by selecting each candidate classification result from a shorter time dimension, the long-term reward parameter measures the reward obtained by selecting each candidate classification result from a longer time dimension, and the doctor tendency prediction parameter represents the probability of selecting each candidate classification result according to the doctor's experience; the short-term reward parameter and the doctor tendency parameter of the training sample data are obtained from the label; according to the short-term reward prediction parameter and the short-term reward parameter, the patient classification model is constructed. The short-term reward prediction parameters and the doctor's tendency prediction parameters are supervised learning, and the long-term reward prediction parameters are deep reinforcement learning. The long-term reward prediction parameters are restricted by the short-term reward prediction parameters and the doctor's tendency prediction parameters, so that the model makes predictions that are more in line with the doctor's experience, reduces the error in reinforcement learning, and makes the calculation of the joint loss more accurate; thereby improving the accuracy of the patient classification model obtained after adjustment according to the joint loss, and further improving the accuracy of classifying target patients according to the patient classification model.

[0096] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0097] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0098] This application can be applied in the field of smart medical care, thereby promoting the construction of smart cities.

[0099] Those skilled in the art can understand that the functions of the modules in the above embodiments can be realized by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the computer-readable instructions are executed, they can include the functions of the modules in the above embodiments. The aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0100] To solve the above technical problems, the present application also provides a computer device. Figure 3 , Figure 3 This is a basic structural block diagram of the computer device in this embodiment.

[0101] The computer device 3 includes a memory 31, a processor 32, and a network interface 33 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 3 with components 31-33, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.

[0102] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.

[0103] The memory 31 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 31 can be an internal storage unit of the computer device 3, such as a hard disk or memory of the computer device 3. In other embodiments, the memory 31 can also be an external storage device of the computer device 3, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. equipped on the computer device 3. Of course, the memory 31 can also include both the internal storage unit of the computer device 3 and its external storage device. In this embodiment, the memory 31 is generally used to store the operating system and various application software installed on the computer device 3 to realize the functions of each module in the processing device of the above-mentioned patient classification model. In addition, the memory 31 can also be used to temporarily store various types of data that have been output or are to be output.

[0104] The processor 32 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 32 is generally used to control the overall operation of the computer device 3. In this embodiment, the processor 32 is used to run the computer-readable instructions or process data stored in the memory 31 to implement the functions of each module in the processing device of the patient classification model.

[0105] The network interface 33 may include a wireless network interface or a wired network interface. The network interface 33 is generally used to establish a communication connection between the computer device 3 and other electronic devices.

[0106] In this embodiment, the functions of each module in the processing device of the patient classification model in the above embodiment are realized by the processor executing the computer-readable instructions stored in the memory.

[0107] In this embodiment, labeled training sample data of patients are obtained and input into an initial patient classification model. The initial patient classification model includes a first network and a second network, which can respectively output short-term reward prediction parameters, doctor tendency prediction parameters and long-term reward prediction parameters for each candidate classification result of the training sample data; the short-term reward parameter measures the reward obtained by selecting each candidate classification result from a shorter time dimension, the long-term reward parameter measures the reward obtained by selecting each candidate classification result from a longer time dimension, and the doctor tendency prediction parameter represents the probability of selecting each candidate classification result according to the doctor's experience; the short-term reward parameter and the doctor tendency parameter of the training sample data are obtained from the label; according to the short-term reward prediction parameter and the short-term reward parameter, the patient classification model is constructed. The short-term reward prediction parameters and the doctor's tendency prediction parameters are supervised learning, and the long-term reward prediction parameters are deep reinforcement learning. The long-term reward prediction parameters are restricted by the short-term reward prediction parameters and the doctor's tendency prediction parameters, so that the model makes predictions that are more in line with the doctor's experience, reduces the error in reinforcement learning, and makes the calculation of the joint loss more accurate; thereby improving the accuracy of the patient classification model obtained after adjustment according to the joint loss, and further improving the accuracy of classifying target patients according to the patient classification model.

[0108] The present application also provides another embodiment, namely, providing a computer-readable storage medium, which stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the functions of each module in the processing device of the patient classification model mentioned above.

[0109] In this embodiment, labeled training sample data of patients are obtained and input into an initial patient classification model. The initial patient classification model includes a first network and a second network, which can respectively output short-term reward prediction parameters, doctor tendency prediction parameters and long-term reward prediction parameters for each candidate classification result of the training sample data; the short-term reward parameter measures the reward obtained by selecting each candidate classification result from a shorter time dimension, the long-term reward parameter measures the reward obtained by selecting each candidate classification result from a longer time dimension, and the doctor tendency prediction parameter represents the probability of selecting each candidate classification result according to the doctor's experience; the short-term reward parameter and the doctor tendency parameter of the training sample data are obtained from the label; according to the short-term reward prediction parameter and the short-term reward parameter, the patient classification model is constructed. The short-term reward prediction parameters and the doctor's tendency prediction parameters are supervised learning, and the long-term reward prediction parameters are deep reinforcement learning. The long-term reward prediction parameters are restricted by the short-term reward prediction parameters and the doctor's tendency prediction parameters, so that the model makes predictions that are more in line with the doctor's experience, reduces the error in reinforcement learning, and makes the calculation of the joint loss more accurate; thereby improving the accuracy of the patient classification model obtained after adjustment according to the joint loss, and further improving the accuracy of classifying target patients according to the patient classification model.

[0110] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0111] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.

Claims

1. A processing device for a patient classification model, comprising: A training acquisition module is used to obtain labeled training sample data of patients; A prediction acquisition module, used for inputting the training sample data into an initial patient classification model, so as to output the short-term reward prediction parameters and the doctor's tendency prediction parameters of the training sample data for each candidate classification result through a first network in the initial patient classification model, and to output the long-term reward prediction parameters of the training sample data for each candidate classification result through a second network in the initial patient classification model; A label acquisition module, used for acquiring the short-term reward parameter and the doctor's tendency parameter of the training sample data from the label; a loss calculation module, configured to calculate a joint loss based on the short-term reward prediction parameter and the short-term reward parameter, the doctor tendency prediction parameter and the doctor tendency parameter, the short-term reward prediction parameter and the long-term reward prediction parameter, and the doctor tendency prediction parameter and the long-term reward prediction parameter; A model adjustment module, used for adjusting the initial patient classification model according to the joint loss until the joint loss satisfies the training stop condition to obtain a patient classification model; The patient classification module is used to obtain sample data of a target patient and input the sample data into the patient classification model to obtain a patient classification result of the target patient.

2. The patient classification model processing device according to claim 1, characterized in that: The loss calculation module includes: A first calculation submodule, configured to calculate a first loss according to the short-term reward prediction parameter and the short-term reward parameter; A second calculation submodule, used for calculating a second loss according to the doctor tendency prediction parameter and the doctor tendency parameter; A third calculation submodule, configured to calculate a third loss according to the short-term reward prediction parameter and the long-term reward prediction parameter; a fourth calculation submodule, configured to calculate a fourth loss according to the doctor tendency prediction parameter and the long-term reward prediction parameter; The joint calculation submodule is used to perform linear operation on the first loss, the second loss, the third loss and the fourth loss to obtain a joint loss.

3. The patient classification model processing device according to claim 2, characterized in that: The first loss is expressed as: L R =(R true -R predict ) 2 Among them, R true is the short-term reward parameter; R predict is the short-term reward prediction parameter.

4. The patient classification model processing device according to claim 2, characterized in that: The second loss is expressed as: L P =-P true *log(P predict )-(1-P true )*log(1-P predict ) Among them, P true is the physician preference parameter, P predict is the physician's tendency prediction parameter.

5. The patient classification model processing device according to claim 2, characterized in that: The third loss is expressed as: Among them, s t 、a t are the training sample data and candidate classification results at time point t respectively; F(s t ,a t ) is the time point t, input the training sample data s t , the candidate classification result is a t The long-term reward prediction parameters obtained when At time point t, input training sample data s t , the short-term reward prediction parameter in the form of gradient-free when the candidate classification result is a; F(s t+1 ,a) At time point t+1, input training sample data s t+1 , the long-term reward prediction parameter obtained when the candidate classification result is a; is the long-term reward parameter for the construction.

6. The patient classification model processing device according to claim 2, characterized in that: The fourth loss is expressed as: Among them, s t 、a t are the training sample data and candidate classification results at time point t respectively; At time point t, input training sample data s t , the candidate classification result is a t The non-gradient form of the physician preference prediction parameter is obtained when F(s t ,a t ) is the time point t, input the training sample data s t , the candidate classification result is a t The long-term reward prediction parameters obtained when 7. The patient classification model processing device according to claim 1, characterized in that: The patient classification module comprises: The sample acquisition submodule is used to acquire sample data of target patients, wherein the sample data includes basic information of the patients, disease examination information, historical medication information and doctor's prescription information; a reward acquisition submodule, configured to input the sample data into the patient classification model, so as to output the short-term reward parameters of the sample data for each candidate classification result through the first network in the patient classification model, and to output the long-term reward parameters of the sample data for each candidate classification result through the second network in the patient classification model; A cumulative calculation submodule, used to calculate the cumulative reward parameter of the sample data for each candidate classification result according to the short-term reward parameter and the long-term reward parameter; The result determination submodule is used to select the candidate classification result corresponding to the maximum cumulative reward parameter as the patient classification result.

8. The patient classification model processing device according to claim 1, characterized in that: The processing device of the patient classification model also includes: a prescription query module, used to query the prescription information associated with the patient classification result; The display module is used to display the patient classification result and the prescription information of the target patient through the terminal.

9. A computer device, comprising a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the functions of each module in the processing device of the patient classification model according to any one of claims 1 to 8 when executing the computer-readable instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the functions of each module in the processing device for the patient classification model according to any one of claims 1 to 8.