WO2021164388A1 - Triage fusion model training method, triage method, apparatus, device, and medium - Google Patents

Triage fusion model training method, triage method, apparatus, device, and medium Download PDF

Info

Publication number
WO2021164388A1
WO2021164388A1 PCT/CN2020/135343 CN2020135343W WO2021164388A1 WO 2021164388 A1 WO2021164388 A1 WO 2021164388A1 CN 2020135343 W CN2020135343 W CN 2020135343W WO 2021164388 A1 WO2021164388 A1 WO 2021164388A1
Authority
WO
WIPO (PCT)
Prior art keywords
triage
results
fusion
result
model
Prior art date
Application number
PCT/CN2020/135343
Other languages
French (fr)
Chinese (zh)
Inventor
唐蕊
李彦轩
朱昭苇
孙行智
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021164388A1 publication Critical patent/WO2021164388A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H40/00ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices
    • G16H40/20ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices for the management or administration of healthcare resources or facilities, e.g. managing hospital staff or surgery rooms

Definitions

  • This application relates to the field of big data data processing, and in particular to a triage fusion model training method, triage method, device, equipment, and medium.
  • the inventor found that when a patient goes to the hospital for treatment, he first needs to go to the triage table for manual triage. In this process, the patient needs to spend a lot of time in queuing, and the depth and breadth of the professional knowledge of the guides at the triage table is limited. Higher requirements, if the guides give the patient a wrong diagnosis and need to perform the triage again, it will greatly waste the patient’s time and seriously affect the patient’s experience. Therefore, in the prior art, the manual triage of the patient takes a long time. , It is difficult to give a reasonable medical department or doctor, resulting in poor patient experience and low medical accuracy.
  • This application provides a triage fusion model training, a triage method, a device, a computer device, and a storage medium, which enables accurate recommendation of topic data to users, improves the accuracy of topic recommendation, and avoids showing disliked topic data to users Users have improved user experience satisfaction and the effectiveness of topic recommendations.
  • This application is suitable for smart medical and other fields, which can further promote the construction of smart cities.
  • a training method for triage fusion model including:
  • the medical consultation sample set includes a plurality of medical consultation samples, and each medical consultation sample is associated with a triage label;
  • the multi-fusion neural network model is recorded as a triage fusion model.
  • a method of triage including:
  • a triage fusion model training device including:
  • the obtaining module is used to obtain a medical examination sample set;
  • the medical examination sample set includes a plurality of medical examination samples, and each of the medical examination samples is associated with a triage label;
  • An input module used to input the consultation samples into a multi-fusion neural network model containing initial parameters
  • a prediction module used for predicting the medical sample through the multi-fusion neural network model, and obtaining at least two triage results
  • the standardization module is used to perform standardized conversion of each of the triage results to obtain a standardized result corresponding to each of the triage results;
  • the weight module is used to perform weight fusion of all the standardized results to obtain sample triage results
  • a loss module configured to perform loss analysis on the sample triage result and the triage label through the loss model in the multi-fusion neural network model to obtain a total loss value
  • the iterative module is used to iteratively update the initial parameters of the multi-fusion neural network model when the total loss value does not reach the preset convergence condition, until the total loss value reaches the preset convergence condition,
  • the multi-fusion neural network model after convergence is recorded as a triage fusion model.
  • a triage device including:
  • the receiving module is used to receive the patient's triage request, and obtain the patient's medical treatment information in the triage request;
  • the triage module is used to input the patient information into the triage fusion model trained by the above-mentioned triage fusion model training method, and obtain the final triage result output by the triage fusion model.
  • a computer device includes a memory, a processor, and computer-readable instructions that are stored in the memory and can run on the processor, and the processor implements the following steps when the processor executes the computer-readable instructions:
  • the medical consultation sample set includes a plurality of medical consultation samples, and each medical consultation sample is associated with a triage label;
  • the multi-fusion neural network model is recorded as a triage fusion model.
  • a computer device includes a memory, a processor, and computer-readable instructions that are stored in the memory and can run on the processor, and the processor further implements the following steps when the processor executes the computer-readable instructions:
  • the patient visit information is input into the triage fusion model trained by the triage fusion model training method, and the final triage result output by the triage fusion model is obtained.
  • One or more readable storage media storing computer readable instructions, when the computer readable instructions are executed by one or more processors, the one or more processors execute the following steps:
  • the medical consultation sample set includes a plurality of medical consultation samples, and each medical consultation sample is associated with a triage label;
  • the multi-fusion neural network model is recorded as a triage fusion model.
  • One or more readable storage media storing computer readable instructions, when the computer readable instructions are executed by one or more processors, the one or more processors further execute the following steps:
  • the patient visit information is input into the triage fusion model trained by the triage fusion model training method, and the final triage result output by the triage fusion model is obtained.
  • the triage fusion model training method, device, computer equipment, and storage medium provided in this application are obtained by obtaining a consultation sample set; the consultation sample set includes a plurality of consultation samples, and each of the consultation samples is associated with a triage label;
  • the medical sample input contains a multi-fusion neural network model containing initial parameters; the medical sample is predicted by the multi-fusion neural network model to obtain at least two triage results; each of the triage results is standardized and converted, Obtain a standardized result corresponding to each of the triage results; perform weight fusion on all the standardized results to obtain a sample triage result; use the loss model in the multi-fusion neural network model to compare the sample triage result and
  • the triage label performs loss analysis to obtain a total loss value; when the total loss value does not reach the preset convergence condition, iteratively update the initial parameters of the multi-fusion neural network model until the total loss value reaches the total loss value.
  • the multi-fusion neural network model after convergence is recorded as a triage fusion model. Therefore, this application provides a triage fusion model training method, and at least two models are predicted by the multi-fusion neural network model.
  • Triage results multi-fusion neural network model includes at least two models, one model corresponds to one triage result), standardized conversion of each triage result to obtain each standardized result, and weight fusion of all standardized results to obtain sample triage result , Perform loss analysis through the loss model to obtain the total loss value, and iteratively update the multi-fusion neural network model according to the total loss value until convergence, which realizes the standardization of the triage results output by the different models in the multi-fusion neural network model, so that It has size-related comparability, breaking the limitation of independence between models, and through weight fusion and loss analysis, it can make the training of multi-fusion neural network models more efficient and accurate, and improve the multi-fusion neural network model. Performance and accuracy of recognition.
  • the triage method, device, computer equipment, and storage medium provided in this application obtain the patient's medical information in the triage request by receiving the patient's triage request; and input the patient's medical information into the above-mentioned triage fusion model training Methods
  • the trained triage fusion model is used to obtain the final triage results output by the triage fusion model.
  • this application uses the triage fusion model training method to train the completed triage fusion model to predict the patient's visit information, and obtain the final
  • the triage result, the final triage result provides an accurate basis for patients to make an appointment, improves the accuracy and efficiency of triage, improves user satisfaction, and enhances the effectiveness of triage.
  • FIG. 1 is a schematic diagram of an application environment of a triage fusion model training method or a triage method in an embodiment of the present application;
  • FIG. 2 is a flowchart of a method for training a triage fusion model in an embodiment of the present application
  • Fig. 3 is a flowchart of step S40 of the method for training a triage fusion model in an embodiment of the present application
  • step S50 is a flowchart of step S50 of the method for training a triage fusion model in an embodiment of the present application
  • FIG. 5 is a flowchart of step S60 of the method for training a triage fusion model in an embodiment of the present application
  • Fig. 6 is a flowchart of a triage method in an embodiment of the present application.
  • Figure 7 is a functional block diagram of a triage fusion model training device in an embodiment of the present application.
  • Fig. 8 is a functional block diagram of a triage device in an embodiment of the present application.
  • Fig. 9 is a schematic diagram of a computer device in an embodiment of the present application.
  • the triage fusion model training method provided by this application can be applied in the application environment as shown in Fig. 1, in which the client (computer equipment) communicates with the server through the network.
  • the client includes, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, cameras, and portable wearable devices.
  • the server can be implemented as an independent server or a server cluster composed of multiple servers.
  • a method for training a triage fusion model is provided, and its technical solution mainly includes the following steps S10-S70:
  • S10 Obtain a medical visit sample set; the medical visit sample set includes multiple medical visit samples, and each medical visit sample is associated with a triage label.
  • the medical consultation sample set is a collection of the medical consultation samples collected, and the medical consultation sample is data of medical consultation information that has been input from the collected history of the patient and has completed triage.
  • the triage label is associated, and the triage label is a department after the corresponding visit sample was finally triaged in the actual visit, and the department is a variety of departments included in the hospital.
  • S20 Input the patient visit samples into a multi-fusion neural network model containing initial parameters.
  • the multi-fusion neural network model is a neural network model that merges at least two models.
  • the multi-fusion neural network model can select the fused model according to requirements.
  • the selected fusion model can be an LSTM model, a depth Convolutional neural network model (DCNN model), recurrent neural network model (RNN model), deep residual network model (DRN model) or reinforcement learning model, etc.
  • the initial parameters include each of the multiple fusion neural network models
  • the parameters of the model, the parameters of each model can be directly transferred from the parameters of the model of the same type as each of the models in other fields by means of transfer learning, that is, the model of the same type as each of the models in other fields
  • the parameters are used as the parameters of the model.
  • S30 Predict the medical samples through the multi-fusion neural network model, and obtain at least two triage results.
  • the multi-fusion neural network model includes a neural network model of at least two models, and the multi-fusion neural network model predicts the consultation sample, that is, each of the models in the multi-fusion neural network model
  • the predictions are made on the samples to be visited respectively, and the prediction is that each of the models is processed according to their respective algorithms to predict the predicted value of each triage category, so that each of the models predicts the respective triage result, namely One of the models corresponds to one of the triage results, indicating that the multi-fusion neural network model outputs at least two of the triage results, and the triage results include all triage categories and the predicted value of each triage category ,
  • the predicted value predicts the possibility of the triage category, and the complete set of triage categories is the same as the complete set of triage labels. For example, if the triage label has 100 categories, the triage category is also There are 100 categories in one-to-one correspondence with the triage labels, and there are 100 triage categories and 100 predicted values corresponding to the triage categories in the triage
  • the multi-fusion neural network model includes an LSTM model, a deep convolutional neural network model, and a reinforcement learning model
  • the LSTM model Long short term memory network, long and short term memory network model
  • the model for predicting the results of triage of the consultation samples, and the deep convolutional neural network model is to compare the consultation samples with the network structure in the deep convolutional neural network model (such as VGG16, GoogleNet, ResNet, etc.) Perform convolution, pooling, and fully connected models for predicting triage results.
  • the reinforcement learning model is the expected return Q value obtained after performing various actions on the sample of the visit and predicts the triage based on the expected return Q value The resulting model.
  • standardization technology is used to perform standardized assignment to each triage category in each of the sorting results, that is, to associate each triage category with the triage category in the sorting result Comparable values corresponding to the sequences in, so as to obtain a standardized result corresponding to each of the sorting results one-to-one, that is, the standardized result corresponding to each of the triage results.
  • step S40 that is, performing standardized conversion on each of the triage results to obtain a standardized result corresponding to each of the triage results includes:
  • S401 Sort the triage categories in each of the triage results from large to small, and obtain the pre-set number of triage categories with the first sequence after the sorting, and determine each of the obtained triage results as The sorting result corresponding to each of the triage results; the triage result includes the triage category.
  • the triage results are sorted according to the predicted value of each of the triage categories in the triage results in descending order, and the sequence is obtained from the sorted triage results
  • the preset extraction number is the number of the first sequence extracted from the triage result
  • the preset extraction number can be set according to requirements, the preset extraction number It is less than the number of the complete set of triage categories.
  • the preset extraction number is set to a multiple of 10, such as 10, 20, 30, and so on.
  • the standardization technique is to determine the comparable value assigned to each triage category according to the sequence digits of each triage category in the ranking result through a standardization function, and the standardization function is:
  • h is the preset extraction quantity
  • j is the number of sequence digits of the triage category whose sequence is the jth position in the sorting result, such as the first position, the second position, etc.
  • Y j is the In the ranking result, the sequence is the comparable value of the j-th triage category.
  • the standardized assignment value will give a comparable value to each triage category in each of the ranking results
  • the comparable value is a value calculated using the standardized function according to the number of sequence digits of the triage category in the ranking result , Associating each of the triage categories in the ranking result with the corresponding comparable value.
  • S403 Determine each of the sorting results after the assignment as a standardized result corresponding to each of the sorting results in a one-to-one manner.
  • each of the ranking results assigned by the standardization technology is determined as the corresponding standardized result, and the standardized result includes the triage category, the predicted value corresponding to the triage category, and The comparable value associated with the triage category is such that the possibility of the triage category of different models is comparable in size.
  • This application realizes that by sorting the triage categories in each of the triage results from large to small, and obtaining the pre-set number of triage categories with the first sequence after the sorting, the obtained triage categories
  • the result is determined as the sorting result corresponding to each of the triage results; through standardization technology, each triage category in each of the sorting results is standardized and assigned; each of the sorting results after the assignment is determined to be the same as each of the sorting results.
  • the sorting results correspond to the standardized results one-to-one. In this way, by standardizing the triage results of different models, the triage categories in the sorting results of different models are comparable in size, so that the subsequent multi-models can be compared. Provide assistance during the fusion process to further improve the performance of the multi-fusion neural network model, and improve the accuracy and efficiency of triage prediction.
  • the process of the weight fusion is as follows: firstly, each of the standardized results is converted into a triage vector of a preset dimension to obtain a triage vector corresponding to each of the standardized results. The difference between the triage result and the triage label is determined, and the accuracy rate corresponding to each of the triage results is determined, that is, the accuracy rate corresponding to each of the standardized results is obtained; secondly, according to all the results The accuracy rate generates a weight corresponding to the triage vector corresponding to the standardized result corresponding to each of the accuracy rates; finally, the sample triage result is obtained according to each of the triage vectors and each of the weights.
  • the preset dimension is the number of complete sets of triage categories, and the preset dimension is greater than the preset extraction quantity.
  • step S50 that is, performing weight fusion of all the standardized results to obtain the sample triage results, including:
  • S501 Transform each of the standardized results into a triage vector of a preset dimension to obtain a triage vector corresponding to each of the standardized results.
  • the triage vector is converted into a vector of the same dimension according to the predicted value corresponding to each triage category in each of the standardized results, that is, the preset is initialized for each standardized result
  • a vector array of dimensions the vector array reserves an element position for all triage categories, and fills the element position corresponding to the triage category in the vector array according to the predicted value corresponding to each triage category in the standardized result , The remaining element positions are filled with zeros, so that the filled vector array is determined as the process of the triage vector corresponding to the normalized result.
  • S502 Determine an accuracy rate corresponding to each of the triage results according to each of the triage results and the triage tags.
  • the triage result output by each model is compared with the triage label to obtain the accuracy rate of each model, that is, in the ranking result corresponding to the triage result
  • the accuracy rate of each model that is, in the ranking result corresponding to the triage result
  • all the predicted values of the ranking result are summed to obtain the accuracy rate of the model corresponding to the triage result.
  • the prediction value corresponding to the triage category that is the same as the triage label in the triage result is determined to be the same as that of the triage label. State the accuracy of the model corresponding to the triage results.
  • S503 Generate a weight corresponding to each of the triage vectors according to all the accuracy rates.
  • the accuracy rates are normalized, and after the normalization, the weight corresponding to each accuracy rate is calculated, that is, all the accuracy rates are summed to obtain the total accuracy rate.
  • the ratio of the accuracy rate corresponding to the triage vector to the total accuracy rate is determined as the weight corresponding to the triage vector.
  • the triage vector and the weight corresponding to the triage vector are multiplied, that is, each of the predicted values in the triage vector is multiplied by the weight to obtain the updated weight
  • the weight prediction value in the triage vector is added to the weight prediction values of the same triage category in all the updated weight triage vectors, that is, the weight prediction values in all the updated weight triage vectors are the same
  • the weight prediction values of the triage category are summarized to obtain a vector array of the preset dimension, the summarized vector array is determined as the sample triage result, and the sample triage result is The weight prediction value is determined as a probability value.
  • the triage vector corresponding to each of the standardized results is obtained by converting each of the standardized results into a triage vector of a preset dimension; according to each of the triage results and the triage label, it is determined The accuracy rate corresponding to each of the triage results; according to all the accuracy rates, a weight corresponding to each of the triage vectors is generated; according to each of the triage vectors and each of the weights, the sample triage is obtained
  • the weights of the multi-fusion neural network model, fusing each model, and fusing to generate a sample triage result of a preset dimension it is possible to scientifically and accurately fuse multiple models in the multi-fusion neural network model. Improve the accuracy and reliability of triage.
  • S60 Perform a loss analysis on the sample triage result and the triage label through the loss model in the multi-fusion neural network model to obtain a total loss value.
  • the sample triage results are sorted according to the predicted value in the sample triage results in descending order, and the sorted sample triage results in the sequence of the first preset number
  • the triage category, the obtained sample triage result is determined as the filtered triage result;
  • the sample triage result includes the triage category and the probability value corresponding to the triage category, and gives the filter score
  • Each of the triage categories in the diagnosis result is assigned an order-related value, wherein, if there is the triage category that is the same as the triage label, the total probability value is substituted for the triage that is the same as the triage label.
  • the probability value corresponding to the diagnosis category, the sequence correlation value and the probability value (including the probability value after replacement) corresponding to each of the triage categories in the filtered triage result are input into the In the loss model, loss analysis is performed through the loss model to obtain the total loss value.
  • the preset number can be set according to requirements, the preset number can be the same as the preset extraction number, or it can be different from the preset extraction number, and the sum of the probabilities is all the probabilities The sum of values.
  • the loss model in the multi-fusion neural network model is used to perform a loss analysis on the sample triage result and the triage label , Get the total loss value, including:
  • S601 Sort the sample triage results in descending order, and obtain a preset number of triage categories in the sequence of the sorted sample triage results, and triage the obtained sample The result is determined as a filtered triage result; the sample triage result includes the triage category and the probability value corresponding to the triage category.
  • the sample triage results are sorted according to the probability value of each of the triage categories in the sample triage results in descending order, from the sorted sample triage results
  • the preset number of triage categories with the pre-sequence obtained in the triage category, the pre-set number is the number of the pre-sequence extracted from the sample triage results
  • the preset number can be set according to requirements, the preset number It may be the same as the preset extraction quantity, or may be different from the preset extraction quantity, for example, the preset quantity is 20, 30, etc., and the obtained sample triage result is determined as the filtering Triage results.
  • sequence correlation value ln(k-i+1) is assigned to each of the triage categories in the filtered triage results through the sequence correlation function, where k is the preset number, i The sequence in the filtered triage result is the i-th position.
  • the total probability value is substituted for the triage category corresponding to the triage category.
  • the probability value when there is no triage category that is the same as the triage label in all triage categories in the filtered triage result, there is no need to process the probability value in the filtered triage result.
  • sequence correlation value and the probability value corresponding to each of the triage categories are input into the loss function in the loss model, and the total loss value is calculated by the loss function.
  • step S604 that is, inputting the sequence correlation value and the probability value corresponding to each of the triage categories in the filtered triage result into the loss model, Perform loss analysis through the loss model to obtain the total loss value, including:
  • L is the total loss value
  • k is the preset number
  • p 1 is the probability value corresponding to the triage category whose sequence is the first in the filtered triage result
  • ln(k) is the sequence correlation value corresponding to the triage category whose sequence is the first in the filtered triage result
  • p i is the probability value corresponding to the triage category whose sequence is the i-th in the filtered triage result
  • ln(k-i+1) is the sequence correlation value corresponding to the triage category whose sequence is the i-th in the filtered triage result
  • p k is the probability value corresponding to the triage category whose sequence is the kth in the filtered triage result
  • ln(1) is the sequence correlation value corresponding to the triage category whose sequence is the kth in the filtered triage result.
  • the convergence condition may be a condition that the value of the total loss value is small and will not drop after 3000 calculations, that is, the value of the total loss value is very small after 3000 calculations.
  • the convergence condition can also be the condition that the total loss value is less than the set threshold, that is, the convergence condition is less than the set threshold.
  • stop training, and the multi-fusion neural network model after convergence is recorded as a triage fusion model.
  • the initial parameters in the multi-fusion neural network model and trigger the prediction of the medical sample through the multi-fusion neural network model, and the steps of obtaining at least two triage results can continuously move closer to accurate results, allowing identification The accuracy rate is getting higher and higher.
  • the loss function of the multi-fusion neural network model it can optimize the sample triage results of the multi-fusion neural network model, and this improvement improves the performance of the multi-fusion neural network model.
  • This application realizes the acquisition of a medical consultation sample set;
  • the medical consultation sample set includes a plurality of medical consultation samples, and each of the medical consultation samples is associated with a triage label;
  • the medical consultation sample is input into a multi-fusion neural network model containing initial parameters;
  • the multi-fusion neural network model is used to predict the medical samples to obtain at least two triage results; perform standardized conversion of each triage result to obtain a standardized result corresponding to each triage result;
  • the standardized results are weighted and fused to obtain the sample triage results;
  • the loss model in the multi-fusion neural network model is used to perform loss analysis on the sample triage results and the triage labels to obtain the total loss value;
  • the initial parameters of the multi-fusion neural network model are iteratively updated, until the total loss value reaches the preset convergence condition, the convergence of the multiple The fusion neural network model is recorded as a triage fusion model.
  • this application provides a triage fusion model training method, which predicts at least two triage results through a multi-fusion neural network model (the multi-fusion neural network model includes at least two models, A model corresponds to a triage result), the standardized conversion of each triage result is performed to obtain each standardized result, and all the standardized results are weighted and fused to obtain the sample triage result, and the loss analysis is performed through the loss model to obtain the total loss value, according to the total loss The value is iteratively updated the multi-fusion neural network model until it converges, which realizes the standardization of the triage results output by the different models in the multi-fusion neural network model, so that it has size-related comparability and breaks the mutual relationship between the models.
  • the independent limitation, through weight fusion and loss analysis can make the training of multi-fusion neural network models more efficient and accurate, and improve the performance and accuracy of multi-fusion neural network model recognition.
  • the triage method provided in this application can be applied in the application environment as shown in Figure 1, where the client (computer equipment) communicates with the server via the network.
  • the client includes, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, cameras, and portable wearable devices.
  • the server can be implemented as an independent server or a server cluster composed of multiple servers.
  • a triage method is provided, and the technical solution mainly includes the following steps S100-S200:
  • S100 Receive a triage request from a patient, and obtain the patient's medical treatment information in the triage request.
  • the triage request is triggered, and the patient's medical consultation information is the current medical consultation input after the patient logs in on the application platform.
  • the patient visit information can be obtained by the patient after text input on the application platform, or can be obtained by confirming the patient after the patient converts the voice input by the patient into text on the application platform.
  • the patient visit information is input to the triage fusion model trained and trained as in the above-mentioned triage fusion model training method, and the sample triage results output from the above-mentioned triage fusion model training method
  • the triage category corresponding to the highest probability value is determined as the final triage result, and the final triage result provides an accurate basis for the patient to make an appointment, and facilitates the patient to select an accurate department to make an appointment.
  • This application realizes that by receiving the patient's triage request, obtain the patient's visit information in the triage request; input the patient's visit information into the triage fusion model trained as the above-mentioned triage fusion model training method, and obtain the The final triage result output by the triage fusion model.
  • the triage fusion model trained by the triage fusion model training method predicts the patient's visit information and obtains the final triage result.
  • the final triage result is presented to the patient Appointment provides an accurate basis, improves the accuracy and efficiency of triage, improves user satisfaction, and enhances the effectiveness of triage.
  • a triage fusion model training device is provided, and the triage fusion model training device corresponds to the triage fusion model training method in the foregoing embodiment in a one-to-one correspondence.
  • the triage fusion model training device includes an acquisition module 11, an input module 12, a prediction module 13, a standardization module 14, a weight module 15, a loss module 16 and an iteration module 17.
  • the detailed description of each functional module is as follows:
  • the obtaining module 11 is configured to obtain a medical consultation sample set; the medical consultation sample set includes a plurality of medical consultation samples, and each of the medical consultation samples is associated with a triage label;
  • the input module 12 is used to input the consultation samples into a multi-fusion neural network model containing initial parameters
  • the prediction module 13 is used for predicting the medical sample through the multi-fusion neural network model to obtain at least two triage results
  • the standardization module 14 is used to perform standardized conversion of each of the triage results to obtain a standardized result corresponding to each of the triage results;
  • the weight module 15 is used to perform weight fusion of all the standardized results to obtain the sample triage results
  • the loss module 16 is configured to perform loss analysis on the sample triage result and the triage label through the loss model in the multi-fusion neural network model to obtain a total loss value;
  • the iterative module 17 is configured to iteratively update the initial parameters of the multi-fusion neural network model when the total loss value does not reach the preset convergence condition, until the total loss value reaches the preset convergence condition,
  • the multi-fusion neural network model after convergence is recorded as a triage fusion model.
  • Each module in the above-mentioned triage fusion model training device can be implemented in whole or in part by software, hardware and a combination thereof.
  • the above-mentioned modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.
  • a triage device is provided, and the triage device corresponds to the triage method in the foregoing embodiment one-to-one.
  • the triage device includes a receiving module 101 and a triage module 102.
  • the detailed description of each functional module is as follows:
  • the receiving module 101 is configured to receive a patient's triage request, and obtain the patient's medical treatment information in the triage request;
  • the triage module 102 is configured to input the patient's visit information into the triage fusion model trained by the above-mentioned triage fusion model training method, and obtain the final triage result output by the triage fusion model.
  • each module in the above-mentioned triage device can be implemented in whole or in part by software, hardware, and a combination thereof.
  • the above-mentioned modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.
  • a computer device is provided.
  • the computer device may be a server, and its internal structure diagram may be as shown in FIG. 9.
  • the computer equipment includes a processor, a memory, a network interface, and a database connected through a system bus.
  • the processor of the computer device is used to provide calculation and control capabilities.
  • the memory of the computer device includes a readable storage medium and an internal memory.
  • the readable storage medium stores an operating system, computer readable instructions, and a database.
  • the internal memory provides an environment for the operation of the operating system and computer readable instructions in the readable storage medium.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer-readable instructions are executed by the processor to realize a triage fusion model training method, or triage method.
  • the readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.
  • a computer device including a memory, a processor, and computer-readable instructions stored in the memory and capable of running on the processor. Diagnosis fusion model training method, or when the processor executes computer-readable instructions, the triage method in the above embodiment is implemented.
  • one or more readable storage media storing computer readable instructions are provided.
  • the readable storage media provided in this embodiment include non-volatile readable storage media and volatile readable storage. Medium; the readable storage medium stores computer readable instructions, and when the computer readable instructions are executed by one or more processors, the one or more processors implement the triage fusion model training method in the above-mentioned embodiment, or When the computer-readable instructions are executed by the processor, the triage method in the above-mentioned embodiment is implemented.
  • Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

Abstract

The present application relates to the field of big data processing. Provided is a triage fusion model training method, a triage method, an apparatus, a device and a medium. The method comprises: obtaining a treatment sample set; inputting said treatment samples into a multi-fusion neural network model containing initial parameters; performing prediction with respect to the treatment samples and obtaining at least two triage results; performing standardization conversion on each triage result to obtain standardized results; performing weight fusion on all standardized results to obtain sample triage results; obtaining, by means of loss modeling in the multi-fusion neural network model, a total loss value; if the total loss value has not reached a preset convergence condition, iteratively refreshing the initial parameters of the multi-fusion neural network model until convergence, then recording the post-convergence multi-fusion neural network model as a triage fusion model. The present method improves performance and accuracy of multi-fusion neural network model identification. The present application is applicable to the fields of smart medical care, etc., and can further promote the development of smart cities.

Description

分诊融合模型训练方法、分诊方法、装置、设备及介质Triage fusion model training method, triage method, device, equipment and medium
本申请要求于2020年9月25日提交中国专利局、申请号为202011023857.7,发明名称为“分诊融合模型训练方法、分诊方法、装置、设备及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of a Chinese patent application filed with the Chinese Patent Office on September 25, 2020 with the application number 202011023857.7 and the invention title of "Triage Fusion Model Training Method, Triage Method, Apparatus, Equipment, and Media". The entire content is incorporated into this application by reference.
技术领域Technical field
本申请涉及大数据的数据处理领域,尤其涉及一种分诊融合模型训练方法、分诊方法、装置、设备及介质。This application relates to the field of big data data processing, and in particular to a triage fusion model training method, triage method, device, equipment, and medium.
背景技术Background technique
随着医学的进步和发展,医院对于科室的设置也更专业化,随之带来的问题是用户选择科室带来一定的困难,为了解决这个问题各大医院都增加了导诊环节,包括导诊人员和自主导诊服务,主要是帮助患者推荐诊疗科室。With the advancement and development of medicine, hospitals have become more specialized in setting up departments. The problem that comes with it is that users choose departments to bring certain difficulties. In order to solve this problem, major hospitals have added guidance links, including guidance. Clinicians and self-directed diagnosis services mainly help patients recommend diagnosis and treatment departments.
目前,发明人发现患者去医院就诊时,首先需要去分诊台进行人工分诊,在该过程中患者需要消耗大量排队时间,而且对分诊台的导诊人员的专业知识深度及广度上有较高的要求,如果导诊人员给患者分诊错误,又需要重新进行分诊,大大浪费患者的时间,严重影响患者体验,因此,在现有技术上,患者进行人工分诊过程中耗时长、很难给出合理的就诊科室或者就诊医生,从而导致患者体验差,以及就诊准确率低。At present, the inventor found that when a patient goes to the hospital for treatment, he first needs to go to the triage table for manual triage. In this process, the patient needs to spend a lot of time in queuing, and the depth and breadth of the professional knowledge of the guides at the triage table is limited. Higher requirements, if the guides give the patient a wrong diagnosis and need to perform the triage again, it will greatly waste the patient’s time and seriously affect the patient’s experience. Therefore, in the prior art, the manual triage of the patient takes a long time. , It is difficult to give a reasonable medical department or doctor, resulting in poor patient experience and low medical accuracy.
发明内容Summary of the invention
本申请提供一种分诊融合模型训练、分诊方法、装置、计算机设备及存储介质,实现了准确地推荐主题数据给用户,提高了主题推荐的准确率,避免了不喜好的主题数据展示给用户,提升了用户的体验满意度,并提升了主题推荐的有效性,本申请适用于智慧医疗等领域,可进一步推动智慧城市的建设。This application provides a triage fusion model training, a triage method, a device, a computer device, and a storage medium, which enables accurate recommendation of topic data to users, improves the accuracy of topic recommendation, and avoids showing disliked topic data to users Users have improved user experience satisfaction and the effectiveness of topic recommendations. This application is suitable for smart medical and other fields, which can further promote the construction of smart cities.
一种分诊融合模型训练方法,包括:A training method for triage fusion model, including:
获取就诊样本集;所述就诊样本集包括多个就诊样本,每个所述就诊样本与一个分诊标签关联;Obtaining a medical consultation sample set; the medical consultation sample set includes a plurality of medical consultation samples, and each medical consultation sample is associated with a triage label;
将所述就诊样本输入含有初始参数的多融合神经网络模型;Inputting the consultation samples into a multi-fusion neural network model containing initial parameters;
通过所述多融合神经网络模型对所述就诊样本进行预测,获取至少两个分诊结果;Predicting the consultation samples by using the multi-fusion neural network model to obtain at least two triage results;
对各所述分诊结果进行标准化转换,得到与各所述分诊结果对应的标准化结果;Perform standardized conversion on each of the triage results to obtain a standardized result corresponding to each of the triage results;
将所有所述标准化结果进行权重融合,得到样本分诊结果;Perform weight fusion on all the standardized results to obtain sample triage results;
通过所述多融合神经网络模型中的损失模型,对所述样本分诊结果和所述分诊标签进行损失分析,得到总损失值;Performing a loss analysis on the sample triage result and the triage label through the loss model in the multi-fusion neural network model to obtain a total loss value;
在所述总损失值未达到预设的收敛条件时,迭代更新所述多融合神经网络模型的初始参数,直至所述总损失值达到所述预设的收敛条件时,将收敛之后的所述多融合神经网络模型记录为分诊融合模型。When the total loss value does not reach the preset convergence condition, iteratively update the initial parameters of the multi-fusion neural network model, until the total loss value reaches the preset convergence condition, the subsequent convergence The multi-fusion neural network model is recorded as a triage fusion model.
一种分诊方法,包括:A method of triage, including:
接收患者的分诊请求,获取所述分诊请求中的患者就诊信息;Receive the patient's triage request, and obtain the patient's medical information in the triage request;
将所述患者就诊信息输入如上述分诊融合模型训练方法训练完成的分诊融合模型,获取所述分诊融合模型输出的最终分诊结果。Input the patient's medical information into the triage fusion model trained by the above-mentioned triage fusion model training method, and obtain the final triage result output by the triage fusion model.
一种分诊融合模型训练装置,包括:A triage fusion model training device, including:
获取模块,用于获取就诊样本集;所述就诊样本集包括多个就诊样本,每个所述就诊 样本与一个分诊标签关联;The obtaining module is used to obtain a medical examination sample set; the medical examination sample set includes a plurality of medical examination samples, and each of the medical examination samples is associated with a triage label;
输入模块,用于将所述就诊样本输入含有初始参数的多融合神经网络模型;An input module, used to input the consultation samples into a multi-fusion neural network model containing initial parameters;
预测模块,用于通过所述多融合神经网络模型对所述就诊样本进行预测,获取至少两个分诊结果;A prediction module, used for predicting the medical sample through the multi-fusion neural network model, and obtaining at least two triage results;
标准化模块,用于对各所述分诊结果进行标准化转换,得到与各所述分诊结果对应的标准化结果;The standardization module is used to perform standardized conversion of each of the triage results to obtain a standardized result corresponding to each of the triage results;
权重模块,用于将所有所述标准化结果进行权重融合,得到样本分诊结果;The weight module is used to perform weight fusion of all the standardized results to obtain sample triage results;
损失模块,用于通过所述多融合神经网络模型中的损失模型,对所述样本分诊结果和所述分诊标签进行损失分析,得到总损失值;A loss module, configured to perform loss analysis on the sample triage result and the triage label through the loss model in the multi-fusion neural network model to obtain a total loss value;
迭代模块,用于在所述总损失值未达到预设的收敛条件时,迭代更新所述多融合神经网络模型的初始参数,直至所述总损失值达到所述预设的收敛条件时,将收敛之后的所述多融合神经网络模型记录为分诊融合模型。The iterative module is used to iteratively update the initial parameters of the multi-fusion neural network model when the total loss value does not reach the preset convergence condition, until the total loss value reaches the preset convergence condition, The multi-fusion neural network model after convergence is recorded as a triage fusion model.
一种分诊装置,包括:A triage device, including:
接收模块,用于接收患者的分诊请求,获取所述分诊请求中的患者就诊信息;The receiving module is used to receive the patient's triage request, and obtain the patient's medical treatment information in the triage request;
分诊模块,用于将所述患者就诊信息输入如上述分诊融合模型训练方法训练完成的分诊融合模型,获取所述分诊融合模型输出的最终分诊结果。The triage module is used to input the patient information into the triage fusion model trained by the above-mentioned triage fusion model training method, and obtain the final triage result output by the triage fusion model.
一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:A computer device includes a memory, a processor, and computer-readable instructions that are stored in the memory and can run on the processor, and the processor implements the following steps when the processor executes the computer-readable instructions:
获取就诊样本集;所述就诊样本集包括多个就诊样本,每个所述就诊样本与一个分诊标签关联;Obtaining a medical consultation sample set; the medical consultation sample set includes a plurality of medical consultation samples, and each medical consultation sample is associated with a triage label;
将所述就诊样本输入含有初始参数的多融合神经网络模型;Inputting the consultation samples into a multi-fusion neural network model containing initial parameters;
通过所述多融合神经网络模型对所述就诊样本进行预测,获取至少两个分诊结果;Predicting the consultation samples by using the multi-fusion neural network model to obtain at least two triage results;
对各所述分诊结果进行标准化转换,得到与各所述分诊结果对应的标准化结果;Perform standardized conversion on each of the triage results to obtain a standardized result corresponding to each of the triage results;
将所有所述标准化结果进行权重融合,得到样本分诊结果;Perform weight fusion on all the standardized results to obtain sample triage results;
通过所述多融合神经网络模型中的损失模型,对所述样本分诊结果和所述分诊标签进行损失分析,得到总损失值;Performing a loss analysis on the sample triage result and the triage label through the loss model in the multi-fusion neural network model to obtain a total loss value;
在所述总损失值未达到预设的收敛条件时,迭代更新所述多融合神经网络模型的初始参数,直至所述总损失值达到所述预设的收敛条件时,将收敛之后的所述多融合神经网络模型记录为分诊融合模型。When the total loss value does not reach the preset convergence condition, iteratively update the initial parameters of the multi-fusion neural network model, until the total loss value reaches the preset convergence condition, the subsequent convergence The multi-fusion neural network model is recorded as a triage fusion model.
一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时还实现如下步骤:A computer device includes a memory, a processor, and computer-readable instructions that are stored in the memory and can run on the processor, and the processor further implements the following steps when the processor executes the computer-readable instructions:
接收患者的分诊请求,获取所述分诊请求中的患者就诊信息;Receive the patient's triage request, and obtain the patient's medical information in the triage request;
将所述患者就诊信息输入通过分诊融合模型训练方法训练完成的分诊融合模型,获取所述分诊融合模型输出的最终分诊结果。The patient visit information is input into the triage fusion model trained by the triage fusion model training method, and the final triage result output by the triage fusion model is obtained.
一个或多个存储有计算机可读指令的可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:One or more readable storage media storing computer readable instructions, when the computer readable instructions are executed by one or more processors, the one or more processors execute the following steps:
获取就诊样本集;所述就诊样本集包括多个就诊样本,每个所述就诊样本与一个分诊标签关联;Obtaining a medical consultation sample set; the medical consultation sample set includes a plurality of medical consultation samples, and each medical consultation sample is associated with a triage label;
将所述就诊样本输入含有初始参数的多融合神经网络模型;Inputting the consultation samples into a multi-fusion neural network model containing initial parameters;
通过所述多融合神经网络模型对所述就诊样本进行预测,获取至少两个分诊结果;Predicting the consultation samples by using the multi-fusion neural network model to obtain at least two triage results;
对各所述分诊结果进行标准化转换,得到与各所述分诊结果对应的标准化结果;Perform standardized conversion on each of the triage results to obtain a standardized result corresponding to each of the triage results;
将所有所述标准化结果进行权重融合,得到样本分诊结果;Perform weight fusion on all the standardized results to obtain sample triage results;
通过所述多融合神经网络模型中的损失模型,对所述样本分诊结果和所述分诊标签进行损失分析,得到总损失值;Performing a loss analysis on the sample triage result and the triage label through the loss model in the multi-fusion neural network model to obtain a total loss value;
在所述总损失值未达到预设的收敛条件时,迭代更新所述多融合神经网络模型的初始 参数,直至所述总损失值达到所述预设的收敛条件时,将收敛之后的所述多融合神经网络模型记录为分诊融合模型。When the total loss value does not reach the preset convergence condition, iteratively update the initial parameters of the multi-fusion neural network model, until the total loss value reaches the preset convergence condition, the subsequent convergence The multi-fusion neural network model is recorded as a triage fusion model.
一个或多个存储有计算机可读指令的可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器还执行如下步骤:One or more readable storage media storing computer readable instructions, when the computer readable instructions are executed by one or more processors, the one or more processors further execute the following steps:
接收患者的分诊请求,获取所述分诊请求中的患者就诊信息;Receive the patient's triage request, and obtain the patient's medical information in the triage request;
将所述患者就诊信息输入通过分诊融合模型训练方法训练完成的分诊融合模型,获取所述分诊融合模型输出的最终分诊结果。The patient visit information is input into the triage fusion model trained by the triage fusion model training method, and the final triage result output by the triage fusion model is obtained.
本申请提供的分诊融合模型训练方法、装置、计算机设备及存储介质,通过获取就诊样本集;所述就诊样本集包括多个就诊样本,每个所述就诊样本与一个分诊标签关联;将所述就诊样本输入含有初始参数的多融合神经网络模型;通过所述多融合神经网络模型对所述就诊样本进行预测,获取至少两个分诊结果;对各所述分诊结果进行标准化转换,得到与各所述分诊结果对应的标准化结果;将所有所述标准化结果进行权重融合,得到样本分诊结果;通过所述多融合神经网络模型中的损失模型,对所述样本分诊结果和所述分诊标签进行损失分析,得到总损失值;在所述总损失值未达到预设的收敛条件时,迭代更新所述多融合神经网络模型的初始参数,直至所述总损失值达到所述预设的收敛条件时,将收敛之后的所述多融合神经网络模型记录为分诊融合模型,因此,本申请提供了分诊融合模型训练方法,通过多融合神经网络模型预测出至少两个分诊结果(多融合神经网络模型包括至少两个模型,一个模型与一个分诊结果对应),对各分诊结果进行标准化转换得到各标准化结果,将所有标准化结果进行权重融合得到样本分诊结果,通过损失模型进行损失分析得到总损失值,根据总损失值迭代更新多融合神经网络模型直至收敛,实现了通过对多融合神经网络模型中的各个不同的模型输出的分诊结果进行标准化,使其具有大小相关的可比性,打破了各模型之间相互独立的局限性,再通过权重融合和损失分析,能够让多融合神经网络模型的训练更加高效和更加准确,提升了多融合神经网络模型识别的性能和准确率。The triage fusion model training method, device, computer equipment, and storage medium provided in this application are obtained by obtaining a consultation sample set; the consultation sample set includes a plurality of consultation samples, and each of the consultation samples is associated with a triage label; The medical sample input contains a multi-fusion neural network model containing initial parameters; the medical sample is predicted by the multi-fusion neural network model to obtain at least two triage results; each of the triage results is standardized and converted, Obtain a standardized result corresponding to each of the triage results; perform weight fusion on all the standardized results to obtain a sample triage result; use the loss model in the multi-fusion neural network model to compare the sample triage result and The triage label performs loss analysis to obtain a total loss value; when the total loss value does not reach the preset convergence condition, iteratively update the initial parameters of the multi-fusion neural network model until the total loss value reaches the total loss value. When the preset convergence conditions are described, the multi-fusion neural network model after convergence is recorded as a triage fusion model. Therefore, this application provides a triage fusion model training method, and at least two models are predicted by the multi-fusion neural network model. Triage results (multi-fusion neural network model includes at least two models, one model corresponds to one triage result), standardized conversion of each triage result to obtain each standardized result, and weight fusion of all standardized results to obtain sample triage result , Perform loss analysis through the loss model to obtain the total loss value, and iteratively update the multi-fusion neural network model according to the total loss value until convergence, which realizes the standardization of the triage results output by the different models in the multi-fusion neural network model, so that It has size-related comparability, breaking the limitation of independence between models, and through weight fusion and loss analysis, it can make the training of multi-fusion neural network models more efficient and accurate, and improve the multi-fusion neural network model. Performance and accuracy of recognition.
本申请提供的分诊方法、装置、计算机设备及存储介质,通过接收患者的分诊请求,获取所述分诊请求中的患者就诊信息;将所述患者就诊信息输入如上述分诊融合模型训练方法训练完成的分诊融合模型,获取所述分诊融合模型输出的最终分诊结果,如此,本申请通过分诊融合模型训练方法训练完成的分诊融合模型对患者就诊信息进行预测,获得最终分诊结果,该最终分诊结果给患者进行预约提供了准确的依据,提高了分诊的准确率和效率,提升了用户的满意度,并提升了分诊的有效性。The triage method, device, computer equipment, and storage medium provided in this application obtain the patient's medical information in the triage request by receiving the patient's triage request; and input the patient's medical information into the above-mentioned triage fusion model training Methods The trained triage fusion model is used to obtain the final triage results output by the triage fusion model. In this way, this application uses the triage fusion model training method to train the completed triage fusion model to predict the patient's visit information, and obtain the final The triage result, the final triage result provides an accurate basis for patients to make an appointment, improves the accuracy and efficiency of triage, improves user satisfaction, and enhances the effectiveness of triage.
本申请的一个或多个实施例的细节在下面的附图和描述中提出,本申请的其他特征和优点将从说明书、附图以及权利要求变得明显。The details of one or more embodiments of the present application are presented in the following drawings and description, and other features and advantages of the present application will become apparent from the description, drawings and claims.
附图说明Description of the drawings
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following will briefly introduce the drawings that need to be used in the description of the embodiments of the present application. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor.
图1是本申请一实施例中分诊融合模型训练方法或分诊方法的应用环境示意图;FIG. 1 is a schematic diagram of an application environment of a triage fusion model training method or a triage method in an embodiment of the present application;
图2是本申请一实施例中分诊融合模型训练方法的流程图;2 is a flowchart of a method for training a triage fusion model in an embodiment of the present application;
图3是本申请一实施例中分诊融合模型训练方法的步骤S40的流程图;Fig. 3 is a flowchart of step S40 of the method for training a triage fusion model in an embodiment of the present application;
图4是本申请一实施例中分诊融合模型训练方法的步骤S50的流程图;4 is a flowchart of step S50 of the method for training a triage fusion model in an embodiment of the present application;
图5是本申请一实施例中分诊融合模型训练方法的步骤S60的流程图;FIG. 5 is a flowchart of step S60 of the method for training a triage fusion model in an embodiment of the present application;
图6是本申请一实施例中分诊方法的流程图;Fig. 6 is a flowchart of a triage method in an embodiment of the present application;
图7是本申请一实施例中分诊融合模型训练装置的原理框图;Figure 7 is a functional block diagram of a triage fusion model training device in an embodiment of the present application;
图8是本申请一实施例中分诊装置的原理框图;Fig. 8 is a functional block diagram of a triage device in an embodiment of the present application;
图9是本申请一实施例中计算机设备的示意图。Fig. 9 is a schematic diagram of a computer device in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
本申请提供的分诊融合模型训练方法,可应用在如图1的应用环境中,其中,客户端(计算机设备)通过网络与服务器进行通信。其中,客户端(计算机设备)包括但不限于为各种个人计算机、笔记本电脑、智能手机、平板电脑、摄像头和便携式可穿戴设备。服务器可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The triage fusion model training method provided by this application can be applied in the application environment as shown in Fig. 1, in which the client (computer equipment) communicates with the server through the network. Among them, the client (computer equipment) includes, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, cameras, and portable wearable devices. The server can be implemented as an independent server or a server cluster composed of multiple servers.
在一实施例中,如图2所示,提供一种分诊融合模型训练方法,其技术方案主要包括以下步骤S10-S70:In an embodiment, as shown in FIG. 2, a method for training a triage fusion model is provided, and its technical solution mainly includes the following steps S10-S70:
S10,获取就诊样本集;所述就诊样本集包括多个就诊样本,每个所述就诊样本与一个分诊标签关联。S10: Obtain a medical visit sample set; the medical visit sample set includes multiple medical visit samples, and each medical visit sample is associated with a triage label.
可理解地,所述就诊样本集为收集的所述就诊样本的集合,所述就诊样本为收集的历史的患者历史输入的且已经完成分诊的就诊信息的数据,一个所述就诊样本与一个所述分诊标签关联,所述分诊标签为在实际就诊中与其对应的所述就诊样本最后被分诊后的科室,所述科室为医院中包含的各类科室。Understandably, the medical consultation sample set is a collection of the medical consultation samples collected, and the medical consultation sample is data of medical consultation information that has been input from the collected history of the patient and has completed triage. The triage label is associated, and the triage label is a department after the corresponding visit sample was finally triaged in the actual visit, and the department is a variety of departments included in the hospital.
S20,将所述就诊样本输入含有初始参数的多融合神经网络模型。S20: Input the patient visit samples into a multi-fusion neural network model containing initial parameters.
可理解地,所述多融合神经网络模型为融合了至少两个模型的神经网络模型,所述多融合神经网络模型可以根据需求选择融合的所述模型,比如选择融合模型可以为LSTM模型、深度卷积神经网络模型(DCNN模型)、循环神经网络模型(RNN模型)、深度残差网络模型(DRN模型)或者强化学习模型等等,所述初始参数包括所述多融合神经网络模型中的各所述模型的参数,各所述模型的参数可以通过迁移学习的方式从其他领域的与各所述模型相同类型的模型的参数直接迁移过来,即将其他领域的与各所述模型相同类型的模型的参数作为该模型的参数。Understandably, the multi-fusion neural network model is a neural network model that merges at least two models. The multi-fusion neural network model can select the fused model according to requirements. For example, the selected fusion model can be an LSTM model, a depth Convolutional neural network model (DCNN model), recurrent neural network model (RNN model), deep residual network model (DRN model) or reinforcement learning model, etc., the initial parameters include each of the multiple fusion neural network models The parameters of the model, the parameters of each model can be directly transferred from the parameters of the model of the same type as each of the models in other fields by means of transfer learning, that is, the model of the same type as each of the models in other fields The parameters are used as the parameters of the model.
S30,通过所述多融合神经网络模型对所述就诊样本进行预测,获取至少两个分诊结果。S30: Predict the medical samples through the multi-fusion neural network model, and obtain at least two triage results.
可理解地,所述多融合神经网络模型包括至少两个模型的神经网络模型,所述多融合神经网络模型对所述就诊样本进行预测,即所述多融合神经网络模型中的各个所述模型分别对所述就诊样本进行预测,所述预测为各个所述模型根据各自的算法进行处理,预测出各个分诊类别的预测值,从而各个所述模型预测出各自的所述分诊结果,即一个所述模型对应一个所述分诊结果,表明了所述多融合神经网络模型输出至少两个所述分诊结果,所述分诊结果包括所有分诊类别和与各分诊类别的预测值,所述预测值预测出该分诊类别的可能性,所述分诊类别的全集和所述分诊标签的全集相同,例如所述分诊标签有100个类别,则所述分诊类别也与所述分诊标签一一对应的100个类别,所述分诊结果中就有100个分诊类别和100个与分诊类别对应的预测值。Understandably, the multi-fusion neural network model includes a neural network model of at least two models, and the multi-fusion neural network model predicts the consultation sample, that is, each of the models in the multi-fusion neural network model The predictions are made on the samples to be visited respectively, and the prediction is that each of the models is processed according to their respective algorithms to predict the predicted value of each triage category, so that each of the models predicts the respective triage result, namely One of the models corresponds to one of the triage results, indicating that the multi-fusion neural network model outputs at least two of the triage results, and the triage results include all triage categories and the predicted value of each triage category , The predicted value predicts the possibility of the triage category, and the complete set of triage categories is the same as the complete set of triage labels. For example, if the triage label has 100 categories, the triage category is also There are 100 categories in one-to-one correspondence with the triage labels, and there are 100 triage categories and 100 predicted values corresponding to the triage categories in the triage result.
在一实施例中,所述多融合神经网络模型包括LSTM模型、深度卷积神经网络模型和强化学习模型,所述LSTM模型(Long short term memory network,长短时记忆网络模型)为通过LSTM算法对所述就诊样本进行预测分诊结果的模型,所述深度卷积神经网络模型为通过该深度卷积神经网络模型中的网络结构(比如VGG16、GoogleNet、ResNet等等网络结构)对所述就诊样本进行卷积、池化及全连接等预测出分诊结果的模型,所述强化学习模型为对所述就诊样本执行各个动作后获得的预期回报Q值并根据该预期回报Q值预测 出分诊结果的模型。In one embodiment, the multi-fusion neural network model includes an LSTM model, a deep convolutional neural network model, and a reinforcement learning model, and the LSTM model (Long short term memory network, long and short term memory network model) is based on the LSTM algorithm. The model for predicting the results of triage of the consultation samples, and the deep convolutional neural network model is to compare the consultation samples with the network structure in the deep convolutional neural network model (such as VGG16, GoogleNet, ResNet, etc.) Perform convolution, pooling, and fully connected models for predicting triage results. The reinforcement learning model is the expected return Q value obtained after performing various actions on the sample of the visit and predicts the triage based on the expected return Q value The resulting model.
S40,对各所述分诊结果进行标准化转换,得到与各所述分诊结果对应的标准化结果。S40: Perform standardized conversion on each of the triage results to obtain a standardized result corresponding to each of the triage results.
可理解地,由于不同所述模型的分诊结果之间不具有大小相关的可比性,所以需要对各个不同的所述模型输出的所述分诊结果中的可能性的预测值进行标准化转换,使得各所述分诊结果具有大小相关的可比性,所述标准化转换为按照所述分诊结果中的各所述分诊类别的所述预测值由大到小的顺序进行对所述分诊结果排序,从排序后的所述分诊结果中获取序列在先的预设提取数量的分诊类别,将获取后的含有所述预设提取数量的分诊类别的各所述分诊结果确定为与各所述分诊结果对应的排序结果,通过标准化技术,对各所述排序结果中的各个分诊类别进行标准化赋值,即给各个分诊类别关联与该分诊类别在所述排序结果中的序列对应的可比值,从而得到与各所述排序结果一一对应的标准化结果,即得到与各所述分诊结果对应的所述标准化结果。Understandably, since the triage results of different models are not comparable in size, it is necessary to standardize the predicted value of the probability in the triage results output by the different models. To make each of the triage results have size-related comparability, and the standardization is converted to perform the triage in descending order of the predicted value of each of the triage categories in the triage results Sort the results, obtain the triage categories with the preset extraction number in the sequence from the sorted triage results, and determine the obtained triage categories of the triage categories with the preset extraction number. For the sorting result corresponding to each of the triage results, standardization technology is used to perform standardized assignment to each triage category in each of the sorting results, that is, to associate each triage category with the triage category in the sorting result Comparable values corresponding to the sequences in, so as to obtain a standardized result corresponding to each of the sorting results one-to-one, that is, the standardized result corresponding to each of the triage results.
在一实施例中,如图3所示,所述步骤S40中,即所述对各所述分诊结果进行标准化转换,得到与各所述分诊结果对应的标准化结果,包括:In an embodiment, as shown in FIG. 3, in step S40, that is, performing standardized conversion on each of the triage results to obtain a standardized result corresponding to each of the triage results includes:
S401,将各所述分诊结果中的分诊类别由大到小进行排序,并获取排序后序列在先的预设提取数量的分诊类别,将获取后的各所述分诊结果确定为与各所述分诊结果对应的排序结果;所述分诊结果包括所述分诊类别。S401: Sort the triage categories in each of the triage results from large to small, and obtain the pre-set number of triage categories with the first sequence after the sorting, and determine each of the obtained triage results as The sorting result corresponding to each of the triage results; the triage result includes the triage category.
可理解地,按照所述分诊结果中的各所述分诊类别的所述预测值由大到小的顺序进行对所述分诊结果排序,从排序后的所述分诊结果中获取序列在先的预设提取数量的分诊类别,所述预设提取数量为从分诊结果中提取出序列在前的数量,所述预设提取数量可以根据需求设定,所述预设提取数量小于所述分诊类别全集的个数,作为优选,所述预设提取数量设定为10的倍数,比如10、20、30等等。Understandably, the triage results are sorted according to the predicted value of each of the triage categories in the triage results in descending order, and the sequence is obtained from the sorted triage results Triage category of the previous preset extraction number, the preset extraction number is the number of the first sequence extracted from the triage result, the preset extraction number can be set according to requirements, the preset extraction number It is less than the number of the complete set of triage categories. Preferably, the preset extraction number is set to a multiple of 10, such as 10, 20, 30, and so on.
S402,通过标准化技术,对各所述排序结果中的各个分诊类别进行标准化赋值。S402: Perform standardized assignment to each triage category in each sorting result through standardization technology.
可理解地,所述标准化技术为通过标准化函数根据所述排序结果中的各个分诊类别所在的序列位数确定出赋予各个分诊类别的可比值,所述标准化函数为:Understandably, the standardization technique is to determine the comparable value assigned to each triage category according to the sequence digits of each triage category in the ranking result through a standardization function, and the standardization function is:
Figure PCTCN2020135343-appb-000001
Figure PCTCN2020135343-appb-000001
其中,h为所述预设提取数量,j为所述排序结果中序列为第j位的分诊类别的序列位数,比如第1位、第2位……等等,Y j为所述排序结果中序列为第j位的分诊类别的可比值。 Wherein, h is the preset extraction quantity, j is the number of sequence digits of the triage category whose sequence is the jth position in the sorting result, such as the first position, the second position, etc., and Y j is the In the ranking result, the sequence is the comparable value of the j-th triage category.
其中,所述标准化赋值为将赋予各所述排序结果中的各个分诊类别一个可比值,所述可比值为根据分诊类别在其排序结果中的序列位数运用所述标准化函数计算的值,将所述排序结果中的各所述分诊类别与其对应的所述可比值关联。Wherein, the standardized assignment value will give a comparable value to each triage category in each of the ranking results, and the comparable value is a value calculated using the standardized function according to the number of sequence digits of the triage category in the ranking result , Associating each of the triage categories in the ranking result with the corresponding comparable value.
S403,将赋值后的各所述排序结果确定为与各所述排序结果一一对应的标准化结果。S403: Determine each of the sorting results after the assignment as a standardized result corresponding to each of the sorting results in a one-to-one manner.
可理解地,将通过所述标准化技术赋值后的各个所述排序结果确定为与其对应的所述标准化结果,所述标准化结果包括所述分诊类别、与分诊类别对应的所述预测值和与分诊类别关联的所述可比值,如此,使得不同所述模型的分诊类别的可能性具有大小相关的可比性。Understandably, each of the ranking results assigned by the standardization technology is determined as the corresponding standardized result, and the standardized result includes the triage category, the predicted value corresponding to the triage category, and The comparable value associated with the triage category is such that the possibility of the triage category of different models is comparable in size.
本申请实现了通过将各所述分诊结果中的分诊类别由大到小进行排序,并获取排序后序列在先的预设提取数量的分诊类别,将获取后的各所述分诊结果确定为与各所述分诊结果对应的排序结果;通过标准化技术,对各所述排序结果中的各个分诊类别进行标准化赋值;将赋值后的各所述排序结果确定为与各所述排序结果一一对应的标准化结果,如此,通过对不同模型的分诊结果进行标准化,使得不同模型的排序结果中的分诊类别之间具有大小相关的可比性,从而能够对后续的多模型的融合过程中提供辅助,进一步提升多融合神经网络模型的性能,提高了分诊预测的准确率和效率。This application realizes that by sorting the triage categories in each of the triage results from large to small, and obtaining the pre-set number of triage categories with the first sequence after the sorting, the obtained triage categories The result is determined as the sorting result corresponding to each of the triage results; through standardization technology, each triage category in each of the sorting results is standardized and assigned; each of the sorting results after the assignment is determined to be the same as each of the sorting results. The sorting results correspond to the standardized results one-to-one. In this way, by standardizing the triage results of different models, the triage categories in the sorting results of different models are comparable in size, so that the subsequent multi-models can be compared. Provide assistance during the fusion process to further improve the performance of the multi-fusion neural network model, and improve the accuracy and efficiency of triage prediction.
S50,将所有所述标准化结果进行权重融合,得到样本分诊结果。S50: Perform weight fusion on all the standardized results to obtain sample triage results.
可理解地,所述权重融合的过程为:首先,将各所述标准化结果进行预设维度的分诊向量转换,得到与各所述标准化结果一一对应的分诊向量,同时根据各所述分诊结果与所述分诊标签之间的差距,确定出与各所述分诊结果一一对应的准确率,即得到与各所述标准化结果一一对应的准确率;其次,根据所有所述准确率生成与各个所述准确率对应的所述标准化结果对应的分诊向量对应的权重;最后,根据各所述分诊向量和各所述权重,得到所述样本分诊结果。Understandably, the process of the weight fusion is as follows: firstly, each of the standardized results is converted into a triage vector of a preset dimension to obtain a triage vector corresponding to each of the standardized results. The difference between the triage result and the triage label is determined, and the accuracy rate corresponding to each of the triage results is determined, that is, the accuracy rate corresponding to each of the standardized results is obtained; secondly, according to all the results The accuracy rate generates a weight corresponding to the triage vector corresponding to the standardized result corresponding to each of the accuracy rates; finally, the sample triage result is obtained according to each of the triage vectors and each of the weights.
其中,所述预设维度为所述分诊类别全集个数,所述预设维度大于所述预设提取数量。Wherein, the preset dimension is the number of complete sets of triage categories, and the preset dimension is greater than the preset extraction quantity.
在一实施例中,如图4所示,所述步骤S50中,即所述将所有所述标准化结果进行权重融合,得到样本分诊结果,包括:In one embodiment, as shown in FIG. 4, in the step S50, that is, performing weight fusion of all the standardized results to obtain the sample triage results, including:
S501,将各所述标准化结果进行预设维度的分诊向量转换,得到与各所述标准化结果对应的分诊向量。S501: Transform each of the standardized results into a triage vector of a preset dimension to obtain a triage vector corresponding to each of the standardized results.
可理解地,所述分诊向量转换为根据各所述标准化结果中的与各分诊类别对应的所述预测值转换成相同维度的向量,即给各所述标准化结果初始化一个所述预设维度的向量数组,该向量数组给所有分诊类别都预留一个元素位置,根据所述标准化结果中的各分诊类别对应的预测值填充至该向量数组中与该分诊类别对应的元素位置,剩余的元素位置用零填充,从而将填充后的向量数组确定为与该标准化结果对应的所述分诊向量的过程。Understandably, the triage vector is converted into a vector of the same dimension according to the predicted value corresponding to each triage category in each of the standardized results, that is, the preset is initialized for each standardized result A vector array of dimensions, the vector array reserves an element position for all triage categories, and fills the element position corresponding to the triage category in the vector array according to the predicted value corresponding to each triage category in the standardized result , The remaining element positions are filled with zeros, so that the filled vector array is determined as the process of the triage vector corresponding to the normalized result.
S502,根据各所述分诊结果和所述分诊标签,确定出与各所述分诊结果对应的准确率。S502: Determine an accuracy rate corresponding to each of the triage results according to each of the triage results and the triage tags.
可理解地,对每个所述模型输出的所述分诊结果与所述分诊标签进行比较,获取各个所述模型的准确率,即在与所述分诊结果对应的所述排序结果中存在与所述分诊标签相同的分诊类别时,将所述排序结果的所有所述预测值进行求和,得到与所述分诊结果对应的模型的准确率,在与所述分诊结果对饮固定所述排序结果中不存在与所述分诊标签相同的分诊类别时,将所述分诊结果中的与所述分诊标签相同的分诊类别对应的预测值确定为与所述分诊结果对应的模型的准确率。Understandably, the triage result output by each model is compared with the triage label to obtain the accuracy rate of each model, that is, in the ranking result corresponding to the triage result When there is a triage category that is the same as the triage label, all the predicted values of the ranking result are summed to obtain the accuracy rate of the model corresponding to the triage result. When the sorting result does not have the same triage category as the triage label, the prediction value corresponding to the triage category that is the same as the triage label in the triage result is determined to be the same as that of the triage label. State the accuracy of the model corresponding to the triage results.
S503,根据所有所述准确率,生成与各所述分诊向量对应的权重。S503: Generate a weight corresponding to each of the triage vectors according to all the accuracy rates.
可理解地,对所有所述准确率进行归一化处理,并在归一化处理后计算与各个所述准确率对应的权重,即将所有所述准确率求和,得到总准确率,将各所述分诊向量对应的所述准确率与所述总准确率的比值确定为与所述分诊向量对应的所述权重。Understandably, all the accuracy rates are normalized, and after the normalization, the weight corresponding to each accuracy rate is calculated, that is, all the accuracy rates are summed to obtain the total accuracy rate. The ratio of the accuracy rate corresponding to the triage vector to the total accuracy rate is determined as the weight corresponding to the triage vector.
S504,根据各所述分诊向量和各所述权重,得到所述样本分诊结果。S504: Obtain the sample triage result according to each of the triage vectors and each of the weights.
可理解地,将所述分诊向量和与所述分诊向量对应的所述权重相乘,即将所述分诊向量中的各所述预测值与所述权重相乘,得到更新权重后的所述分诊向量中的权重预测值,再将所有更新权重后的所述分诊向量中相同分诊类别的所述权重预测值相加,即将所有更新权重后的所述分诊向量中相同分诊类别的所述权重预测值进行汇总,得到一个所述预设维度的向量数组,将汇总后的所述向量数组确定为所述样本分诊结果,将所述样本分诊结果中所述权重预测值确定为概率值。Understandably, the triage vector and the weight corresponding to the triage vector are multiplied, that is, each of the predicted values in the triage vector is multiplied by the weight to obtain the updated weight The weight prediction value in the triage vector is added to the weight prediction values of the same triage category in all the updated weight triage vectors, that is, the weight prediction values in all the updated weight triage vectors are the same The weight prediction values of the triage category are summarized to obtain a vector array of the preset dimension, the summarized vector array is determined as the sample triage result, and the sample triage result is The weight prediction value is determined as a probability value.
本申请实现了通过将各所述标准化结果进行预设维度的分诊向量转换,得到与各所述标准化结果对应的分诊向量;根据各所述分诊结果和所述分诊标签,确定出与各所述分诊结果对应的准确率;根据所有所述准确率,生成与各所述分诊向量对应的权重;根据各所述分诊向量和各所述权重,得到所述样本分诊结果,如此,通过构建多融合神经网络模型的权重,以及融合各个模型,并融合生成一个预设维度的样本分诊结果,能够科学地、准确地融合多融合神经网络模型中的多个模型,提高了分诊的准确率和可靠性。This application realizes that the triage vector corresponding to each of the standardized results is obtained by converting each of the standardized results into a triage vector of a preset dimension; according to each of the triage results and the triage label, it is determined The accuracy rate corresponding to each of the triage results; according to all the accuracy rates, a weight corresponding to each of the triage vectors is generated; according to each of the triage vectors and each of the weights, the sample triage is obtained As a result, in this way, by constructing the weights of the multi-fusion neural network model, fusing each model, and fusing to generate a sample triage result of a preset dimension, it is possible to scientifically and accurately fuse multiple models in the multi-fusion neural network model. Improve the accuracy and reliability of triage.
S60,通过所述多融合神经网络模型中的损失模型,对所述样本分诊结果和所述分诊标签进行损失分析,得到总损失值。S60: Perform a loss analysis on the sample triage result and the triage label through the loss model in the multi-fusion neural network model to obtain a total loss value.
可理解地,将所述样本分诊结果按照所述样本分诊结果中的预测值由大到小顺序进行排序,并获取排序后的所述样本分诊结果中序列在先的预设数量的分诊类别,将获取后的 所述样本分诊结果确定为过滤分诊结果;所述样本分诊结果包括所述分诊类别和与所述分诊类别对应的概率值,给所述过滤分诊结果中的各所述分诊类别赋予顺序相关值,其中,如果存在与所述分诊标签相同的所述分诊类别,就将概率总和值替代与所述分诊标签相同的所述分诊类别对应的所述概率值,将与所述过滤分诊结果中的各所述分诊类别对应的所述顺序相关值和所述概率值(包括替代后的所述概率值)输入所述损失模型中,通过所述损失模型进行损失分析,得到所述总损失值。Understandably, the sample triage results are sorted according to the predicted value in the sample triage results in descending order, and the sorted sample triage results in the sequence of the first preset number The triage category, the obtained sample triage result is determined as the filtered triage result; the sample triage result includes the triage category and the probability value corresponding to the triage category, and gives the filter score Each of the triage categories in the diagnosis result is assigned an order-related value, wherein, if there is the triage category that is the same as the triage label, the total probability value is substituted for the triage that is the same as the triage label. The probability value corresponding to the diagnosis category, the sequence correlation value and the probability value (including the probability value after replacement) corresponding to each of the triage categories in the filtered triage result are input into the In the loss model, loss analysis is performed through the loss model to obtain the total loss value.
其中,所述预设数量可以根据需求设定,所述预设数量可以与所述预设提取数量相同,也可以与所述预设提取数量不相同,所述概率总和值为所有所述概率值之和。Wherein, the preset number can be set according to requirements, the preset number can be the same as the preset extraction number, or it can be different from the preset extraction number, and the sum of the probabilities is all the probabilities The sum of values.
在一实施例中,如图5所示,所述步骤S60中,即所述通过所述多融合神经网络模型中的损失模型,对所述样本分诊结果和所述分诊标签进行损失分析,得到总损失值,包括:In an embodiment, as shown in FIG. 5, in the step S60, the loss model in the multi-fusion neural network model is used to perform a loss analysis on the sample triage result and the triage label , Get the total loss value, including:
S601,将所述样本分诊结果由大到小顺序进行排序,并获取排序后的所述样本分诊结果中序列在先的预设数量的分诊类别,将获取后的所述样本分诊结果确定为过滤分诊结果;所述样本分诊结果包括所述分诊类别和与所述分诊类别对应的概率值。S601: Sort the sample triage results in descending order, and obtain a preset number of triage categories in the sequence of the sorted sample triage results, and triage the obtained sample The result is determined as a filtered triage result; the sample triage result includes the triage category and the probability value corresponding to the triage category.
可理解地,按照所述样本分诊结果中的各所述分诊类别的所述概率值由大到小的顺序进行对所述样本分诊结果排序,从排序后的所述样本分诊结果中获取序列在先的预设数量的分诊类别,所述预设数量为从样本分诊结果中提取出序列在前的数量,所述预设数量可以根据需求设定,所述预设数量可以与所述预设提取数量相同,也可以与所述预设提取数量不相同,比如所述预设数量为20、30等等,将获取后的所述样本分诊结果确定为所述过滤分诊结果。Understandably, the sample triage results are sorted according to the probability value of each of the triage categories in the sample triage results in descending order, from the sorted sample triage results The preset number of triage categories with the pre-sequence obtained in the triage category, the pre-set number is the number of the pre-sequence extracted from the sample triage results, the preset number can be set according to requirements, the preset number It may be the same as the preset extraction quantity, or may be different from the preset extraction quantity, for example, the preset quantity is 20, 30, etc., and the obtained sample triage result is determined as the filtering Triage results.
S602,给所述过滤分诊结果中的各所述分诊类别赋予顺序相关值。S602. Assign an order correlation value to each of the triage categories in the filtered triage result.
可理解地,通过顺序相关函数,给所述过滤分诊结果中的各所述分诊类别赋予所述顺序相关值ln(k-i+1),其中,k为所述预设数量,i为所述过滤分诊结果中的序列为第i位。Understandably, the sequence correlation value ln(k-i+1) is assigned to each of the triage categories in the filtered triage results through the sequence correlation function, where k is the preset number, i The sequence in the filtered triage result is the i-th position.
S603,若存在与所述分诊标签相同的所述分诊类别,将概率总和值替代与所述分诊标签相同的所述分诊类别对应的所述概率值,所述概率总和值为所有所述概率值之和。S603: If the triage category that is the same as the triage label exists, replace the probability value corresponding to the triage category that is the same as the triage label with the total probability value, and the total probability value is all The sum of the probability values.
可理解地,在存在所述过滤分诊结果中的所有分诊类别中与所述分诊标签相同的所述分诊类别时,将所述概率总和值替代与该分诊类别对应的所述概率值,在不存在所述过滤分诊结果中的所有分诊类别中与所述分诊标签相同的所述分诊类别时,无需对所述过滤分诊结果中的所述概率值处理。Understandably, when there is the triage category that is the same as the triage label among all the triage categories in the filtered triage result, the total probability value is substituted for the triage category corresponding to the triage category. The probability value, when there is no triage category that is the same as the triage label in all triage categories in the filtered triage result, there is no need to process the probability value in the filtered triage result.
S604,将与所述过滤分诊结果中的各所述分诊类别对应的所述顺序相关值和所述概率值输入所述损失模型中,通过所述损失模型进行损失分析,得到所述总损失值。S604. Input the sequence correlation value and the probability value corresponding to each of the triage categories in the filtered triage result into the loss model, and perform loss analysis through the loss model to obtain the total Loss value.
可理解地,将与各所述分诊类别对应的所述顺序相关值和所述概率值输入所述损失模型中的损失函数中,通过所述损失函数计算出所述总损失值。Understandably, the sequence correlation value and the probability value corresponding to each of the triage categories are input into the loss function in the loss model, and the total loss value is calculated by the loss function.
在一实施例中,所述步骤S604中,即所述将与所述过滤分诊结果中的各所述分诊类别对应的所述顺序相关值和所述概率值输入所述损失模型中,通过所述损失模型进行损失分析,得到所述总损失值,包括:In one embodiment, in step S604, that is, inputting the sequence correlation value and the probability value corresponding to each of the triage categories in the filtered triage result into the loss model, Perform loss analysis through the loss model to obtain the total loss value, including:
S6041,将与各所述分诊类别对应的所述顺序相关值和所述概率值输入所述损失模型中的损失函数中,通过所述损失函数计算出所述总损失值;所述损失函数为:S6041. Input the sequence correlation value and the probability value corresponding to each of the triage categories into a loss function in the loss model, and calculate the total loss value through the loss function; the loss function for:
L=-(p 1×ln(k)+…+p i×ln(k-i+1)+…+p k×ln(1)) L=-(p 1 ×ln(k)+…+p i ×ln(k-i+1)+…+p k ×ln(1))
其中,in,
L为总损失值;L is the total loss value;
k为所述预设数量;k is the preset number;
p 1为与所述过滤分诊结果中序列为第一位的分诊类别对应的概率值; p 1 is the probability value corresponding to the triage category whose sequence is the first in the filtered triage result;
ln(k)为与所述过滤分诊结果中序列为第一位的分诊类别对应的顺序相关值;ln(k) is the sequence correlation value corresponding to the triage category whose sequence is the first in the filtered triage result;
p i为与所述过滤分诊结果中序列为第i位的分诊类别对应的概率值; p i is the probability value corresponding to the triage category whose sequence is the i-th in the filtered triage result;
ln(k-i+1)为与所述过滤分诊结果中序列为第i位的分诊类别对应的顺序相关值;ln(k-i+1) is the sequence correlation value corresponding to the triage category whose sequence is the i-th in the filtered triage result;
p k为与所述过滤分诊结果中序列为第k位的分诊类别对应的概率值; p k is the probability value corresponding to the triage category whose sequence is the kth in the filtered triage result;
ln(1)为与所述过滤分诊结果中序列为第k位的分诊类别对应的顺序相关值。ln(1) is the sequence correlation value corresponding to the triage category whose sequence is the kth in the filtered triage result.
S70,在所述总损失值未达到预设的收敛条件时,迭代更新所述多融合神经网络模型的初始参数,直至所述总损失值达到所述预设的收敛条件时,将收敛之后的所述多融合神经网络模型记录为分诊融合模型。S70: When the total loss value does not reach the preset convergence condition, iteratively update the initial parameters of the multi-fusion neural network model, until the total loss value reaches the preset convergence condition, the subsequent convergence The multi-fusion neural network model is recorded as a triage fusion model.
可理解地,所述收敛条件可以为所述总损失值经过了3000次计算后值为很小且不会再下降的条件,即在所述总损失值经过3000次计算后值为很小且不会再下降时,停止训练,并将收敛之后的所述多融合神经网络模型记录为分诊融合模型;所述收敛条件也可以为所述总损失值小于设定阈值的条件,即在所述总损失值小于设定阈值时,停止训练,并收敛之后的所述多融合神经网络模型记录为分诊融合模型,如此,在所述总损失值未达到预设的收敛条件时,不断调整所述多融合神经网络模型中的初始参数,并触发通过所述多融合神经网络模型对所述就诊样本进行预测,获取至少两个分诊结果的步骤,可以不断向准确的结果靠拢,让识别的准确率越来越高。如此,通过对多融合神经网络模型的损失函数进行改进,使得其能够优化多融合神经网络模型的样本分诊结果,通过这一改进提升了多融合神经网络模型的性能。Understandably, the convergence condition may be a condition that the value of the total loss value is small and will not drop after 3000 calculations, that is, the value of the total loss value is very small after 3000 calculations. When it will no longer drop, stop training, and record the multi-fusion neural network model after convergence as a triage fusion model; the convergence condition can also be the condition that the total loss value is less than the set threshold, that is, the convergence condition is less than the set threshold. When the total loss value is less than the set threshold, stop training, and the multi-fusion neural network model after convergence is recorded as a triage fusion model. In this way, when the total loss value does not reach the preset convergence condition, it is continuously adjusted The initial parameters in the multi-fusion neural network model and trigger the prediction of the medical sample through the multi-fusion neural network model, and the steps of obtaining at least two triage results can continuously move closer to accurate results, allowing identification The accuracy rate is getting higher and higher. In this way, by improving the loss function of the multi-fusion neural network model, it can optimize the sample triage results of the multi-fusion neural network model, and this improvement improves the performance of the multi-fusion neural network model.
本申请实现了通过获取就诊样本集;所述就诊样本集包括多个就诊样本,每个所述就诊样本与一个分诊标签关联;将所述就诊样本输入含有初始参数的多融合神经网络模型;通过所述多融合神经网络模型对所述就诊样本进行预测,获取至少两个分诊结果;对各所述分诊结果进行标准化转换,得到与各所述分诊结果对应的标准化结果;将所有所述标准化结果进行权重融合,得到样本分诊结果;通过所述多融合神经网络模型中的损失模型,对所述样本分诊结果和所述分诊标签进行损失分析,得到总损失值;在所述总损失值未达到预设的收敛条件时,迭代更新所述多融合神经网络模型的初始参数,直至所述总损失值达到所述预设的收敛条件时,将收敛之后的所述多融合神经网络模型记录为分诊融合模型,因此,本申请提供了分诊融合模型训练方法,通过多融合神经网络模型预测出至少两个分诊结果(多融合神经网络模型包括至少两个模型,一个模型与一个分诊结果对应),对各分诊结果进行标准化转换得到各标准化结果,将所有标准化结果进行权重融合得到样本分诊结果,通过损失模型进行损失分析得到总损失值,根据总损失值迭代更新多融合神经网络模型直至收敛,实现了通过对多融合神经网络模型中的各个不同的模型输出的分诊结果进行标准化,使其具有大小相关的可比性,打破了各模型之间相互独立的局限性,再通过权重融合和损失分析,能够让多融合神经网络模型的训练更加高效和更加准确,提升了多融合神经网络模型识别的性能和准确率。This application realizes the acquisition of a medical consultation sample set; the medical consultation sample set includes a plurality of medical consultation samples, and each of the medical consultation samples is associated with a triage label; the medical consultation sample is input into a multi-fusion neural network model containing initial parameters; The multi-fusion neural network model is used to predict the medical samples to obtain at least two triage results; perform standardized conversion of each triage result to obtain a standardized result corresponding to each triage result; The standardized results are weighted and fused to obtain the sample triage results; the loss model in the multi-fusion neural network model is used to perform loss analysis on the sample triage results and the triage labels to obtain the total loss value; When the total loss value does not reach the preset convergence condition, the initial parameters of the multi-fusion neural network model are iteratively updated, until the total loss value reaches the preset convergence condition, the convergence of the multiple The fusion neural network model is recorded as a triage fusion model. Therefore, this application provides a triage fusion model training method, which predicts at least two triage results through a multi-fusion neural network model (the multi-fusion neural network model includes at least two models, A model corresponds to a triage result), the standardized conversion of each triage result is performed to obtain each standardized result, and all the standardized results are weighted and fused to obtain the sample triage result, and the loss analysis is performed through the loss model to obtain the total loss value, according to the total loss The value is iteratively updated the multi-fusion neural network model until it converges, which realizes the standardization of the triage results output by the different models in the multi-fusion neural network model, so that it has size-related comparability and breaks the mutual relationship between the models. The independent limitation, through weight fusion and loss analysis, can make the training of multi-fusion neural network models more efficient and accurate, and improve the performance and accuracy of multi-fusion neural network model recognition.
本申请提供的分诊方法,可应用在如图1的应用环境中,其中,客户端(计算机设备)通过网络与服务器进行通信。其中,客户端(计算机设备)包括但不限于为各种个人计算机、笔记本电脑、智能手机、平板电脑、摄像头和便携式可穿戴设备。服务器可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The triage method provided in this application can be applied in the application environment as shown in Figure 1, where the client (computer equipment) communicates with the server via the network. Among them, the client (computer equipment) includes, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, cameras, and portable wearable devices. The server can be implemented as an independent server or a server cluster composed of multiple servers.
在一实施例中,如图6示,提供一种分诊方法,其技术方案主要包括以下步骤S100-S200:In an embodiment, as shown in FIG. 6, a triage method is provided, and the technical solution mainly includes the following steps S100-S200:
S100,接收患者的分诊请求,获取所述分诊请求中的患者就诊信息。S100: Receive a triage request from a patient, and obtain the patient's medical treatment information in the triage request.
可理解地,所述患者在应用程序平台上确定输入完所述患者就诊信息之后,触发所述分诊请求,所述患者就诊信息为患者在所述应用程序平台上登录之后输入的当前就诊的信息,所述患者就诊信息可以通过患者在应用程序平台上进行文本输入后获得,也可以通过患者在应用程序平台对患者输入的语音进行转换成文本后确认获得。Understandably, after the patient determines on the application platform to input the patient's medical consultation information, the triage request is triggered, and the patient's medical consultation information is the current medical consultation input after the patient logs in on the application platform. Information, the patient visit information can be obtained by the patient after text input on the application platform, or can be obtained by confirming the patient after the patient converts the voice input by the patient into text on the application platform.
S200,将所述患者就诊信息输入如上述分诊融合模型训练方法训练完成的分诊融合模型,获取所述分诊融合模型输出的最终分诊结果。S200: Input the patient visit information into the triage fusion model trained by the above triage fusion model training method, and obtain the final triage result output by the triage fusion model.
可理解地,将所述患者就诊信息输入至如上述分诊融合模型训练方法训练并训练完成的所述分诊融合模型,将上述分诊融合模型训练方法中输出的所述样本分诊结果中最高概率值对应的分诊类别确定为所述最终分诊结果,所述最终分诊结果给患者进行预约提供了准确的依据,便于患者选择准确的科室进行预约就诊。Understandably, the patient visit information is input to the triage fusion model trained and trained as in the above-mentioned triage fusion model training method, and the sample triage results output from the above-mentioned triage fusion model training method The triage category corresponding to the highest probability value is determined as the final triage result, and the final triage result provides an accurate basis for the patient to make an appointment, and facilitates the patient to select an accurate department to make an appointment.
本申请实现了通过接收患者的分诊请求,获取所述分诊请求中的患者就诊信息;将所述患者就诊信息输入如上述分诊融合模型训练方法训练完成的分诊融合模型,获取所述分诊融合模型输出的最终分诊结果,如此,本申请通过分诊融合模型训练方法训练完成的分诊融合模型对患者就诊信息进行预测,获得最终分诊结果,该最终分诊结果给患者进行预约提供了准确的依据,提高了分诊的准确率和效率,提升了用户的满意度,并提升了分诊的有效性。This application realizes that by receiving the patient's triage request, obtain the patient's visit information in the triage request; input the patient's visit information into the triage fusion model trained as the above-mentioned triage fusion model training method, and obtain the The final triage result output by the triage fusion model. In this case, the triage fusion model trained by the triage fusion model training method predicts the patient's visit information and obtains the final triage result. The final triage result is presented to the patient Appointment provides an accurate basis, improves the accuracy and efficiency of triage, improves user satisfaction, and enhances the effectiveness of triage.
在一实施例中,提供一种分诊融合模型训练装置,该分诊融合模型训练装置与上述实施例中分诊融合模型训练方法一一对应。如图7所示,该分诊融合模型训练装置包括获取模块11、输入模块12、预测模块13、标准化模块14、权重模块15、损失模块16和迭代模块17。各功能模块详细说明如下:In one embodiment, a triage fusion model training device is provided, and the triage fusion model training device corresponds to the triage fusion model training method in the foregoing embodiment in a one-to-one correspondence. As shown in FIG. 7, the triage fusion model training device includes an acquisition module 11, an input module 12, a prediction module 13, a standardization module 14, a weight module 15, a loss module 16 and an iteration module 17. The detailed description of each functional module is as follows:
获取模块11,用于获取就诊样本集;所述就诊样本集包括多个就诊样本,每个所述就诊样本与一个分诊标签关联;The obtaining module 11 is configured to obtain a medical consultation sample set; the medical consultation sample set includes a plurality of medical consultation samples, and each of the medical consultation samples is associated with a triage label;
输入模块12,用于将所述就诊样本输入含有初始参数的多融合神经网络模型;The input module 12 is used to input the consultation samples into a multi-fusion neural network model containing initial parameters;
预测模块13,用于通过所述多融合神经网络模型对所述就诊样本进行预测,获取至少两个分诊结果;The prediction module 13 is used for predicting the medical sample through the multi-fusion neural network model to obtain at least two triage results;
标准化模块14,用于对各所述分诊结果进行标准化转换,得到与各所述分诊结果对应的标准化结果;The standardization module 14 is used to perform standardized conversion of each of the triage results to obtain a standardized result corresponding to each of the triage results;
权重模块15,用于将所有所述标准化结果进行权重融合,得到样本分诊结果;The weight module 15 is used to perform weight fusion of all the standardized results to obtain the sample triage results;
损失模块16,用于通过所述多融合神经网络模型中的损失模型,对所述样本分诊结果和所述分诊标签进行损失分析,得到总损失值;The loss module 16 is configured to perform loss analysis on the sample triage result and the triage label through the loss model in the multi-fusion neural network model to obtain a total loss value;
迭代模块17,用于在所述总损失值未达到预设的收敛条件时,迭代更新所述多融合神经网络模型的初始参数,直至所述总损失值达到所述预设的收敛条件时,将收敛之后的所述多融合神经网络模型记录为分诊融合模型。The iterative module 17 is configured to iteratively update the initial parameters of the multi-fusion neural network model when the total loss value does not reach the preset convergence condition, until the total loss value reaches the preset convergence condition, The multi-fusion neural network model after convergence is recorded as a triage fusion model.
关于分诊融合模型训练装置的具体限定可以参见上文中对于分诊融合模型训练方法的限定,在此不再赘述。上述分诊融合模型训练装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Regarding the specific limitation of the triage fusion model training device, please refer to the above limitation on the triage fusion model training method, which will not be repeated here. Each module in the above-mentioned triage fusion model training device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.
在一实施例中,提供一种分诊装置,该分诊装置与上述实施例中分诊方法一一对应。如图8所示,该分诊装置包括接收模块101和分诊模块102。各功能模块详细说明如下:In one embodiment, a triage device is provided, and the triage device corresponds to the triage method in the foregoing embodiment one-to-one. As shown in FIG. 8, the triage device includes a receiving module 101 and a triage module 102. The detailed description of each functional module is as follows:
接收模块101,用于接收患者的分诊请求,获取所述分诊请求中的患者就诊信息;The receiving module 101 is configured to receive a patient's triage request, and obtain the patient's medical treatment information in the triage request;
分诊模块102,用于将所述患者就诊信息输入如上述分诊融合模型训练方法训练完成的分诊融合模型,获取所述分诊融合模型输出的最终分诊结果。The triage module 102 is configured to input the patient's visit information into the triage fusion model trained by the above-mentioned triage fusion model training method, and obtain the final triage result output by the triage fusion model.
关于分诊装置的具体限定可以参见上文中对于分诊方法的限定,在此不再赘述。上述分诊装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the triage device, please refer to the above limitation on the triage method, which will not be repeated here. Each module in the above-mentioned triage device can be implemented in whole or in part by software, hardware, and a combination thereof. The above-mentioned modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图9所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括可读存储介质、内存储器。该可读存储介质存储有操作系统、计算机可读指令和数据 库。该内存储器为可读存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现一种分诊融合模型训练方法,或者分诊方法。本实施例所提供的可读存储介质包括非易失性可读存储介质和易失性可读存储介质。In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. 9. The computer equipment includes a processor, a memory, a network interface, and a database connected through a system bus. Among them, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a readable storage medium and an internal memory. The readable storage medium stores an operating system, computer readable instructions, and a database. The internal memory provides an environment for the operation of the operating system and computer readable instructions in the readable storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer-readable instructions are executed by the processor to realize a triage fusion model training method, or triage method. The readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.
在一个实施例中,提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机可读指令,处理器执行计算机可读指令时实现上述实施例中分诊融合模型训练方法,或者处理器执行计算机可读指令时实现上述实施例中分诊方法。In one embodiment, a computer device is provided, including a memory, a processor, and computer-readable instructions stored in the memory and capable of running on the processor. Diagnosis fusion model training method, or when the processor executes computer-readable instructions, the triage method in the above embodiment is implemented.
在一个实施例中,提供了一个或多个存储有计算机可读指令的可读存储介质,本实施例所提供的可读存储介质包括非易失性可读存储介质和易失性可读存储介质;该可读存储介质上存储有计算机可读指令,该计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器实现上述实施例中分诊融合模型训练方法,或者计算机可读指令被处理器执行时实现上述实施例中分诊方法。In one embodiment, one or more readable storage media storing computer readable instructions are provided. The readable storage media provided in this embodiment include non-volatile readable storage media and volatile readable storage. Medium; the readable storage medium stores computer readable instructions, and when the computer readable instructions are executed by one or more processors, the one or more processors implement the triage fusion model training method in the above-mentioned embodiment, or When the computer-readable instructions are executed by the processor, the triage method in the above-mentioned embodiment is implemented.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质或易失性可读存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through computer-readable instructions. The computer-readable instructions can be stored in a non-volatile computer. In a readable storage medium or a volatile readable storage medium, when the computer readable instruction is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database, or other media used in the embodiments provided in this application may include non-volatile and/or volatile memory. Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not a limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, only the division of the above functional units and modules is used as an example. In practical applications, the above functions can be allocated to different functional units and modules as needed. Module completion, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still implement the foregoing The technical solutions recorded in the examples are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in Within the scope of protection of this application.

Claims (20)

  1. 一种分诊融合模型训练方法,其中,包括:A training method for triage fusion model, which includes:
    获取就诊样本集;所述就诊样本集包括多个就诊样本,每个所述就诊样本与一个分诊标签关联;Obtaining a medical consultation sample set; the medical consultation sample set includes a plurality of medical consultation samples, and each medical consultation sample is associated with a triage label;
    将所述就诊样本输入含有初始参数的多融合神经网络模型;Inputting the consultation samples into a multi-fusion neural network model containing initial parameters;
    通过所述多融合神经网络模型对所述就诊样本进行预测,获取至少两个分诊结果;Predicting the consultation samples by using the multi-fusion neural network model to obtain at least two triage results;
    对各所述分诊结果进行标准化转换,得到与各所述分诊结果对应的标准化结果;Perform standardized conversion on each of the triage results to obtain a standardized result corresponding to each of the triage results;
    将所有所述标准化结果进行权重融合,得到样本分诊结果;Perform weight fusion on all the standardized results to obtain sample triage results;
    通过所述多融合神经网络模型中的损失模型,对所述样本分诊结果和所述分诊标签进行损失分析,得到总损失值;Performing a loss analysis on the sample triage result and the triage label through the loss model in the multi-fusion neural network model to obtain a total loss value;
    在所述总损失值未达到预设的收敛条件时,迭代更新所述多融合神经网络模型的初始参数,直至所述总损失值达到所述预设的收敛条件时,将收敛之后的所述多融合神经网络模型记录为分诊融合模型。When the total loss value does not reach the preset convergence condition, iteratively update the initial parameters of the multi-fusion neural network model, until the total loss value reaches the preset convergence condition, the subsequent convergence The multi-fusion neural network model is recorded as a triage fusion model.
  2. 如权利要求1所述的分诊融合模型训练方法,其中,所述对各所述分诊结果进行标准化转换,得到与各所述分诊结果对应的标准化结果,包括:3. The triage fusion model training method according to claim 1, wherein said performing standardized conversion on each of the triage results to obtain a standardized result corresponding to each of the triage results comprises:
    将各所述分诊结果中的分诊类别由大到小进行排序,并获取排序后序列在先的预设提取数量的分诊类别,将获取后的各所述分诊结果确定为与各所述分诊结果对应的排序结果;所述分诊结果包括所述分诊类别;Sort the triage categories in each of the triage results from large to small, and obtain the pre-set number of triage categories with the first sequence after the sorting, and determine the obtained triage results to be the same as each The sorting result corresponding to the triage result; the triage result includes the triage category;
    通过标准化技术,对各所述排序结果中的各个分诊类别进行标准化赋值;Using standardization technology, standardize the assignment of each triage category in each of the sorting results;
    将赋值后的各所述排序结果确定为与各所述排序结果一一对应的标准化结果。Each of the sorting results after the assignment is determined as a standardized result corresponding to each of the sorting results one-to-one.
  3. 如权利要求1所述的分诊融合模型训练方法,其中,所述将所有所述标准化结果进行权重融合,得到样本分诊结果,包括:The method for training a triage fusion model according to claim 1, wherein said performing weight fusion of all the standardized results to obtain sample triage results comprises:
    将各所述标准化结果进行预设维度的分诊向量转换,得到与各所述标准化结果对应的分诊向量;Transform each of the standardized results into a triage vector of a preset dimension to obtain a triage vector corresponding to each of the standardized results;
    根据各所述分诊结果和所述分诊标签,确定出与各所述分诊结果对应的准确率;According to each of the triage results and the triage label, determine the accuracy rate corresponding to each of the triage results;
    根据所有所述准确率,生成与各所述分诊向量对应的权重;According to all the accuracy rates, generate a weight corresponding to each of the triage vectors;
    根据各所述分诊向量和各所述权重,得到所述样本分诊结果。According to each of the triage vectors and each of the weights, the sample triage results are obtained.
  4. 如权利要求1所述的分诊融合模型训练方法,其中,所述通过所述多融合神经网络模型中的损失模型,对所述样本分诊结果和所述分诊标签进行损失分析,得到总损失值,包括:The triage fusion model training method according to claim 1, wherein the loss model in the multi-fusion neural network model is used to perform a loss analysis on the sample triage result and the triage label to obtain a total Loss value, including:
    将所述样本分诊结果由大到小顺序进行排序,并获取排序后的所述样本分诊结果中序列在先的预设数量的分诊类别,将获取后的所述样本分诊结果确定为过滤分诊结果;所述样本分诊结果包括所述分诊类别和与所述分诊类别对应的概率值;Sort the sample triage results in descending order, and obtain a preset number of triage categories in the sequence of the sorted sample triage results, and determine the obtained sample triage results To filter the triage results; the sample triage results include the triage category and the probability value corresponding to the triage category;
    给所述过滤分诊结果中的各所述分诊类别赋予顺序相关值;Assigning sequence related values to each of the triage categories in the filtered triage results;
    若存在与所述分诊标签相同的所述分诊类别,将概率总和值替代与所述分诊标签相同的所述分诊类别对应的所述概率值,所述概率总和值为所有所述概率值之和;If there is the triage category that is the same as the triage label, the total probability value is substituted for the probability value corresponding to the triage category that is the same as the triage label, and the total probability value is all the Sum of probability values;
    将与所述过滤分诊结果中的各所述分诊类别对应的所述顺序相关值和所述概率值输入所述损失模型中,通过所述损失模型进行损失分析,得到所述总损失值。Input the sequence correlation value and the probability value corresponding to each of the triage categories in the filtered triage result into the loss model, and perform loss analysis through the loss model to obtain the total loss value .
  5. 如权利要求4所述的分诊融合模型训练方法,其中,所述将与所述过滤分诊结果中的各所述分诊类别对应的所述顺序相关值和所述概率值输入所述损失模型中,通过所述损失模型进行损失分析,得到所述总损失值,包括:The triage fusion model training method according to claim 4, wherein said inputting said sequence correlation value and said probability value corresponding to each of said triage categories in said filtered triage result into said loss In the model, the loss analysis is performed through the loss model to obtain the total loss value, including:
    将与各所述分诊类别对应的所述顺序相关值和所述概率值输入所述损失模型中的损失函数中,通过所述损失函数计算出所述总损失值;所述损失函数为:The sequence correlation value and the probability value corresponding to each of the triage categories are input into the loss function in the loss model, and the total loss value is calculated by the loss function; the loss function is:
    L=-(p 1×ln(k)+…+p i×ln(k-i+1)+…+p k×ln(1)) L=-(p 1 ×ln(k)+…+p i ×ln(k-i+1)+…+p k ×ln(1))
    其中,in,
    L为总损失值;L is the total loss value;
    k为所述预设数量;k is the preset number;
    p 1为与所述过滤分诊结果中序列为第一位的分诊类别对应的概率值; p 1 is the probability value corresponding to the triage category whose sequence is the first in the filtered triage result;
    ln(k)为与所述过滤分诊结果中序列为第一位的分诊类别对应的顺序相关值;ln(k) is the sequence correlation value corresponding to the triage category whose sequence is the first in the filtered triage result;
    p i为与所述过滤分诊结果中序列为第i位的分诊类别对应的概率值; p i is the probability value corresponding to the triage category whose sequence is the i-th in the filtered triage result;
    ln(k-i+1)为与所述过滤分诊结果中序列为第i位的分诊类别对应的顺序相关值;ln(k-i+1) is the sequence correlation value corresponding to the triage category whose sequence is the i-th in the filtered triage result;
    p k为与所述过滤分诊结果中序列为第k位的分诊类别对应的概率值; p k is the probability value corresponding to the triage category whose sequence is the kth in the filtered triage result;
    ln(1)为与所述过滤分诊结果中序列为第k位的分诊类别对应的顺序相关值。ln(1) is the sequence correlation value corresponding to the triage category whose sequence is the kth in the filtered triage result.
  6. 一种分诊方法,其中,包括:A method of triage, which includes:
    接收患者的分诊请求,获取所述分诊请求中的患者就诊信息;Receive the patient's triage request, and obtain the patient's medical information in the triage request;
    将所述患者就诊信息输入如权利要求1至5任一项所述分诊融合模型训练方法训练完成的分诊融合模型,获取所述分诊融合模型输出的最终分诊结果。The patient visit information is input into the triage fusion model trained by the triage fusion model training method according to any one of claims 1 to 5, and the final triage result output by the triage fusion model is obtained.
  7. 一种分诊融合模型训练装置,其中,包括:A triage fusion model training device, which includes:
    获取模块,用于获取就诊样本集;所述就诊样本集包括多个就诊样本,每个所述就诊样本与一个分诊标签关联;An obtaining module, configured to obtain a medical examination sample set; the medical examination sample set includes a plurality of medical examination samples, and each of the medical examination samples is associated with a triage label;
    输入模块,用于将所述就诊样本输入含有初始参数的多融合神经网络模型;An input module, used to input the consultation samples into a multi-fusion neural network model containing initial parameters;
    预测模块,用于通过所述多融合神经网络模型对所述就诊样本进行预测,获取至少两个分诊结果;A prediction module, used for predicting the medical sample through the multi-fusion neural network model, and obtaining at least two triage results;
    标准化模块,用于对各所述分诊结果进行标准化转换,得到与各所述分诊结果对应的标准化结果;The standardization module is used to perform standardized conversion of each of the triage results to obtain a standardized result corresponding to each of the triage results;
    权重模块,用于将所有所述标准化结果进行权重融合,得到样本分诊结果;The weight module is used to perform weight fusion of all the standardized results to obtain sample triage results;
    损失模块,用于通过所述多融合神经网络模型中的损失模型,对所述样本分诊结果和所述分诊标签进行损失分析,得到总损失值;A loss module, configured to perform loss analysis on the sample triage result and the triage label through the loss model in the multi-fusion neural network model to obtain a total loss value;
    迭代模块,用于在所述总损失值未达到预设的收敛条件时,迭代更新所述多融合神经网络模型的初始参数,直至所述总损失值达到所述预设的收敛条件时,将收敛之后的所述多融合神经网络模型记录为分诊融合模型。The iterative module is used to iteratively update the initial parameters of the multi-fusion neural network model when the total loss value does not reach the preset convergence condition, until the total loss value reaches the preset convergence condition, The multi-fusion neural network model after convergence is recorded as a triage fusion model.
  8. 一种分诊装置,其中,包括:A triage device, which includes:
    接收模块,用于接收患者的分诊请求,获取所述分诊请求中的患者就诊信息;The receiving module is used to receive the patient's triage request, and obtain the patient's medical treatment information in the triage request;
    分诊模块,用于将所述患者就诊信息输入如权利要求1至5任一项所述分诊融合模型训练方法训练完成的分诊融合模型,获取所述分诊融合模型输出的最终分诊结果。The triage module is used to input the patient's visit information into the triage fusion model trained by the triage fusion model training method according to any one of claims 1 to 5, and obtain the final triage output by the triage fusion model result.
  9. 一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其中,所述处理器执行所述计算机可读指令时实现如下步骤:获取就诊样本集;所述就诊样本集包括多个就诊样本,每个所述就诊样本与一个分诊标签关联;A computer device includes a memory, a processor, and computer-readable instructions that are stored in the memory and can run on the processor, wherein the processor implements the following steps when the processor executes the computer-readable instructions: Obtaining a medical consultation sample set; the medical consultation sample set includes a plurality of medical consultation samples, and each medical consultation sample is associated with a triage label;
    将所述就诊样本输入含有初始参数的多融合神经网络模型;Inputting the consultation samples into a multi-fusion neural network model containing initial parameters;
    通过所述多融合神经网络模型对所述就诊样本进行预测,获取至少两个分诊结果;Predicting the consultation samples by using the multi-fusion neural network model to obtain at least two triage results;
    对各所述分诊结果进行标准化转换,得到与各所述分诊结果对应的标准化结果;Perform standardized conversion on each of the triage results to obtain a standardized result corresponding to each of the triage results;
    将所有所述标准化结果进行权重融合,得到样本分诊结果;Perform weight fusion on all the standardized results to obtain sample triage results;
    通过所述多融合神经网络模型中的损失模型,对所述样本分诊结果和所述分诊标签进行损失分析,得到总损失值;Performing a loss analysis on the sample triage result and the triage label through the loss model in the multi-fusion neural network model to obtain a total loss value;
    在所述总损失值未达到预设的收敛条件时,迭代更新所述多融合神经网络模型的初始参数,直至所述总损失值达到所述预设的收敛条件时,将收敛之后的所述多融合神经网络模型记录为分诊融合模型。When the total loss value does not reach the preset convergence condition, iteratively update the initial parameters of the multi-fusion neural network model, until the total loss value reaches the preset convergence condition, the subsequent convergence The multi-fusion neural network model is recorded as a triage fusion model.
  10. 如权利要求9所述的计算机设备,其中,所述对各所述分诊结果进行标准化转换, 得到与各所述分诊结果对应的标准化结果,包括:9. The computer device according to claim 9, wherein said performing standardized conversion on each of said triage results to obtain a standardized result corresponding to each of said triage results comprises:
    将各所述分诊结果中的分诊类别由大到小进行排序,并获取排序后序列在先的预设提取数量的分诊类别,将获取后的各所述分诊结果确定为与各所述分诊结果对应的排序结果;所述分诊结果包括所述分诊类别;Sort the triage categories in each of the triage results from large to small, and obtain the pre-set number of triage categories with the first sequence after the sorting, and determine the obtained triage results to be the same as each The sorting result corresponding to the triage result; the triage result includes the triage category;
    通过标准化技术,对各所述排序结果中的各个分诊类别进行标准化赋值;Using standardization technology, standardize the assignment of each triage category in each of the sorting results;
    将赋值后的各所述排序结果确定为与各所述排序结果一一对应的标准化结果。Each of the sorting results after the assignment is determined as a standardized result corresponding to each of the sorting results one-to-one.
  11. 如权利要求9所述的计算机设备,其中,所述将所有所述标准化结果进行权重融合,得到样本分诊结果,包括:8. The computer device according to claim 9, wherein the weighted fusion of all the standardized results to obtain a sample triage result comprises:
    将各所述标准化结果进行预设维度的分诊向量转换,得到与各所述标准化结果对应的分诊向量;Transform each of the standardized results into a triage vector of a preset dimension to obtain a triage vector corresponding to each of the standardized results;
    根据各所述分诊结果和所述分诊标签,确定出与各所述分诊结果对应的准确率;According to each of the triage results and the triage label, determine the accuracy rate corresponding to each of the triage results;
    根据所有所述准确率,生成与各所述分诊向量对应的权重;According to all the accuracy rates, generate a weight corresponding to each of the triage vectors;
    根据各所述分诊向量和各所述权重,得到所述样本分诊结果。According to each of the triage vectors and each of the weights, the sample triage results are obtained.
  12. 如权利要求9所述的计算机设备,其中,所述通过所述多融合神经网络模型中的损失模型,对所述样本分诊结果和所述分诊标签进行损失分析,得到总损失值,包括:The computer device according to claim 9, wherein the loss analysis is performed on the sample triage result and the triage label through the loss model in the multi-fusion neural network model to obtain a total loss value, including :
    将所述样本分诊结果由大到小顺序进行排序,并获取排序后的所述样本分诊结果中序列在先的预设数量的分诊类别,将获取后的所述样本分诊结果确定为过滤分诊结果;所述样本分诊结果包括所述分诊类别和与所述分诊类别对应的概率值;Sort the sample triage results in descending order, and obtain a preset number of triage categories in the sequence of the sorted sample triage results, and determine the obtained sample triage results To filter the triage results; the sample triage results include the triage category and the probability value corresponding to the triage category;
    给所述过滤分诊结果中的各所述分诊类别赋予顺序相关值;Assigning sequence related values to each of the triage categories in the filtered triage results;
    若存在与所述分诊标签相同的所述分诊类别,将概率总和值替代与所述分诊标签相同的所述分诊类别对应的所述概率值,所述概率总和值为所有所述概率值之和;If there is the triage category that is the same as the triage label, the total probability value is substituted for the probability value corresponding to the triage category that is the same as the triage label, and the total probability value is all the Sum of probability values;
    将与所述过滤分诊结果中的各所述分诊类别对应的所述顺序相关值和所述概率值输入所述损失模型中,通过所述损失模型进行损失分析,得到所述总损失值。Input the sequence correlation value and the probability value corresponding to each of the triage categories in the filtered triage result into the loss model, and perform loss analysis through the loss model to obtain the total loss value .
  13. 如权利要求12所述的计算机设备,其中,所述将与所述过滤分诊结果中的各所述分诊类别对应的所述顺序相关值和所述概率值输入所述损失模型中,通过所述损失模型进行损失分析,得到所述总损失值,包括:The computer device according to claim 12, wherein said inputting said sequence correlation value and said probability value corresponding to each of said triage categories in said filtered triage result into said loss model, by The loss model performs loss analysis to obtain the total loss value, including:
    将与各所述分诊类别对应的所述顺序相关值和所述概率值输入所述损失模型中的损失函数中,通过所述损失函数计算出所述总损失值;所述损失函数为:The sequence correlation value and the probability value corresponding to each of the triage categories are input into the loss function in the loss model, and the total loss value is calculated by the loss function; the loss function is:
    L=-(p 1×ln(k)+…+p i×ln(k-i+1)+…+p k×ln(1)) L=-(p 1 ×ln(k)+…+p i ×ln(k-i+1)+…+p k ×ln(1))
    其中,in,
    L为总损失值;L is the total loss value;
    k为所述预设数量;k is the preset number;
    p 1为与所述过滤分诊结果中序列为第一位的分诊类别对应的概率值; p 1 is the probability value corresponding to the triage category whose sequence is the first in the filtered triage result;
    ln(k)为与所述过滤分诊结果中序列为第一位的分诊类别对应的顺序相关值;ln(k) is the sequence correlation value corresponding to the triage category whose sequence is the first in the filtered triage result;
    p i为与所述过滤分诊结果中序列为第i位的分诊类别对应的概率值; p i is the probability value corresponding to the triage category whose sequence is the i-th in the filtered triage result;
    ln(k-i+1)为与所述过滤分诊结果中序列为第i位的分诊类别对应的顺序相关值;ln(k-i+1) is the sequence correlation value corresponding to the triage category whose sequence is the i-th in the filtered triage result;
    p k为与所述过滤分诊结果中序列为第k位的分诊类别对应的概率值; p k is the probability value corresponding to the triage category whose sequence is the kth in the filtered triage result;
    ln(1)为与所述过滤分诊结果中序列为第k位的分诊类别对应的顺序相关值。ln(1) is the sequence correlation value corresponding to the triage category whose sequence is the kth in the filtered triage result.
  14. 一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其中,所述处理器执行所述计算机可读指令时还实现如下步骤:A computer device includes a memory, a processor, and computer readable instructions stored in the memory and capable of running on the processor, wherein the processor further implements the following steps when executing the computer readable instructions :
    接收患者的分诊请求,获取所述分诊请求中的患者就诊信息;Receive the patient's triage request, and obtain the patient's medical information in the triage request;
    将所述患者就诊信息输入通过分诊融合模型训练方法训练完成的分诊融合模型,获取所述分诊融合模型输出的最终分诊结果。The patient visit information is input into the triage fusion model trained by the triage fusion model training method, and the final triage result output by the triage fusion model is obtained.
  15. 一个或多个存储有计算机可读指令的可读存储介质,其中,所述计算机可读指令被 一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:One or more readable storage media storing computer readable instructions, where when the computer readable instructions are executed by one or more processors, the one or more processors execute the following steps:
    获取就诊样本集;所述就诊样本集包括多个就诊样本,每个所述就诊样本与一个分诊标签关联;Obtaining a medical consultation sample set; the medical consultation sample set includes a plurality of medical consultation samples, and each medical consultation sample is associated with a triage label;
    将所述就诊样本输入含有初始参数的多融合神经网络模型;Inputting the consultation samples into a multi-fusion neural network model containing initial parameters;
    通过所述多融合神经网络模型对所述就诊样本进行预测,获取至少两个分诊结果;Predicting the consultation samples by using the multi-fusion neural network model to obtain at least two triage results;
    对各所述分诊结果进行标准化转换,得到与各所述分诊结果对应的标准化结果;Perform standardized conversion on each of the triage results to obtain a standardized result corresponding to each of the triage results;
    将所有所述标准化结果进行权重融合,得到样本分诊结果;Perform weight fusion on all the standardized results to obtain sample triage results;
    通过所述多融合神经网络模型中的损失模型,对所述样本分诊结果和所述分诊标签进行损失分析,得到总损失值;Performing a loss analysis on the sample triage result and the triage label through the loss model in the multi-fusion neural network model to obtain a total loss value;
    在所述总损失值未达到预设的收敛条件时,迭代更新所述多融合神经网络模型的初始参数,直至所述总损失值达到所述预设的收敛条件时,将收敛之后的所述多融合神经网络模型记录为分诊融合模型。When the total loss value does not reach the preset convergence condition, iteratively update the initial parameters of the multi-fusion neural network model, until the total loss value reaches the preset convergence condition, the subsequent convergence The multi-fusion neural network model is recorded as a triage fusion model.
  16. 如权利要求15所述的可读存储介质,其中,所述对各所述分诊结果进行标准化转换,得到与各所述分诊结果对应的标准化结果,包括:15. The readable storage medium according to claim 15, wherein the standardized conversion of each of the triage results to obtain a standardized result corresponding to each of the triage results comprises:
    将各所述分诊结果中的分诊类别由大到小进行排序,并获取排序后序列在先的预设提取数量的分诊类别,将获取后的各所述分诊结果确定为与各所述分诊结果对应的排序结果;所述分诊结果包括所述分诊类别;Sort the triage categories in each of the triage results from large to small, and obtain the pre-set number of triage categories with the first sequence after the sorting, and determine the obtained triage results to be the same as each The sorting result corresponding to the triage result; the triage result includes the triage category;
    通过标准化技术,对各所述排序结果中的各个分诊类别进行标准化赋值;Using standardization technology, standardize the assignment of each triage category in each of the sorting results;
    将赋值后的各所述排序结果确定为与各所述排序结果一一对应的标准化结果。Each of the sorting results after the assignment is determined as a standardized result corresponding to each of the sorting results one-to-one.
  17. 如权利要求15所述的可读存储介质,其中,所述将所有所述标准化结果进行权重融合,得到样本分诊结果,包括:15. The readable storage medium according to claim 15, wherein said performing weight fusion of all the standardized results to obtain sample triage results comprises:
    将各所述标准化结果进行预设维度的分诊向量转换,得到与各所述标准化结果对应的分诊向量;Transform each of the standardized results into a triage vector of a preset dimension to obtain a triage vector corresponding to each of the standardized results;
    根据各所述分诊结果和所述分诊标签,确定出与各所述分诊结果对应的准确率;According to each of the triage results and the triage label, determine the accuracy rate corresponding to each of the triage results;
    根据所有所述准确率,生成与各所述分诊向量对应的权重;According to all the accuracy rates, generate a weight corresponding to each of the triage vectors;
    根据各所述分诊向量和各所述权重,得到所述样本分诊结果。According to each of the triage vectors and each of the weights, the sample triage results are obtained.
  18. 如权利要求15所述的可读存储介质,其中,所述通过所述多融合神经网络模型中的损失模型,对所述样本分诊结果和所述分诊标签进行损失分析,得到总损失值,包括:The readable storage medium of claim 15, wherein the loss analysis is performed on the sample triage result and the triage label through the loss model in the multi-fusion neural network model to obtain a total loss value ,include:
    将所述样本分诊结果由大到小顺序进行排序,并获取排序后的所述样本分诊结果中序列在先的预设数量的分诊类别,将获取后的所述样本分诊结果确定为过滤分诊结果;所述样本分诊结果包括所述分诊类别和与所述分诊类别对应的概率值;Sort the sample triage results in descending order, and obtain a preset number of triage categories in the sequence of the sorted sample triage results, and determine the obtained sample triage results To filter the triage results; the sample triage results include the triage category and the probability value corresponding to the triage category;
    给所述过滤分诊结果中的各所述分诊类别赋予顺序相关值;Assigning sequence related values to each of the triage categories in the filtered triage results;
    若存在与所述分诊标签相同的所述分诊类别,将概率总和值替代与所述分诊标签相同的所述分诊类别对应的所述概率值,所述概率总和值为所有所述概率值之和;If there is the triage category that is the same as the triage label, the total probability value is substituted for the probability value corresponding to the triage category that is the same as the triage label, and the total probability value is all the Sum of probability values;
    将与所述过滤分诊结果中的各所述分诊类别对应的所述顺序相关值和所述概率值输入所述损失模型中,通过所述损失模型进行损失分析,得到所述总损失值。Input the sequence correlation value and the probability value corresponding to each of the triage categories in the filtered triage result into the loss model, and perform loss analysis through the loss model to obtain the total loss value .
  19. 如权利要求18所述的可读存储介质,其中,所述将与所述过滤分诊结果中的各所述分诊类别对应的所述顺序相关值和所述概率值输入所述损失模型中,通过所述损失模型进行损失分析,得到所述总损失值,包括:The readable storage medium of claim 18, wherein the sequence correlation value and the probability value corresponding to each of the triage categories in the filtered triage result are input into the loss model , Perform loss analysis through the loss model to obtain the total loss value, including:
    将与各所述分诊类别对应的所述顺序相关值和所述概率值输入所述损失模型中的损失函数中,通过所述损失函数计算出所述总损失值;所述损失函数为:The sequence correlation value and the probability value corresponding to each of the triage categories are input into the loss function in the loss model, and the total loss value is calculated by the loss function; the loss function is:
    L=-(p 1×ln(k)+…+p i×ln(k-i+1)+…+p k×ln(1)) L=-(p 1 ×ln(k)+…+p i ×ln(k-i+1)+…+p k ×ln(1))
    其中,in,
    L为总损失值;L is the total loss value;
    k为所述预设数量;k is the preset number;
    p 1为与所述过滤分诊结果中序列为第一位的分诊类别对应的概率值; p 1 is the probability value corresponding to the triage category whose sequence is the first in the filtered triage result;
    ln(k)为与所述过滤分诊结果中序列为第一位的分诊类别对应的顺序相关值;ln(k) is the sequence correlation value corresponding to the triage category whose sequence is the first in the filtered triage result;
    p i为与所述过滤分诊结果中序列为第i位的分诊类别对应的概率值; p i is the probability value corresponding to the triage category whose sequence is the i-th in the filtered triage result;
    ln(k-i+1)为与所述过滤分诊结果中序列为第i位的分诊类别对应的顺序相关值;ln(k-i+1) is the sequence correlation value corresponding to the triage category whose sequence is the i-th in the filtered triage result;
    p k为与所述过滤分诊结果中序列为第k位的分诊类别对应的概率值; p k is the probability value corresponding to the triage category whose sequence is the kth in the filtered triage result;
    ln(1)为与所述过滤分诊结果中序列为第k位的分诊类别对应的顺序相关值。ln(1) is the sequence correlation value corresponding to the triage category whose sequence is the kth in the filtered triage result.
  20. 一个或多个存储有计算机可读指令的可读存储介质,其中,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器还执行如下步骤:One or more readable storage media storing computer readable instructions, where when the computer readable instructions are executed by one or more processors, the one or more processors further execute the following steps:
    接收患者的分诊请求,获取所述分诊请求中的患者就诊信息;Receive the patient's triage request, and obtain the patient's medical information in the triage request;
    将所述患者就诊信息输入通过分诊融合模型训练方法训练完成的分诊融合模型,获取所述分诊融合模型输出的最终分诊结果。The patient visit information is input into the triage fusion model trained by the triage fusion model training method, and the final triage result output by the triage fusion model is obtained.
PCT/CN2020/135343 2020-09-25 2020-12-10 Triage fusion model training method, triage method, apparatus, device, and medium WO2021164388A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011023857.7 2020-09-25
CN202011023857.7A CN112101550B (en) 2020-09-25 2020-09-25 Triage fusion model training method, triage device, triage equipment and medium

Publications (1)

Publication Number Publication Date
WO2021164388A1 true WO2021164388A1 (en) 2021-08-26

Family

ID=73756210

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/135343 WO2021164388A1 (en) 2020-09-25 2020-12-10 Triage fusion model training method, triage method, apparatus, device, and medium

Country Status (2)

Country Link
CN (1) CN112101550B (en)
WO (1) WO2021164388A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114678113A (en) * 2022-03-14 2022-06-28 浙江大学 Intelligent emergency pre-examination triage system based on convolutional neural network
CN115662599A (en) * 2022-12-28 2023-01-31 温州医科大学附属第二医院(温州医科大学附属育英儿童医院) Appointment method and appointment device for hospital diagnosis

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112652386A (en) * 2020-12-25 2021-04-13 平安科技(深圳)有限公司 Triage data processing method and device, computer equipment and storage medium
CN114512239B (en) * 2022-02-25 2022-11-11 国家康复辅具研究中心 Cerebral apoplexy risk prediction method and system based on transfer learning
CN117497158B (en) * 2023-12-28 2024-04-16 智业软件股份有限公司 Method for calculating recommended triage grade based on dimension combination and weight

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106202847A (en) * 2015-04-30 2016-12-07 青岛海信医疗设备股份有限公司 A kind of medical Forecasting Methodology
CN110047584A (en) * 2019-04-23 2019-07-23 清华大学 Hospital distributing diagnosis method, system, device and medium based on deep learning
US20190279767A1 (en) * 2018-03-06 2019-09-12 James Stewart Bates Systems and methods for creating an expert-trained data model
CN110347838A (en) * 2019-07-17 2019-10-18 成都医云科技有限公司 Model training method and device are examined by Xian Shang department point
CN111477310A (en) * 2020-03-04 2020-07-31 平安国际智慧城市科技股份有限公司 Triage data processing method and device, computer equipment and storage medium
CN111553399A (en) * 2020-04-21 2020-08-18 佳都新太科技股份有限公司 Feature model training method, device, equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110598845B (en) * 2019-08-13 2023-04-07 中国平安人寿保险股份有限公司 Data processing method, data processing device, computer equipment and storage medium
CN111046959A (en) * 2019-12-12 2020-04-21 上海眼控科技股份有限公司 Model training method, device, equipment and storage medium
CN111291755B (en) * 2020-02-13 2022-11-15 腾讯科技(深圳)有限公司 Object detection model training method, object detection device, computer equipment and storage medium
CN111680746B (en) * 2020-06-08 2023-08-04 平安科技(深圳)有限公司 Vehicle damage detection model training, vehicle damage detection method, device, equipment and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106202847A (en) * 2015-04-30 2016-12-07 青岛海信医疗设备股份有限公司 A kind of medical Forecasting Methodology
US20190279767A1 (en) * 2018-03-06 2019-09-12 James Stewart Bates Systems and methods for creating an expert-trained data model
CN110047584A (en) * 2019-04-23 2019-07-23 清华大学 Hospital distributing diagnosis method, system, device and medium based on deep learning
CN110347838A (en) * 2019-07-17 2019-10-18 成都医云科技有限公司 Model training method and device are examined by Xian Shang department point
CN111477310A (en) * 2020-03-04 2020-07-31 平安国际智慧城市科技股份有限公司 Triage data processing method and device, computer equipment and storage medium
CN111553399A (en) * 2020-04-21 2020-08-18 佳都新太科技股份有限公司 Feature model training method, device, equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114678113A (en) * 2022-03-14 2022-06-28 浙江大学 Intelligent emergency pre-examination triage system based on convolutional neural network
CN114678113B (en) * 2022-03-14 2023-07-18 浙江大学 Intelligent emergency pre-examination diagnosis and separation system based on convolutional neural network
CN115662599A (en) * 2022-12-28 2023-01-31 温州医科大学附属第二医院(温州医科大学附属育英儿童医院) Appointment method and appointment device for hospital diagnosis
CN115662599B (en) * 2022-12-28 2023-03-21 温州医科大学附属第二医院(温州医科大学附属育英儿童医院) Appointment method and appointment device for hospital treatment

Also Published As

Publication number Publication date
CN112101550A (en) 2020-12-18
CN112101550B (en) 2024-05-03

Similar Documents

Publication Publication Date Title
WO2021164388A1 (en) Triage fusion model training method, triage method, apparatus, device, and medium
US11810671B2 (en) System and method for providing health information
WO2020232877A1 (en) Question answer selection method and apparatus, computer device, and storage medium
CN108899064A (en) Electronic health record generation method, device, computer equipment and storage medium
CN113196314B (en) Adapting a predictive model
CN109783617B (en) Model training method, device, equipment and storage medium for replying to questions
CN108766545B (en) Online inquiry department distribution method, device, computer equipment and storage medium
CN110674279A (en) Question-answer processing method, device, equipment and storage medium based on artificial intelligence
CN112035674B (en) Diagnosis guiding data acquisition method, device, computer equipment and storage medium
CN112149414B (en) Text similarity determination method, device, equipment and storage medium
US20200227147A1 (en) Automated generation of codes
WO2021151328A1 (en) Symptom data processing method and apparatus, and computer device and storage medium
CN112016318B (en) Triage information recommendation method, device, equipment and medium based on interpretation model
WO2021151356A1 (en) Triage data processing method and apparatus, and computer device and storage medium
CN112017789B (en) Triage data processing method, triage data processing device, triage data processing equipment and triage data processing medium
WO2022134357A1 (en) Triage data processing method and apparatus, and computer device and storage medium
CN112287089A (en) Classification model training and automatic question-answering method and device for automatic question-answering system
WO2022068160A1 (en) Artificial intelligence-based critical illness inquiry data identification method and apparatus, device, and medium
WO2022227203A1 (en) Triage method, apparatus and device based on dialogue representation, and storage medium
CN111651579B (en) Information query method, device, computer equipment and storage medium
CN112397197A (en) Artificial intelligence-based inquiry data processing method and device
CN113722507A (en) Hospital cost prediction method and device based on knowledge graph and computer equipment
CN117238437A (en) Knowledge graph-based disease diagnosis auxiliary method and system
CN115206421B (en) Drug repositioning method, and repositioning model training method and device
CN113707304B (en) Triage data processing method, triage data processing device, triage data processing equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20919592

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20919592

Country of ref document: EP

Kind code of ref document: A1