Doctor recommendation method and device based on multiple subject portraits, and electronic equipment

By constructing multi-dimensional feature representation vectors of patients and doctors and calculating matching values, the problem of low accuracy of doctor recommendation in the existing technology is solved and more accurate doctor recommendation is achieved.

CN118675762APending Publication Date: 2024-09-20QINGDAO GUOCHUANG INTELLIGENT HOME APPLIANCES RES INSTITU
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410865617.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

The existing technology only considers a single aspect of disease characteristics in doctor recommendations, resulting in low accuracy of recommendations.

Method used

Using a method based on multi-subject portraits, a patient feature representation vector is constructed by obtaining the patient's basic information and disease inquiry information, and combined with the doctor's static portrait label information and historical dynamic interaction behavior information, the matching value of the patient and doctor is calculated, and the most suitable recommendation is made doctor.

Benefits of technology

It improves the accuracy of doctor recommendations, taking into account the patient's requirements and the doctor's medical expertise and other characteristics, improving the accuracy of recommendations and patient experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118675762A
    Figure CN118675762A
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, and discloses a doctor recommendation method and recommendation device based on multi-subject portraits, and electronic equipment. The doctor recommendation method comprises the following steps: acquiring basic information and disease inquiry information of a target patient; constructing a patient feature representation vector according to the basic information and the disease inquiry information of the target patient; wherein the patient feature representation vector comprises static portrait label information and dynamic interaction behavior information of the patient; calculating a matching value between the patient feature representation vector and a doctor feature representation vector of each doctor in a pre-constructed doctor database; wherein the doctor feature representation vector comprises static portrait label information and historical dynamic interaction behavior information of a doctor; and sorting the plurality of doctors in the doctor database according to the matching values, and recommending a set number of doctors sorted in the front to the target patient. The accuracy of recommending doctors to patients can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, for example, to a doctor recommendation method and recommendation device and electronic equipment based on multi-subject portraits. Background Art

[0002] With the development of Internet medical care, remote medical treatment and online consultation services have been widely used. At present, the main problem that Internet medical care needs to solve is how to achieve intelligent matching between patients and doctors.

[0003] In the related art, in order to solve the above-mentioned problem, a doctor recommendation method is provided, comprising: obtaining a search keyword sent by a terminal, wherein the search keyword contains information about the disease to be diagnosed; based on the search keyword, determining a first disease characteristic of the disease to be diagnosed; determining a degree of disease matching between the disease in which the doctor is good at and the disease to be diagnosed based on the first disease characteristic and a second disease characteristic corresponding to a doctor in an online consultation platform, wherein the second disease characteristic corresponding to the doctor is used to characterize the disease characteristic of at least one disease in which the doctor is good at; and determining at least one doctor to be recommended from multiple doctors in the online consultation platform based on the degree of disease matching corresponding to each doctor in the online consultation platform.

[0004] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:

[0005] The solution of the related technology only considers the single aspect of disease characteristics to recommend doctors to patients, and this method has low accuracy in recommending doctors to patients.

[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0007] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.

[0008] The embodiments of the present disclosure provide a doctor recommendation method, a recommendation device, and an electronic device based on multi-subject portraits, which can improve the accuracy of recommending doctors to patients.

[0009] In some embodiments, a doctor recommendation method based on multi-subject portraits includes: obtaining basic information and disease inquiry information of a target patient; constructing a patient feature representation vector based on the basic information and disease inquiry information of the target patient; wherein the patient feature representation vector includes the patient's static portrait label information and dynamic interaction behavior information; calculating a matching value between the patient feature representation vector and a doctor feature representation vector of each doctor in a pre-constructed doctor database; wherein the doctor feature representation vector includes the doctor's static portrait label information and historical dynamic interaction behavior information; sorting multiple doctors in the doctor database according to the matching value, and recommending a set number of doctors ranked first to the target patient.

[0010] Optionally, a patient feature representation vector is constructed based on the basic information and disease inquiry information of the target patient, including: converting the basic information of the target patient into a first feature representation vector that can represent the patient's static portrait label information; converting the target patient's disease inquiry information into a second feature representation vector that can represent the patient's dynamic interactive behavior information; and concatenating the first feature representation vector and the second feature representation vector to obtain the patient feature representation vector.

[0011] Optionally, the basic information of the target patient includes the static attribute label of the target patient, and the basic information of the target patient is converted into a first feature representation vector that can represent the static portrait label information of the patient, including: using Word2Vec word embedding technology to process the static attribute label of the target patient to obtain a first label word vector set of the target patient; performing a global average pooling operation on the first label word vector set to obtain a first feature representation vector.

[0012] Optionally, the disease inquiry information of the target patient is converted into a second feature representation vector that can represent the patient's dynamic interactive behavior information, including: character-level encoding of the disease inquiry information of the target patient to obtain a word-granularity vector set; using a convolutional neural network to extract local semantic context features in the word-granularity vector set, and introducing an activation function to increase nonlinearity to obtain multiple semantic feature vectors of the disease inquiry information; using the attention weight corresponding to each semantic feature vector to weight each semantic feature vector, and adding the weighted semantic feature vectors to obtain a second feature representation vector.

[0013] Optionally, a doctor feature representation vector for each doctor in the doctor database is constructed in the following manner: the doctor's basic information is converted into a third feature representation vector that can represent the doctor's static portrait label information; the historical record of the doctor's answers to the patient's disease inquiry information is converted into a fourth feature representation vector that can represent the doctor's historical dynamic interactive behavior information; the third feature representation vector and the fourth feature representation vector are concatenated to obtain the doctor's feature representation vector.

[0014] Optionally, the doctor's basic information includes the doctor's static attribute labels and static expertise labels, and the doctor's basic information is converted into a third feature representation vector that can represent the doctor's static portrait label information, including: using the Skip-gram model to process the doctor's static attribute labels and static expertise labels to obtain the doctor's second label word vector set; performing a global average pooling operation on the second label word vector set to obtain a third feature representation vector.

[0015] Optionally, the historical record of the doctor's answers to the patient's disease inquiry information is converted into a fourth feature representation vector that can represent the doctor's historical dynamic interactive behavior information, including: encoding the historical record of the doctor's answers to the patient's disease inquiry information to obtain an embedding matrix; using the embedding matrix as the input of the Bi-GRU to obtain a global feature vector; using a multi-head attention mechanism to weightedly process the global feature vector to obtain a sequence matrix, and performing a global average pooling operation on the sequence matrix to obtain a fourth feature representation vector.

[0016] Optionally, the matching value between the patient feature representation vector and the doctor feature representation vector of each doctor in the pre-built doctor database is calculated according to the following formula:

[0017]

[0018] Among them, score is the matching value of the patient feature representation vector and the doctor feature representation vector, e x is the patient feature representation vector, d x is the doctor feature representation vector, Fc is the fully connected layer, E x for e x The embedding vector, D x is d x is the embedding vector of , and T is the dimension of the feature map.

[0019] In some embodiments, a doctor recommendation device based on multi-subject portraits includes a processor and a memory storing program instructions, and the processor is configured to execute the above-mentioned doctor recommendation method when running the program instructions.

[0020] In some embodiments, the electronic device includes: a device body; and a doctor recommendation device based on multi-subject portraits as described above, installed on the device body.

[0021] The doctor recommendation method, recommendation device, and electronic device based on multi-subject portraits provided by the embodiments of the present disclosure can achieve the following technical effects:

[0022] In the disclosed embodiment, when a patient needs remote medical treatment or online consultation, first, the basic information and disease inquiry information of the patient (i.e., the target patient) will be obtained, and a patient feature representation vector including the static portrait label information and dynamic interactive behavior information of the target patient will be constructed based on the basic information and disease inquiry information of the target patient. Then, the matching value between the patient feature representation vector and the doctor feature representation vector including the doctor's static portrait label information and historical dynamic interactive behavior information in the doctor database will be calculated. Finally, a set number of doctors with the highest matching value will be recommended to the target patient. In the disclosed embodiment, the feature representation vectors of the patient and the doctor both include static portrait label information and dynamic interactive behavior information, which makes it possible to consider the patient's requirements, the doctor's medical expertise and other aspects of the features when calculating the degree of matching between the patient and the doctor in addition to the disease characteristics. Therefore, the disclosed embodiment can improve the accuracy of recommending doctors to patients.

[0023] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:

[0025] Figure 1 is a schematic diagram of an electronic device provided by an embodiment of the present disclosure;

[0026] Figure 2 is a schematic diagram of a doctor recommendation method based on multi-subject portraits provided by an embodiment of the present disclosure;

[0027] Figure 3 is a schematic diagram of another doctor recommendation method based on multi-subject portraits provided by an embodiment of the present disclosure;

[0028] Figure 4 It is a flowchart of constructing a doctor feature representation vector of each doctor in a doctor database provided by an embodiment of the present disclosure;

[0029] Figure 5 is a schematic diagram of a doctor recommendation device based on multi-subject portraits provided by an embodiment of the present disclosure;

[0030] Figure 6 is a schematic diagram of another doctor recommendation device based on multi-subject portraits provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0031] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.

[0032] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.

[0033] Unless otherwise stated, the term "plurality" of a feature means two or more.

[0034] In the embodiment of the present disclosure, the character " / " feature indicates that the preceding and following objects are in an "or" relationship. For example, the A / B feature indicates: A or B.

[0035] The term "and / or" is a description of the association relationship between objects, and the characteristic indicates that there can be three relationships. For example, A and / or B, the characteristic indicates: A or B, or, A and B.

[0036] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.

[0037] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other.

[0038] The electronic device 100 provided by the embodiment of the present disclosure is as follows Figure 1 As shown, the electronic device 100 includes a device body 110 and a doctor recommendation device 500 (600) based on multi-subject portraits.

[0039] Specifically, the doctor recommendation device 500 ( 600 ) based on multi-subject portraits is installed on the device body 110 .

[0040] Specifically, the electronic device 100 can communicate and interact with the patient's terminal.

[0041] Optionally, the doctor 600 based on multi-subject portraits includes a processor. When a patient needs remote medical treatment or online consultation, the processor can obtain the basic information and disease inquiry information of the target patient (the patient who needs to recommend a doctor) by communicating with the patient terminal. A patient feature representation vector including static portrait label information and dynamic interactive behavior information of the target patient can be constructed based on the basic information and disease inquiry information of the target patient. The matching value of the patient feature representation vector and the doctor feature representation vector including the doctor's static portrait label information and historical dynamic interactive behavior information in the doctor database can be calculated. A set number of doctors with the highest matching value can be recommended to the target patient.

[0042] In combination with the above electronic device, the embodiment of the present disclosure provides a doctor recommendation method based on multi-subject portraits, such as Figure 2 As shown, the doctor-recommended methods include:

[0043] S201, the processor obtains basic information and disease inquiry information of the target patient.

[0044] It should be noted that the multi-subject portrait represents the use of big data technology to conduct in-depth analysis of multiple related subjects (such as individuals, enterprises, institutions, etc.), and to construct their respective multi-dimensional portraits by integrating various information of these subjects (such as identity information, transaction information, behavior information, etc.). In the disclosed embodiment, the multi-subject portrait is used to represent that both doctors and patients construct their own feature representation vectors based on static portrait label information and dynamic interaction behavior information.

[0045] Specifically, the target patients are patients who need remote medical treatment or online consultation, that is, patients who need a doctor recommendation.

[0046] Specifically, the basic information of the target patient includes relatively stable information such as the target patient's gender, age, occupation, education level, income, physical health status and medical history.

[0047] Specifically, the incidence and treatment methods of diseases vary between genders; patients of different age groups face different health problems and medical needs; patients of different occupations have different working environments and disease risks; patients of different educational levels have different health awareness, self-care abilities, and willingness to accept medical advice; and the patient's income level will affect the patient's choice of medical treatment; the patient's medical history will affect the doctor's diagnosis. Therefore, the target patient's basic information needs to include information on the target patient's gender, age, occupation, education level, income, physical health status, and medical history.

[0048] Specifically, the target patient's disease inquiry information includes the user's description of his or her own symptoms, as well as the user's requirements, etc. For example, I felt nauseous, had acid reflux and diarrhea after getting up today. What is my condition? I hope a chief physician-level doctor can diagnose and treat me.

[0049] S202: The processor constructs a patient feature representation vector according to the basic information and disease inquiry information of the target patient.

[0050] Among them, the patient feature representation vector includes the patient's static portrait label information and dynamic interaction behavior information.

[0051] Specifically, the patient's static portrait label information is used to indicate fixed information about the patient, which can reveal the patient's basic information in detail; the patient's dynamic interactive behavior information is used to indicate the information contained in the patient's communication, interaction and communication behaviors with the doctor through the online platform, which can reveal in detail the patient's health status, disease progression, treatment needs, psychological condition and other aspects of information.

[0052] Specifically, since the target patient's basic information includes multiple static attribute labels (e.g., gender and age, etc.) of the target patient, and the disease inquiry information includes content that requires dynamic interaction with the doctor, the processor can construct a patient feature representation vector including the patient's static portrait label information and dynamic interaction behavior information based on the target patient's basic information and disease inquiry information.

[0053] S203, the processor calculates a matching value between the patient feature representation vector and the doctor feature representation vector of each doctor in a pre-constructed doctor database.

[0054] Among them, the doctor feature representation vector includes the doctor's static portrait label information and historical dynamic interaction behavior information.

[0055] Specifically, the doctor's static portrait label information is used to indicate fixed information about the doctor, which can reveal the doctor's basic information in detail; the doctor's historical dynamic interactive behavior information is used to indicate the information contained in the doctor's communication, interaction and communication behaviors with patients through the online platform. This information can reveal in detail the doctor's professional quality, service attitude, doctor's knowledge accumulation in specific medical fields and ability to respond to patient needs and other aspects of information.

[0056] Specifically, the doctor database includes multiple doctors who have opened online consultation functions on remote medical websites or online consultation websites, and constructs a doctor feature representation vector including the doctor's static portrait label information and historical dynamic interaction behavior information based on the basic information entered by each doctor and the historical record of his or her answering patients' disease inquiries on the website.

[0057] Optionally, the matching value between the patient feature representation vector and the doctor feature representation vector of each doctor in the pre-built doctor database is calculated according to the following formula:

[0058]

[0059] Among them, score is the matching value of the patient feature representation vector and the doctor feature representation vector, e x is the patient feature representation vector, d x is the doctor feature representation vector, Fc is the fully connected layer, E x for e x The embedding vector, D x is d x is the embedding vector of , and T is the dimension of the feature map.

[0060] Specifically, the numerical range of the calculated matching value is [0, 1].

[0061] Specifically, based on the fully connected layer mechanism, the matching value of the patient feature representation vector and the doctor feature representation vector is calculated, which can capture the complex nonlinear relationship between the patient feature representation vector and the doctor feature representation vector, thereby more effectively evaluating the matching degree of the patient feature representation vector and the doctor feature representation vector. For example, when the patient feature representation vector and the doctor feature representation vector are similar in some dimensions but very different in other dimensions, the fully connected layer can integrate these dimensional information and give a reasonable matching degree evaluation. In this way, the accuracy of calculating the matching degree of the patient feature representation vector and the doctor feature representation vector is improved.

[0062] S204, the processor sorts the multiple doctors in the doctor database according to the matching values, and recommends a set number of doctors ranked first to the target patient.

[0063] It is understandable that the higher the matching value between the patient feature representation vector and the doctor feature representation vector, the more suitable the online consultation service that the doctor can provide to the target patient. Therefore, the processor can first sort the multiple doctors in the doctor database based on the matching value, and then recommend a set number of doctors ranked first to the target patient.

[0064] Specifically, by recommending a set number of doctors ranked first to the target patient, multiple choices can be provided to the patient, thereby improving the experience of the target patient.

[0065] In the disclosed embodiment, when a patient needs remote medical treatment or online consultation, first, the basic information and disease inquiry information of the patient (i.e., the target patient) will be obtained, and a patient feature representation vector including the static portrait label information and dynamic interactive behavior information of the target patient will be constructed based on the basic information and disease inquiry information of the target patient. Then, the matching value between the patient feature representation vector and the doctor feature representation vector including the doctor's static portrait label information and dynamic interactive behavior information in the doctor database will be calculated. Finally, a set number of doctors with the highest matching value will be recommended to the target patient. In the disclosed embodiment, the feature representation vectors of the patient and the doctor both include static portrait label information and dynamic interactive behavior information, which makes it possible to consider the patient's requirements, the doctor's medical expertise and other aspects of the features when calculating the degree of matching between the patient and the doctor in addition to the disease characteristics. Therefore, the disclosed embodiment can improve the accuracy of recommending doctors to patients.

[0066] The disclosed embodiment provides another doctor recommendation method based on multi-subject portraits, such as Figure 3 As shown, the doctor-recommended methods include:

[0067] S301, the processor obtains basic information and disease inquiry information of the target patient.

[0068] S302: The processor converts the basic information of the target patient into a first feature representation vector capable of representing the static portrait label information of the patient.

[0069] Specifically, since the basic information of the target patient includes multiple static attribute labels of the target patient, such as gender and age, etc., the processor can convert the basic information of the target patient into a first feature representation vector that can represent the static image label information of the patient.

[0070] Optionally, the basic information of the target patient includes the static attribute label of the target patient, and the basic information of the target patient is converted into a first feature representation vector that can represent the static portrait label information of the patient, including: using Word2Vec word embedding technology to process the static attribute label of the target patient to obtain a first label word vector set of the target patient; performing a global average pooling operation on the first label word vector set to obtain a first feature representation vector.

[0071] Specifically, before using the Word2Vec word embedding technology to process the static attribute labels of the target patients, it is necessary to first vectorize the static attribute labels of the target patients through the encoding layer so that they can be converted into label word vectors through the Word2Vec word embedding technology.

[0072] For example, the content after the static attribute label of the target patient is vectorized is l=[l1, l2, ..., lm ] (m represents the label length) as an example, after processing it with the Word2Vec word embedding technology, the first label word vector set obtained is L = [L1, L2, ..., L n ](L is the set of label word vectors, n represents the number of labels).

[0073] Specifically, after obtaining the first label word vector set, by performing a global average pooling (GAP) operation on the first label word vector set, the global information in the static attribute label of the target patient can be better captured. In this way, the accuracy of the generated first feature representation vector can be improved.

[0074] Optionally, the first feature representation vector is generated according to the following expression:

[0075]

[0076] Among them, e l is the first eigenvalue vector, is the parameter matrix of global average pooling, L is the first label word vector set, The size of is n×dim, where dim is the dimension of the label vector in the first label word vector set.

[0077] S303: The processor converts the disease inquiry information of the target patient into a second feature representation vector capable of representing the patient's dynamic interactive behavior information.

[0078] Specifically, since the disease inquiry information includes the content that the target patient needs to dynamically interact with the doctor, the processor can convert the disease inquiry information of the target patient into a second feature representation vector that can represent the patient's dynamic interaction behavior information.

[0079] Optionally, the disease inquiry information of the target patient is converted into a second feature representation vector that can represent the patient's dynamic interactive behavior information, including: character-level encoding of the disease inquiry information of the target patient to obtain a word-granularity vector set; using a convolutional neural network to extract local semantic context features in the word-granularity vector set, and introducing an activation function to increase nonlinearity to obtain multiple semantic feature vectors of the disease inquiry information; using the attention weight corresponding to each semantic feature vector to weight each semantic feature vector, and adding the weighted semantic feature vectors to obtain a second feature representation vector.

[0080] It is understandable that the target patient's disease inquiry information often contains non-standard text formats such as spelling errors, abbreviations, emoticons, and special characters. By encoding the disease inquiry information at the character level, these non-standard texts can be better processed, which is convenient for improving the accuracy of the second feature representation vector generated subsequently.

[0081] Optionally, a RoBERTa encoder is used to encode the text sequence q = [q1, q2, ..., q m ] performs character-level encoding to obtain a set of word-granularity vectors.

[0082] Specifically, character-level encoding cannot capture word-level semantic information well. Therefore, after obtaining the word-granularity vector set, a convolutional neural network is needed to extract the contextual features of local semantics in the word-granularity vector set, and an activation function is introduced to increase nonlinearity to determine multiple semantic feature vectors of disease inquiry information.

[0083] Exemplarily, the semantic feature vector is generated according to the following expression:

[0084] c i =relu(β×Q [i-n:i+n] + b);

[0085] Among them, c i is the semantic feature vector, Q [i-n:i+n] is the embedding between the word granularity vector in and the word granularity vector i+n, β and b are the parameters of the CNN filter, λ is the nonlinear activation function relu, and the expression of the activation function is relu(x)=max(0,x).

[0086] Specifically, in order to pay more attention to the parts of the text of the disease inquiry information that have made significant contributions, thereby deepening the understanding of the context of the disease inquiry information, an attention mechanism is introduced in the embodiment of the present disclosure. The attention weight of each semantic feature vector is determined separately, and each semantic feature vector is weighted based on the attention weight corresponding to each semantic feature vector. The weighted semantic feature vectors are then added together to obtain the final second feature representation vector.

[0087] Optionally, the attention weight of each semantic feature vector is determined as follows:

[0088] First, the attention score between each semantic feature vector and the query vector is calculated.

[0089] Second, the attention scores are normalized to determine the attention weight of each semantic feature vector.

[0090] Specifically, the attention score between each semantic feature vector and the query vector is calculated according to the following expression:

[0091] Score(q,c i )=qc i ;

[0092] Among them, c i is the i-th semantic feature vector, q is the query vector, Score(q, c i ) is the attention score of the i-th semantic feature vector.

[0093] Specifically, the softmax function is used to normalize the attention score according to the following expression:

[0094]

[0095] Among them, a i is the attention weight of the i-th semantic feature vector, n represents the number of semantic feature vectors, and exp is the exponential function.

[0096] Specifically, the second feature representation vector is generated according to the following expression:

[0097]

[0098] Among them, e q is the second eigenvalue vector, a i is the attention weight of the i-th semantic feature vector, c i is the i-th semantic feature vector.

[0099] S304: The processor concatenates the first feature representation vector and the second feature representation vector to obtain a patient feature representation vector.

[0100] Specifically, by concatenating the first feature representation vector and the second feature representation vector, a patient feature representation vector including both static portrait label information of the target patient and dynamic interactive behavior information of the target patient can be obtained.

[0101] Exemplarily, the patient feature representation vector is represented by the following expression:

[0102] e=[e l ,e q ];

[0103] Among them, e is the patient feature representation vector, e l is the first eigenvalue vector, e q is the second eigenvalue vector.

[0104] S305 , the processor calculates a matching value between the patient feature representation vector and the doctor feature representation vector of each doctor in the pre-constructed doctor database.

[0105] Among them, the doctor feature representation vector includes the doctor's static portrait label information and historical dynamic interaction behavior information.

[0106] S306: The processor sorts the multiple doctors in the doctor database according to the matching values, and recommends a set number of doctors ranked first to the target patient.

[0107] In the disclosed embodiment, the determined patient feature representation vector includes the static portrait label information and dynamic interaction behavior information of the target patient. Since the doctor feature representation vector of each doctor in the doctor database includes the doctor's static portrait label information and historical dynamic interaction behavior information, when calculating the degree of matching between the patient and the doctor, in addition to the disease characteristics, the disclosed embodiment also considers the patient's requirements, the doctor's medical expertise and other aspects of the characteristics. In this way, the accuracy of recommending doctors to patients is improved.

[0108] like Figure 4 As shown, the doctor feature representation vector of each doctor in the doctor database is constructed as follows:

[0109] S401, the processor converts the basic information of the doctor into a third feature representation vector that can represent the static portrait label information of the doctor.

[0110] Specifically, the doctor's basic information includes: the doctor's gender, age, education, professional title, professional field, work experience and academic achievements, the types of diseases the doctor is good at treating, the treatment plans the doctor is good at using, patients' evaluation of the doctor and peers' evaluation of the doctor, etc.

[0111] Specifically, since the basic information of the doctor includes the above-mentioned multiple static attribute labels and static expertise labels, the processor can convert the basic information of the doctor into a first feature representation vector that can represent the static portrait label information of the doctor.

[0112] Optionally, the doctor's basic information includes the doctor's static attribute labels and static expertise labels, and the doctor's basic information is converted into a third feature representation vector that can represent the doctor's static portrait label information, including: using the Skip-gram model to process the doctor's static attribute labels and static expertise labels to obtain the doctor's second label word vector set; performing a global average pooling operation on the second label word vector set to obtain a third feature representation vector.

[0113] Specifically, the second label word vector set of doctors can be obtained by following the steps below:

[0114] First, the static attribute labels and static expertise labels of doctors are vectorized, which can be specifically expressed as d = [d1, d2, ..., d m ], where m represents the total number of labels, d i represents the i-th label of the doctor.

[0115] Second, use the Skip-gram model to select a central word d from d i , and select a label d in the context window i-1 , d i and d i-1 Represented as vectors and In the current center word d i Under this condition, calculate the conditional probability p(x i-1 |x i ):

[0116]

[0117] Among them, V represents all the words in the preset vocabulary, u w is the vector representation of the label w appearing in the context.

[0118] Third, based on the conditional probability, the Skip-gram model is used to update the vectorized representation of the doctor's static attribute labels and static expertise labels through the back propagation algorithm, that is, d is updated to obtain the second label word vector set D = [D1, D2, ..., D m ].

[0119] Specifically, after obtaining the second label word vector set, by performing a global average pooling operation on the second label word vector set, the global information in the static attribute label and static expertise label of the doctor can be better captured. In this way, the accuracy of the generated third feature representation vector can be improved.

[0120] Optionally, the third feature representation vector is generated according to the following expression:

[0121]

[0122] Among them, h d is the third eigenvalue vector, is the parameter matrix of global average pooling, D is the second label word vector set, The size of is n×dim, where dim is the dimension of the label vector in the second label word vector set.

[0123] S402, the processor converts the historical records of the doctor's answers to the patient's disease inquiry information into a fourth feature representation vector that can represent the doctor's historical dynamic interactive behavior information.

[0124] Specifically, since the historical records of the doctor's answers to the patient's disease inquiry information include the content of the doctor's dynamic interaction with the patient in historical time, the processor can convert the historical records of the doctor's answers to the patient's disease inquiry information into a fourth feature representation vector that can represent the doctor's dynamic interaction behavior information.

[0125] Optionally, the historical record of the doctor's answers to the patient's disease inquiry information is converted into a fourth feature representation vector that can represent the doctor's historical dynamic interactive behavior information, including: encoding the historical record of the doctor's answers to the patient's disease inquiry information to obtain an embedding matrix; using the embedding matrix as the input of the Bi-GRU to obtain a global feature vector; using a multi-head attention mechanism to weightedly process the global feature vector to obtain a sequence matrix, and performing a global average pooling operation on the sequence matrix to obtain a fourth feature representation vector.

[0126] Specifically, the embedding matrix is ​​obtained by following the steps below:

[0127] First, the historical records of doctors’ answers to patients’ disease inquiries are vectorized as a = [d1, d2, ..., d t ].

[0128] Second, encode a through the Roberta model to obtain the embedding matrix E I =[e1, e2, ..., e t ] T , E I ∈R t×d , where d is the dimension of the embedding vector.

[0129] Specifically, the specific steps of using the embedding matrix as the input of Bi-GRU (Bidirectional Gated Recurrent Unit) to obtain the global feature vector are as follows:

[0130] First, embed the vector E I As the input x of Bi-GRU t , calculate the update gate and reset gate of Bi-GRU. The function of the update gate and reset gate in Bi-GRU is to adjust the ratio of input, forgetting and output.

[0131] Exemplarily, the update gate (z t ) and reset gate (r t ):

[0132] z t =σ(W z x t +U z h t-1+b z );

[0133] r t =σ(W r x t +U r h t-1 +b r );

[0134] Among them, W z , U z and b z They are the weight matrix from the input of the update gate to the hidden layer, the weight matrix from the hidden layer to the hidden layer, and the bias term, W r , U r and b r are the weight matrix from the input of the reset gate to the hidden layer, the weight matrix from the hidden layer to the hidden layer, and the bias term, h t-1 is the state information of Bi-GRU at the previous moment, and σ is the activation function.

[0135] Second, the output feature vector of the Bi-GRU hidden layer is determined based on the calculated update gate and reset gate of the Bi-GRU.

[0136] Exemplarily, the output feature vector of the Bi-GRU hidden layer is determined according to the following expression:

[0137]

[0138]

[0139] Among them, h t is the output feature vector, is the candidate feature vector, W h , U h and b h They are the weight matrix from the input to the hidden layer, the weight matrix from the hidden layer to the hidden layer, and the bias term of the candidate state respectively.

[0140] Third, the attention mechanism is introduced to focus on the weight information of different positions in the output feature vector, allocate attention according to the importance of semantic information, and obtain global correlation information through the gating mechanism of Bi-GRU. The output feature vector is processed from the forward and reverse directions to obtain the global feature vector H = [H1, H2, ..., H n ].

[0141] Exemplarily, the global eigenvector is determined according to the following expression:

[0142]

[0143]

[0144]

[0145]

[0146]

[0147] in, is the hidden feature vector obtained by forward processing the output feature vector, The hidden feature vector obtained by reverse processing the output feature vector, Express and For splicing, α t is the attention weight at time t.

[0148] Specifically, the method of combining Bi-GRU with Capsule Convolutional Neural Network (Capsule Convolutional Neural Network, Capsule CNN) can also be used to extract features from the historical records of doctors answering patients' disease inquiry information, and directly obtain the global feature vector. Specifically, based on Bi-GRU and Capsule Convolutional Neural Network, combined with the attention mechanism, a global-local dual-channel feature extraction network model (Global-Local Dual-Channel Feature Extraction Network, GL-DCFE-Net) can be constructed, so that when the network model extracts features from the historical records of doctors answering patients' disease inquiry information, it can better focus on key features, reduce the impact of noise in the features, and improve the ability to capture important features. And because the capsule network is integrated in this network model, when extracting local features, it can reduce information loss and insensitivity to position information during local feature extraction.

[0149] Specifically, after obtaining the global feature sequence, the multi-head attention mechanism is used to weight the global feature vector to determine the sequence matrix. The specific steps are as follows:

[0150] First, the three weight matrices W in the multi-head attention mechanism q , W k , W v , and are multiplied with the global feature vector H to obtain the query vector Q, key vector K, and value vector V required for the multi-head attention mechanism.

[0151] Second, calculations are performed on each attention head. The similarity between the query vector Q and the key vector K is calculated and the similarity is normalized by softmax to obtain the attention weight. The attention weight is used to perform weighted summation on the value vector V to obtain the output of each attention head. The outputs of multiple attention heads are concatenated and then multiplied by the linear transformation matrix to obtain the final output vector O. multi , the specific calculation expression is as follows:

[0152]

[0153] O multi =MultiHead(H)=Concat(head1,...,head n )W o ;

[0154] Among them, head i represents the i-th head of the multi-head attention mechanism, d k is the scaling factor to make the normalized result more stable, its size is the dimension of k, Concat is the concatenation function, W o is a linear change matrix.

[0155] Third, after obtaining the final output vector O multi After that, it is processed according to the following expression to obtain the sequence matrix X:

[0156] O′=LayerNorm(H+O multi );

[0157] F = ReLU(O′W1+b1)W2+b2;

[0158] F = Dropout(F) + O′;

[0159] X = LayerNorm(H+F);

[0160] Among them, W1, W2 are weight matrices, b1, b2 are bias vectors.

[0161] Specifically, after obtaining the sequence matrix, by performing a global average pooling operation on the sequence matrix, the global information in the historical records of doctors answering patients' disease inquiry information can be better captured. In this way, the accuracy of the generated fourth feature representation vector can be improved.

[0162] Optionally, the fourth feature representation vector is generated according to the following expression:

[0163]

[0164] Among them, a d is the fourth eigenvalue vector, is the parameter matrix of global average pooling, X is the sequence matrix, The size of is n×dim, where dim is the dimension of the vector in the sequence matrix.

[0165] S403: The processor concatenates the third feature representation vector and the fourth feature representation vector to obtain a doctor feature representation vector.

[0166] Specifically, by concatenating the third feature representation vector and the fourth feature representation vector, a doctor feature representation vector including both the doctor's static portrait label information and the doctor's historical dynamic interaction behavior information can be obtained.

[0167] Exemplarily, the patient feature representation vector is represented by the following expression:

[0168] d=[h d , a d ];

[0169] Among them, d is the doctor feature representation vector, h d is the third eigenvalue vector, a d is the fourth eigenvalue vector.

[0170] In the disclosed embodiment, the doctor feature representation vector of each doctor in the determined doctor database includes the doctor's static portrait label information and historical dynamic interaction behavior information. This allows the subsequent calculation of the degree of matching between the patient and the doctor to consider the patient's requirements, the doctor's medical expertise and other characteristics in addition to the disease characteristics. In this way, the accuracy of recommending doctors to patients is improved.

[0171] In some embodiments, the recommendation method for doctors proposed in the embodiments of the present disclosure may be constructed as a doctor recommendation model.

[0172] For example, taking the construction of a doctor recommendation model for 50 doctors in a target medical consultation website as an example, the steps of constructing the doctor recommendation model are as follows:

[0173] First, we use Python’s built-in urlib library, requests library, selenium automated testing and other technologies to obtain 3,000 medical consultation data from 50 doctors on the target medical consultation website.

[0174] For example, the medical consultation data is shown in Table 1 below:

[0175] Table 1

[0176]

[0177]

[0178] Second, the acquired medical consultation data may contain abnormal values, null values, data with missing doctor subject information, and a large number of useless words such as modal particles, adverbs, prepositions, conjunctions, etc., and these data are not helpful for calculating the matching value between doctors and patients. Therefore, the acquired medical consultation data needs to be preprocessed, and in the preprocessing process, it needs to be labeled according to the preset label categories (for example, patient gender, patient age, department, doctor ID, medical specialty, and professional title). The labeling results are shown in Table 2 below.

[0179] Table 2

[0180]

[0181] Third, the preprocessed medical consultation data is divided into a training sample set and a test sample set, with a sample ratio of 7:3. Taking 3,000 medical consultation data as an example, 2,100 are randomly selected as the training sample set, and the remaining 900 are used as the test sample set.

[0182] Fourth, the 2100 medical consultation data as the training sample set are used to construct multiple patient feature representation vectors and 50 doctors' doctor feature representation vectors according to the above scheme, and the 900 medical consultation data as the test sample set are used to construct multiple patient feature representation vectors according to the above scheme, and the suitable doctor for each patient is associated.

[0183] Fifth, the pre-built initial doctor recommendation model is trained based on the data obtained from the training sample set. After the training is completed, the performance of the model is verified based on the data obtained from the test sample set. After the verification is passed, the model is saved for subsequent use. In this way, when new patients use the target medical consultation website for online consultation, they only need to collect the patient's basic information and disease inquiry information, convert it into a patient feature representation vector, and input it into the doctor recommendation model to recommend multiple suitable doctors to the patient.

[0184] For example, take a 44-year-old male patient whose consultation problems are: diabetes, physical fatigue, high blood pressure, obesity, and need to be seen by a chief specialist. This information is converted into a patient feature representation vector and input into the doctor recommendation model. The matching value is calculated with the doctor feature representation vectors of 50 doctors in the model, and the doctor recommendation results can be shown in Table 3 below.

[0185] Table 3

[0186]

[0187] Combination Figure 5As shown, the embodiment of the present disclosure provides a doctor recommendation device 500 based on multi-subject portraits, including: an acquisition module 501, a vector generation module 502, a calculation module 503 and a recommendation module 504. The acquisition module 501 is configured to acquire basic information and disease inquiry information of the target patient. The vector generation module 502 is configured to construct a patient feature representation vector based on the basic information and disease inquiry information of the target patient; wherein the patient feature representation vector includes the patient's static portrait label information and dynamic interaction behavior information. The calculation module 503 is configured to calculate the matching value between the patient feature representation vector and the doctor feature representation vector of each doctor in a pre-constructed doctor database; wherein the doctor feature representation vector includes the doctor's static portrait label information and historical dynamic interaction behavior information. The recommendation module 504 is configured to sort multiple doctors in the doctor database according to the matching value, and recommend a set number of doctors ranked first to the target patient.

[0188] Combination Figure 6 As shown, the embodiment of the present disclosure provides a doctor recommendation device 600 based on multi-subject portraits, and the doctor recommendation device 600 includes: a processor (processor) 601 and a memory (memory) 602. Optionally, the device may also include a communication interface (Communication Interface) 603 and a bus 604. Among them, the processor 601, the communication interface 603, and the memory 602 can communicate with each other through the bus 604. The communication interface 603 can be used for information transmission. The processor 601 can call the logical instructions in the memory 602 to execute the doctor recommendation method based on multi-subject portraits of the above embodiment.

[0189] In addition, the logic instructions in the memory 602 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.

[0190] The memory 602 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 601 executes the function application and data processing by running the program instructions / modules stored in the memory 602, that is, the doctor recommendation method based on multi-subject portraits in the above embodiment is implemented.

[0191] The memory 602 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 602 may include a high-speed random access memory and may also include a non-volatile memory.

[0192] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned doctor recommendation method based on multi-subject portraits.

[0193] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes.

[0194] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.

[0195] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0196] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.

[0197] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.

Claims

1. A doctor recommendation method based on multi-subject portraits, characterized in that: include: Obtain basic information and disease inquiry information of target patients; Construct a patient feature representation vector based on the target patient's basic information and disease inquiry information; wherein the patient feature representation vector includes the patient's static portrait label information and dynamic interaction behavior information; Calculate the matching value between the patient feature representation vector and the doctor feature representation vector of each doctor in the pre-built doctor database; the doctor feature representation vector includes the doctor's static portrait label information and historical dynamic interaction behavior information; Multiple doctors in the doctor database are sorted according to the matching values, and a set number of doctors ranked first are recommended to the target patient.

2. The doctor recommendation method according to claim 1, characterized in that: Construct a patient feature representation vector based on the target patient’s basic information and disease inquiry information, including: Convert the basic information of the target patient into a first feature representation vector capable of representing the static image label information of the patient; Converting the target patient's disease inquiry information into a second feature representation vector capable of representing the patient's dynamic interactive behavior information; The first feature representation vector and the second feature representation vector are concatenated to obtain a patient feature representation vector.

3. The doctor recommendation method according to claim 2, characterized in that: The basic information of the target patient includes the static attribute label of the target patient. The basic information of the target patient is converted into a first feature representation vector capable of representing the static image label information of the patient, including: The Word2Vec word embedding technology is used to process the static attribute labels of the target patients to obtain the first label word vector set of the target patients; Perform a global average pooling operation on the first label word vector set to obtain a first feature representation vector.

4. The doctor recommendation method according to claim 2, characterized in that: The target patient's disease inquiry information is converted into a second feature representation vector that can represent the patient's dynamic interactive behavior information, including: Perform character-level encoding on the target patient's disease inquiry information to obtain a word-granularity vector set; A convolutional neural network is used to extract the contextual features of local semantics in the word-granularity vector set, and an activation function is introduced to increase nonlinearity to obtain multiple semantic feature vectors of disease inquiry information; Each semantic feature vector is weighted using the attention weight corresponding to each semantic feature vector, and the weighted semantic feature vectors are added together to obtain a second feature representation vector.

5. The doctor recommendation method according to any one of claims 1 to 4, characterized in that: Construct the physician feature representation vector for each physician in the physician database as follows: Convert the basic information of the doctor into a third feature representation vector that can represent the static portrait label information of the doctor; Convert the historical records of doctors' answers to patients' disease inquiries into a fourth feature representation vector that can represent the doctors' historical dynamic interactive behavior information; The third feature representation vector and the fourth feature representation vector are concatenated to obtain the doctor feature representation vector.

6. The doctor recommendation method according to claim 5, characterized in that: The basic information of the doctor includes the static attribute label and static expertise label of the doctor. The basic information of the doctor is converted into a third feature representation vector that can represent the static portrait label information of the doctor, including: The Skip-gram model is used to process the static attribute labels and static expertise labels of doctors to obtain the second label word vector set of doctors; A global average pooling operation is performed on the second label word vector set to obtain a third feature representation vector.

7. The doctor recommendation method according to claim 5, characterized in that: The historical records of doctors' answers to patients' disease inquiries are converted into a fourth feature representation vector that can represent the doctor's historical dynamic interactive behavior information, including: Encode the historical records of doctors’ answers to patients’ disease inquiries to obtain an embedding matrix; Use the embedding matrix as the input of Bi-GRU to obtain the global feature vector; A multi-head attention mechanism is used to weight the global feature vector to obtain a sequence matrix, and a global average pooling operation is performed on the sequence matrix to obtain the fourth feature representation vector.

8. The doctor recommendation method according to any one of claims 1 to 4, characterized in that: The matching value between the patient feature representation vector and the doctor feature representation vector of each doctor in the pre-built doctor database is calculated according to the following formula: Among them, score is the matching value of the patient feature representation vector and the doctor feature representation vector, e x is the patient feature representation vector, d x is the doctor feature representation vector, Fc is the fully connected layer, E x for e x The embedding vector, D x is d x is the embedding vector of , and T is the dimension of the feature map.

9. A doctor recommendation device based on multi-subject portraits, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the recommendation method for doctors according to any one of claims 1 to 8 when running the program instructions.

10. An electronic device, characterized in that: include: Equipment body; The doctor recommendation device based on multi-subject portraits as described in claim 9 is installed on the device body.

Citation Information

Cited By

  • Online doctor recommendation method and system based on combined hypergraph learning

    CN118888171A