A data interaction method and related equipment

Through word segmentation processing and feature extraction network, users are matched to join the interactive answering group, which solves the problem of low answering efficiency caused by randomly assigned customer service in the online customer service system, and achieves more efficient user question answering.

CN111460113BActive Publication Date: 2024-09-20CHINA PING AN LIFE INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010161138.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-10
Publication Date
2024-09-20
Estimated Expiration
2040-03-10

AI Technical Summary

Technical Problem

In the existing online customer service system, randomly assigned customer service personnel cannot accurately answer user questions, resulting in low efficiency in answering user questions.

Method used

By receiving questions from users, perform word segmentation processing and encoding, input the feature extraction network to extract the question feature matrix, match users to join interactive answering groups based on question similarity, use group members to answer questions, and improve answer efficiency.

Benefits of technology

It improves the efficiency of answering questions asked by users, avoids repeated answers to similar questions by answerers, and saves manpower and time resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111460113B
    Figure CN111460113B
Patent Text Reader

Abstract

The embodiment of the present invention is applicable to business process optimization in the field of operation and maintenance, and discloses a data interaction method and related equipment, the method comprising: receiving a first question from a first user, performing word segmentation processing on the question text of the first question to obtain at least one question word segmentation, and determining a word segmentation encoding matrix of at least one question word segmentation; inputting the word segmentation encoding matrix of at least one question word segmentation into a feature extraction network, and outputting a question feature matrix; determining the question similarity of at least one second question question according to the question feature matrix; determining a target interactive group that matches the first question question; sending a group invitation message to the first user, and adding the first user to the target interactive group when receiving a group addition confirmation message returned by the first user in response to the group invitation message. Through the present invention, the first user can be added to a target interactive group with a high degree of matching, thereby improving the efficiency of answering the first question.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data interaction, and in particular to a data interaction method and related equipment. Background Art

[0002] With the development of the Internet, more and more businesses can be conducted online. Online business saves the operating costs of business operators, including labor costs, venue costs, etc., and improves the efficiency of business development. However, at the same time, since users cannot communicate face-to-face with business operators when conducting business, when users have questions about the business, business operators cannot answer users' questions in a timely manner, resulting in slow progress in business development. At present, online customer service to solve this problem usually communicates with users in a one-to-one manner. When users have questions, they apply for online customer service from the business system. The business system randomly assigns online customer service to users, and the online customer service randomly assigned by the business system sometimes cannot accurately answer users' questions. This random assignment method leads to a low match between customer service and user questions, which directly affects the efficiency of answering user questions. Summary of the invention

[0003] The present application provides a data interaction method and related equipment. In the present application, a target interaction group matching the first question is determined based on the similarity between the first question and each second question, and then a first user corresponding to the first question is added to the target interaction group with a higher matching degree. The first question is answered by group members in the target interaction group with a higher matching degree, thereby improving the efficiency of answering the first question.

[0004] A first aspect of an embodiment of the present invention provides a data interaction method, including:

[0005] Receive a first question from a first user, perform word segmentation processing on a question text of the first question to obtain at least one question word segmentation of the first question, and respectively encode each word in the at least one question word segmentation to obtain a word segmentation encoding matrix of the at least one question word segmentation;

[0006] Inputting the segmentation encoding matrix of the at least one question segmentation into a feature extraction network, and outputting a question feature matrix obtained by extracting features of the first question;

[0007] Determining, according to the question feature matrix, a question similarity between the first question and at least one second question, wherein the second question is a question with an established interactive answer group;

[0008] According to the similarity between the first question and each of the second questions, a target interactive group matching the first question is determined from the interactive answer groups corresponding to the second questions;

[0009] A group invitation message for the target interactive group is sent to the first user, and upon receiving a group adding confirmation message returned by the first user in response to the group invitation message, the first user is added to the target interactive group, so that group members in the target interactive group can answer the first question through the target interactive group.

[0010] In combination with the first aspect, in a second possible implementation, determining a target interactive group matching the first question from interactive answer groups corresponding to each of the second questions according to the similarity between the first question and each of the second questions includes:

[0011] Obtaining the completeness of the answer to each of the second questions;

[0012] Multiplying the preset question similarity weight by the question similarity corresponding to each of the second questions, to obtain a first product of each of the second questions;

[0013] Multiplying the preset perfection weight by the perfection of the answer to each of the second questions respectively to obtain a second product of each of the second questions;

[0014] The first product of each of the second questions is subtracted from the second product of each question, and the interactive answer group corresponding to the second question with the highest matching index of the first group is determined as the target interactive group.

[0015] In combination with the first aspect, in a second possible implementation, determining a target interactive group matching the first question from interactive answer groups corresponding to each of the second questions according to the similarity between the first question and each of the second questions includes:

[0016] Acquire user characteristic information of each user who asks the second question, and acquire user characteristic information of the first user;

[0017] Determine the user characteristic similarity between the user who asked each of the second questions and the first user according to the user characteristic information of the user who asked each of the second questions and the user characteristic information of the first user;

[0018] Multiplying the preset question similarity weight by the question similarity corresponding to each of the second questions, to obtain a third product of each of the second questions;

[0019] Multiplying the preset user feature similarity weight by the user feature similarity corresponding to the user asking each of the second questions, to obtain a fourth product of each of the second questions;

[0020] Adding the third product of each of the second questions to the fourth product of each question, and determining the sum obtained by the addition as the second group matching index of each of the second questions relative to the first question;

[0021] The interactive answer group corresponding to the second question with the highest matching index of the second group is determined as the target interactive group.

[0022] In combination with the first aspect, in a third possible implementation manner, after adding the first user to the target interaction group, the method further includes:

[0023] Receiving a group interaction message sent by any group member in the target interaction group in response to the first question;

[0024] Determine a member status of each group member in the target interactive group, wherein the member status is one of an offline status or an online status;

[0025] The group interaction message is pushed to the message queue corresponding to each group member who is online, and the last read message identifier of each group member is determined according to the member status of each group member in the target interaction group. The last read message identifier is used to determine the unread group messages of the group members of the target interaction group.

[0026] In combination with the third possible implementation manner of the first aspect, in a fourth possible implementation manner, determining the last read message identifier of each group member according to the member status of each group member in the target interactive group includes:

[0027] Marking the message identifier corresponding to the group interactive message as the last read message identifier of the corresponding online group member;

[0028] In the case where the group interaction message is the first group interaction message after the target interaction group is established, setting the last read message flag of each offline group member to null;

[0029] In the case that the group interaction message is not the first group interaction message after the target interaction group is established, if the group interaction message is the first group interaction message received after the first offline user in an offline state joins the target interaction group, the last read message identifier of the first offline user is set to empty.

[0030] In combination with the third possible implementation manner of the first aspect, in a fifth possible implementation manner, after receiving a group interaction message sent by any group member in the target interaction group in response to the first question, the method further includes:

[0031] Inserting a first value at the tail of the value queue corresponding to the first key in the list structure data cache, wherein the value of the first key is the question identifier of the first question, and the value of the first value is the message text of the group interaction message;

[0032] Insert a value-score pair consisting of a second value and a first score into the value-score pair set corresponding to the first key in the zset structure data cache, wherein the value of the second value is the message identifier corresponding to the group interaction message, and the value of the first score is the timestamp corresponding to the time when the group interaction message is received.

[0033] In combination with the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner, the method further includes:

[0034] receiving a request for obtaining unread messages of the target interactive group from a first member, where the first member is any group member in the target interactive group;

[0035] Obtaining the last read message identifier of the first member;

[0036] When the last read message identifier of the first member is empty, the last interactive message identifier of the target interactive group before the first member joins the target interactive group is obtained, and the last interactive message identifier is determined as the unread message offset identifier of the first member; when the last read message identifier of the first member is not empty, the last read message identifier of the first member is determined as the unread message offset identifier of the first member;

[0037] Sort all value-score pairs in the value-score pair set corresponding to the first key in the zset structure data cache in ascending order of score values, and determine the sorted number of value-score pairs whose value is the unread message offset identifier of the first member;

[0038] Determine the number of unread messages of the first member according to the number of all value-score pairs in the value-score pair set corresponding to the first key in the zset structure data cache and the sort number;

[0039] The value of the number of unread messages in the value queue corresponding to the first key in the list structure data cache, which is closest to the tail of the queue, is returned to the first member as the unread group message of the first member.

[0040] A second aspect of an embodiment of the present invention provides a data interaction device, including:

[0041] A question receiving module, configured to receive a first question from a first user, perform word segmentation processing on a question text of the first question to obtain at least one question word segmentation of the first question, and respectively encode each word in the at least one question word segmentation to obtain a word segmentation encoding matrix of the at least one question word segmentation;

[0042] A feature extraction module, configured to input a segmentation encoding matrix of the at least one question segmentation into a feature extraction network, and output a question feature matrix obtained by extracting features of the first question;

[0043] A similarity determination module, configured to determine, based on the question feature matrix, a question similarity between the first question and at least one second question, wherein the second question is a question with an established interactive answer group;

[0044] A group matching module, configured to determine a target interactive group that matches the first question from the interactive answer groups corresponding to the second questions according to the similarity between the first question and each of the second questions;

[0045] The group adding module is used to send a group invitation message for the target interactive group to the first user, and upon receiving a group adding confirmation message returned by the first user in response to the group invitation message, add the first user to the target interactive group, so that group members in the target interactive group can answer the first question through the target interactive group.

[0046] A third aspect of an embodiment of the present invention provides a data device, including: a processor and a memory;

[0047] The processor is connected to a memory, wherein the memory is used to store program codes, and the processor is used to call the program codes to execute the method in any one of the above aspects of the embodiments of the present invention.

[0048] A fourth aspect of an embodiment of the present invention provides a computer storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the method in any of the above aspects.

[0049] In an embodiment of the present invention, after receiving a first question of a first user, the question text of the first question is segmented to obtain at least one question segmentation of the first question, the at least one question segmentation is encoded respectively to obtain a segmentation encoding matrix of the at least one question segmentation, the segmentation encoding matrix of the at least one question segmentation is input into a feature extraction network, and a question feature matrix obtained by extracting features of the first question is output, and the problem similarity between the first question and the second question with an established interactive answer group is determined according to the problem feature matrix, and the target interactive group matching the first question is determined from the interactive answer groups corresponding to the second question according to the problem similarity of each second question, and a group invitation message for the target interactive group is sent to the first user, and when a group confirmation message returned by the first user in response to the group invitation message is received, the first user is added to the target interactive group, so that the group members in the target interactive group can answer the first question through the target interactive group. According to the problem similarity between the first question and the second question, the first user is added to the matching target interactive group. Based on the similarity between the first question and each second question, the target interaction group matching the first question is determined, and then the first user corresponding to the first question is added to the target interaction group with a higher matching degree. The first question is answered by group members in the target interaction group with a higher matching degree, thereby improving the efficiency of answering the first question. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0051] Figure 1 A schematic diagram of a data interaction network architecture provided by an embodiment of the present invention;

[0052] Figure 2 A flow chart of a data interaction method provided by an embodiment of the present invention;

[0053] Figure 3 An example diagram of a method for determining a word segmentation attention feature matrix provided by an embodiment of the present invention;

[0054] Figure 4 A schematic diagram showing an interface of a problem to be solved provided by an embodiment of the present invention;

[0055] Figure 5 A schematic diagram of a flow chart of another data interaction method provided by an embodiment of the present invention;

[0056] Figure 6 A schematic diagram of data caching provided by an embodiment of the present invention;

[0057] Figure 7 A schematic diagram of the structure of a data interaction device provided by an embodiment of the present invention;

[0058] Figure 8 A schematic diagram of the structure of another data interaction device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0060] See also Figure 1 , Figure 1 A schematic diagram of a data interaction network architecture provided by an embodiment of the present invention is shown in the figure. As shown in the figure, the data interaction network architecture may include at least a data interaction device 001 and a user terminal cluster 002. The data interaction device 001 may be a server, and any type of business may be operated in the server, such as financial business, medical business, online shopping business, etc. The user terminal cluster 002 may include multiple user terminals. Figure 1 User terminal a, user terminal b and user terminal c are shown by way of example. User terminal a, user terminal b and user terminal c can be installed with applications for the services operated by data interaction device 001, and a network connection can be established with data interaction device 001. Users can perform business operations related to data interaction device 001 through user terminal a, user terminal b or user terminal c and the network connections established by each of them.

[0061] Next, the application scenarios of the data interaction method in the embodiment of the present invention are introduced. The data interaction method in the embodiment of the present invention can be applied to the process in which the customer service answers the insured's questions through online interaction when the insured consults about the progress of insurance claims, etc., can be applied to the process in which the doctor diagnoses and treats the patient through online communication when the patient consults the doctor, and can also be applied to the process in which the merchant recommends the product to the user through online display or introduction when the consumer inquires about product information such as product specifications. It should be pointed out that the above are only exemplary application scenarios of the embodiments of the present invention, not all application scenarios of the embodiments of the present invention.

[0062] See also Figure 2 , Figure 2 A flow chart of a data interaction method provided by an embodiment of the present invention is shown in the figure. The method may include the following steps:

[0063] S201, receiving a first question from a first user, performing word segmentation processing on a question text of the first question to obtain at least one question word segmentation of the first question, encoding each word in the at least one question word segmentation to obtain a word segmentation encoding matrix of the at least one question word segmentation.

[0064] Specifically, the first question may be received in text form or in voice form. If the first question is received in text form, the question text of the first question may be directly segmented. If the first question is received in voice form, voice recognition may be performed on the first question. After the question text of the first question is recognized, word segmentation may be performed.

[0065] There are many ways to segment the question text of the first question, such as a segmentation method based on string matching, a segmentation method based on n-gram, a segmentation method based on a hidden Markov model, a segmentation method based on a conditional random field, etc.

[0066] After the question text of the first question is segmented, at least one question segmentation of the first question is obtained, and then the at least one question segmentation of the first question is encoded to obtain a segmentation encoding matrix of the at least one question segmentation. Here, the process of encoding the at least one question segmentation can first perform semantic embedding and position embedding on the at least one question segmentation of the first question respectively to obtain the original semantic matrix and original position matrix of each question segmentation, and then fuse the original semantic matrix and original position matrix of each question segmentation to obtain the segmentation encoding matrix of each question segmentation.

[0067] Here, the semantic embedding method for question word segmentation can include frequency-based semantic embedding method and prediction-based semantic embedding method. Frequency-based semantic embedding methods include Count Vector embedding method, TF-IDF Vector (Term Frequncy-Inverse Document Frequency Vector) embedding method and Co-Occurence Vector embedding method. The above three methods are all based on one-hot encoding and are weighted improvement methods based on frequency. Prediction-based semantic embedding methods include CBOW (Continues Bag Of Words).

[0068] Among them, CBOW is a neural network model that can predict a question segmentation based on the context of a question segmentation. The training model of CBOW may include an input layer, a hidden layer and an output layer. During the training process, the unique hot codes of the context segmentation of the sample prediction segmentation are respectively input into the neurons corresponding to the input layer, the output of the input layer is input into the hidden layer, the output of the input layer is compressed to the target dimension (the target dimension is the dimension of the original semantic matrix obtained by CBOW after the training is completed), the output of the hidden layer is input into the output layer, the output of the hidden layer is decoded to obtain the decoded form of the predicted sample segmentation, and the network parameters of the CBOW training model are adjusted by the decoded form of the sample prediction segmentation and the unique hot coding of the sample prediction segmentation. By inputting different sample prediction segmentations into the training model of CBOW, the training model of CBOW is adjusted multiple times, so that the error between the decoded form of the sample prediction segmentation output by the training model of CBOW and the unique hot coding of the sample prediction segmentation is less than the preset error threshold, the training is completed, and at least one question segmentation of the first question can be input into CBOW, and the output of the hidden layer of CBOW is the original semantic matrix of the corresponding question segmentation.

[0069] The method of position embedding the question word can map the different position indexes of the question word in the question text of the first question into the matrix identifiers of the corresponding preset dimensions, and obtain the original position matrix of each question word. Optionally, the preset dimension of the original position matrix is ​​set to the same dimension as the original semantic matrix dimension. In a specific implementation method, the original position matrix and the original semantic matrix are both in vector form. The original position matrix and the original semantic matrix actually correspond to the original position vector and the original semantic vector. The original position vector of each question word can be obtained by the following formula:

[0070]

[0071] Among them, dpos is the preset dimension of the original position vector, i is the dimension index factor of the original position vector, i is a positive integer. By taking different integers for i, the dimension indexes of different dimensions in different original position vectors are obtained. p is the position index of the question word segmentation in the question text of the first question, PE 2i (p) represents the value corresponding to the even dimension index in the original position vector, PE 2i+1 (p) represents the value corresponding to the odd dimension index in the original position vector. For example, if the preset dimension of the original position vector is 3, that is, d pos = 3, and the question text of the first question is "What is the link?", the determination method of the original position vector corresponding to the question word segmentation "link" is: let p = 1, and respectively obtain that when i = 0, PE1(p = 1) = cos1 ≈ 0.9998, when i = 1, PE2(p = 1) = sin(1 / 10000 2 / 3 ) ≈ 0.9696, PE3(p = 1) = cos(1 / 10000 2 / 3 ) ≈ -0.2446, and the original position vector corresponding to the sequence of words is [0.998, 0.9696, -0.2446]. Furthermore, p = 2 and p = 3 can be respectively set to obtain the original position vectors of the question word segmentations "is" and "what" respectively.

[0072] After determining the original semantic matrix and the original position matrix of each question word segmentation, the original semantic matrix and the original position matrix of each question word segmentation can be concatenated front and back, and the new matrix obtained is the word segmentation encoding matrix corresponding to each question word segmentation. Optionally, when the preset dimension of the original position matrix is the same as the original semantic matrix, the original semantic matrix of each question word segmentation can also be added to the original position matrix to obtain the word segmentation encoding matrix of each sequence of words.

[0073] S202, input the word segmentation encoding matrix of the at least one question word segmentation into the feature extraction network, and output the question feature matrix obtained by performing feature extraction on the first question.

[0074] Here, according to the word segmentation encoding matrix of multiple question segmentations of the first question, feature extraction can be performed on multiple question segmentations respectively to obtain the word segmentation attention feature matrix of each question segmentation, and then the average value of the word segmentation attention feature matrix of the word segmentation encoding matrix of each question segmentation is determined as the question feature matrix of the first question. Among them, the feature extraction network for extracting features from multiple question segmentations can be a feature extraction network based on CNN (Convolutional Neural Networks, convolutional neural network), a feature extraction network based on RNN (Recurrent Neural Network, recurrent neural network) or a feature extraction network based on Transformer (converter). The feature extraction network based on Transformer integrates the self-attention mechanism and the residual mechanism. Through the self-attention mechanism, the association between question segmentations and question segmentations is taken into account. Through the residual mechanism, the model has a faster training speed. Here, the feature extraction of question segmentations in the first question by the feature extraction network based on Transformer is introduced in detail.

[0075] The query factor matrix, key factor matrix and value factor matrix are introduced into the Transformer-based feature extraction network. The dot product similarity obtained by performing relevant operations on the above three factor matrices of each question segmentation is used to measure the correlation importance between question segmentations. The process of feature extraction of question segmentations is introduced by taking the process of feature extraction of the first question segmentation in the first question as an example: according to the segmentation encoding matrix of each question segmentation and the preset query factor standardized weight, the query factor matrix of each question segmentation is determined; according to the segmentation encoding matrix of each question segmentation and the preset key factor standardized weight, the key factor matrix of each question segmentation is determined; according to the segmentation encoding matrix of each question segmentation and the preset value factor standardized weight, the value factor matrix of each question molecule is determined; the correlation between the query factor matrix of each question segmentation and the key factor matrix of the first question segmentation is determined respectively, and the correlation weight of each question text with respect to the first sequence of text is obtained; the sum of the correlation weights of each question segmentation with respect to the first question segmentation and the multiplication of their respective value matrices is determined as the segmentation attention feature matrix of the first question segmentation.

[0076] See also Figure 3 , Figure 3An example diagram of a method for determining a word segmentation attention feature matrix provided by an embodiment of the present invention, as shown in the figure, the question text of the first question is "What is the cause of headache", and the corresponding question segmentations include four, namely "headache", "is", "what", and "cause". After encoding the above four question segmentations, the word segmentation encoding matrix is ​​obtained as X1, X2, X3 and X4. Then, X1 is multiplied with the trained query factor standardization weight, key factor standardization weight and value factor standardization weight respectively to obtain the query factor matrix (query matrix), key factor matrix (key matrix) and value factor matrix (value matrix) corresponding to "headache": Q1, K1 and V1. In the same way, the query matrix, key matrix and value matrix of "is" are determined: Q2, K2 and V2, the query matrix, key matrix and value matrix of "what": Q3, K3 and V3, and the query matrix, key matrix and value matrix of "cause": Q4, K4 and V4. Then generate the word segmentation attention feature matrix for "headache": multiply the query matrix of "headache" with the key matrices of "headache", "is", "what", and "reason" respectively, and obtain the attention scores S1, S2, S3 and S4 of "headache", "is", "what", and "reason". The above attention scores are the relevance weights of "headache", "is", "what", and "reason" to "headache", which are used to further weighted sum with the value matrices of "headache", "is", "what", and "reason" to obtain the word segmentation attention feature matrix corresponding to "headache". In order to avoid the result of multiplying the matrices being too large, Figure 3 In the corresponding embodiment, the attention scores are normalized to obtain normalized attention scores S1', S2', S3' and S4' for "headache", "is", "what" and "reason", respectively, and then S1', S2', S3' and S4' are weighted summed with the value matrices of "headache", "is", "what" and "reason" respectively to obtain the word segmentation attention feature matrix corresponding to "headache". In the same way, the word segmentation attention feature matrices Z2, Z3 and Z4 for "is", "what" and "reason" can be obtained.

[0077] S203: Determine, based on the question feature matrix, the question similarity between the first question and at least one second question, where the second question is a question with an established interactive answer group.

[0078] Specifically, before step S203, the system executing the data interaction method of this embodiment receives at least one second question, and can establish an interactive answer group for the second question, so that the corresponding second question can be answered by group members in the established interactive answer group, wherein the members in the interactive answer group for the second question are members with a high business match with the second question. In one implementation, the interactive answer group for the second question can be established by business personnel, who select question answerers based on their business experience, and jointly build an interactive answer group for the second question with the questioning user of the second question. In another implementation, after receiving the second question, the system executing the data interaction method of this embodiment can automatically select question answerers for the second question and establish an interactive answer group.

[0079] Among them, the method of automatically establishing an interactive answer group for the second question can be: segmenting the question text of the second question, extracting features from the question text of the second question after segmentation through a feature extraction network (such as a CNN network, an RNN network or a Transformer network, etc., which can be the same as or different from the feature extraction network used to extract features for the first question), and obtaining a feature matrix for the second question; then inputting the feature matrix of the second question into a text classification network (such as a softmax network) to obtain at least one business category corresponding to the second question; then, based on the at least one business type corresponding to the second question, determining multiple first target interactive members for the second question from multiple interactive members preset for at least one business category; thereby adding the questioning user of the second question and the multiple first target interactive members determined for the second question to the interactive answer group corresponding to the second question.

[0080] There may be multiple business categories corresponding to the second question. For example, when a patient consults a doctor online, he or she only describes the symptoms of headache. However, headaches have multiple causes, and different causes may correspond to different departments, such as neurology or cardiovascular and cerebrovascular departments. The text classification network may obtain that the probability of the business categories of the second question for these two departments is relatively close, so both neurology and cardiovascular and cerebrovascular departments can be used as business categories for the second question. Subsequently, doctors corresponding to these two departments are selected to join the interactive answering group, and the patient is diagnosed from the perspective of these two departments, as well as the combination of the two.

[0081] In the process of determining the first target interactive member from multiple interactive members preset for at least one business category, the determination can be made based on the number of questions to be answered of the multiple interactive members preset for at least one business category, and the interactive member with the least preset number of questions to be answered under each business category can be determined as the first target interactive member.

[0082] Optionally, in the process of establishing an interactive answer group corresponding to the second question, after obtaining at least one business category corresponding to the second question, multiple candidate interactive members corresponding to the second question can be determined from multiple interactive members preset for at least one business category, and member qualification information of the multiple candidate interactive members can be obtained, and the question text of the second question and the member qualification information of the multiple candidate interactive members can be displayed on the problem to be solved interface; a group construction request for the second question is received, the group construction request carries identification information of the second target interactive member, the second target interactive member is an interactive member selected from multiple candidate interactive members by the sending user of the group construction request to construct the interactive group, and the sending user of the group construction request is the user who asked the second question, or is a candidate interactive member corresponding to the second question; according to the identification information of the second target interactive member, an interactive answer group for the second question is constructed, and the group members of the interactive answer group include the user who asked the second question and the second target interactive member.

[0083] See also Figure 4 , Figure 4 A schematic diagram showing an interface of a problem to be solved provided by an embodiment of the present invention, Figure 4 In the schematic diagram shown, "What is the business process of business A?" is the second question, and user 1, user 2, user 3, and user 4 are multiple candidate interaction members. The user can click the "Create Group" icon to display the membership information of multiple candidate interaction members of the second question. After clicking the confirmation icon, a group building request is sent. Figure 4 After clicking the confirmation icon, the identification information of the second target interactive members carried in the sent group construction request is the identification information of user 1 and user 4, and then the system constructs an interactive answer group including the questioning user of the second question, user 1 and user 4.

[0084] In this process, the member qualification information of the candidate interactive members can be displayed. The user who asks the second question can select interested candidate interactive members to form a group based on the member qualification information. The candidate interactive members can also select candidate interactive members who need to interact and communicate together to solve the second question based on the member qualification information to form a group.

[0085] If multiple group building requests are received simultaneously in the above process, it can be determined whether the multiple group building requests include the group building request sent by the user who asked the second question; if included, the group building request sent by the user who asked the second question is determined as the target group building request; if not included, the priority levels of the sending users of the multiple group building requests are obtained, and the group building request sent by the sending user with the highest priority level is determined as the target group building request; and an interactive answer group for the second question is constructed according to the identification information of the target interactive members carried in the target group building request.

[0086] In this step, the question similarity between the first question and at least one second question is determined according to the question feature matrix of the first question. First, the process of determining the question feature matrix of the first question in step S201 and step S202 can be referred to to determine the feature matrix of the second question, and then determine the question similarity between the first question and the second question. The question similarity can be determined according to the question feature matrix of the first question and the feature matrix of the second question, and the distance between the first question and the second question in the space corresponding to the above matrix is ​​determined, and the question similarity is reflected by the distance. The above distance can be the Euclidean distance, Manhattan distance, Chebyshev distance, Minkowski distance, Mahalanobis distance, cosine angle distance, etc. between the two. If the word segmentation method and feature extraction network used in the process of constructing the interactive answer group for the second question are the same as the word segmentation method and feature extraction network used in steps S201 and S202, the feature matrix of the second question obtained in the process of constructing the interactive answer group for the second question can be directly used to determine the distance between the first question and the second question.

[0087] S204: Determine a target interactive group that matches the first question from the interactive answer groups corresponding to each of the second questions according to the similarity between the first question and each of the second questions.

[0088] Here, the interactive answer group for the second question with the highest question similarity can be directly determined as the target interactive group matching the first question.

[0089] In an optional method, the completeness of the answer to each second question can be obtained, and the preset question similarity weight can be multiplied by the question similarity corresponding to each second question to obtain the first product of each second question; the preset completeness weight can be multiplied by the completeness of the answer to each second question to obtain the second product of each second question; the first product of each second question can be subtracted from the corresponding second product, and the difference obtained by the subtraction can be determined as the first group matching index of the second question relative to the first question, so that the interactive answer group corresponding to the second question with the highest first group matching index is determined as the target interactive group.

[0090] Here, the completeness of the answer to the second question can be set by the user who asked the second question, or it can be determined based on the establishment time of the interactive answer group for the second question, or it can be determined based on the number of group messages generated after the interactive answer group for the second question is established. If the completeness of the answer to the question is set by the user who asked the second question, the query interface of the progress of the question answering can be displayed to the interface of the target interactive group of the user who asked the second question periodically (such as every 5 minutes as a cycle, or every 10 minutes as a cycle after the target interactive group is established), and the progress of the question answering input by the user is determined as the completeness of the answer to the second question. If the completeness of the answer to the question is determined based on the establishment time of the interactive answer group for the second question, the completeness of the answer to the second question can be determined based on the ratio of the establishment time of the interactive answer group for the second question to the average problem solving time corresponding to the questions of the same business category as the second question. If the completeness of the answer to the question is determined based on the number of group messages generated after the interactive answer group for the second question is established, the completeness of the answer to the second question can be determined based on the ratio of the number of group messages generated after the interactive answer group for the second question is established to the number of all interactive messages generated after questions of the same business category as the second question are solved.

[0091] In another optional manner, user feature information of the user who asks each second question may be obtained, user feature information of the first user may be obtained, and user feature similarity between the user who asks each second question and the first user may be determined based on the user feature information of the user who asks each second question and the user feature information of the first user, and the third product of each second question may be obtained by multiplying the preset question similarity weight by the question similarity corresponding to each second question; the fourth product of each second question may be obtained by multiplying the preset user feature similarity weight by the user feature similarity corresponding to the user who asks each second question; the third product of each second question may be added to the fourth product of each second question, and the sum obtained by the addition may be determined as the second group matching index of each second question relative to the first question, and the interactive answer group corresponding to the second question with the highest second group matching index may be determined as the target interactive group.

[0092] Here, multiple different feature tags can be preset, and when obtaining the user feature information of the user who asked the second question and the first user, the corresponding user feature information is obtained according to the preset feature tags. For example, in the scenario where a patient consults a doctor online for medical diagnosis, the preset feature tags may include the age, gender, whether there is a history of genetic diseases (and the type of genetic disease history) of the first user (i.e., the patient); in the scenario where a consumer inquires about product information such as product specifications, the preset feature tags may include the age, clothing preferences, occupation, etc. of the first user (i.e., the consumer); when a user inquires about the progress of insurance claims, etc., the preset feature tags may include the type of insurance and the insured amount of the first user (i.e., the insured).

[0093] For different feature tags, the features corresponding to the feature tags are pre-divided into different types of feature information. For example, for the feature tag of gender, it is divided into two types of gender feature information, male and female. For the feature tag of age, it is divided into six types of age feature information, namely, 0-3 years old, 3-8 years old, 8-16 years old, 16-25 years old, 25-45 years old, and over 45 years old. For the feature tag of whether there is a history of genetic diseases (and the type of genetic disease history), it can be divided into four types of genetic disease feature information, namely, no history of genetic diseases, history of single gene genetic diseases, history of multiple gene genetic diseases, and history of chromosome diseases, etc. In addition, for different feature tags, different label weights are set for different feature tags according to the degree of influence of the feature information under the feature tags on the business categories of the first question and the second question, and then the user feature information of the first user and the questioning user of the second question under the same feature tag belonging to the same type is determined, and the label weights of the feature tags corresponding to the user feature information belonging to the same type under the same feature tag are accumulated to obtain the user feature similarity between the questioning user of the second question and the first user. For example, in a scenario where a patient consults a doctor online for diagnosis, the three feature tags of age, gender, and whether there is a history of genetic diseases (and the type of genetic disease history) have corresponding label weights of 0.3, 0.1, and 0.6, respectively. The user feature information of the user asking the second question under the three feature tags of age, gender, and whether there is a history of genetic diseases (and the type of genetic disease history) is 27, female, and no history of genetic diseases, and the user feature information of the first user under the three feature tags of age, gender, and whether there is a history of genetic diseases (and the type of genetic disease history) is 82, female, and no history of genetic diseases. Then the user feature similarity between the user asking the second question and the first user is 0.1+0.6=0.7.

[0094] In another optional method, the second group matching index of each second question can be subtracted from its own second product (the second product of the second question is the product of a preset perfection weight and the perfection of the answer to the second question), and the obtained difference is determined as the third group matching index of each second question relative to the first question, and the interactive answer group corresponding to the second question with the highest third group matching index is determined as the target interactive group.

[0095] S205: Send a group invitation message for the target interactive group to the first user, and upon receiving a group adding confirmation message returned by the first user in response to the group invitation message, add the first user to the target interactive group, so that group members in the target interactive group can answer the first question through the target interactive group.

[0096] Specifically, a group invitation message to join the target interactive group can be sent to the first user. Optionally, the group invitation message can carry a second question corresponding to the target interactive group and can also carry the completeness of the answer to the second question in the target interactive group, so that the first user can decide whether to join the target interactive group based on the group invitation message.

[0097] In an embodiment of the present invention, after receiving a first question of a first user, the question text of the first question is segmented to obtain at least one question segmentation of the first question, the at least one question segmentation is encoded respectively to obtain a segmentation encoding matrix of the at least one question segmentation, the segmentation encoding matrix of the at least one question segmentation is input into a feature extraction network, and a question feature matrix obtained by extracting features of the first question is output, and the problem similarity between the first question and the second question with an established interactive answer group is determined according to the problem feature matrix, and the target interactive group matching the first question is determined from the interactive answer groups corresponding to the second question according to the problem similarity of each second question, and a group invitation message for the target interactive group is sent to the first user, and when a group confirmation message returned by the first user in response to the group invitation message is received, the first user is added to the target interactive group, so that the group members in the target interactive group can answer the first question through the target interactive group. According to the problem similarity between the first question and the second question, the first user is added to the matching target interactive group. Based on the similarity between the first question and each second question, the target interaction group matching the first question is determined, and then the first user corresponding to the first question is added to the target interaction group with a higher matching degree. The first question is answered by group members in the target interaction group with a higher matching degree, thereby improving the efficiency of answering the first question.

[0098] On the one hand, for the first user, the first question can be asked to the group members in the target interactive group at the same time, avoiding the need to repeatedly describe the question when it is necessary to ask multiple answerers. On the other hand, for the answerers, the answerers who are group members in the target interactive group can answer similar first questions and the second questions of the target interactive group at the same time, avoiding the answerers' repeated answers to similar questions. Based on the above two aspects, the embodiment of the present invention improves the efficiency of answering the first question of the first user and saves the human resources and time resources of the group members in the target interactive group in answering questions.

[0099] See also Figure 5 , Figure 5 A flow chart of another data interaction method provided by an embodiment of the present invention is shown in the figure. The method may include the following steps:

[0100] S501, receiving a first question from a first user, performing word segmentation processing on a question text of the first question to obtain at least one question word segmentation of the first question, encoding each word in the at least one question word segmentation to obtain a word segmentation encoding matrix of the at least one question word segmentation.

[0101] S502: Input the word segmentation encoding matrix of the at least one question word segmentation into a feature extraction network, and output a question feature matrix obtained by extracting features of the first question.

[0102] S503: Determine, based on the question feature matrix, the question similarity between the first question and at least one second question, where the second question is a question with an established interactive answer group.

[0103] S504: Determine a target interactive group that matches the first question from the interactive answer groups corresponding to each of the second questions according to the similarity between the first question and each of the second questions.

[0104] S505: Send a group invitation message for the target interactive group to the first user, and when receiving a group adding confirmation message returned by the first user in response to the group invitation message, add the first user to the target interactive group.

[0105] For implementation steps of step S501 to step S505, please refer to Figure 2 The implementation process of steps S201 to S205 in the corresponding embodiment will not be repeated here.

[0106] S506: Receive a group interaction message sent by any group member in the target interaction group in response to the first question.

[0107] Here, after the first user is added to the target interactive group, the question text of the first question can be displayed in the interface of the target interactive group, so that group members in the target interactive group can interact with the first question and send a group interactive message. The group interactive message can include the interactive message text and the identifier of the group member who sent the group interactive message.

[0108] After receiving the group interaction message, the group interaction message can be stored, so that when the group member currently offline in the target interaction group requests the group interaction message after coming online, the stored group interaction message can be obtained and sent to the group member currently offline. In addition to storage, the group interaction message is also pushed to the group members who are online. In order to ensure the data reading and writing efficiency when a large number of users access at the same time, the storage of the group interaction message can be stored in the cache of the data interaction device that executes the data interaction method provided in this embodiment, such as the redis (Remote Dictionary Server remote dictionary service) data cache.

[0109] When storing group interactive messages in a redis data cache, the group interactive messages can be stored in the data cache based on a list (queue) data structure and a zset (ordered set) data structure. In this embodiment, the data cache of the list data structure is referred to as a list structure data cache, and the data cache of the zset data structure is referred to as a zset structure data cache. Among them, in the list structure data cache, a key corresponds to a value queue, the key of the list stores the question identifier of the question asked, the value queue corresponding to the key stores the interactive message corresponding to the question asked, and the interactive messages stored in the value queue are stored in the order in which the interactive messages are received, that is, the interactive message with the latest receiving time is stored at the end of the corresponding value queue. In the zset structure data cache, the key, value and score correspond one to one, the key of the zset stores the question identifier of the question asked, the value stores the message identifier corresponding to the interactive message asking the question, and the score stores the timestamp corresponding to the time when the corresponding interactive message is received. A question can usually correspond to multiple interactive messages. Therefore, in the zset structure data cache, there can be multiple keys whose values ​​are all the question identifiers of a certain question. Then, the key whose value is the question identifier of the question and the corresponding value-score pairs constitute a value-score pair set corresponding to the key whose value is the question identifier of the question.

[0110] In the specific storage process, the first value is inserted into the tail of the value queue corresponding to the first key in the list structure data cache, wherein the value of the first key is the question identifier of the first question, and the value of the first value is the received group interaction message text; in the zset structure data cache, the value-score pair consisting of the second value and the first score is inserted into the value-score pair set corresponding to the first key, wherein the value of the second value is the message identifier corresponding to the group interaction message, and the value of the first score is the timestamp corresponding to the time when the group interaction message is received. In the specific implementation, the first value can be inserted into the tail of the value queue corresponding to the first key through the rpush function. For example, redis->rpush('a5314g','What is the processing progress of case 1101') implements "What is the processing progress of case 1101" as the first value and stores "a5314g" as the first key in the list structure data cache. The value-score pair consisting of the second value and the first score is inserted into the value-score pair set corresponding to the first key through the zadd function. For example, redis->zadd('a5314g','1562725042','a5314g') is used to use "a5314g" as the key of zset, "1562725042" as the first score, and "a5314g" as the second value to be stored in the zset structure data cache.

[0111] S507: Determine the member status of each group member in the target interactive group.

[0112] The member status is one of an offline status or an online status, and the online status may include a status of leaving, busy, invisible, etc. After the first user joins the target interactive group, respective status tags may be maintained for the first user and other group members in the target interactive group to mark the member status of each group member.

[0113] S508: Push the group interaction message to the message queue corresponding to each online group member, and determine the last read message identifier of each group member according to the member status of each group member in the target interaction group.

[0114] Here, there is a message queue corresponding to each user terminal between the user terminal of each group member in an online state and the data interaction device that executes the data interaction method provided by this embodiment. The data interaction device that executes the data interaction method provided by this embodiment is the message producer of the message queue, and the corresponding user terminal is the message consumer of the message queue.

[0115] A corresponding last read message identifier is maintained for each group member, and the last read message identifier is used to determine the unread group messages of the group members of the target interactive group after receiving an unread message acquisition request from a group member in the target interactive group. After the group interactive message is pushed to the message queue corresponding to the group member in the online state, the last read message identifier of each group member is determined.

[0116] In the implementation of specifically determining the last read message identifier of each group member, after pushing the group interaction message to the message queue of the group member in the online state, the message identifier corresponding to the group interaction message is marked as the last read message identifier of the corresponding group member in the online state; in the maintenance of the last read message identifier of the group member in the offline state, first determine whether the group interaction message is the first group interaction message after the target interaction group is established: if so, set the last read message identifier of each group member in the offline state to empty; if not, determine whether the group interaction message is the first group interaction message received by the offline group member after joining the target interaction group for each group member in the offline state: if the group interaction message is the first group interaction message received after the first offline user in the offline state joins the target interaction group, the last read message identifier of the first offline user is set to empty; for other group members who are in the offline state but the group interaction message is not for them to receive the received group interaction message after joining the target interaction group, no processing is done on their last read message identifier.

[0117] S509: Receive a request from the first member to obtain unread messages for the target interactive group.

[0118] The first member is any group member in the target interactive group.

[0119] S510: Obtain the last read message identifier of the first member, and obtain the unread group messages of the first member according to the last read message identifier of the first member, and return them to the first member.

[0120] Here, if the last read message flag of the first member is empty, it means that the first member has not read any interactive messages after joining the target interactive group, and all interactive messages generated in the target interactive group after the first member joins the target interactive group can be pushed to the first member. If the last read message flag of the first member is not empty, it means that the first member has read some interactive messages after joining the target interactive group, and interactive messages generated later than the last interactive message read by the first user can be pushed to the first member.

[0121] Specifically, if the last read message identifier of the first member is empty, the last interactive message identifier of the last interactive message generated by the target interactive group before the first member marked by the system joins the target interactive group is obtained, and the last interactive message identifier is determined as the unread message offset identifier of the first member; if the last read message identifier of the first member is not empty, the last read message identifier of the first member is determined as the unread message offset identifier of the first member. All value-score pairs in the value-score pair set corresponding to the first key in the zset structure data cache are sorted in descending order according to the score value, and the sorted number of value-score pairs whose value is the unread message offset identifier of the first member is determined. According to the number of all value-score pairs in the value-score pair set corresponding to the first key in the zset structure data cache and the sorted number, the number of unread messages of the first member is determined. The value of the value of the number of unread messages in the value queue corresponding to the first key in the list structure data cache, which is closest to the tail of the queue, is returned to the first member as the unread group message of the first member.

[0122] See also Figure 6 , Figure 6 A data cache schematic diagram provided for an embodiment of the present invention, as shown in the figure, in the list structure data cache, the key stores question identifiers of different questions, and the value queue corresponding to each key stores the message text of the interactive message corresponding to each question; in the zset structure data cache, the key stores question identifiers of different questions, and the value corresponding to each key stores the message identifier of the interactive message of the question, and the score corresponding to each key is the timestamp corresponding to the reception time of the interactive message of the question.

[0123] Assume that key1 is the question identifier of the first question. If the last read message identifier of the first member is empty, and the last interactive message identifier corresponding to the first member is obtained as m3, then m3 is determined as the unread message offset identifier of the first member. Then, in the zset structure data cache, the zrevrank key member function is used to obtain the value-score pair with value m3 and the ranking number of all value-score pairs corresponding to key1. The specific function form is<zrevrank value m3> , the return value is 2 (sorting starts from 0, 2 means sorting 3). Then the number of all value-score pairs in the value-score pair set corresponding to key1 in zset is 10. Since the sorting number corresponding to m3 is 2, that is, the sorting is 3, the number of unread messages of the first member is 7. Therefore, in the list structure data cache, the irang keystart end function can be used. The specific function form is<irange key1 2 9> , the values ​​of the 7 values ​​closest to the tail in the value queue corresponding to key1 in the list structure data cache, namely m4~m10, are returned to the first user as unread group messages. If the last read message identifier of the first member is not empty, and the last interactive message identifier of the first member is obtained as m4, then the m4 identifier is determined as the unread message offset identifier of the first member, and then referring to the above process, m5~m10 are obtained and returned to the first user as unread group messages. Here, all the unread group messages of the first user can be obtained and sent to the first user through the zrerang key start end function, and the unread group messages of the first user can also be obtained in pages and sent to the first user. This can be implemented through the limit offset count function, where offset is the starting point for obtaining the unread group messages of the first user, and count is the number of messages obtained on each page. For example,<limit 2 10> You can take 10 values ​​from the value with sort number 2 in the list and return the value of each value as the earliest first page of unread group messages, and then use<limit 12 10> Get the second page of unread group messages until all the group unread messages are obtained.

[0124] Through the embodiment of the present invention, after the first user is added to the target interaction group, the group interaction messages of the target interaction group are stored in the redis data cache of the list data structure and the zset data structure, so that when a large number of users interact at the same time, the group interaction messages can be quickly written and read, thereby ensuring the efficiency of the interaction among group members.

[0125] See also Figure 7 , Figure 7 A schematic diagram of the structure of a data interaction device provided by an embodiment of the present invention is shown in the figure. The data interaction device 70 includes:

[0126] The question receiving module 701 is used to receive a first question from a first user, perform word segmentation processing on the question text of the first question to obtain at least one question word segmentation of the first question, and respectively encode each word in the at least one question word segmentation to obtain a word segmentation encoding matrix of the at least one question word segmentation;

[0127] A feature extraction module 702 is used to input the segmentation encoding matrix of the at least one question segmentation into a feature extraction network, and output a question feature matrix obtained by extracting features of the first question;

[0128] A similarity determination module 703 is used to determine the similarity between the first question and at least one second question according to the question feature matrix, where the second question is a question with an established interactive answer group;

[0129] A group matching module 704 is used to determine a target interactive group that matches the first question from the interactive answer groups corresponding to each of the second questions according to the similarity between the first question and each of the second questions;

[0130] The group adding module 705 is used to send a group invitation message for the target interactive group to the first user, and upon receiving a group adding confirmation message returned by the first user in response to the group invitation message, add the first user to the target interactive group, so that group members in the target interactive group can answer the first question through the target interactive group.

[0131] In a specific implementation, the data interaction device 70 executes the following through its built-in functional modules: Figure 2 and Figure 5 For details on the various steps in the data interaction method, please refer to Figure 2 and Figure 5 The implementation details of each step in the corresponding embodiment will not be repeated here.

[0132] In the embodiment of the present invention, after receiving the first question of the first user, the question receiving module performs word segmentation processing on the question text of the first question to obtain at least one question word of the first question, and encodes the at least one question word respectively to obtain a word segmentation encoding matrix of at least one question word. The feature extraction module inputs the word segmentation encoding matrix of at least one question word into the feature extraction network, and outputs a question feature matrix obtained by extracting features of the first question. The similarity determination module determines the problem similarity between the first question and the second question with an established interactive answer group according to the problem feature matrix. The group matching module determines the target interactive group matched with the first question from the interactive answer groups corresponding to the second question according to the problem similarity of each second question. The group adding module sends a group invitation message for the target interactive group to the first user, and when receiving a group confirmation message returned by the first user in response to the group invitation message, the first user is added to the target interactive group, so that the group members in the target interactive group can answer the first question through the target interactive group. According to the problem similarity between the first question and the second question, the first user is added to the matching target interactive group. Based on the similarity between the first question and each second question, the target interaction group matching the first question is determined, and then the first user corresponding to the first question is added to the target interaction group with a higher matching degree. The first question is answered by group members in the target interaction group with a higher matching degree, thereby improving the efficiency of answering the first question.

[0133] On the one hand, for the first user, the first question can be asked to the group members in the target interactive group at the same time, avoiding the need to repeatedly describe the question when it is necessary to ask multiple answerers. On the other hand, for the answerers, the answerers who are group members in the target interactive group can answer similar first questions and the second questions of the target interactive group at the same time, avoiding the answerers' repeated answers to similar questions. Based on the above two aspects, the embodiment of the present invention improves the efficiency of answering the first question of the first user and saves the human resources and time resources of the group members in the target interactive group in answering questions.

[0134] See also Figure 8 , Figure 8 A schematic diagram of the structure of another data interaction device provided by an embodiment of the present invention. Figure 8 As shown, the data interaction device 80 can be applied to the above Figure 1Corresponding to the data interaction device 001 in the embodiment, the data interaction device 80 may include: at least one processor 801, such as a CPU, at least one network interface 804, a user interface 803, a memory 805, and at least one communication bus 802. The communication bus 802 is used to realize the connection and communication between these components. The user interface 803 may include a display screen (Display) and a keyboard (Keyboard), and the optional user interface 803 may also include a standard wired interface and a wireless interface. The network interface 804 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 805 may be a high-speed RAM memory, or it may be a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 805 may optionally also be at least one storage device located away from the aforementioned processor 801. Figure 8 As shown, the memory 805 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.

[0135] exist Figure 8 In the data interaction device 80 shown, the network interface 804 is mainly used for the user terminal; the user interface 803 is mainly used to provide an input interface for the user; and the processor 801 can be used to call the device control application stored in the memory 805 to achieve:

[0136] Receive a first question from a first user, perform word segmentation processing on the question text of the first question to obtain at least one question word segmentation of the first question, and encode the at least one question word segmentation to obtain a word segmentation encoding matrix of the at least one question word segmentation;

[0137] Inputting the segmentation encoding matrix of the at least one question segmentation into a feature extraction network, and outputting a question feature matrix obtained by extracting features of the first question;

[0138] Determining, according to the question feature matrix, a question similarity between the first question and at least one second question, wherein the second question is a question with an established interactive answer group;

[0139] According to the similarity between the first question and each of the second questions, a target interactive group matching the first question is determined from the interactive answer groups corresponding to the second questions;

[0140] A group invitation message for the target interactive group is sent to the first user, and upon receiving a group adding confirmation message returned by the first user in response to the group invitation message, the first user is added to the target interactive group, so that group members in the target interactive group can answer the first question through the target interactive group.

[0141] It should be understood that the data interaction device 80 described in the embodiment of the present invention can execute the above Figure 2 and Figure 5 The description of the data interaction method in the corresponding embodiment can also be performed as described above. Figure 7 The description of the data interaction device 70 in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated here either.

[0142] In addition, it should be pointed out here that: the embodiment of the present invention further provides a computer storage medium, and the computer storage medium stores a computer program executed by the data interaction device 70 mentioned above, and the computer program includes program instructions. When the processor executes the program instructions, it can execute the above Figure 2 and Figure 5 The description of the data interaction method in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer storage medium embodiment involved in the present invention, please refer to the description of the method embodiment of the present invention.

[0143] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0144] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims

1. A data interaction method, characterized in that: include: Receive a first question from a first user, perform word segmentation processing on a question text of the first question to obtain at least one question word segmentation of the first question, and respectively encode each word in the at least one question word segmentation to obtain a word segmentation encoding matrix of the at least one question word segmentation; Inputting the segmentation encoding matrix of the at least one question segmentation into a feature extraction network, and outputting a question feature matrix obtained by extracting features of the first question; Determining, according to the question feature matrix, a question similarity between the first question and at least one second question, wherein the second question is a question with an established interactive answer group; According to the similarity between the first question and each of the second questions, a target interactive group matching the first question is determined from the interactive answer groups corresponding to the second questions; Sending a group invitation message for the target interactive group to the first user, and upon receiving a group adding confirmation message returned by the first user in response to the group invitation message, adding the first user to the target interactive group, so that group members in the target interactive group can answer the first question through the target interactive group; The step of determining a target interactive group matching the first question from the interactive answer groups corresponding to the second questions according to the similarity between the first question and each of the second questions includes: Obtaining the completeness of the answer to each of the second questions; Multiplying the preset question similarity weight by the question similarity corresponding to each of the second questions, to obtain a first product of each of the second questions; Multiplying the preset perfection weight by the perfection of the answer to each of the second questions respectively to obtain a second product of each of the second questions; Subtracting the first product of each of the second questions from the second product thereof, and determining the difference obtained by the subtraction as the first group matching index of the second question relative to the first question; Determine the interactive answer group corresponding to the second question with the highest matching index of the first group as the target interactive group; Or the determining, based on the similarity between the first question and each of the second questions, of a target interactive group matching the first question from the interactive answer groups corresponding to each of the second questions comprises: Acquire user characteristic information of each user who asks the second question, and acquire user characteristic information of the first user; Determine the user characteristic similarity between the user who asked each of the second questions and the first user according to the user characteristic information of the user who asked each of the second questions and the user characteristic information of the first user; Multiplying the preset question similarity weight by the question similarity corresponding to each of the second questions, to obtain a third product of each of the second questions; Multiplying the preset user feature similarity weight by the user feature similarity corresponding to the user asking each of the second questions, to obtain a fourth product of each of the second questions; Adding the third product of each of the second questions to the fourth product of each question, and determining the sum obtained by the addition as the second group matching index of each of the second questions relative to the first question; The interactive answer group corresponding to the second question with the highest matching index of the second group is determined as the target interactive group.

2. The method according to claim 1, characterized in that After adding the first user to the target interaction group, the method further includes: Receiving a group interaction message sent by any group member in the target interaction group in response to the first question; Determine a member status of each group member in the target interactive group, wherein the member status is one of an offline status or an online status; The group interaction message is pushed to the message queue corresponding to each group member who is online, and the last read message identifier of each group member is determined according to the member status of each group member in the target interaction group. The last read message identifier is used to determine the unread group messages of the group members of the target interaction group.

3. The method according to claim 2, characterized in that The determining, according to the member status of each group member in the target interactive group, the last read message identifier of each group member comprises: Marking the message identifier corresponding to the group interactive message as the last read message identifier of the corresponding online group member; In the case where the group interaction message is the first group interaction message after the target interaction group is established, setting the last read message flag of each offline group member to null; In the case that the group interaction message is not the first group interaction message after the target interaction group is established, if the group interaction message is the first group interaction message received after the first offline user in an offline state joins the target interaction group, the last read message identifier of the first offline user is set to empty.

4. The method according to claim 2, characterized in that: After receiving the group interaction message sent by any group member in the target interaction group in response to the first question, the method further includes: Inserting a first value at the tail of the value queue corresponding to the first key in the list structure data cache, wherein the value of the first key is the question identifier of the first question, and the value of the first value is the message text of the group interaction message; Insert a value-score pair consisting of a second value and a first score into the value-score pair set corresponding to the first key in the zset structure data cache, wherein the value of the second value is the message identifier corresponding to the group interaction message, and the value of the first score is the timestamp corresponding to the time when the group interaction message is received.

5. The method according to claim 4, characterized in that The method further comprises: receiving a request for obtaining unread messages of the target interactive group from a first member, where the first member is any group member in the target interactive group; Obtaining the last read message identifier of the first member; When the last read message identifier of the first member is empty, the last interactive message identifier of the target interactive group before the first member joins the target interactive group is obtained, and the last interactive message identifier is determined as the unread message offset identifier of the first member; when the last read message identifier of the first member is not empty, the last read message identifier of the first member is determined as the unread message offset identifier of the first member; Sort all value-score pairs in the value-score pair set corresponding to the first key in the zset structure data cache in ascending order of score values, and determine the sorted number of value-score pairs whose value is the unread message offset identifier of the first member; Determine the number of unread messages of the first member according to the number of all value-score pairs in the value-score pair set corresponding to the first key in the zset structure data cache and the sort number; The value of the number of unread messages in the value queue corresponding to the first key in the list structure data cache, which is closest to the tail of the queue, is returned to the first member as the unread group message of the first member.

6. A data interaction device, characterized in that: include: A question receiving module, configured to receive a first question from a first user, perform word segmentation processing on a question text of the first question to obtain at least one question word segmentation of the first question, and respectively encode each word in the at least one question word segmentation to obtain a word segmentation encoding matrix of the at least one question word segmentation; A feature extraction module, configured to input a segmentation encoding matrix of the at least one question segmentation into a feature extraction network, and output a question feature matrix obtained by extracting features of the first question; A similarity determination module, configured to determine, based on the question feature matrix, a question similarity between the first question and at least one second question, wherein the second question is a question with an established interactive answer group; A group matching module, configured to determine a target interactive group that matches the first question from the interactive answer groups corresponding to the second questions according to the similarity between the first question and each of the second questions; a group adding module, configured to send a group invitation message for the target interactive group to the first user, and upon receiving a group adding confirmation message returned by the first user in response to the group invitation message, add the first user to the target interactive group, so that group members in the target interactive group can answer the first question through the target interactive group; The group matching module is specifically used for: Obtain the completeness of the answers to the second questions; multiply the preset question similarity weights by the question similarities corresponding to the second questions to obtain the first products of the second questions; multiply the preset completeness weights by the completeness of the answers to the second questions to obtain the second products of the second questions; subtract the first products of the second questions from the respective second products, and determine the difference obtained by the subtraction as the first group matching index of the second question relative to the first question; determine the interactive answer group corresponding to the second question with the highest first group matching index as the target interactive group; Or specifically for: Obtain user feature information of users who ask each of the second questions, and obtain user feature information of the first user; determine the user feature similarity between the users who ask each of the second questions and the first user based on the user feature information of the users who ask each of the second questions and the user feature information of the first user; multiply the preset question similarity weights by the question similarities corresponding to each of the second questions to obtain third products of each of the second questions; multiply the preset user feature similarity weights by the user feature similarities corresponding to each of the users who ask each of the second questions to obtain fourth products of each of the second questions; add the third products of each of the second questions to their respective fourth products, and determine the sum obtained by the addition as the second group matching index of each of the second questions relative to the first question; The interactive answer group corresponding to the second question with the highest matching index of the second group is determined as the target interactive group.

7. A data interaction device, characterized in that: include: Processor and memory; The processor is connected to a memory, wherein the memory is used to store program codes, and the processor is used to call the program codes to execute the method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 5.