A method and system for quantifying the progress of medical consultation
By quantifying the progress of TCM consultations, the problem of unclear termination conditions of TCM consultations is solved, and a method and system for quantifying the progress of TCM consultations are provided to help doctors determine the nodes and end points of consultations and ensure that symptoms are sufficient to support the issuance of prescriptions.
Patent Information
- Application Number
- CN202410483324.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-22
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-04-22
AI Technical Summary
In traditional Chinese medicine consultations, trainee physicians and assistant physicians have difficulty completing the consultation process, especially the problem of unclear conditions for the termination of consultations that has not been effectively resolved.
A method and system for quantifying consultation progress is proposed. By inputting new symptoms into the prescription recommendation model, the recommended prescription and its predicted probability are obtained, the consultation progress is calculated based on the true accuracy and the quantitative value of prescription recommendation quality, and the reference score and the reference score are determined using a mapping table. Ratio to quantify the progress of consultation.
It effectively solves the problem of unclear consultation termination conditions, helps TCM doctors understand the current consultation node and end point, determines whether it is sufficient to support prescription issuance, and evaluates the contribution of new symptoms to the termination conditions of the consultation process.
Smart Images

Figure CN118412097B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of TCM-assisted diagnosis and treatment, and more specifically, relates to a method and system for quantifying the progress of a medical consultation. Background Art
[0002] In the field of traditional Chinese medicine, it is difficult for interns and assistant doctors who have been in the profession for a relatively short time to complete the consultation process with ease. Since they generally do not have the unique consultation process refined based on their own years of consultation experience like senior doctors who have been in the profession for a relatively long time, most of them have problems with lack of direction and unclear termination conditions during consultation. Among them, the problem of lack of direction in consultation has been effectively solved by the artificial intelligence consultation guidance that has emerged in recent years, while the problem of unclear termination conditions has not yet been effectively solved. For this reason, it is necessary to seek a technical solution to effectively solve the problem of unclear termination conditions for traditional Chinese medicine consultation. Summary of the invention
[0003] In view of this, the present invention proposes a method and system for quantifying the progress of medical consultation.
[0004] According to a first aspect of the present invention, a method for quantifying the progress of a medical consultation is provided, the method comprising the following steps:
[0005] When a new symptom is obtained, the new symptom is put into a symptom set, and the symptom set is input into a prescription recommendation model to obtain each recommended prescription and its predicted probability;
[0006] Determining the true accuracy of each recommended prescription according to the predicted probability of each recommended prescription and based on the pre-acquired first mapping table;
[0007] Obtaining a score for each recommended prescription according to the true accuracy of each recommended prescription, based on a quantitative value of the expected degree of matching of the true accuracy of each recommended prescription and a quantitative value of the prescription recommendation quality of the prescription recommendation model for the symptom set, and taking the maximum score among the scores of the recommended prescriptions as the score of the symptom set;
[0008] Determine a reference score of the symptom set at the current number of symptoms according to a pre-acquired second mapping table, and determine a ratio of the score of the symptom set to the reference score;
[0009] A quantitative value of the consultation progress is determined according to the ratio and the reference score.
[0010] Optionally, the method for obtaining the first mapping table includes:
[0011] Obtain N pieces of real medical record data, each piece of real medical record data includes a corresponding set of symptoms and a real prescription;
[0012] Input N symptom sets corresponding to N real medical case data into the prescription recommendation model to obtain an N*K result matrix, wherein K is the total number of prescriptions used when training the prescription recommendation model, and each row of the result matrix represents the predicted probability of K prescriptions relative to the corresponding symptom combination, and each column of the result matrix represents the predicted probability of the corresponding prescription relative to the N symptom combination;
[0013] Sort the data in each column of the result matrix in ascending order, and uniformly segment the data in each column after ascending order, and determine whether the actual prescription corresponding to each symptom set represented by each segment of the column data is consistent with the predicted prescription corresponding to the segment of the column data. If so, mark the symptom as yes, otherwise, mark the symptom as no;
[0014] The true accuracy of the predicted probability interval corresponding to each segment of column data is determined according to the marking conditions of each symptom represented by the segment of column data, so as to obtain a first mapping table for providing a mapping relationship between the predicted probability interval of the prescription and the true accuracy of the prescription.
[0015] Optionally, the score of the recommended prescription is obtained based on the following formula:
[0016]
[0017] In the above formula, distributionProbability is the expected matching degree quantified value of the true accuracy of the kth recommended prescription output by the prescription recommendation model, k is the predicted probability of the kth recommended prescription, denominator k is a penalty denominator, whose value is the predicted probability lower limit value of the first predicted probability interval whose predicted probability lower limit value in ascending order in the first mapping table is greater than the preset value;
[0018] precision k is the true accuracy of the kth recommended prescription determined based on the first mapping table;
[0019] score k is the score of the kth recommended prescription;
[0020] multiplexer K is a stability multiplier, which represents the quantitative value of the prescription recommendation quality of the prescription recommendation model for the symptom set,
[0021] multiplexer K It is expressed as:
[0022]
[0023]
[0024] Among them, multiple K0 is the stability multiplier before normalization, max(multipler) is the maximum difference between the true accuracy of each prescription in the K prescriptions and its predicted probability, and min(multipler) is the minimum difference between the true accuracy of each prescription in the K prescriptions and its predicted probability.
[0025] Optionally, the method for obtaining the second mapping table includes:
[0026] Obtain X pieces of real medical record data, each piece of real medical record data includes a corresponding set of symptoms and a real prescription;
[0027] The first M symptoms of each symptom set in the X symptom sets are respectively taken as the target symptom set to obtain the scores of the corresponding X target symptom sets, and the average of the scores of the X target symptom sets is taken as the reference score of the symptom set when the number of symptoms is M;
[0028] M is sequentially set to [1, 2...Mmax] to obtain a second mapping table for providing a mapping relationship between the number of symptoms of the symptom combination and the reference score of the symptom combination.
[0029] Optionally, the determination of the consultation progress quantification value is implemented based on the following formula:
[0030]
[0031] In the above formula, benchmark is the reference score of the symptom set under the current number of symptoms, and times is the ratio of the score of the symptom set to the reference score of the symptom set under the current number of symptoms;
[0032] Amplifier is the first adjustment parameter, expressed as:
[0033]
[0034] Among them, initAmplifier and maxAmplifier are hyperparameters, and symNum is the current number of symptoms in the symptom set;
[0035] maxValue is the score of the symptom set;
[0036] Weight is the second adjustment parameter, expressed as:
[0037]
[0038] sqrtBase is the third adjustment parameter, expressed as:
[0039]
[0040] Result1 is the intermediate value used to obtain the quantitative value of the consultation progress, and result2 is the quantitative value of the consultation progress.
[0041] According to a second aspect of the present invention, a system for quantifying the progress of a medical consultation is provided, the system comprising the following functional modules:
[0042] A recommended prescription information acquisition module, used for putting each new symptom into a symptom set when a new symptom is acquired, and inputting the symptom set into a prescription recommendation model to obtain each recommended prescription and its predicted probability;
[0043] A recommended prescription true accuracy determination module, used to determine the true accuracy of each recommended prescription according to the predicted probability of each recommended prescription and based on a pre-acquired first mapping table;
[0044] A symptom set score acquisition module, used to acquire the score of each recommended prescription according to the true accuracy of each recommended prescription, based on the quantitative value of the expected degree of matching of the true accuracy of each recommended prescription and the quantitative value of the prescription recommendation quality of the prescription recommendation model for the symptom set, and take the maximum score among the scores of the recommended prescriptions as the score of the symptom set;
[0045] a ratio acquisition module, used to determine a reference score of the symptom set at the current number of symptoms according to a pre-acquired second mapping table, and determine a ratio of the score of the symptom set to the reference score;
[0046] The consultation progress quantitative value determination module is used to determine the consultation progress quantitative value according to the ratio and the reference score.
[0047] Optionally, the method for obtaining the first mapping table includes:
[0048] Obtain N pieces of real medical record data, each piece of real medical record data includes a corresponding set of symptoms and a real prescription;
[0049] Input N symptom sets corresponding to N real medical case data into the prescription recommendation model to obtain an N*K result matrix, wherein K is the total number of prescriptions used when training the prescription recommendation model, and each row of the result matrix represents the predicted probability of K prescriptions relative to the corresponding symptom combination, and each column of the result matrix represents the predicted probability of the corresponding prescription relative to the N symptom combination;
[0050] Sort the data in each column of the result matrix in ascending order, and uniformly segment the data in each column after ascending order, and determine whether the actual prescription corresponding to each symptom set represented by each segment of the column data is consistent with the predicted prescription corresponding to the segment of the column data. If so, mark the symptom as yes, otherwise, mark the symptom as no;
[0051] The true accuracy of the predicted probability interval corresponding to each segment of column data is determined according to the marking conditions of each symptom represented by the segment of column data, so as to obtain a first mapping table for providing a mapping relationship between the predicted probability interval of the prescription and the true accuracy of the prescription.
[0052] Optionally, the score of the recommended prescription is obtained based on the following formula:
[0053]
[0054] In the above formula, distributionProbability is the expected matching degree quantified value of the true accuracy of the kth recommended prescription output by the prescription recommendation model, k is the predicted probability of the kth recommended prescription, denominator k is a penalty denominator, whose value is the predicted probability lower limit value of the first predicted probability interval whose predicted probability lower limit value in ascending order in the first mapping table is greater than the preset value;
[0055] precision k is the true accuracy of the kth recommended prescription determined based on the first mapping table;
[0056] score k is the score of the kth recommended prescription;
[0057] multiplexer K is a stability multiplier, which represents the quantitative value of the prescription recommendation quality of the prescription recommendation model for the symptom set,
[0058] multiplexer K It is expressed as:
[0059]
[0060]
[0061] Among them, multiple K0is the stability multiplier before normalization, max(multipler) is the maximum difference between the true accuracy of each prescription in the K prescriptions and its predicted probability, and min(multipler) is the minimum difference between the true accuracy of each prescription in the K prescriptions and its predicted probability.
[0062] Optionally, the method for obtaining the second mapping table includes:
[0063] Obtain X pieces of real medical record data, each piece of real medical record data includes a corresponding set of symptoms and a real prescription;
[0064] The first M symptoms of each symptom set in the X symptom sets are respectively taken as the target symptom set to obtain the scores of the corresponding X target symptom sets, and the average of the scores of the X target symptom sets is taken as the reference score of the symptom set when the number of symptoms is M;
[0065] M is sequentially set to [1, 2...Mmax] to obtain a second mapping table for providing a mapping relationship between the number of symptoms of the symptom combination and the reference score of the symptom combination.
[0066] Optionally, the determination of the consultation progress quantification value is implemented based on the following formula:
[0067]
[0068] In the above formula, benchmark is the reference score of the symptom set under the current number of symptoms, and times is the ratio of the score of the symptom set to the reference score of the symptom set under the current number of symptoms;
[0069] Amplifier is the first adjustment parameter, expressed as:
[0070]
[0071] Among them, initAmplifier and maxAmplifier are hyperparameters, and symNum is the current number of symptoms in the symptom set;
[0072] maxValue is the score of the symptom set;
[0073] Weight is the second adjustment parameter, expressed as:
[0074]
[0075] sqrtBase is the third adjustment parameter, expressed as:
[0076]
[0077] Result1 is the intermediate value used to obtain the quantitative value of the consultation progress, and result2 is the quantitative value of the consultation progress.
[0078] The beneficial effects of the present invention are:
[0079] The method for quantifying the progress of medical consultation of the present invention is as follows: first, each time a new symptom is obtained, the new symptom is put into a symptom set, and the symptom set is input into a prescription recommendation model to obtain each recommended prescription and its predicted probability; second, the true accuracy of each recommended prescription is determined according to the predicted probability of each recommended prescription and based on a pre-acquired first mapping table; third, the score of each recommended prescription is obtained according to the true accuracy of each recommended prescription and based on the expected matching degree quantified value of the true accuracy of each recommended prescription and the prescription recommendation quality quantified value of the prescription recommendation model for the symptom set, and the maximum score among the scores of each recommended prescription is used as the score of the symptom set; third, the reference score of the symptom set at the current number of symptoms is determined according to the pre-acquired second mapping table, and the ratio of the score of the symptom set to the reference score is determined; finally, the quantification value of the medical consultation progress is determined according to the ratio and the reference score.
[0080] The consultation progress quantification method of the present invention can determine the consultation progress quantification value based on all the currently acquired symptoms, that is, the quantified current consultation progress, and then enable the corresponding Chinese medicine physician to know the distance between the current consultation node and the consultation endpoint, so as to know whether all the currently acquired symptoms are sufficient to reliably support the issuance of a prescription, and the contribution of each newly acquired symptom to the entire consultation process reaching the termination condition. It can be seen that the consultation progress quantification method of the present invention can effectively solve the problem of unclear termination conditions for Chinese medicine consultation.
[0081] The consultation progress quantification system of the present invention and the above-mentioned consultation progress quantification method belong to a general inventive concept, and have at least the same beneficial effects as the above-mentioned consultation progress quantification method, and its beneficial effects are not repeated here.
[0082] Other features and advantages of the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0083] The present invention may be better understood by referring to the following description taken in conjunction with the accompanying drawings, in which the same or similar reference numerals are used throughout the drawings to represent the same or similar components.
[0084] Figure 1 A flowchart of the implementation of the method for quantifying the progress of medical consultation according to an embodiment of the present invention is shown;
[0085] Figure 2A structural block diagram of a system for quantifying consultation progress according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0086] In order to enable those skilled in the art to more fully understand the technical solution of the present invention, the exemplary embodiments of the present invention will be described in more comprehensive and detailed in conjunction with the accompanying drawings below. Obviously, the one or more embodiments of the present invention described below are only one or more of the specific ways in which the technical solution of the present invention can be implemented, and are not exhaustive. It should be understood that other ways belonging to a general inventive concept can be used to implement the technical solution of the present invention, and should not be limited by the exemplary embodiments described. Based on one or more embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present invention.
[0087] Example: Figure 1 The following is a flowchart showing the implementation of the method for quantifying the progress of medical consultation according to an embodiment of the present invention.
[0088] Reference Figure 1 The method for quantifying the progress of consultation in an embodiment of the present invention comprises the following steps:
[0089] Step S100: when a new symptom is obtained, the new symptom is put into a symptom set, and the symptom set is input into a prescription recommendation model to obtain each recommended prescription and its predicted probability;
[0090] Step S200, determining the true accuracy of each recommended prescription according to the predicted probability of each recommended prescription and based on the pre-acquired first mapping table;
[0091] Step S300, obtaining the score of each recommended prescription according to the true accuracy of each recommended prescription, based on the expected matching degree quantified value of the true accuracy of each recommended prescription and the prescription recommendation quality quantified value of the prescription recommendation model for the symptom set, and taking the maximum score among the scores of each recommended prescription as the score of the symptom set;
[0092] Step S400: determining a reference score of the symptom set at the current number of symptoms according to the pre-acquired second mapping table, and determining a ratio of the score of the symptom set to the reference score;
[0093] Step S500: determine the consultation progress quantification value according to the ratio of the symptom set score to the reference score and the reference score of the symptom set.
[0094] Furthermore, in step S200 of the embodiment of the present invention, the method for obtaining the first mapping table includes:
[0095] Obtain N pieces of real medical record data, each piece of real medical record data includes a corresponding set of symptoms and a real prescription;
[0096] Input N symptom sets corresponding to N real medical case data into the prescription recommendation model to obtain an N*K result matrix, where K is the total number of prescriptions used in training the prescription recommendation model, and each row of the result matrix represents the predicted probability of K prescriptions relative to the corresponding symptom combination, and each column of the result matrix represents the predicted probability of the corresponding prescription relative to the N symptom combination;
[0097] Sort the data in each column of the result matrix in ascending order, and evenly segment the data in each column after ascending order, and judge whether the real prescription corresponding to each symptom set represented by each segment of column data is consistent with the predicted prescription corresponding to the segment of column data. If so, mark the symptom as yes, otherwise, mark the symptom as no;
[0098] The true accuracy of the predicted probability interval corresponding to each segment of column data is determined according to the marking conditions of each symptom represented by the segment of column data, so as to obtain a first mapping table for providing a mapping relationship between the predicted probability interval of the prescription and the true accuracy of the prescription.
[0099] Specifically, in an embodiment of the present invention, each column data after ascending sorting is uniformly segmented according to a predetermined probability interval length, and the probability interval length is 5% or 10%, that is, the column data after ascending sorting is evenly divided into multiple column data segments with a probability interval length of 5% or 10%.
[0100] Specifically, in the embodiment of the present invention, determining the true accuracy of the prediction probability interval corresponding to each segment of column data according to the labeling status of each symptom represented by the segment of column data includes:
[0101] According to the marking conditions of each symptom represented by each column data segment, the number A of symptoms marked as yes and the number B of symptoms marked as no are determined;
[0102] The sum of quantity A and quantity B is recorded as quantity C;
[0103] The ratio of quantity A to quantity C is taken as the true accuracy of the predicted probability interval corresponding to the segment of column data.
[0104] Furthermore, in step S300 of the embodiment of the present invention, the score of the recommended prescription is obtained based on the following formula:
[0105]
[0106] In the above formula, The distributionProbability is the expected matching degree quantified value of the true accuracy of the kth recommended prescription output by the prescription recommendation model.k is the predicted probability of the kth recommended prescription, denominator k is the penalty denominator, whose value is the predicted probability lower limit value of the first predicted probability interval whose predicted probability lower limit value in ascending order in the first mapping table is greater than the preset value;
[0107] precision k is the true accuracy of the kth recommended prescription determined based on the first mapping table;
[0108] score k is the score of the kth recommended prescription;
[0109] multiplexer K is a stability multiplier, which represents the quantitative value of the prescription recommendation quality of the prescription recommendation model for the symptom set.
[0110] multiplexer K It is expressed as:
[0111]
[0112]
[0113] Among them, multiple K0 is the stability multiplier before normalization, max(multipler) is the maximum difference between the true accuracy of each prescription in the K prescriptions and its predicted probability, and min(multipler) is the minimum difference between the true accuracy of each prescription in the K prescriptions and its predicted probability.
[0114] Specifically, in the embodiment of the present invention, denominator k is the predicted probability lower limit value of the first predicted probability interval whose predicted probability lower limit value is greater than 0.6 in ascending order in the first mapping table;
[0115] The expected matching degree of the true accuracy of the recommended prescription represents the user's expectation of the true accuracy of the recommended prescription output by the prescription recommendation model. If it is greater than or equal to 1, it is considered that the true accuracy of the recommended prescription has met the corresponding expectations; if it is less than 1, it is considered that the true accuracy of the recommended prescription has not met the corresponding expectations.
[0116] Specifically, in the embodiment of the present invention, multipler K It represents the quantitative value of the prescription recommendation quality of the prescription recommendation model for the symptom set, which can also be understood as the internal quality of the prescription recommendation model when predicting the prescription for the symptom set;
[0117] multiplexer KThe acquisition of is mainly divided into two steps. The first step is to calculate the multipler K0 , which is used to characterize precision k and distributionProbability k The uniformity and consistency of the common growth; the second step is to K0 Perform global normalization to obtain multipler K .
[0118] Furthermore, in step S400 of the embodiment of the present invention, the method for obtaining the second mapping table includes:
[0119] Obtain X pieces of real medical record data, each piece of real medical record data includes a corresponding set of symptoms and a real prescription;
[0120] The first M symptoms of each symptom set in the X symptom sets are respectively taken as the target symptom set to obtain the scores of the corresponding X target symptom sets, and the average of the scores of the X target symptom sets is taken as the reference score of the symptom set when the number of symptoms is M;
[0121] Sequentially set M to [1, 2...Mmax] to obtain a second mapping table for providing a mapping relationship between the number of symptoms of the symptom combination and the reference score of the symptom combination;
[0122] Among them, Mmax is the maximum value of M that is set.
[0123] Specifically, in an embodiment of the present invention, 100,000 real medical case data are selected, and these 100,000 real medical case data correspond to 100,000 symptom sets; first, the previous symptom in each of the 100,000 symptom sets is used as the target symptom set, and then the scores of the 100,000 target symptom sets are obtained, and then the average value of the scores of the 100,000 target symptom sets is used as the reference score of the symptom set when the number of symptoms is one; next, the first two symptoms in each of the 100,000 symptom sets are used as the target symptom set, the scores of the 100,000 target symptom sets are obtained, and the average value of the scores of the 100,000 target symptom sets is used as the reference score of the symptom set when the number of symptoms is two; using the above method, the reference scores of the symptom sets when the number of symptoms is three, four, five up to the maximum value are obtained, thereby obtaining the reference scores of the symptom sets under different numbers of symptoms.
[0124] Furthermore, in step S500 of the embodiment of the present invention, the determination of the consultation progress quantification value is implemented based on the following formula:
[0125]
[0126] In the above formula, benchmark is the reference score of the symptom set under the current number of symptoms, and times is the ratio of the score of the symptom set to the reference score of the symptom set under the current number of symptoms;
[0127] Amplifier is the first adjustment parameter, expressed as:
[0128]
[0129] Among them, initAmplifier and maxAmplifier are hyperparameters, and symNum is the current number of symptoms in the symptom set;
[0130] maxValue is the score of the symptom set;
[0131] Weight is the second adjustment parameter, expressed as:
[0132]
[0133] sqrtBase is the third adjustment parameter, expressed as:
[0134]
[0135] Result1 is the intermediate value used to obtain the quantitative value of the consultation progress, and result2 is the quantitative value of the consultation progress.
[0136] Specifically, in the embodiment of the present invention, times is expressed as:
[0137]
[0138] In the above formula, maxValue is the score of the symptom set, that is, the maximum score among the scores of each recommended prescription; benchmark is the reference score of the symptom set under the current number of symptoms, which is based on the current number of symptoms of the symptom set and determined by the second mapping table.
[0139] Specifically, in the embodiment of the present invention, the acquisition of result1 is divided into two cases, namely times>1 and times≤1. This setting is to avoid the abnormal problem of result1 being too large when the number of symptoms in the symptom set is small.
[0140] Specifically, in the embodiment of the present invention, the function of the first adjustment parameter amplifier is to: scale the distribution [α, β] of result2 to a predetermined interval, such as [0, 1]; and when the number of symptoms in the symptom set is small, the function graph of the adjustment mapping is adjusted to introduce nonlinearity, so that when the number of symptoms in the symptom set gradually increases, the scaling amplitude of result2 can be increased in a square trend under the limitation of the expected number of symptoms;
[0141] The two hyper parameters initAmplifier and maxAmplifier can be set according to actual needs. In the embodiment of the present invention, initAmplifier and maxAmplifier are set to 0.5 and 1.5 respectively;
[0142] The expected number of symptoms refers to the minimum number of symptoms expected for each symptom set, with a priority of 11.
[0143] Specifically, in an embodiment of the present invention, the second adjustment parameter weight is a weight for achieving weighted averaging, specifically used for weighted averaging between the score of the symptom set and the reference score; in the process of consultation with a Chinese medicine doctor, due to the small total number of symptoms in the early stage, the amount of information obtained by the prescription recommendation model is small, and the output variance is large. In the later stage, as the total number of symptoms increases, the amount of information obtained by the prescription recommendation model also increases, and the output variance of the prescription recommendation model gradually decreases and tends to be stable; therefore, the value of the second adjustment parameter weight will continue to decrease with the increase in the total number of symptoms, then assigning 1-weight to maxValue can be considered to be due to the poor reference quality of maxValue in the early stage, and instead paying attention to benchmark*weight, and the poor reference quality of maxValue will be reversed in the middle and late stages; at the same time, the operation of assigning 1-weight to maxValue can also play a role in smoothing the output of result2 of the previous and subsequent time steps during the same consultation process.
[0144] Specifically, in the embodiment of the present invention, the role of the third adjustment parameter sqrtBase is to adjust the sensitivity of result2 to the smaller result1. The smaller the value, the more sensitive it is, and the larger the value, the slower it is. Because result1 is small in the early stage, the initial value of sqrtBase is large, and it decreases in the later stage with the increase of the total number of symptoms.
[0145] Specifically, in an embodiment of the present invention, result2 is represented by a floating-point value ranging from 0 to 100, which represents the percentage of the current consultation process; after obtaining the first result2, it is displayed on the corresponding indicator in the form of a visual progress bar, and when obtaining subsequent result2, the difference between the two result2s is highlighted on the visual progress bar.
[0146] Different from the implementation method of measuring whether the categories involved in the currently recorded patient symptoms are comprehensive and whether they have reached a threshold through a scoring rule, the embodiment of the present invention adopts the method of evaluating the progress of the current consultation process by judging the true accuracy corresponding to the probability value of the prescription that can be deduced from the currently recorded patient symptoms, and displaying it through a visual progress bar, implicitly and positively guiding Chinese medicine physicians to record more comprehensive and detailed patient symptoms, thereby improving the content quality of potential medical case data available for analysis and facilitating subsequent basic research.
[0147] Accordingly, based on the method for quantifying the progress of a medical consultation in the embodiment of the present invention, the embodiment of the present invention further proposes a system for quantifying the progress of a medical consultation.
[0148] Figure 2 FIG. 1 is a block diagram showing a system for quantifying the progress of a medical consultation according to an embodiment of the present invention. Figure 2 The consultation progress quantification system of the embodiment of the present invention includes the following functional modules:
[0149] A recommended prescription information acquisition module, used for putting each new symptom into a symptom set when a new symptom is acquired, and inputting the symptom set into a prescription recommendation model to obtain each recommended prescription and its predicted probability;
[0150] A recommended prescription true accuracy determination module, used to determine the true accuracy of each recommended prescription according to the predicted probability of each recommended prescription and based on a pre-acquired first mapping table;
[0151] A symptom set score acquisition module, used to acquire the score of each recommended prescription according to the true accuracy of each recommended prescription, based on the quantitative value of the expected degree of matching of the true accuracy of each recommended prescription and the quantitative value of the prescription recommendation quality of the prescription recommendation model for the symptom set, and take the maximum score among the scores of the recommended prescriptions as the score of the symptom set;
[0152] a ratio acquisition module, used to determine a reference score of the symptom set at the current number of symptoms according to a pre-acquired second mapping table, and determine a ratio of the score of the symptom set to the reference score;
[0153] The consultation progress quantitative value determination module is used to determine the consultation progress quantitative value according to the ratio and the reference score.
[0154] Although one or more embodiments of the present invention are described above, it should be known to those skilled in the art that the present invention can be implemented in any other form without departing from its subject matter and scope. Therefore, the embodiments described above are illustrative rather than restrictive, and many modifications and substitutions are obvious to those skilled in the art without departing from the spirit and scope of the present invention as defined in the appended claims.
Claims
1. A method for quantifying the progress of a medical consultation, characterized in that: include: When a new symptom is obtained, the new symptom is put into a symptom set, and the symptom set is input into a prescription recommendation model to obtain each recommended prescription and its predicted probability; Determining the true accuracy of each recommended prescription according to the predicted probability of each recommended prescription and based on the pre-acquired first mapping table; Obtaining a score for each recommended prescription according to the true accuracy of each recommended prescription, based on a quantitative value of the expected degree of matching of the true accuracy of each recommended prescription and a quantitative value of the prescription recommendation quality of the prescription recommendation model for the symptom set, and taking the maximum score among the scores of the recommended prescriptions as the score of the symptom set; Determine a reference score of the symptom set at the current number of symptoms according to a pre-acquired second mapping table, and determine a ratio of the score of the symptom set to the reference score; Determine a quantitative value of the consultation progress according to the ratio and the reference score; The method for obtaining the first mapping table includes: Obtain N pieces of real medical record data, each piece of real medical record data includes a corresponding set of symptoms and a real prescription; Input N symptom sets corresponding to N real medical case data into the prescription recommendation model to obtain an N*K result matrix, wherein K is the total number of prescriptions used when training the prescription recommendation model, and each row of the result matrix represents the predicted probability of K prescriptions relative to the corresponding symptom combination, and each column of the result matrix represents the predicted probability of the corresponding prescription relative to the N symptom combination; Sort the data in each column of the result matrix in ascending order, and uniformly segment the data in each column after ascending order, and determine whether the actual prescription corresponding to each symptom set represented by each segment of the column data is consistent with the predicted prescription corresponding to the segment of the column data. If so, mark the symptom as yes, otherwise, mark the symptom as no; Determine the true accuracy of the prediction probability interval corresponding to each segment of column data according to the labeling status of each symptom represented by the segment of column data, so as to obtain a first mapping table for providing a mapping relationship between the prediction probability interval of the prescription and the true accuracy of the prescription; The score of the recommended prescription is obtained based on the following formula: In the above formula, distributionProbability is the expected matching degree quantified value of the true accuracy of the kth recommended prescription output by the prescription recommendation model, k is the predicted probability of the kth recommended prescription, denominator k is a penalty denominator, whose value is the predicted probability lower limit value of the first predicted probability interval whose predicted probability lower limit value in ascending order in the first mapping table is greater than the preset value; precision k is the true accuracy of the kth recommended prescription determined based on the first mapping table; score k is the score of the kth recommended prescription; multiplexer K is a stability multiplier, which represents the quantitative value of the prescription recommendation quality of the prescription recommendation model for the symptom set, multiplexer K It is expressed as: Among them, multiple K0 is the stability multiplier before normalization, max(multipler) is the maximum difference between the true accuracy of each prescription in the K prescriptions and its predicted probability, and min(multipler) is the minimum difference between the true accuracy of each prescription in the K prescriptions and its predicted probability; The method for obtaining the second mapping table includes: Obtain X pieces of real medical record data, each piece of real medical record data includes a corresponding set of symptoms and a real prescription; The first M symptoms of each symptom set in the X symptom sets are respectively taken as the target symptom set to obtain the scores of the corresponding X target symptom sets, and the average of the scores of the X target symptom sets is taken as the reference score of the symptom set when the number of symptoms is M; Sequentially setting M to [1, 2…Mmax] to obtain a second mapping table for providing a mapping relationship between the number of symptoms of the symptom combination and the reference score of the symptom combination; The determination of the consultation progress quantification value is based on the following formula: result2=100*min(result1,1) sqrtBase In the above formula, benchmark is the reference score of the symptom set under the current number of symptoms, and times is the ratio of the score of the symptom set to the reference score of the symptom set under the current number of symptoms; Amplifier is the first adjustment parameter, expressed as: Among them, initAmplifier and maxAmplifier are hyperparameters, and symNum is the current number of symptoms in the symptom set; maxValue is the score of the symptom set; Weigh is the second adjustment parameter, expressed as: sqrtBase is the third adjustment parameter, expressed as: Result1 is the intermediate value used to obtain the quantitative value of the consultation progress, and result2 is the quantitative value of the consultation progress.
2. A consultation progress quantification system, characterized in that: include: A recommended prescription information acquisition module, used for putting each new symptom into a symptom set when a new symptom is acquired, and inputting the symptom set into a prescription recommendation model to obtain each recommended prescription and its predicted probability; A recommended prescription true accuracy determination module, used to determine the true accuracy of each recommended prescription according to the predicted probability of each recommended prescription and based on a pre-acquired first mapping table; A symptom set score acquisition module, used to acquire the score of each recommended prescription according to the true accuracy of each recommended prescription, based on the quantitative value of the expected degree of matching of the true accuracy of each recommended prescription and the quantitative value of the prescription recommendation quality of the prescription recommendation model for the symptom set, and take the maximum score among the scores of the recommended prescriptions as the score of the symptom set; a ratio acquisition module, used to determine a reference score of the symptom set at the current number of symptoms according to a pre-acquired second mapping table, and determine a ratio of the score of the symptom set to the reference score; A consultation progress quantitative value determination module, used to determine the consultation progress quantitative value according to the ratio and the reference score; The method for obtaining the first mapping table includes: Obtain N pieces of real medical record data, each piece of real medical record data includes a corresponding set of symptoms and a real prescription; Input N symptom sets corresponding to N real medical case data into the prescription recommendation model to obtain an N*K result matrix, wherein K is the total number of prescriptions used when training the prescription recommendation model, and each row of the result matrix represents the predicted probability of K prescriptions relative to the corresponding symptom combination, and each column of the result matrix represents the predicted probability of the corresponding prescription relative to the N symptom combination; Sort the data in each column of the result matrix in ascending order, and uniformly segment the data in each column after ascending order, and determine whether the actual prescription corresponding to each symptom set represented by each segment of the column data is consistent with the predicted prescription corresponding to the segment of the column data. If so, mark the symptom as yes, otherwise, mark the symptom as no; Determine the true accuracy of the prediction probability interval corresponding to each segment of column data according to the labeling status of each symptom represented by the segment of column data, so as to obtain a first mapping table for providing a mapping relationship between the prediction probability interval of the prescription and the true accuracy of the prescription; The score of the recommended prescription is obtained based on the following formula: In the above formula, distributionProbability is the expected matching degree quantified value of the true accuracy of the kth recommended prescription output by the prescription recommendation model, k is the predicted probability of the kth recommended prescription, denominator k is a penalty denominator, whose value is the predicted probability lower limit value of the first predicted probability interval whose predicted probability lower limit value in ascending order in the first mapping table is greater than the preset value; precision k is the true accuracy of the kth recommended prescription determined based on the first mapping table; score k is the score of the kth recommended prescription; multiplexer K is a stability multiplier, which represents the quantitative value of the prescription recommendation quality of the prescription recommendation model for the symptom set, multiplexer K It is expressed as: Among them, multiple K0 is the stability multiplier before normalization, max(multipler) is the maximum difference between the true accuracy of each prescription in the K prescriptions and its predicted probability, and min(multipler) is the minimum difference between the true accuracy of each prescription in the K prescriptions and its predicted probability; The method for obtaining the second mapping table includes: Obtain X pieces of real medical record data, each piece of real medical record data includes a corresponding set of symptoms and a real prescription; The first M symptoms of each symptom set in the X symptom sets are respectively taken as the target symptom set to obtain the scores of the corresponding X target symptom sets, and the average of the scores of the X target symptom sets is taken as the reference score of the symptom set when the number of symptoms is M; Sequentially setting M to [1, 2…Mmax] to obtain a second mapping table for providing a mapping relationship between the number of symptoms of the symptom combination and the reference score of the symptom combination; The determination of the consultation progress quantification value is based on the following formula: result2=100*min(result1,1) sqrtBase In the above formula, benchmark is the reference score of the symptom set under the current number of symptoms, and times is the ratio of the score of the symptom set to the reference score of the symptom set under the current number of symptoms; Amplifier is the first adjustment parameter, expressed as: Among them, initAmplifier and maxAmplifier are hyperparameters, and symNum is the current number of symptoms in the symptom set; maxValue is the score of the symptom set; Weigh is the second adjustment parameter, expressed as: sqrtBase is the third adjustment parameter, expressed as: Result1 is the intermediate value used to obtain the quantitative value of the consultation progress, and result2 is the quantitative value of the consultation progress.
