A similar user recommendation method and device based on speech recognition results
By using preset speech recognition and text error correction models in the online voice consultation platform, combining clustering algorithms and physiological disease data calculations, the problems of inaccurate speech recognition and low error correction are solved, and the matching degree of similar cases is improved and consultation efficiency.
Patent Information
- Application Number
- CN202111345800.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-15
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2041-11-15
AI Technical Summary
The online voice consultation platform has low accuracy in speech recognition due to factors such as accent and noise, and the accuracy of the existing text error correction model is low, resulting in the mismatch of similar cases generated with the user's voice data, affecting the consultation effect.
By collecting user voice data, entering preset speech recognition model and text error correction model, extracting health characteristics, using clustering algorithms to classify health categories, matching similar users, calculating case similarity based on physiological and disease data, and recommending similar users.
It has improved the speech recognition accuracy and error correction accuracy of the online voice consultation platform, improved the matching and generation speed of similar cases, and improved the consultation effect.
Smart Images

Figure CN113988214B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method and device for recommending similar users based on speech recognition results. Background Art
[0002] In recent years, as living standards have gradually improved, people have begun to pay more and more attention to their physical health, and therefore the need for medical health has also increased. This has led to the rapid development and widespread dissemination of online voice consultation platforms in recent years.
[0003] During the online voice consultation process, the case with the highest similarity to the user's voice data can be obtained after analyzing the voice data provided by the user. The process of generating answers based on voice data includes: obtaining the user's voice data, converting the user's voice data into text data after recognition, and then performing error correction on the recognized text data, extracting health data from the corrected text data, and obtaining cases matching the user's voice data based on the similarity between health data and cases. During the online voice consultation process, due to the influence of factors such as accent, noise, and unclear pronunciation, the accuracy of voice recognition is not high, so it is necessary to perform error correction on the voice recognition results, but the current text error correction model is less accurate, so that the generated similar cases do not match the user's voice data. In addition, in the process of obtaining similar cases in online voice consultation, due to the large number of cases, if all of them are compared with the user's case similarity, the online voice consultation platform will generate similar cases at a slower speed, resulting in poor consultation results of the online voice consultation platform. In the process of obtaining similarity with other cases based on the user's health data, using unreasonable methods to obtain case similarity will also lead to the problem that the obtained similar cases do not match the user's voice data, and will also result in poor consultation results of the online voice consultation platform. Summary of the invention
[0004] The present invention provides a similar user recommendation method and device based on speech recognition results, so as to solve the problem of poor consultation effect of online voice consultation platform in the prior art.
[0005] The similar user recommendation method based on speech recognition results provided by the present invention comprises:
[0006] Collecting speech data of a target user, inputting the speech data of the target user into a preset speech recognition model, and obtaining a target speech recognition result;
[0007] Inputting the target speech recognition result into a preset text error correction model, obtaining target text data, extracting health features of the target text data, and obtaining health data of a target user, wherein the health data includes a plurality of health features;
[0008] Acquire health data of all users, and classify the health data of all users into health categories using a clustering algorithm to obtain health classification results, wherein the health classification results include multiple health categories;
[0009] Acquire the health category of the target user according to the health data of the target user and the health classification result, match the user to be recommended according to the health category of the target user, and the health category of the target user is the same as the health category of the user to be recommended;
[0010] The case similarity between the target user and the user to be recommended is obtained, and similar users are recommended based on the case similarity.
[0011] Optionally, obtaining the case similarity between the target user and the user to be recommended includes:
[0012] According to preset data categories, the health data of the target user and the health data of the to-be-recommended user are respectively classified and processed to obtain a first classification result and a second classification result;
[0013] The case similarity is obtained according to the first classification result and the second classification result, the preset data category includes physiological data and disease data, the first classification result includes first physiological data and first disease data, and the second classification result includes second physiological data and second disease data.
[0014] Optionally, obtaining the case similarity according to the first classification result and the second classification result includes:
[0015] Obtaining the distance between the first physiological data and the second physiological data to obtain a target physiological similarity;
[0016] Obtaining the distance between the first disease data and the second disease data to obtain the target disease similarity;
[0017] The case similarity is obtained according to the target physiological similarity and the target disease similarity.
[0018] Optionally, before obtaining the case similarity according to the target physiological similarity and the target disease similarity, the step further includes:
[0019] Performing data category classification processing on the health data of all users according to the preset data category to obtain third physiological data and third disease data;
[0020] Classify the third disease data into disease categories according to preset disease categories to obtain multiple disease category data;
[0021] Acquire disease benchmark data, and perform abnormal analysis on the disease category data according to the disease benchmark data to obtain abnormal data;
[0022] The distance between the abnormal data and the physiological data corresponding to the abnormal data under the same preset disease category is obtained to obtain the correlation between the abnormal data and the physiological data.
[0023] Optionally, obtaining case similarity according to the target physiological similarity and the target disease similarity includes:
[0024] Performing the abnormality analysis process on the first disease data according to the disease benchmark data to obtain target abnormality data;
[0025] According to the correlation between the abnormal data and the physiological data and the target abnormal data, the correlation between the target abnormal data and the physiological data is obtained to obtain a target correlation, and a physiological weight and a disease weight are set according to the target correlation;
[0026] Determining a physiological evaluation parameter according to the physiological weight and the physiological similarity, and determining a disease evaluation parameter according to the disease weight and the disease similarity;
[0027] Determining the case similarity according to the physiological evaluation parameter and the disease evaluation parameter;
[0028] The mathematical expression of the case similarity is:
[0029] S=S1*M1+S2*M2;
[0030] The S is the case similarity, the S1 is the physiological similarity, the M1 is the physiological weight, the S2 is the disease weight, and the M2 is the disease similarity.
[0031] Optionally, before inputting the target user's voice data into a preset voice recognition model, the method further includes:
[0032] Acquire sample speech data to form a first sample data set, construct an initial recognition model, use the first sample data set to train the initial recognition model, and acquire a preset speech recognition model;
[0033] Sample text data is obtained to form a second sample data set, an initial error correction model is constructed, and the initial error correction model is trained using the second sample data set to obtain a preset text error correction model.
[0034] Optionally, the acquiring sample text data to form a second sample data set includes:
[0035] Obtaining text annotation results of the sample speech data;
[0036] Adding noise to the sample speech data to obtain noisy speech data;
[0037] Performing speech recognition processing on the noisy speech data to obtain a speech recognition result;
[0038] The text annotation result and the speech recognition result are deduplicated to obtain sample text data to form a second sample data set.
[0039] The present invention also provides a similar user recommendation device based on speech recognition results, comprising:
[0040] A speech recognition module is used to collect speech data of a target user, input the speech data of the target user into a preset speech recognition model, and obtain a target speech recognition result;
[0041] A feature extraction module, used to input the target speech recognition result into a preset text error correction model, obtain target text data, extract health features of the target text data, and obtain health data of a target user, wherein the health data includes a plurality of health features;
[0042] A classification module, used to obtain health data of all users, classify the health data of all users into health categories using a clustering algorithm, and obtain health classification results, wherein the health classification results include multiple health categories;
[0043] a matching module, configured to obtain a health category of the target user according to the health data of the target user and the health classification result, and match the user to be recommended according to the health category of the target user, wherein the health category of the target user is the same as the health category of the user to be recommended;
[0044] The recommendation module is used to obtain the case similarity between the target user and the user to be recommended, and recommend similar users based on the case similarity. The speech recognition module, the feature extraction module, the classification module, and the matching module are connected to the recommendation module.
[0045] The present invention also provides a device including a memory, a processor, and a computer program stored in the memory and executable on the processor, so as to enable the electronic device to execute the similar user recommendation method based on speech recognition results.
[0046] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the similar user recommendation method based on speech recognition results is implemented.
[0047] As described above, the present invention provides a similar user recommendation method and device based on speech recognition results, which has the following beneficial effects: by acquiring sample speech data, a preset speech recognition model is established according to the sample speech data; speech recognition is performed on the sample speech data to acquire sample text data, and a preset text error correction model is established according to the sample text data; by establishing a preset speech recognition model with high recognition accuracy and a preset text recognition model with high error correction accuracy, the accuracy of user speech recognition on the online speech consultation platform is improved, thereby achieving the purpose of improving the effect of online speech consultation; then the speech data of the target user is collected, and it is input into the preset speech recognition model and the preset text correction model in sequence. Wrong model, obtain target text data; extract the health characteristics of the target text data to obtain the health data of the target user, and obtain the health category of the target user according to the health data of the target user; match the user to be recommended according to the health category of the target user, obtain the case similarity between the target user and the user to be recommended, and recommend similar users according to the case similarity; extract health data according to the target text data, and classify the health data to obtain the corresponding health category, on this basis, adopt a reasonable method to obtain case similarity, improve the speed of the online voice consultation platform to generate similar cases and the matching degree between similar cases and user voice data, thereby improving the consultation effect of the online voice consultation platform. In addition, the present invention takes into account the contribution of physiological data and disease data to case similarity when obtaining case similarity, so that the obtained case similarity is more accurate; by adopting a reasonable method to obtain the case similarity between the target user and the user to be recommended, the matching degree between similar cases and user voice data is improved, thereby improving the consultation effect of the online voice consultation platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art 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.
[0049] Figure 1 is a flow chart of a similar user recommendation method based on speech recognition results in an embodiment of the present invention;
[0050] Figure 2 is a flowchart of a method for obtaining a second sample data set in an embodiment of the present invention;
[0051] Figure 3 It is a flowchart of a method for obtaining a preset text error correction model in an embodiment of the present invention;
[0052] Figure 4is a flow chart of a method for obtaining case similarity in an embodiment of the present invention;
[0053] Figure 5 is a module diagram of a similar user recommendation device based on speech recognition results in an embodiment of the present invention;
[0054] Figure 6 Schematic diagram of the structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION
[0055] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0056] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0057] In order to illustrate the technical solution of the present invention, a specific embodiment is provided below for illustration. Specific embodiments
[0059] Figure 1 It is a flowchart of a similar user recommendation method based on speech recognition results provided in one embodiment of the present invention.
[0060] like Figure 1 As shown, the similar user recommendation method based on speech recognition results includes steps S110-S150:
[0061] S110, collecting voice data of a target user, inputting the voice data of the target user into a preset voice recognition model, and obtaining a target voice recognition result;
[0062] S120, inputting the target speech recognition result into a preset text error correction model, acquiring target text data, extracting health features of the target text data, and acquiring health data of the target user;
[0063] S130, obtaining health data of all users, and classifying the health data of all users into health categories using a clustering algorithm to obtain health classification results;
[0064] S140, obtaining a health category of the target user according to the health data of the target user and the health classification result, and matching a user to be recommended according to the health category of the target user;
[0065] S150, obtaining case similarities between the target user and the user to be recommended, and recommending similar users according to the case similarities.
[0066] In step S110 of this embodiment, before the voice data of the target user is input into the preset voice recognition model, it is necessary to establish a preset voice recognition model. The specific implementation method of establishing the voice recognition model includes: obtaining sample voice data, forming a first sample data set, constructing an initial recognition model, using the first sample data set to train the initial recognition model, and obtaining a preset voice recognition model. The sample voice data belongs to the field of health. The sample voice data can be labeled sample voice data, and its labeled content is the text information corresponding to the sample voice data. The sample voice data can also be unlabeled sample voice data. If the sample voice data is unlabeled sample voice data, the sample data needs to be labeled after the sample voice data is obtained.
[0067] In one embodiment, if the data amount of labeled sample voice data in the acquired sample voice data meets the preset data amount, a large amount of labeled sample voice data can be acquired, thereby avoiding the problem of large labeling workload; if the data amount of labeled sample voice data does not meet the preset data amount, the labeled sample voice data is acquired first, and then the data amount of unlabeled sample voice data is determined according to the preset data amount, and the corresponding unlabeled sample voice data is acquired; by reasonably determining the data amount of labeled sample voice data and unlabeled sample voice data, it is possible to not only meet the data amount for training speech recognition models and text error correction models, but also achieve the purpose of reducing the labeling workload.
[0068] In one embodiment, the labeling of the unlabeled sample voice data can be achieved not only by manual labeling, but also by a semi-supervised learning speech labeling method. Specifically, the unlabeled sample voice data is input into an existing speech labeling model with high speech labeling quality, so as to obtain the labeling result of the unlabeled voice data. In addition, the implementation method of labeling the unlabeled sample voice data can also include pre-training the unlabeled voice data based on the labeled sample data using an information extraction method. Specifically, the information extraction method can use algorithms such as Bootstrappig to achieve pre-training of the unlabeled voice data, so as to facilitate the recognition effect of large-scale voice data. The purpose of reducing the labeling workload can be achieved by labeling the unlabeled sample voice data in a non-manual labeling manner.
[0069] In one embodiment, the initial recognition model includes but is not limited to a convolutional neural network, a recurrent neural network, and a model combining a convolutional neural network and a recurrent neural network. In this embodiment, the initial recognition model includes a first model for feature extraction and a second model for text output, the first model is a convolutional neural network, and the second model is a recurrent neural network, wherein the recurrent neural network can be specifically a bidirectional long short-term memory network. Using the first sample data set to train the initial recognition model specifically includes dividing the first sample data set into a first training set and a first test set, inputting the first training set into the convolutional neural network, extracting the speech features of the first training set, obtaining the output result of the convolutional neural network, obtaining a speech feature data set, inputting the speech feature data set into the bidirectional long short-term memory network, and performing text information recognition on the speech feature data set, thereby obtaining a speech recognition model. The first test set is input into the trained initial recognition model to obtain a speech recognition result. If the speech recognition result does not match the text annotation of the sample speech data, a loss function is used to obtain the error between the speech recognition result and the true text annotation, and the word error back propagation is used to update the speech recognition model, thereby obtaining a speech recognition model with a higher recognition accuracy.
[0070] In one embodiment, the voice data of the target user may be the real-time voice data of the target user; the voice data of the target user is input into a preset voice recognition model with high voice recognition accuracy to obtain a target voice recognition result, so that the target voice recognition result corresponds to the text information contained in the voice data of the target user, thereby achieving the purpose of improving the consultation effect of the online voice consultation platform.
[0071] In step S120 of this embodiment, before the target speech recognition result is input into the preset text error correction model, it is necessary to establish a preset text error correction model. The specific implementation method of establishing the preset text error correction model includes: obtaining sample text data, forming a second sample data set, constructing an initial error correction model, using the second sample data set to train the initial error correction model, and obtaining the preset text error correction model. In order to improve the error correction accuracy of the text error correction model, the specific implementation method of obtaining sample text data and forming the second sample data set can be referred to. Figure 2 . Figure 2 It is a flowchart of a method for obtaining a second sample data set in one embodiment of the present invention.
[0072] like Figure 2 As shown, the method for obtaining the second sample data set may include the following steps S210-S240:
[0073] S210, obtaining text annotation results of the sample speech data;
[0074] S220, adding noise to the sample speech data to obtain noisy speech data;
[0075] S230, performing speech recognition processing on the noisy speech data to obtain a speech recognition result;
[0076] S240, performing deduplication processing on the text annotation result and the speech recognition result to obtain sample text data to form a second sample data set.
[0077] In one embodiment, the method for acquiring sample text data is: performing speech recognition on sample voice data to obtain a speech recognition result, and the speech recognition result is sample text data. In actual scenarios, voice data is affected by many factors, which make it extremely difficult to identify low-quality voice data in actual scenarios. Therefore, in the process of acquiring sample data, voice data that conforms to the actual scenario can be obtained by adding noise processing to the acquired sample voice data set, that is, low-quality voice data is obtained, and the text data contained in the low-quality voice data is identified so that more error recognition results can be obtained, and then a richer second sample data set is obtained. The text error correction model trained with this second sample data set has a higher error correction accuracy for the target voice recognition result. Specifically, the recognition method for performing speech recognition on sample voice data can adopt a public language recognition model, and the public language recognition model includes but is not limited to a convolutional neural network model, a bidirectional long short-term memory network, and a recurrent neural network model. In the process of performing speech recognition on sample speech data to obtain sample text data, a speech recognition model with lower speech recognition accuracy can be used to perform speech recognition on the sample speech data, thereby obtaining more erroneous speech recognition results. The second sample data set formed based on this has richer data volume and data type, and the text error correction model established based on this second sample data set has a stronger error correction capability.
[0078] Specifically, the speech recognition results of the sample speech data include correct recognition results and incorrect recognition results. The correct speech recognition results are the same as the text annotation results of the sample speech data. Therefore, it is necessary to deduplicate the text annotation results and speech recognition results of the sample speech data to form a second sample data set. Among them, the text information annotation of the incorrect recognition results is the same as the text information annotation of the sample speech data. Therefore, it is not necessary to repeatedly annotate the incorrect recognition results. By obtaining more speech recognition results, the problem of large annotation workload is avoided. The purpose of obtaining more incorrect recognition results is achieved by adding noise processing to the sample speech data and using a recognition method with a lower recognition accuracy to recognize the sample speech data after adding noise processing, so that the data volume of the formed second sample data set is larger.
[0079] In order to improve the error correction accuracy of the preset text error correction model, the initial error correction model is trained using the second sample data set. The specific implementation method for obtaining the preset text error correction model can be found in Figure 3 . Figure 3 It is a flowchart of a method for obtaining a preset text error correction model in one embodiment of the present invention.
[0080] like Figure 3 As shown, the method for obtaining the preset text error correction model may include the following steps S310-S350:
[0081] S310, dividing the second sample data set into a training data set and a test data set;
[0082] S320, using the training data set to train the initial error correction model, the initial error correction model being a language model;
[0083] S330, inputting the test data set into the trained initial error correction model to obtain a target test result;
[0084] S340, if the target test result does not meet the preset condition, obtaining the error between the target test result and the text annotation result according to the loss function to obtain a target error;
[0085] S350, using the target error back propagation to update the trained initial error correction model to obtain a preset text error correction model.
[0086] In one embodiment, the initial error correction model is a language model, and the language model includes a language model based on grammatical rules and a language model based on statistics. In this embodiment, a language model based on statistics is adopted. The language model based on statistics has strong applicability and does not require a large amount of manual intervention. Only a sufficiently large training corpus is needed to train the language model to obtain a target error correction model with a high error correction accuracy. The statistical-based model includes but is not limited to an N-gram model, a recurrent neural network, a bidirectional long short-term memory network, and a convolutional neural network. In this embodiment, a second sample data set is used to train a convolutional neural network to obtain a text error correction model. Specifically, the second sample data set is divided into a second training set and a second test set, the second training set is input into the convolutional neural network, the convolutional neural network is trained using forward propagation, and then the second test set is input into the trained convolutional neural network to obtain a test result. If the test result does not match the text information annotation content of the sample text data, the convolutional neural network is updated using back propagation. Using back propagation to update the convolutional neural network includes: determining the error between the predicted text and the true text according to the cross entropy loss function, and back propagating and updating the convolutional neural network according to the error between the predicted text and the true text. The convolutional neural network is updated using back propagation to obtain a text error correction model with a higher error correction accuracy. Noisy speech data is obtained by adding noise to sample speech data, and then speech recognition is performed on the noisy speech data to obtain speech recognition results, a second sample data set is formed according to the speech recognition results and the annotation results of the sample speech data, and then the second sample data set is used to train the initial error correction model to obtain a text error correction model, and a text error correction model is established based on this; by adding noise to the sample speech data and identifying the noisy speech data in a manner with low speech recognition accuracy, the purpose of obtaining more erroneous speech recognition results is achieved, thereby expanding the data volume of the second sample data set, and making the error correction ability of the text error correction model stronger; by adding noise to the sample speech data, the training data set of the text error correction model is more in line with the actual scene, so that the text error correction model is more suitable for the actual scene.
[0087] In one embodiment, by inputting the target speech recognition result into a preset text correction model with a high error correction accuracy, the target text data corresponds to the text information contained in the target user's speech data, thereby achieving the purpose of improving the consultation effect of the online voice consultation platform. The health data of the target user is a collection of health features of the target text data. The health features of the target text data can be extracted using existing health keyword extraction methods. The health data includes but is not limited to height information, weight information, age, sleep information, heart rate information, blood pressure information, blood sugar information, blood oxygen saturation information, heat consumption information, and breathing information. The health feature is one of the health data.
[0088] In step S130 of the present embodiment, clustering algorithms include but are not limited to K-means clustering algorithm and DBSCAN clustering algorithm. The K-means clustering algorithm is used to classify the health data of all users into health categories to obtain health classification results, which include multiple health categories. Specifically, the K value is set according to actual experience, and the K-means clustering algorithm is used to cluster the health data set to obtain clustering results. The clustering results include different clusters, and different clusters are marked to obtain corresponding health categories. In addition, the DBSCAN clustering algorithm can also be used to cluster the health data set to obtain multiple health categories. Specifically, the radius Eps of the health data set and the minimum number of health data MinPts are set according to actual experience, and then the DBSCAN algorithm is used to cluster the health data set to obtain clustering results. The clustering results include different clusters, and different clusters are marked to obtain corresponding health categories. For example, the health category can include normal category, sub-health category and abnormal category, then K is set to 3, and the health data of 3 users in normal health, sub-health status and abnormal health status are obtained respectively. The health data of these 3 users are used as clustering centers, and the K-means clustering algorithm is used to cluster all user health data sets to obtain 3 clusters (normal category, sub-health category and abnormal category), so as to achieve different health categories for all users through the clustering algorithm. After clustering all the health data of all users, the users are divided into different health categories, and the recommended users of the same category are matched according to the health category of the target user. It is only necessary to obtain the case similarity between the target user and the same target user category, and it is not necessary to obtain the case similarity between the target user and all other users. For example, if the health category of the target user is normal, it is only necessary to obtain the case similarity between other users and the target user under the normal category, and it is not necessary to obtain the case similarity between other users and the target user under the sub-health category and the abnormal category, which improves the acquisition speed of similar users.
[0089] In one embodiment, the rationality of the clustering results can be judged by whether the health data of different users in the same health category meet the preset conditions, and whether the health data of different users in the same health category meet the preset conditions can be judged according to the actual health status of different users; specifically, if one individual is in a healthy state and another individual is in a seriously abnormal state, and the clustering result after processing the health data set using the clustering algorithm is that the individuals in a healthy state and the individuals in a seriously abnormal state have the same corresponding health categories, then the clustering parameters of the DBSCAN algorithm, the radius Eps and the minimum number of health data MinPts or the K value of the K-means clustering algorithm can be adjusted, and the adjusted clustering parameters can be used for clustering again to obtain new clustering results, which are marked to obtain the corresponding user categories.
[0090] In step S140 of the present embodiment, the health category of the target user is the same as the health category of the user to be recommended. The user is classified according to the user's health data to obtain multiple health categories, and then the health category of the target user is obtained based on the target user's health data and the multiple health categories. The user to be recommended is determined based on the target user's health category, and the case similarity between the target user and the user to be recommended is obtained to generate similar users. It is only necessary to obtain the case similarity of users in the same health category as the target user, and there is no need to obtain the case similarity between the target user and all other users, thereby improving the speed of obtaining similar users.
[0091] In step S150 of this embodiment, the specific implementation method of obtaining the case similarity between the target user and the user to be recommended can be found in Figure 4 . Figure 4 It is a flowchart of a method for obtaining case similarity in one embodiment of the present invention.
[0092] like Figure 4 As shown, the method for obtaining case similarity may include the following steps S410-S420:
[0093] S410, obtaining the health data of the user to be recommended, and classifying the health data of the target user and the health data of the user to be recommended according to preset data categories to obtain a first classification result and a second classification result;
[0094] S420: Obtain the case similarity according to the first classification result and the second classification result.
[0095] In one embodiment, health data includes physiological data and disease data, and the preset data categories include physiological data and disease data. Physiological data includes but is not limited to height information, weight information, age, and sleep information; disease data includes but is not limited to heart rate information, blood pressure information, blood sugar information, blood oxygen saturation information, heat consumption information, and breathing information. The process of classifying the health data of the target user and the health data of the recommended user is the same, that is, the health data is divided into physiological data and disease data.
[0096] In one embodiment, the first classification result includes the first disease data and the first physiological data, and the second classification result includes the second disease data and the second physiological data. The method for obtaining the case similarity between the target user and the user to be recommended includes: obtaining the distance between the first physiological data and the second physiological data to obtain the target physiological similarity; obtaining the distance between the first disease data and the second disease data to obtain the target disease similarity; obtaining the case similarity according to the target physiological similarity and the target disease similarity. The greater the distance between the first physiological data and the second physiological data, the smaller their physiological similarity, so the target physiological similarity is the reciprocal of the first physiological data and the second physiological data, and the target disease similarity is the reciprocal of the distance between the first disease data and the second disease data.
[0097] In one embodiment, physiological similarity can be obtained based on the Euclidean distance between the first physiological data and the second physiological data, and disease similarity can be obtained based on the Euclidean distance between the first disease data and the second disease data. The Euclidean distance is the true distance between two points in the m-dimensional space, and the Euclidean distance in the two-dimensional space is the straight line segment distance between the two points.
[0098] The mathematical expression of the Euclidean distance formula in two-dimensional space is:
[0099] d 1= sqrt( (x1-x2)^2+(y1-y2)^2 );
[0100] Where M and N are two points in two-dimensional space, the coordinates of M are (x1, y1), the coordinates of N are (x2, y2), and d1 is the Euclidean distance between point M and point N;
[0101] The mathematical expression of the Euclidean distance formula in three-dimensional space is:
[0102] d2=sqrt( (x3-x4)^2+(y3-y4)^2+(z3-z4)^2 );
[0103] Among them, A and B are two points in three-dimensional space, the coordinates of A are (x3, y3, z3), the coordinates of B are (x4, y4, z4), and d2 is the Euclidean distance between point A and point B;
[0104] The n-dimensional Euclidean space is a set of points, each of which can be expressed as (x[1]x[2]…x[n]), where x (i = 12…n) is a real number called the i-th coordinate of X. The Euclidean distance d(AB) between two points A = (a[1]a[2]…a[n]) and B = (b[1]b[2]…b[n]) is mathematically expressed as:
[0105] d(AB) =sqrt [ ∑( ( a - b )^2 ) ] (i = 12…n).
[0106] Where d(AB) is the Euclidean distance between two points A and B, A = (a[1]a[2]…a[n]), B = (b[1]b[2]…b[n]), a[1] is the first coordinate of A, a[2] is the second coordinate of A, a[n] is the nth coordinate of A, b[1] is the first coordinate of B, b[2] is the second coordinate of B, and b[n] is the nth coordinate of B.
[0107] In one embodiment, the method for obtaining case similarity according to the physiological similarity and the disease similarity includes: performing abnormal analysis processing on the first disease data according to the disease baseline data to obtain target abnormal data; obtaining the correlation between the abnormal data and the physiological data, and obtaining the target correlation according to the correlation between the abnormal data and the physiological data and the target abnormal data, and setting the physiological weight and the disease weight according to the target correlation; obtaining the physiological evaluation parameter according to the physiological weight and the physiological similarity, and obtaining the disease evaluation parameter according to the disease weight and the disease similarity; determining the case similarity according to the physiological evaluation parameter and the disease evaluation parameter;
[0108] The mathematical expression of the case similarity is:
[0109] S=S1*M1+S2*M2;
[0110] The S is the case similarity, the S1 is the physiological similarity, the M1 is the physiological weight, the S2 is the disease weight, and the M2 is the disease similarity.
[0111] In one embodiment, the implementation method of obtaining the correlation between abnormal data and physiological data includes: performing data category classification processing on the health data of all users according to the preset data category to obtain third physiological data and third disease data; performing disease category classification processing on the third disease data according to the preset disease category to obtain multiple disease category data; obtaining disease baseline data, and performing abnormal analysis processing on the disease category data according to the disease baseline data to obtain abnormal data; obtaining the distance of the physiological data corresponding to the abnormal data under the same preset disease category to obtain the correlation between abnormal data and physiological data. The correlation between abnormal data and physiological data is the similarity between abnormal data and physiology. The preset disease categories include but are not limited to heart rate data category, blood pressure data category, blood sugar data category, blood oxygen saturation data category, heat consumption data category, and breathing data category. If the target user may include two or more target abnormal data, after obtaining the correlation between the corresponding abnormal data and physiological data according to the target disease category, the average value of two or more correlations corresponding to the target disease category is determined to obtain the target correlation.
[0112] In one embodiment, the greater the physiological similarity of the cases to be selected of the same preset disease category, the greater the correlation between the first physiological data and the target abnormal data. Therefore, when setting the physiological weight and the disease weight according to the correlation, the greater the correlation, the greater the physiological weight value, and the smaller the disease weight; correspondingly, the smaller the correlation, the smaller the physiological weight value, and the smaller the disease weight. When obtaining the case similarity, the contribution of physiological data and disease data to the case similarity is taken into account, so that the obtained case similarity is more accurate; by adopting a reasonable method to obtain the case similarity between the target user and the user to be recommended, the matching degree between similar cases and user voice data is improved, thereby improving the consultation effect of the online voice consultation platform.
[0113] The embodiment of the present invention provides a similar user recommendation method based on speech recognition results. The method obtains sample speech data and establishes a preset speech recognition model according to the sample speech data; performs speech recognition on the sample speech data to obtain sample text data, and establishes a preset text error correction model according to the sample text data; improves the accuracy of user speech recognition on the online voice consultation platform by establishing a speech recognition model with high recognition accuracy and a text recognition model with high error correction accuracy, thereby achieving the purpose of improving the effect of online voice consultation; then collects the speech data of the target user, inputs it into the preset speech recognition model and the preset text error correction model in turn, obtains the target text data, and generates a preset text error correction model based on the sample text data. This data; extract the health characteristics of the target text data to obtain the health data of the target user, and obtain the health category of the target user based on the health data of the target user; match the user to be recommended according to the health category of the target user, obtain the case similarity between the target user and the user to be recommended, and recommend similar users based on the case similarity; extract health data based on the target text data, and classify the health data to obtain the corresponding health category, and on this basis, adopt a reasonable method to obtain the case similarity, thereby improving the speed of generating similar cases by the online voice consultation platform and the matching degree between similar cases and user voice data, thereby improving the consultation effect of the online voice consultation platform.
[0114] Based on the same inventive concept as the similar user recommendation method based on speech recognition results, correspondingly, this embodiment also provides a similar user recommendation device based on speech recognition results. By performing noise processing on sample speech data to obtain noisy speech data, a speech recognition method with low recognition accuracy is used to recognize the noisy speech data to obtain sample text data, thereby achieving the purpose of obtaining more erroneous speech recognition results, thereby expanding the data volume of the second sample data set and improving the error correction ability of the preset text error correction model; by adopting a reasonable method to obtain the similarity between the user and the user to be recommended, the matching degree between similar cases and user speech data is improved, thereby improving the consultation effect of the online voice consultation platform.
[0115] In this embodiment, the similar user recommendation device based on speech recognition results executes the similar user recommendation method based on speech recognition results described in any of the above embodiments. The specific functions and technical effects can be referred to the above embodiments and will not be repeated here.
[0116] Figure 5 This is a module diagram of a similar user recommendation device based on speech recognition results provided by the present invention. Figure 5 As shown, the similar user recommendation device based on speech recognition results comprises: 51 a speech recognition module, 52 a feature extraction module, 53 a classification module, 54 a matching module and 55 a recommendation module.
[0117] The speech recognition module is used to collect speech data of a target user, input the speech data of the target user into a preset speech recognition model, and obtain a target speech recognition result;
[0118] A feature extraction module, used to input the target speech recognition result into a preset text error correction model, obtain target text data, extract health features of the target text data, and obtain health data of a target user, wherein the health data includes a plurality of health features;
[0119] A classification module, used to obtain health data of all users, classify the health data of all users into health categories using a clustering algorithm, and obtain health classification results, wherein the health classification results include multiple health categories;
[0120] a matching module, configured to obtain a health category of the target user according to the health data of the target user and the health classification result, and match the user to be recommended according to the health category of the target user, wherein the health category of the target user is the same as the health category of the user to be recommended;
[0121] The recommendation module is used to obtain the case similarity between the target user and the user to be recommended, and recommend similar users based on the case similarity. The speech recognition module, the feature extraction module, the classification module, and the matching module are connected to the recommendation module.
[0122] In some exemplary embodiments, the similar user recommendation device based on speech recognition results further includes:
[0123] A speech recognition model building module is used to obtain sample speech data, form a first sample data set, build an initial recognition model, use the first sample data set to train the initial recognition model, and obtain a speech recognition model;
[0124] The text error correction model building module is used to obtain sample text data, form a second sample data set, build an initial error correction model, use the second sample data set to train the initial error correction model, and obtain a text error correction model.
[0125] In some exemplary embodiments, the text error correction model building module includes:
[0126] The second sample data set acquisition unit is used to acquire the text annotation result of the sample speech data; add noise to the sample speech data to obtain noisy speech data; perform speech recognition on the noisy speech data to obtain speech recognition results; deduplicate the text annotation results and the speech recognition results to acquire sample text data to form a second sample data set.
[0127] In some exemplary embodiments, the matching module includes:
[0128] A classification unit is used to obtain the health data of the user to be recommended, perform data category classification processing on the health data of the target user and the health data of the user to be recommended according to preset data categories, obtain a first classification result and a second classification result, and obtain the case similarity according to the first classification result and the second classification result, the preset data categories include physiological data and disease data, the first classification result includes first physiological data and first disease data, and the second classification result includes second physiological data and second disease data.
[0129] In some exemplary embodiments, the matching module includes:
[0130] The case similarity acquisition unit is used to acquire the distance between the first physiological data and the second physiological data to obtain the target physiological similarity; acquire the distance between the first disease data and the second disease data to obtain the target disease similarity; and acquire the case similarity according to the target physiological similarity and the target disease similarity.
[0131] In some exemplary embodiments, the case similarity acquisition unit includes:
[0132] The association degree acquisition subunit is used to perform data category classification processing on the health data of all users according to the preset data category to obtain third physiological data and third disease data; perform disease category classification processing on the third disease data according to the preset disease category to obtain multiple disease category data; obtain disease baseline data, and perform abnormal analysis processing on the disease category data according to the disease baseline data to obtain abnormal data; obtain the physiological similarity of the physiological data corresponding to the abnormal data under the same preset disease category to obtain the association degree between the abnormal data and the physiological data;
[0133] A case similarity acquisition subunit is used to perform abnormal analysis processing on the first disease data according to the disease benchmark data to obtain target abnormal data; obtain target correlation according to the correlation between abnormal data and physiological data and the target abnormal data, and set physiological weight and disease weight according to the target correlation; determine physiological evaluation parameters according to the physiological weight and the physiological similarity, and determine disease evaluation parameters according to the disease weight and the disease similarity; determine the case similarity according to the physiological evaluation parameters and the disease evaluation parameters;
[0134] The mathematical expression of the case similarity is:
[0135] S=S1*M1+S2*M2;
[0136] The S is the case similarity, the S1 is the physiological similarity, the M1 is the physiological weight, the S2 is the disease weight, and the M2 is the disease similarity.
[0137] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0138] This embodiment further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, any one of the methods in this embodiment is implemented.
[0139] In one embodiment, see Figure 6 This embodiment also provides an electronic device 600, including a memory 601, a processor 602, and a computer program stored in the memory and executable on the processor, wherein the processor 602 implements the steps of the method described in any of the above embodiments when executing the computer program.
[0140] The computer-readable storage medium in this embodiment can be understood by ordinary technicians in this field: all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to the computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
[0141] The electronic device provided in this embodiment includes a processor, a memory, a transceiver and a communication interface. The memory and the communication interface are connected to the processor and the transceiver and complete communication with each other. The memory is used to store computer programs, the communication interface is used to communicate, and the processor and the transceiver are used to run the computer program so that the electronic device executes each step of the above method.
[0142] In this embodiment, the memory may include a random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0143] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0144] In the above embodiments, the description refers to "this embodiment", "an embodiment", "another embodiment", "in some exemplary embodiments" or "other embodiments" to indicate that the specific features, structures or characteristics described in conjunction with the embodiments are included in at least some embodiments, but not necessarily all embodiments. Multiple occurrences of "this embodiment", "an embodiment", "another embodiment" do not necessarily all refer to the same embodiment.
[0145] In the above embodiments, although the invention has been described in conjunction with specific embodiments of the invention, many substitutions, modifications and variations of these embodiments will be apparent to those of ordinary skill in the art based on the foregoing description. For example, other storage structures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed. Embodiments of the invention are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims.
[0146] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0147] The present invention can be used in many general or special computing system environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and the like.
[0148] The present invention may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0149] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A similar user recommendation method based on speech recognition results, characterized in that: The similar user recommendation method based on speech recognition results includes: Collecting speech data of a target user, inputting the speech data of the target user into a preset speech recognition model, and obtaining a target speech recognition result; Inputting the target speech recognition result into a preset text error correction model, obtaining target text data, extracting health features of the target text data, and obtaining health data of a target user, wherein the health data includes a plurality of health features; Acquire health data of all users, and classify the health data of all users into health categories using a clustering algorithm to obtain health classification results, wherein the health classification results include multiple health categories; Acquire the health category of the target user according to the health data of the target user and the health classification result, match the user to be recommended according to the health category of the target user, and the health category of the target user is the same as the health category of the user to be recommended; Obtaining case similarity between the target user and the user to be recommended, and recommending similar users according to the case similarity, wherein the health data of the target user and the health data of the user to be recommended are classified according to preset data categories to obtain a first classification result and a second classification result, the preset data categories include physiological data and disease data, the first classification result includes first physiological data and first disease data, and the second classification result includes second physiological data and second disease data; obtaining the distance between the first physiological data and the second physiological data to obtain the target physiological similarity; obtaining the distance between the first disease data and the second disease data to obtain the target disease similarity; According to the preset data category, the health data of all users are classified into data categories to obtain third physiological data and third disease data; according to the preset disease category, the third disease data is classified into disease categories to obtain multiple disease category data; disease benchmark data is obtained, and abnormal analysis processing is performed on the disease category data according to the disease benchmark data to obtain abnormal data; the distance between the physiological data corresponding to the abnormal data under the same preset disease category is obtained to obtain the correlation between the abnormal data and the physiological data; Performing the abnormality analysis process on the first disease data according to the disease benchmark data to obtain target abnormality data; Acquire a target correlation according to the correlation between the abnormal data and the physiological data and the target abnormal data, and set a physiological weight and a disease weight according to the target correlation; Determining a physiological evaluation parameter according to the physiological weight and the physiological similarity, and determining a disease evaluation parameter according to the disease weight and the disease similarity; The case similarity is determined according to the physiological evaluation parameters and the disease evaluation parameters.
2. The similar user recommendation method based on speech recognition results according to claim 1, characterized in that: The mathematical expression of the case similarity is: S=S1*M1+S2*M2; The S is the case similarity, the S1 is the physiological similarity, the M1 is the physiological weight, the S2 is the disease weight, and the M2 is the disease similarity.
3. The similar user recommendation method based on speech recognition results according to claim 1, characterized in that: Before inputting the target user's voice data into a preset voice recognition model, the method further includes: Acquire sample speech data to form a first sample data set, construct an initial recognition model, use the first sample data set to train the initial recognition model, and acquire a preset speech recognition model; Sample text data is obtained to form a second sample data set, an initial error correction model is constructed, and the initial error correction model is trained using the second sample data set to obtain a preset text error correction model.
4. The similar user recommendation method based on speech recognition results according to claim 3 is characterized in that: The acquiring of sample text data to form a second sample data set includes: Obtaining text annotation results of the sample speech data; Adding noise to the sample speech data to obtain noisy speech data; Performing speech recognition processing on the noisy speech data to obtain a speech recognition result; The text annotation result and the speech recognition result are deduplicated to obtain sample text data to form a second sample data set.
5. A similar user recommendation device based on speech recognition results, characterized in that: The similar user recommendation device based on speech recognition results comprises: A speech recognition module is used to collect speech data of a target user, input the speech data of the target user into a preset speech recognition model, and obtain a target speech recognition result; A feature extraction module, used to input the target speech recognition result into a preset text error correction model, obtain target text data, extract health features of the target text data, and obtain health data of a target user, wherein the health data includes a plurality of health features; A classification module, used to obtain health data of all users, classify the health data of all users into health categories using a clustering algorithm, and obtain health classification results, wherein the health classification results include multiple health categories; a matching module, configured to obtain a health category of the target user according to the health data of the target user and the health classification result, and match the user to be recommended according to the health category of the target user, wherein the health category of the target user is the same as the health category of the user to be recommended; A recommendation module, used to obtain the case similarity between the target user and the user to be recommended, and recommend similar users based on the case similarity, wherein the health data of the target user and the health data of the user to be recommended are classified into data categories according to preset data categories to obtain a first classification result and a second classification result, the preset data categories include physiological data and disease data, the first classification result includes first physiological data and first disease data, and the second classification result includes second physiological data and second disease data; obtain the distance between the first physiological data and the second physiological data to obtain the target physiological similarity; obtain the distance between the first disease data and the second disease data to obtain the target disease similarity; perform data category classification on the health data of all users according to the preset data categories to obtain third physiological data and third disease data; according to The third disease data is classified into disease categories according to the preset disease categories to obtain multiple disease category data; disease benchmark data is obtained, and the disease category data is analyzed and processed abnormally according to the disease benchmark data to obtain abnormal data; the distance between the physiological data corresponding to the abnormal data under the same preset disease category is obtained to obtain the correlation between the abnormal data and the physiological data; the first disease data is analyzed and processed abnormally according to the disease benchmark data to obtain target abnormal data; the target correlation is obtained according to the correlation between the abnormal data and the physiological data and the target abnormal data, and the physiological weight and the disease weight are set according to the target correlation; the physiological evaluation parameters are determined according to the physiological weight and the physiological similarity, and the disease evaluation parameters are determined according to the disease weight and the disease similarity; the case similarity is determined according to the physiological evaluation parameters and the disease evaluation parameters; The speech recognition module, the feature extraction module, the classification module, the matching module and the recommendation module are connected.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 4 is implemented.
7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
