Service content monitoring method, device, electronic device and storage medium

Through speech recognition and character matching technology, service content keywords in home care services are extracted, which solves the problem of video surveillance occupying large storage space and achieves efficient service content monitoring.

CN112331207BActive Publication Date: 2024-08-30YINSHUHUIYUAN (SHANGHAI) INTELLIGENT TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202011060127.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-30
Publication Date
2024-08-30
Estimated Expiration
2040-09-30

AI Technical Summary

Technical Problem

In existing home care services, the method of determining service content through video surveillance requires a large storage space, resulting in a waste of storage space.

Method used

A service content monitoring method is adopted to obtain the service term set and the speech to be recognized, use the pre-trained speech recognition model to perform speech recognition, generate an index network, and determine the service terms that match the speech to be recognized through character matching, thereby extracting Target keywords to determine service content.

Benefits of technology

It effectively saves storage space, improves the accuracy and efficiency of service content monitoring, and is more economical than traditional video monitoring methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112331207B
    Figure CN112331207B
Patent Text Reader

Abstract

The present application relates to a service content monitoring method, device and electronic device. The method includes: obtaining a service term set and a voice to be recognized; the service term set includes multiple service terms; recognizing the voice to be recognized based on a pre-trained voice recognition model to obtain an index network; determining the service term matching the voice to be recognized by character matching the index network and the service term set; extracting target keywords from the service term matching the voice to be recognized; and determining the service content based on the target keywords. The use of this method can make up for the information loss caused by monitoring the service content based on video in protection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of home-based elderly care technology, and in particular to a service content monitoring method, device, electronic device and storage medium. Background Art

[0002] With the increasing number of elderly people, home-based elderly care services have emerged. Home-based elderly care services are provided by professionally trained service personnel to provide elderly care services for a certain period of time at home.

[0003] When service personnel provide home-based elderly care services to elderly people at home, the elderly care service manager first needs to confirm whether the service personnel provide the preset service content to the elderly at home as agreed. At present, the behavior of service personnel is mainly monitored continuously by video surveillance equipment, and the service content of service personnel is determined based on the surveillance video. However, since the storage space occupied by surveillance videos is large, the method of determining the service content through surveillance videos requires a large storage space. Summary of the invention

[0004] Based on this, it is necessary to provide a service content method, device, electronic device and storage medium that can save storage space in response to the above technical problems.

[0005] A service content monitoring method, the method comprising:

[0006] Obtaining a service term set and a speech to be recognized; the service term set includes a plurality of service terms;

[0007] Recognize the speech to be recognized based on a pre-trained speech recognition model to obtain an index network;

[0008] Determining a service term that matches the speech to be recognized by performing character matching on the index network and the service term set;

[0009] Extracting target keywords from the service terms that match the speech to be recognized;

[0010] The service content is determined according to the target keyword.

[0011] In one embodiment, the training step of the speech recognition model includes:

[0012] Acquire a sample text and a pronunciation dictionary corresponding to the sample speech; the sample text includes at least one word to be annotated;

[0013] Pronunciation annotation is performed on the word to be annotated according to the pronunciation dictionary to obtain a label sequence;

[0014] The speech recognition model is trained based on the sample speech and the corresponding label sequence.

[0015] In one embodiment, the pronunciation dictionary includes pronunciation segmented words and corresponding pronunciation tags; and the pronunciation tagging of the segmented words to be tagged according to the pronunciation dictionary includes:

[0016] Performing segmentation matching on the word to be marked and the pronunciation dictionary, and judging whether there is a pronunciation segmentation matching the word to be marked in the pronunciation dictionary based on the segmentation matching result;

[0017] When there is a pronunciation segmentation matching the segmentation to be marked in the pronunciation dictionary, marking the segmentation to be marked according to the pronunciation label corresponding to the matching pronunciation segmentation;

[0018] When there is no pronunciation segmentation matching the segmentation to be marked in the pronunciation dictionary, segmenting the segmentation to be marked based on a preset rule to obtain segmentation fragments;

[0019] The word segment is used as the word segment to be marked, and the step of matching the word segment to be marked with the pronunciation dictionary is returned until a pronunciation word segment matching the word segment to be marked exists in the pronunciation dictionary.

[0020] In one embodiment, the speech recognition model includes a speech separation enhancement model and a target recognition model; the training steps of the speech recognition model include:

[0021] Obtaining a first loss function of a speech separation enhancement model and a second loss function of a target recognition model;

[0022] Performing back propagation based on the second loss function to train an intermediate model bridged between the speech separation enhancement model and the target recognition model to obtain a robust representation model;

[0023] The first loss function and the second loss function are combined to obtain a target loss function;

[0024] The speech separation enhancement model, the robust representation model and the target recognition model are jointly trained based on the target loss function, and the training is terminated when a preset convergence condition is met.

[0025] In one embodiment, the identifying the speech to be identified based on the pre-trained speech recognition model to obtain the index network includes:

[0026] Extracting speech features of the speech to be recognized, and determining the pinyin of each word in the speech to be recognized based on the speech features; the pinyin is composed of one to multiple sound units;

[0027] Determine the mapping relationship between the sound unit in the pinyin and the corresponding ambiguous sound;

[0028] Determine a candidate character sequence according to the pronunciation dictionary and the mapping relationship;

[0029] An index network is generated based on the candidate text sequence.

[0030] In one embodiment, determining the service term that matches the speech to be recognized by character matching the index network and the service term set includes:

[0031] Determine the service term that matches each candidate character sequence in the index network by performing character matching between the index network and the service term set;

[0032] Calculate the offset distance of each candidate text sequence relative to the matching service term;

[0033] Filtering a target character sequence from the candidate character sequences based on the offset distance;

[0034] The service terms matching the target text sequence are determined as service terms matching the speech to be recognized.

[0035] In one embodiment, the method further comprises:

[0036] Determine all the target keywords extracted;

[0037] Determine the generation time of each target keyword;

[0038] A care report is generated based on the generation time and the target keyword.

[0039] A service content monitoring device, the device comprising:

[0040] An index network generation module is used to obtain a service term set and a speech to be recognized; the service term set includes a plurality of service terms; the speech to be recognized is recognized based on a pre-trained speech recognition model to obtain an index network;

[0041] The target keyword extraction module is used to determine the service terms that match the speech to be recognized by performing character matching on the index network and the service term set; and extract the target keyword from the service terms that match the speech to be recognized.

[0042] The service content determination module is used to determine the service content according to the target keyword.

[0043] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0044] Obtaining a service term set and a speech to be recognized; the service term set includes a plurality of service terms;

[0045] Recognize the speech to be recognized based on a pre-trained speech recognition model to obtain an index network;

[0046] Determining a service term that matches the speech to be recognized by performing character matching on the index network and the service term set;

[0047] Extracting target keywords from the service terms that match the speech to be recognized;

[0048] The service content is determined according to the target keyword.

[0049] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0050] In the process of home-based elderly care services, a service term set and a voice to be recognized are obtained; the service term set includes a plurality of service terms;

[0051] Recognize the speech to be recognized based on a pre-trained speech recognition model to obtain an index network;

[0052] Determining a service term that matches the speech to be recognized by performing character matching on the index network and the service term set;

[0053] Extracting target keywords from the service terms that match the speech to be recognized;

[0054] The service content of the home-based elderly care service is determined according to the target keywords.

[0055] The above-mentioned service content monitoring method, device, electronic device and storage medium can perform speech recognition on the speech to be recognized based on the pre-trained speech recognition model by acquiring the service term set and the speech to be recognized, and obtain an index network containing multiple candidate recognition results; by performing character matching on the index network and the service term set, the service term that best represents the speech to be recognized can be screened out from the service term set, so that the target keyword extracted based on the service term that best represents the speech to be recognized is more accurate; by extracting the target keyword, the service content can be determined according to the meaning of the target keyword, so that the service content of the service personnel can be effectively monitored. Since the present application monitors the service content based on voice with a small storage space, compared with the traditional video-based content monitoring, the present application can effectively save the storage space consumed when monitoring the service content. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 An application environment diagram of a service content monitoring method in an embodiment;

[0057] Figure 2 A flowchart of a service content monitoring method in one embodiment;

[0058] Figure 3 A schematic diagram of an index network in an embodiment;

[0059] Figure 4 A flowchart of a method for training a speech recognition model in one embodiment;

[0060] Figure 5 is a structural block diagram of a service content monitoring device in one embodiment;

[0061] Figure 6 FIG. 4 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION

[0062] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0063] The service content monitoring method provided in this application can be applied to Figure 1In the application environment shown. Among them, the microphone box 102 communicates with the host box 104 through the network. In the process of the service personnel providing home-based elderly care services for the elderly at home, the microphone box 102 is worn by the service personnel to capture the voice of the service personnel and recognize the voice to obtain the target keyword. When the target keyword is consistent with the service item currently executed by the service personnel, it is determined that the service personnel has executed the service item. The microphone box 102 sends the target service keyword to the host box 104, and the host box 104 stores the target keyword accordingly.

[0064] In one embodiment, Figure 2 As shown, a service content monitoring method is provided, which is applied to Figure 1 Take the microphone box in the example as an example, including the following steps:

[0065] S202, obtaining a service term set and a speech to be recognized.

[0066] The service phrase set refers to a set containing at least one service phrase. Service phrases refer to the respectful and friendly standard terms used by service personnel and service recipients in language communication during home-based elderly care services. For example, service phrases may be "Is the water temperature suitable?" or "We are now providing you with a hair washing service." The voice to be recognized refers to the audio information collected by the microphone box in real time.

[0067] Specifically, when it is determined that the service personnel have begun to provide home-based elderly care services to the elderly at home, the Mike Box obtains a set of service terms and collects audio information in real time to obtain the voice to be recognized.

[0068] In one embodiment, the host box pre-stores the correspondence between service items and service term subsets, and different service term subsets correspond to different service items. Service items refer to the service content that service personnel should provide during the entire home-based elderly care service process, such as shampooing, massage, etc. It is easy to understand that during the entire home-based elderly care service process, service personnel can provide a variety of different service items for the service recipients. The service term subset refers to the standardized terms associated with the service items that service personnel should use in the process of executing the service items.

[0069] Before providing home-based elderly care services to the service recipients, the service personnel can agree with the service recipients on the service items to be provided, and generate order data based on the agreed elderly care service items. In this way, Mike Box can obtain the corresponding subset of service terms based on the elderly care service items in the order data, and generate a service term set based on the obtained service term subset.

[0070] In one embodiment, the order data includes service items and service time of each service item. The host box obtains the order data and obtains the corresponding service term set based on the service items in the order data. The host box determines the service content that the service personnel should perform at the current moment according to the service time in the order data, and displays the service terms associated with the service content on the local screen accordingly, so that the service personnel can use standard terms to communicate with the service object according to the screen prompt information.

[0071] S204: Recognize the speech to be recognized based on the pre-trained speech recognition model to obtain an index network.

[0072] Among them, speech recognition is to convert the input speech signal into the corresponding text. The speech recognition model refers to a machine learning model with the ability to extract speech features. Speech features are data used to reflect audio features. Speech features can be one or more characteristic information such as timbre, pronunciation, spectrum, etc.

[0073] Specifically, a speech recognition model is preset in the microphone box. The speech recognition model includes an endpoint detection sub-model, an acoustic sub-model and a language sub-model. Among them, the endpoint detection sub-model is used to separate speech signals from non-speech signals. The endpoint detection sub-model performs frame processing on the speech to be recognized, and extracts the characteristic parameters of the speech frame, and determines the speech segment and the non-speech segment based on the characteristic parameters of the speech frame. More specifically, the speech segment and the non-speech segment can be determined based on short-time energy and zero-crossing rate, information entropy, short-time energy frequency value, template matching, etc.

[0074] The acoustic submodel is a model used to describe the connection between speech features and speech modeling units, and is an important part of the speech recognition system. Traditional speech recognition models generally use the GMM-HMM (Gaussian Mixture Models-Hidden Markov Model) acoustic model, in which GMM models the distribution of speech acoustic features and HMM models the timing of speech signals. However, GMM is essentially a shallow network model, and its ability to describe the distribution of acoustic feature state controls is weak. When the training speech data is relatively large, the speech recognition accuracy is low. This application uses CNN-HMM (Convolutional Neural Networks-Hidden Markov Model) for acoustic modeling. CNN is a deep model that can adaptively fit the distribution of arbitrary data through its own parameter adjustment, thereby achieving a higher recognition accuracy.

[0075] After obtaining the speech segment, the acoustic sub-model extracts features from the speech segment and recognizes the speech based on the extracted feature information to obtain the pinyin sequence corresponding to the speech to be recognized. For example, when the speech to be recognized is "洗个头好吗 (xi ge tou hao ma)", the pinyin sequence obtained by the acoustic sub-model is "xi ge tou hao ma".

[0076] The language sub-model is used to predict the occurrence probability of candidate character sequences corresponding to the pinyin sequence and generate an index network based on the occurrence probability. Due to the existence of homophonic characters, when the pinyin sequence is obtained, the language sub-model determines N-1 characters through the pinyin sequence and predicts the probability of the next character based on the N-1 characters. In this way, one or more candidate character sequences corresponding to the pinyin sequence are obtained, and an index network is generated based on the obtained candidate character sequences. For example, when the pinyin sequence is "xi ge tou hao ma", the character corresponding to "xi" can be "洗 (xi)" and "西 (xi)". Based on "洗 (xi)" and "getou", the predicted character can be "个头 (ge tou)". Based on "西 (xi)" and "ge tou", the predicted character can be "跟头 (gen tou)". When the characters predicted based on "洗 (xi)", "个头 (ge tou)", "hao ma", and "西 (xi)", "跟头 (gen tou)", "hao ma" are both "好吗 (hao ma)", the generated index network is as shown in Figure 3 shown. Figure 3 In an embodiment, it is a schematic diagram of the index network. Among them, the candidate character sequence is a character sequence formed by connecting nodes and line segments starting from the start node and ending at the end node. For example, "洗个头好吗 (xi ge tou hao ma)" is a candidate character sequence.

[0077] S206. By performing character matching on the index network and the service phrase set, determine the service phrase that matches the speech to be recognized.

[0078] Specifically, Mike Box determines the service phrase matched by each candidate character sequence in the index network by performing character matching on the index network and the service phrase set, and calculates the offset distance of each candidate character sequence relative to the matched service phrase. The offset distance refers to the ratio of the number of characters not present in the matched service phrase to the number of characters present in the matched service phrase, where label symbols are not counted. For example, when the candidate character sequence is "洗个头好吗 (xi ge tou hao ma)" and the matched service phrase is "开始洗头好吗 (kai shi xi tou hao ma)", the number of characters in "洗个头好吗 (xi ge tou hao ma)" that are not present in "开始洗头好吗 (kai shi xi tou hao ma)" is 1, and the number of characters present in "开始洗头好吗 (kai shi xi tou hao ma)" is 4. Therefore, the offset distance is 1 / 4. Mike Box takes the candidate character sequence with the smallest offset distance as the target character sequence and determines the service phrase matched by the target character sequence as the service phrase that matches the speech to be recognized.

[0079] In one embodiment, the Mike box analyzes the order data to obtain all the service items that should be performed for the current home-based elderly care service, and determines the specific service time period of each service item. When an index network corresponding to the voice to be recognized is generated, the Mike box determines the acquisition time of the voice to be recognized, and based on the acquisition time and the specific service time period of each service item, determines the service item currently being performed by the service personnel. The Mike box selects the candidate service terms associated with the currently being executed service item from the service term set, and performs character matching on the candidate text sequence and the candidate service terms to obtain the service terms that each candidate text sequence matches. By determining the acquisition time of the voice to be recognized and the specific service time period of each service item, the candidate service terms associated with the currently being executed service item can be selected from the service term set, so that the Mike box only needs to perform character matching on the selected candidate service terms, without character matching on the entire service term set, thus greatly improving the matching efficiency.

[0080] S208: extracting target keywords from the service terms that match the speech to be recognized.

[0081] S210, determining service content according to target keywords.

[0082] Among them, the target keywords refer to the keywords that can represent the service items. For example, when the service content is shampooing and massage, the corresponding target keywords can be "shampooing" and "massage".

[0083] Specifically, the service manager pre-marks the target keywords in each service term, and then extracts the target keywords from the service term that matches the speech to be recognized based on the marking results. <s>、< / s> "Mark the target keyword "wash your hair" and get "start <s> shampoo< / s> OK?" service phrase, Mike Box only needs to respond to " <s>、< / s> " can be used for identification, and the target keywords can be extracted from the matching service terms, and the service content of the elderly care service can be determined based on the target keywords.

[0084] In one embodiment, when the specific service time period of each elderly care service item is determined based on the order data, and the collection time of the voice to be recognized is determined, the Mike Box determines the service item that the current service personnel should perform based on the collection time and the specific service time period, and compares the service item to be performed with the target keyword. When the service item to be performed is consistent with the target keyword, it can be determined that the service personnel is providing the corresponding home-based elderly care service in accordance with the order data.

[0085] In one embodiment, when determining the target keyword in the speech to be recognized, the microphone box sends the target keyword to the host box, and the host box stores the target keyword correspondingly. After that, the microphone box deletes the speech to be recognized to protect the privacy of service personnel and the service recipients.

[0086] In the service content monitoring method in the above home care service process, by obtaining the service term set and the speech to be recognized, the speech to be recognized can be speech-recognized based on a pre-trained speech recognition model to obtain an index network containing multiple candidate recognition results; by performing character matching on the index network and the service term set, the service term that can best represent the speech to be recognized can be screened out from the service term set, so as to effectively monitor the service content of service personnel. Since this application monitors the service content based on speech with a relatively small storage space, compared with the traditional content monitoring based on video, this application can effectively save the storage space consumed when monitoring the service content.

[0087] In one embodiment, the training steps of the speech recognition model include: obtaining a sample text and a pronunciation dictionary corresponding to the sample speech; the sample text includes at least one token to be labeled; performing pronunciation labeling on the token to be labeled according to the pronunciation dictionary to obtain a label sequence; training the speech recognition model based on the sample speech and the corresponding label sequence.

[0088] Among them, the sample speech refers to the speech data used to train the speech recognition model. The sample text refers to the text data obtained after speech recognition of the sample speech. The sample text includes positive samples and negative samples. The positive sample refers to the text data containing the target keyword, and the negative sample refers to the text data not containing the target keyword. The pronunciation dictionary refers to a dictionary used to determine the mapping relationship between the tone syllables and the initials and finals of the tokens. The pronunciation dictionary contains the pronunciations of all the characters and tokens in the sample data.

[0089] Specifically, the model trainer obtains as many sample speeches as possible and manually performs speech recognition on the sample speeches to obtain the corresponding sample texts. After that, the sample texts corresponding to the sample speeches and the pronunciation dictionary are input into the speech recognition model. The speech recognition model performs tokenization on the sample text to obtain multiple tokens to be labeled, and queries the corresponding pronunciation labels of the tokens to be labeled in the pronunciation dictionary, and performs pronunciation labeling on the tokens to be labeled based on the pronunciation labels. The microphone box combines the pronunciation labels corresponding to each token to be labeled to obtain a label sequence. For example, the labeling format of each token in the pronunciation dictionary is: initial + final + tone, 1-4 correspond to four tones, and 5 is the neutral tone. Therefore, the pronunciation label corresponding to the token to be labeled "A Jiu" can be "aa a1 j iu3".

[0090] Furthermore, the speech recognition model performs model training on the acoustic sub-model and the language sub-model based on the sample speech and the corresponding label sequence until the trained model parameters meet the preset requirements.

[0091] In one embodiment, the sample speech can be recognized and the corresponding sample text can be obtained, and the sample text can be segmented at the same time. Since the recognition accuracy of long keywords is lower than that of short keywords, in order to improve the keyword recognition accuracy, the long keywords can be split into short keywords. For example, "hair washing service" can be split into "hair washing / service", where " / " is a word separator.

[0092] In this embodiment, the pronunciation annotation of the to-be-annotated segmented words is automatically performed through a pronunciation dictionary. Compared with the traditional manual pronunciation annotation, this application can not only improve the annotation efficiency, but also save the human resources consumed in manual pronunciation annotation.

[0093] In one embodiment, pronunciation annotation of the word to be annotated according to the pronunciation dictionary includes: matching the word to be annotated with the pronunciation dictionary, and judging whether there is a pronunciation word matching the word to be annotated in the pronunciation dictionary based on the word segmentation matching result; when there is a pronunciation word matching the word to be annotated in the pronunciation dictionary, annotating the word to be annotated according to the pronunciation tag corresponding to the matching pronunciation word; when there is no pronunciation word matching the word to be annotated in the pronunciation dictionary, segmenting the word to be annotated based on preset rules to obtain word segmentation fragments; taking the word segmentation fragments as the word to be annotated, and returning to the step of matching the word to be annotated with the pronunciation dictionary until there is a pronunciation word matching the word to be annotated in the pronunciation dictionary.

[0094] The pronunciation dictionary includes pronunciation segmentation and corresponding pronunciation tags. A pronunciation segmentation refers to a single segmentation or character, and a pronunciation tag refers to the tag information obtained by marking the pronunciation segmentation in the format of initial consonant + final vowel + tone.

[0095] Specifically, the Mike Box matches the word to be marked with each pronunciation word in the pronunciation dictionary, and determines whether there is a pronunciation word matching the word to be marked in the pronunciation dictionary based on the matching result. When there is a pronunciation word identical to the word to be marked in the pronunciation dictionary, the Mike Box uses the pronunciation tag corresponding to the same pronunciation word as the marking result of the word to be marked. When there is no pronunciation word identical to the word to be marked in the pronunciation dictionary, the Mike Box segments the word to be marked based on the preset rules to obtain word segmentation fragments. For example, the preset rule can be to segment the word to be marked with the middle character as the segmentation point, so that when the word to be marked is "Liyuan Community", the word to be marked can be segmented into "Liyuan" and "Community" based on the preset rules.

[0096] Further, Mike Box takes each segmented fragment as a segmented word to be labeled, and returns the steps of matching the segmented word to be labeled with the pronunciation dictionary until there is a matching pronunciation word in the pronunciation dictionary. For example, when there is no matching pronunciation word for "Liyuan" in the pronunciation dictionary, Mike Box further divides "Liyuan" into "Li" and "Yuan", and labels "Li" and "Yuan" respectively based on the pronunciation dictionary.

[0097] In this embodiment, since the segmented word to be labeled can be continuously segmented based on the pronunciation dictionary, when the segmented word to be labeled is a rare word, label annotation can still be performed based on the segmentation dictionary.

[0098] In one embodiment, as Figure 4 shown, the training steps of the speech recognition model include:

[0099] S402, obtain the first loss function of the voice separation enhancement model and the second loss function of the target recognition model.

[0100] S404, perform backpropagation based on the second loss function to train the intermediate model bridged between the voice separation enhancement model and the target recognition model, and obtain a robust representation model.

[0101] S406, fuse the first loss function and the second loss function to obtain a target loss function.

[0102] S408, jointly train the voice separation enhancement model, the robust representation model, and the target recognition model based on the target loss function, and end the training when the preset convergence condition is met.

[0103] Among them, the speech recognition model includes a voice separation enhancement model and a target recognition model; the target recognition model includes an acoustic sub-model and a language sub-model. The voice separation enhancement model refers to a model that has voice separation and / or enhancement capabilities after training. Specifically, it can be a model that uses sample speech as training data and is trained to separate the target speech from the background interference in the sample speech. It can be understood that the voice separation enhancement model can also have the ability to perform preprocessing such as voice activity detection (VAD), echo cancellation, reverberation cancellation, or sound source localization on the speech signal, and there is no limitation on this. The target recognition model is an acoustic model that has speech recognition capabilities after training. Specifically, it can be a model that uses sample speech and a label sequence as training data and is trained to perform phoneme recognition on the sample speech. The voice separation enhancement model and the target recognition model can be pre-trained respectively. The pre-trained voice separation enhancement model and the speech recognition model each have a fixed model structure and model parameters.

[0104] Specifically, in order to further improve the recognition accuracy of the speech model, a speech separation enhancement model can be added to the speech model, and the speech model can be further trained based on the speech separation enhancement model. When joint model training is required, Mike Box obtains the pre-trained speech separation enhancement model and the target recognition model, as well as the first loss function used when pre-training the speech separation enhancement model and the second loss function used when pre-training the target recognition model. The loss function is usually associated with the optimization problem as a learning criterion, that is, the model is solved and evaluated by minimizing the loss function. The first loss function used by the pre-trained speech separation enhancement model and the second loss function used by the pre-trained speech recognition model can be specifically mean square error, mean absolute error, Log-Cosh loss, quantile loss, ideal quantile loss, etc.

[0105] The traditional approach is to split the speech processing task into two completely independent subtasks: speech separation task and target recognition task. In this way, during the training phase, the speech separation enhancement model and the target recognition model are allowed to be trained separately in a modular manner. During the production test phase, the enhanced speech separation enhancement model output is input into the target recognition model for recognition. It is easy to find that this approach does not solve the problem of differentiation between the two representation categories very well. In practical application scenarios such as home-based elderly care services, the phenomenon that the speech to be recognized is affected by background music or multiple speakers is common. In this way, the speech separation enhancement model will introduce relatively serious distortion when performing front-end speech processing, which is not considered in the training phase of the target recognition model. As a result, the independent front-end speech separation enhancement model and the back-end target recognition model are directly cascaded, which will seriously reduce the final speech recognition performance.

[0106] In order to overcome the difference between the two representation categories, the embodiment of the present application bridges the intermediate model to be trained between the speech separation enhancement model and the target recognition model. The trained intermediate model can be called a robust representation model. More specifically, the Mike Box determines the local descent gradient generated by the second loss function in each iteration process according to the preset deep learning optimization algorithm. The Mike Box backpropagates the local descent gradient to the intermediate model to update the model parameters corresponding to the intermediate model until the training is terminated when the preset training stop condition is met.

[0107] MikeBox obtains the target loss function by performing preset logical operations on the first loss function and the second loss function. Taking weighted summation as an example, assuming that the weighting factor is λ SS , then the objective loss function L = L2 + λ SSL1. The weighting factor can be a value set based on experience or experiment, such as 0.1. It is easy to find that by adjusting the weighting factor, the importance of the speech separation enhancement model can be adjusted during joint training of multiple models. MikeBox determines the global descent gradient generated by the target loss function according to the preset deep learning optimization algorithm. The deep learning optimization algorithm used to determine the local descent gradient can be the same as or different from the deep learning optimization algorithm used to determine the global descent gradient. The global descent gradient generated by the target loss function is back-propagated from the target recognition model to each network layer of the robust representation model and the speech separation enhancement model in sequence. In this process, the model parameters corresponding to the speech separation enhancement model, the robust representation model and the target recognition model are iteratively updated respectively until the training is terminated when the preset training stop condition is met.

[0108] In this embodiment, the intermediate model is trained by back propagating the second loss function of the back-end target recognition model, while the speech separation enhancement model and the target recognition model can be pre-selected and trained, so that convergence can be achieved after a small number of iterative training times. In addition, the end-to-end network model is jointly trained based on the combination of the corresponding loss functions of the front-end and back-end models, so that each individual model in the network architecture can comprehensively learn the interference features in the speech signal from the complex acoustic environment, thereby ensuring the performance of the global speech processing task and improving the accuracy of speech recognition.

[0109] In one embodiment, a speech to be recognized is recognized based on a pre-trained speech recognition model to obtain an index network, including: extracting speech features of the speech to be recognized, and determining the pinyin of each word in the speech to be recognized based on the speech features; the pinyin is composed of one to multiple sound units; determining the mapping relationship between the sound units in the pinyin and the corresponding fuzzy sounds; determining a candidate text sequence based on a pronunciation dictionary and the fuzzy sounds; and generating an index network based on the candidate text sequence.

[0110] Among them, the fuzzy sound in Pinyin can be a sound unit that is close to the pronunciation of Pinyin. The fuzzy sound can be caused by the different pronunciations of the same meaning in different dialects. The sound unit refers to the initial consonant or final consonant that constitutes Pinyin.

[0111] Specifically, when the acoustic sub-model obtains the speech to be recognized output by the speech separation enhancement model, the speech features in the speech to be recognized can be extracted based on the preset convolution kernel. For example, the pronunciation features in the speech to be recognized are extracted. At the same time, the acoustic sub-model inputs the speech features into the language sub-model, and the language sub-model determines the pinyin corresponding to each word in the speech to be recognized based on the speech features. The language sub-model obtains the fuzzy sound table, and uses the fuzzy sound table to query all the sound units in the pinyin of each word segment to obtain the sound units with fuzzy sounds, thereby establishing a mapping relationship between the sound units with fuzzy sounds and the fuzzy sounds. For example, when the sound unit is "g", the fuzzy sound determined based on the fuzzy sound table is "j".

[0112] Furthermore, the language sub-model combines the sound units and the fuzzy sounds based on the mapping relationship to obtain one or more candidate pinyins corresponding to each word segment. For example, when the sound units are "g" and "ai", and the fuzzy sounds determined based on the fuzzy sound table are "j" and "ei", the candidate pinyins obtained after the combination are "gai", "jei", "gei" and "jai". The language sub-model searches the pronunciation word segment corresponding to the candidate pinyin in the pronunciation dictionary, generates a candidate text sequence based on the pronunciation word segment corresponding to each word in the speech to be recognized, and generates an index network based on the candidate text sequence.

[0113] In this embodiment, due to the influence of dialects, the recognition results of the speech recognition model for the same word segmentation may be different. The method provided in this embodiment can obtain multiple candidate recognition results, so that the target recognition result can be determined from the multiple candidate recognition results later. In this way, the influence of dialects on the recognition results can be effectively overcome.

[0114] In one embodiment, determining the service terms that match the speech to be recognized by character matching the index network and the service term set includes: determining the service terms that match each candidate text sequence in the index network by character matching the index network and the service term set; calculating the offset distance of each candidate text sequence relative to the matching service term; filtering out a target text sequence from the candidate text sequences based on the offset distance; and determining the service terms that match the target text sequence as the service terms that match the speech to be recognized.

[0115] Specifically, Mike Box traverses each candidate text sequence in the index network, and performs character matching between the candidate text sequence and each service term in the service term set, until the service term that matches each candidate text sequence in the index network is determined. More specifically, Mike Box determines the candidate text sequence in the current traversal order, and uses the service term that has the largest number of repeated characters with the candidate text sequence in the current traversal order as the service term that matches the candidate text sequence in the current traversal order. For example, when the candidate text characters in the current traversal order are "Can I have a hair wash?", and the service terms in the service term set are "Can I start hair washing?" and "Start hair washing service?", the service term that has the largest number of repeated characters with "Can I have a hair wash?" is "Can I start hair washing?".

[0116] Furthermore, MikeBox calculates the offset distance of each candidate text sequence relative to the matching service term, takes a candidate text sequence with the smallest offset distance as a target text sequence, and determines the service term matching the target text sequence as a service term matching the speech to be recognized.

[0117] In this embodiment, since the service term with the smallest offset distance is determined as the service term corresponding to the speech to be recognized, the service term selected based on the offset distance is the language and text that best represents the speech to be recognized, and thus the target keyword determined based on the language and text that best represents the speech to be recognized is more accurate.

[0118] In one embodiment, the service content monitoring method further includes: determining all extracted target keywords; determining the generation time of each target keyword; and generating a nursing report based on the generation time and the target keyword.

[0119] Specifically, when it is determined that the home-based elderly care service has been completed, Mike Box obtains all target keywords extracted during the home-based elderly care process, and determines the generation time of each target keyword, generates a care report based on each target keyword and the generation time of each target keyword, and then sends the generated care report to the service recipient.

[0120] In this embodiment, by generating a nursing report, the family of the service recipient can understand the specific service items provided by the service personnel during the home-based elderly care service based on the nursing report.

[0121] It should be understood that although Figure 2 , 4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 ,4 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0122] In one embodiment, Figure 5 As shown, a service content monitoring device 500 is provided, comprising: an index network generation module 502, a target keyword extraction module 504 and a service content determination module 506, wherein:

[0123] The index network generation module 502 is used to obtain a service term set and a speech to be recognized; the service term set includes multiple service terms; the speech to be recognized is recognized based on a pre-trained speech recognition model to obtain an index network.

[0124] The target keyword extraction module 504 is used to determine the service terms that match the speech to be recognized by performing character matching on the index network and the service term set; and extract the target keyword from the service terms that match the speech to be recognized.

[0125] The service content determination module 506 is used to determine the service content of the service according to the target keyword.

[0126] In one embodiment, the index network generation module 502 also includes a model training module 5021, which is used to obtain sample text and a pronunciation dictionary corresponding to the sample speech; the sample text includes at least one word to be annotated; pronunciation annotates the word to be annotated according to the pronunciation dictionary to obtain a label sequence; and trains the speech recognition model based on the sample speech and the corresponding label sequence.

[0127] In one embodiment, the model training module 5021 is also used to match the to-be-annotated segmentation with the pronunciation dictionary, and determine whether there is a pronunciation segmentation matching the to-be-annotated segmentation in the pronunciation dictionary based on the segmentation matching result; when there is a pronunciation segmentation matching the to-be-annotated segmentation in the pronunciation dictionary, the to-be-annotated segmentation is annotated according to the pronunciation label corresponding to the matching pronunciation segmentation; when there is no pronunciation segmentation matching the to-be-annotated segmentation in the pronunciation dictionary, the to-be-annotated segmentation is segmented based on preset rules to obtain segmentation fragments; the segmentation fragments are used as the to-be-annotated segmentation, and the step of matching the to-be-annotated segmentation with the pronunciation dictionary is returned until there is a pronunciation segmentation matching the to-be-annotated segmentation in the pronunciation dictionary.

[0128] In one embodiment, the model training module 5021 is also used to obtain a first loss function of a speech separation enhancement model and a second loss function of a target recognition model; perform back propagation based on the second loss function to train an intermediate model bridging the speech separation enhancement model and the target recognition model to obtain a robust representation model; fuse the first loss function and the second loss function to obtain a target loss function; jointly train the speech separation enhancement model, the robust representation model and the target recognition model based on the target loss function, and terminate the training when the preset convergence conditions are met.

[0129] In one embodiment, the index network generation module 502 also includes a candidate text sequence determination module 5022, which is used to extract the speech features of the speech to be recognized, and determine the pinyin of each word in the speech to be recognized based on the speech features; the pinyin is composed of one to multiple sound units; determine the mapping relationship between the sound units in the pinyin and the corresponding fuzzy sounds; determine the candidate text sequence according to the pronunciation dictionary and the mapping relationship; and generate an index network based on the candidate text sequence.

[0130] In one embodiment, the target keyword extraction module 504 also includes an offset distance determination module 5041, which is used to determine the service terms that match each candidate text sequence in the index network by character matching the index network with the service term set; calculate the offset distance of each candidate text sequence relative to the matching service term; filter out the target text sequence from the candidate text sequence based on the offset distance; and determine the service term that matches the target text sequence as the service term that matches the speech to be recognized.

[0131] In one embodiment, the service content monitoring device 500 is further used to determine all extracted target keywords; determine the generation time of each target keyword; and generate a nursing report based on the generation time and the target keyword.

[0132] For the specific definition of the service content monitoring device, please refer to the definition of the service content monitoring method above, which will not be repeated here. Each module in the above-mentioned service content monitoring device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0133] In one embodiment, an electronic device is provided. The electronic device may be a terminal, and its internal structure diagram may be as follows: Figure 6As shown. The electronic device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a service content monitoring method is implemented. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the housing of the electronic device, or an external keyboard, touchpad or mouse, etc.

[0134] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0135] In one embodiment, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0136] Obtain a service term set and a voice to be recognized; the service term set includes multiple service terms;

[0137] Recognize the speech to be recognized based on the pre-trained speech recognition model to obtain an index network;

[0138] Determine the service term that matches the speech to be recognized by performing character matching on the index network and the service term set;

[0139] Extract target keywords from the service terms that match the speech to be recognized;

[0140] Determine service content based on target keywords.

[0141] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0142] Acquire a sample text and a pronunciation dictionary corresponding to the sample speech; the sample text includes at least one word to be annotated;

[0143] Perform pronunciation annotation on the words to be annotated according to the pronunciation dictionary to obtain a label sequence;

[0144] The speech recognition model is trained based on sample speech and corresponding label sequences.

[0145] In one embodiment, the pronunciation dictionary includes pronunciation segmentation and corresponding pronunciation tags; when the processor executes the computer program, the following steps are also implemented:

[0146] Match the word segmentation to be marked with the pronunciation dictionary, and determine whether there is a pronunciation word segmentation matching the word segmentation to be marked in the pronunciation dictionary based on the word segmentation matching result;

[0147] When there is a pronunciation word matching the word to be marked in the pronunciation dictionary, the word to be marked is marked according to the pronunciation label corresponding to the matching pronunciation word;

[0148] When there is no pronunciation segmentation matching the segmentation to be marked in the pronunciation dictionary, the segmentation to be marked is segmented based on the preset rules to obtain segmentation fragments;

[0149] The segmented word fragment is used as the segmented word to be marked, and the step of matching the segmented word to be marked with the pronunciation dictionary is returned until a pronunciation segmented word matching the segmented word to be marked exists in the pronunciation dictionary.

[0150] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0151] Obtaining a first loss function of a speech separation enhancement model and a second loss function of a target recognition model;

[0152] Back propagation is performed based on the second loss function to train an intermediate model bridging between the speech separation enhancement model and the target recognition model to obtain a robust representation model;

[0153] The first loss function and the second loss function are combined to obtain a target loss function;

[0154] The speech separation enhancement model, robust representation model and target recognition model are jointly trained based on the target loss function, and the training ends when the preset convergence conditions are met.

[0155] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0156] Extracting the speech features of the speech to be recognized, and determining the pinyin of each word in the speech to be recognized based on the speech features; the pinyin is composed of one or more sound units;

[0157] Determine the mapping relationship between the sound units in Pinyin and the corresponding ambiguous sounds;

[0158] Determine a candidate text sequence according to the pronunciation dictionary and the mapping relationship;

[0159] Generate an index network based on the candidate text sequence.

[0160] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0161] By performing character matching between the index network and the service term set, the service term that matches each candidate character sequence in the index network is determined;

[0162] Calculate the offset distance of each candidate text sequence relative to the matching service term;

[0163] Filtering a target text sequence from candidate text sequences based on an offset distance;

[0164] The service term matching the target text sequence is determined as the service term matching the speech to be recognized.

[0165] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0166] Determine all the target keywords extracted;

[0167] Determine the generation time of each target keyword;

[0168] Generate care reports based on generation time and target keywords.

[0169] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0170] Obtain a service term set and a voice to be recognized; the service term set includes multiple service terms;

[0171] Recognize the speech to be recognized based on the pre-trained speech recognition model to obtain an index network;

[0172] Determine the service term that matches the speech to be recognized by performing character matching on the index network and the service term set;

[0173] Extract target keywords from the service terms that match the speech to be recognized;

[0174] Determine service content based on target keywords.

[0175] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0176] Acquire a sample text and a pronunciation dictionary corresponding to the sample speech; the sample text includes at least one word to be annotated;

[0177] Perform pronunciation annotation on the words to be annotated according to the pronunciation dictionary to obtain a label sequence;

[0178] The speech recognition model is trained based on sample speech and corresponding label sequences.

[0179] In one embodiment, the pronunciation dictionary includes pronunciation segmentation and corresponding pronunciation tags; when the computer program is executed by the processor, the following steps are also implemented:

[0180] Match the word segmentation to be marked with the pronunciation dictionary, and determine whether there is a pronunciation word segmentation matching the word segmentation to be marked in the pronunciation dictionary based on the word segmentation matching result;

[0181] When there is a pronunciation word matching the word to be marked in the pronunciation dictionary, the word to be marked is marked according to the pronunciation label corresponding to the matching pronunciation word;

[0182] When there is no pronunciation segmentation matching the segmentation to be marked in the pronunciation dictionary, the segmentation to be marked is segmented based on the preset rules to obtain segmentation fragments;

[0183] The segmented word fragment is used as the segmented word to be marked, and the step of matching the segmented word to be marked with the pronunciation dictionary is returned until a pronunciation segmented word matching the segmented word to be marked exists in the pronunciation dictionary.

[0184] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0185] Obtaining a first loss function of a speech separation enhancement model and a second loss function of a target recognition model;

[0186] Back propagation is performed based on the second loss function to train an intermediate model bridging between the speech separation enhancement model and the target recognition model to obtain a robust representation model;

[0187] The first loss function and the second loss function are combined to obtain a target loss function;

[0188] The speech separation enhancement model, robust representation model and target recognition model are jointly trained based on the target loss function, and the training ends when the preset convergence conditions are met.

[0189] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0190] Extracting the speech features of the speech to be recognized, and determining the pinyin of each word in the speech to be recognized based on the speech features; the pinyin is composed of one or more sound units;

[0191] Determine the mapping relationship between the sound units in Pinyin and the corresponding ambiguous sounds;

[0192] Determine a candidate text sequence based on the pronunciation dictionary and the mapping relationship;

[0193] Generate an index network based on the candidate text sequence.

[0194] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0195] By performing character matching between the index network and the service term set, the service term that matches each candidate character sequence in the index network is determined;

[0196] Calculate the offset distance of each candidate text sequence relative to the matching service term;

[0197] Filtering a target text sequence from candidate text sequences based on the offset distance;

[0198] The service term matching the target text sequence is determined as the service term matching the speech to be recognized.

[0199] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0200] Determine all the target keywords extracted;

[0201] Determine the generation time of each target keyword;

[0202] Generate care reports based on generation time and target keywords.

[0203] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0204] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0205] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A service content monitoring method, characterized in that: The method comprises: Obtaining a service term set and a speech to be recognized; the service term set includes a plurality of service terms; Recognize the speech to be recognized based on a pre-trained speech recognition model to obtain an index network; By performing character matching on the index network and the service term set, a service term matching the speech to be recognized is determined; the service term is obtained by performing character matching on the index network and the candidate service term, the candidate service term is associated with a currently executed service item, the candidate service term is obtained by screening from the service term set, the currently executed service item is determined based on the collection time of the speech to be recognized and the service time period of each service item, and the service time period of the service item is obtained by analyzing order data; Extracting target keywords from the service terms that match the speech to be recognized; Determine the service content according to the target keywords; The speech to be recognized is recognized based on the pre-trained speech recognition model to obtain an index network including: Extracting speech features of the speech to be recognized, and determining the pinyin of each word in the speech to be recognized based on the speech features; Obtaining a fuzzy sound table, using the fuzzy sound table to query all sound units in the pinyin of each word segment, and obtaining a mapping relationship between the sound unit with fuzzy sound and the fuzzy sound; Combining the sound units and the fuzzy sounds based on the mapping relationship to obtain one or more candidate pinyins corresponding to each word segment; The pronunciation word segment corresponding to the candidate pinyin is searched in the pronunciation dictionary, a candidate character sequence is generated based on the pronunciation word segment corresponding to each word in the speech to be recognized, and an index network is generated according to the candidate character sequence; wherein the candidate character sequence includes N-1 characters and the next character of the N-1 characters; the N-1 characters are determined by the pinyin sequence, and the next character is predicted based on the N-1 characters.

2. The method according to claim 1, characterized in that The training steps of the speech recognition model include: Acquire a sample text and a pronunciation dictionary corresponding to the sample speech; the sample text includes at least one word to be annotated; Pronunciation annotation is performed on the word to be annotated according to the pronunciation dictionary to obtain a label sequence; The speech recognition model is trained based on the sample speech and the corresponding label sequence.

3. The method according to claim 2, characterized in that The pronunciation dictionary includes pronunciation segmented words and corresponding pronunciation tags; and the pronunciation marking of the segmented words to be marked according to the pronunciation dictionary includes: Performing segmentation matching on the word to be marked and the pronunciation dictionary, and judging whether there is a pronunciation segmentation matching the word to be marked in the pronunciation dictionary based on the segmentation matching result; When there is a pronunciation segmentation matching the segmentation to be marked in the pronunciation dictionary, marking the segmentation to be marked according to the pronunciation label corresponding to the matching pronunciation segmentation; When there is no pronunciation segmentation matching the segmentation to be marked in the pronunciation dictionary, segmenting the segmentation to be marked based on a preset rule to obtain segmentation fragments; The word segment is used as the word segment to be marked, and the step of matching the word segment to be marked with the pronunciation dictionary is returned until a pronunciation word segment matching the word segment to be marked exists in the pronunciation dictionary.

4. The method according to claim 1, characterized in that: The speech recognition model includes a speech separation enhancement model and a target recognition model; The training steps of the speech recognition model include: Obtaining a first loss function of a speech separation enhancement model and a second loss function of a target recognition model; Performing back propagation based on the second loss function to train an intermediate model bridged between the speech separation enhancement model and the target recognition model to obtain a robust representation model; The first loss function and the second loss function are combined to obtain a target loss function; The speech separation enhancement model, the robust representation model and the target recognition model are jointly trained based on the target loss function, and the training is terminated when a preset convergence condition is met.

5. The method according to claim 1, characterized in that The speech recognition is to convert the input speech signal into the corresponding text.

6. The method according to claim 1, characterized in that The determining of the service term matching the to-be-recognized speech by character matching the index network and the service term set comprises: Determine the service term that matches each candidate character sequence in the index network by performing character matching between the index network and the service term set; Calculate the offset distance of each candidate text sequence relative to the matching service term; Filtering a target character sequence from the candidate character sequences based on the offset distance; The service terms matching the target text sequence are determined as service terms matching the speech to be recognized.

7. The method according to claim 1, characterized in that The method further comprises: Determine all the target keywords extracted; Determine the generation time of each target keyword; A care report is generated based on the generation time and the target keyword.

8. A service content monitoring device, characterized in that: The device comprises: An index network generation module is used to obtain a service term set and a speech to be recognized; the service term set includes a plurality of service terms; the speech to be recognized is recognized based on a pre-trained speech recognition model to obtain an index network; A target keyword extraction module is used to determine the service terms that match the speech to be recognized by matching the index network and the service term set; extract target keywords from the service terms that match the speech to be recognized; the service terms are obtained by matching the index network with candidate service terms, the candidate service terms are associated with the service items currently being executed, the candidate service terms are screened from the service term set, the service items currently being executed are determined based on the collection time of the speech to be recognized and the service time period of each service item, and the service time period of the service item is obtained by analyzing the order data; A service content determination module, used to determine the service content according to the target keyword; The index network generation module is also used to extract the speech features of the speech to be recognized, and determine the pinyin of each word in the speech to be recognized based on the speech features; obtain a fuzzy sound table, use the fuzzy sound table to query all sound units in the pinyin of each word, and obtain a mapping relationship between the sound unit with fuzzy sound and the fuzzy sound; combine the sound unit and the fuzzy sound based on the mapping relationship to obtain one or more candidate pinyins corresponding to each word; query the pronunciation word corresponding to the candidate pinyin in the pronunciation dictionary, generate a candidate text sequence based on the pronunciation word corresponding to each word in the speech to be recognized, and generate an index network based on the candidate text sequence; wherein the candidate text sequence includes N-1 characters and the next character of the N-1 characters; the N-1 characters are determined by the pinyin sequence, and the next character is predicted based on the N-1 characters.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Voice recognition method and system

    CN103794211A

  • Speech recognition and model training method, device and computer readable storage medium

    CN111261146A

  • Home service process management system model construction method

    CN111652775A