CTC simulation training speech recognition processing method, storage medium and electronic device

Through the CTC simulation training speech recognition processing method, combined with online and offline recognition technology, dynamic correction and matching process statements have solved the problem of low speech recognition accuracy in the railway field, achieved efficient speech recognition and multiple interaction methods, and improved System intelligence level.

CN114882886BActive Publication Date: 2024-10-01CASCO SIGNAL LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210452691.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-27
Publication Date
2024-10-01
Estimated Expiration
2042-04-27

AI Technical Summary

Technical Problem

The railway field lacks standard terminology for machine assessment processes with online and offline speech recognition capabilities, resulting in low speech recognition accuracy and affecting training efficiency and user experience.

Method used

The CTC simulation training speech recognition processing method is used to form process statements by obtaining the dynamic parameters of the rail transit emergency response process. It is combined with a speech recognizer for online and offline recognition, dynamic correction and matching, and the Levenshtein-Distance algorithm and pinyin set single word matching are calculated. Confidence, dynamically construct offline command word syntax files, and realize online and offline mode switching of speech recognition.

Benefits of technology

It achieves speech recognition optimization under different network configurations, improves speech recognition accuracy and response speed, provides a variety of human-computer interaction methods, reduces software development costs, and improves system intelligence and product competitiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114882886B_ABST
    Figure CN114882886B_ABST
Patent Text Reader

Abstract

The present invention discloses a CTC simulation training speech recognition processing method, storage medium and electronic device, the method comprising: obtaining dynamic parameters of rail transit emergency handling process, and forming multiple groups of process statements according to the dynamic parameters of the emergency handling process; online collecting audio data sent by the call object, using a speech recognizer to convert the audio data into sentence text, obtaining online recognition sentences, and returning the online recognition sentences in real time; matching multiple groups of process sentences with online recognition sentences to match process sentences with confidence greater than a preset threshold from multiple groups of process sentences. The present invention can combine the characteristics of process voice events, realize standardized language machine assessment of fault emergency handling training, and improve the accuracy of system speech recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of speech recognition technology, and in particular to a CTC simulation training speech recognition processing method, a storage medium and an electronic device. Background Art

[0002] At present, the standardized terminology assessment for fault emergency response training for railway dispatching and commanding personnel is mainly based on manual subjective judgment. This method has high requirements on the professional level of instructors and low training efficiency, which invisibly increases the training cycle and cost. In addition, there are certain differences in the judgment methods of different instructors and are subject to many interference factors. Therefore, the manual assessment method lacks universality and generality.

[0003] Although speech recognition technology is now very mature, the mainstream speech recognition library has not customized a vertical engine for the railway field. The recognition effect of railway-specific terms such as train numbers, speed limits, and station names is far from practical requirements, which not only affects the normal flow of process speech events, but also reduces user experience. Since speech recognition technology involves multiple disciplines such as acoustics, linguistics, signal processing, and computer science, independent development is difficult, the workload is large, and the effect is difficult to predict. In addition, it is affected by factors such as railway network information security. Some training environments are not connected to the Internet and must have offline recognition capabilities.

[0004] Therefore, in the railway field, there is still a lack of an effective solution for standard terminology of machine assessment processes that has online and offline speech recognition capabilities and can improve the accuracy of system speech recognition. Summary of the invention

[0005] The present invention aims to solve at least one of the technical problems in the related art to a certain extent. To this end, the first object of the present invention is to provide a CTC simulation training speech recognition processing method to achieve online and offline speech recognition capabilities, and combine the characteristics of process speech events to achieve standardized language machine assessment of fault emergency response training and improve the system speech recognition accuracy.

[0006] A second object of the present invention is to provide a computer-readable storage medium.

[0007] A third object of the present invention is to provide an electronic device.

[0008] To achieve the above object, the present invention is implemented through the following technical solutions:

[0009] A CTC simulation training speech recognition processing method comprises: obtaining dynamic parameters of rail transit emergency handling process, and forming multiple groups of process statements according to the dynamic parameters of the emergency handling process; collecting audio data sent by a calling object online, converting the audio data into sentence text by a speech recognizer, obtaining online recognition sentences, and returning the online recognition sentences in real time; matching multiple groups of process statements with the online recognition sentences, so as to match process statements with a confidence level greater than a preset threshold from the multiple groups of process statements.

[0010] Optionally, when the speech recognizer returns the online recognition sentence in real time, the method further includes: the speech recognizer dynamically corrects the online recognition sentence according to the dialogue context and the relationship between the previous and next sentences in the dialogue content.

[0011] Optionally, after collecting the audio data and before converting the audio data, the method also includes: detecting the current network connection status, and if the current network connection status is in a disconnected state, switching the current online speech recognition mode to an offline speech recognition mode, so as to perform offline recognition processing on the collected audio data through the offline speech recognition mode.

[0012] Optionally, the speech recognizer is a third-party speech recognition device, and the third-party speech recognition device is configured with a public cloud. Before uploading the audio data to the speech recognizer for conversion, the method also includes: uploading hot words to the public cloud, and setting basic parameters for online speech dictation for the speech recognizer, the hot words including train number, process statement keywords and at least one of a railway term library, and the basic parameters for online speech dictation including at least one of punctuation adding parameters, language area parameters, text return format parameters and engine type parameters.

[0013] Optionally, before matching the multiple groups of process statements with the online recognition statements, the method further includes: performing online preprocessing on the process statements.

[0014] Optionally, online preprocessing of the process statement includes at least one of the following processing methods: when the process statement contains multiple train numbers, splitting the multiple train numbers; deleting items with repeated content or unreplaced dynamic parameters of the emergency response process in multiple groups of process statements; replacing characters in the process statement that do not conform to standard dispatching and command terms with Chinese characters; changing the train number to meet standard reading requirements; deleting symbols in the process statement that do not conform to dispatching and command standards.

[0015] Optionally, after the process statements are preprocessed online, the method further includes: obtaining the number of words in each group of process statements and the number of words in the online recognition statements; determining the word count difference and word count difference rate between each group of process statements and the online recognition statements according to the word count of each group of process statements and the word count of the online recognition statements, and screening out from each group of process statements several groups of process statements whose word count difference and word count difference rate both meet preset conditions, to obtain a first process statement set, wherein the preset condition is expressed by the following formula:

[0016]

[0017] Among them, Y is the number of words in the online recognition sentence, A is the word difference, and R is the word difference rate.

[0018] Optionally, after obtaining the first process statement set, the method also includes: calculating the single-word and double-word matching rates of each group of process statements in the first process statement set and the online recognition statements; screening out several groups of process statements whose single-word and double-word matching rates are greater than a first preset value from the first process statement set to obtain a second process statement set.

[0019] Optionally, after obtaining the second process statement set, the method further includes: using the Levenshtein-Distance algorithm to calculate the distance-editing similarity between each group of process statements in the second process statement set and the online recognition statement; and screening out from the second process statement set several groups of process statements whose distance-editing similarity is greater than a second preset value to obtain a third process statement set.

[0020] Optionally, the step of matching process statements with a confidence greater than a preset threshold from multiple groups of process statements includes: calculating the Pinyin set single-word matching degree between each group of process statements in the third process statement set and the online recognition statement; determining the confidence of each group of process statements based on the single-word and double-word matching rate, distance-editing similarity and Pinyin set single-word matching degree between each group of process statements in the third process statement set and the online recognition statement, and screening out process statements with a confidence greater than a preset threshold from the third process statement set as the best matching process statements.

[0021] Optionally, before performing offline recognition processing on the collected audio data by means of offline speech recognition, the method further includes: dynamically constructing an offline command word syntax file, and the offline command word syntax file is applied to the offline recognition processing of the collected audio data.

[0022] Optionally, the step of dynamically constructing an offline command word syntax file includes: receiving a voice event, identifying the voice event to obtain a corresponding text sentence, and performing offline preprocessing on the text sentence to obtain a dynamic parameter field, wherein the voice event includes a process voice event and / or a vehicle control event; obtaining a grammar file template, and using the dynamic parameter field to replace corresponding parameters in the grammar file template to dynamically construct an offline command word syntax file.

[0023] Optionally, the step of performing offline preprocessing on the text sentence to obtain the dynamic parameter field includes: performing preprocessing on the text sentence twice, wherein the first preprocessing is to perform Chinese character replacement and invalid sentence deletion on the text sentence, and the second preprocessing is to perform sentence segmentation on the text sentence after the first preprocessing to obtain multiple statement arrays; encapsulating the multiple preprocessed statement arrays into multiple rule items including rule names and rule contents, and concatenating the rule names in the multiple rule items into a sequence according to the semantics of the original text sentence to obtain the dynamic parameter field.

[0024] Optionally, the step of segmenting the text sentence after the first preprocessing includes: determining whether the current text sentence contains a train number, and if not, segmenting and saving the text sentence in groups of 16 characters; if it contains a train number, extracting the train number part, and segmenting and saving the remaining characters in groups of 16 characters.

[0025] Optionally, the dynamic parameter replacement items in the grammar file template include at least one of a self-identification header, a grammar name, a slot declaration and a dynamic parameter reserved word item, and the dynamic parameter reserved word item includes at least one of a newly added slot declaration, a grammar body, a station name and a train number.

[0026] Optionally, the step of performing offline recognition processing on the collected audio data by the offline voice recognition method includes: storing the collected audio data in an audio cache queue, retrieving the audio data from the audio cache queue, and using the voice recognizer to perform command word matching on the audio data to parse and obtain an offline recognition sentence; replacing the offline recognition sentence with a standard format of a process sentence according to a dynamically constructed offline command word syntax file,

[0027] Optionally, after storing the collected audio data in the audio cache queue and before retrieving the audio data from the audio cache queue, the method also includes: setting basic parameters for offline speech recognition of the speech recognizer, and the basic parameters for offline speech recognition include resource storage path and / or matching result return type.

[0028] To achieve the above-mentioned purpose, the second aspect of the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned CTC simulation training speech recognition processing method is implemented.

[0029] To achieve the above-mentioned purpose, the third aspect of the present invention provides an electronic device, including a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the above-mentioned CTC simulation training speech recognition processing method is implemented.

[0030] The present invention has at least the following technical effects:

[0031] (1) The present invention performs speech recognition optimization processing for both online and offline speech recognition modes according to different network configurations, so that the present invention can meet the needs of different usage scenarios and provide users with a variety of human-computer interaction methods.

[0032] (2) The present invention dynamically constructs an offline command word syntax file according to the process content and scene information, thereby meeting the recognition of process statements and offline vehicle control commands in different processes and different scenes. It is not affected by network factors and has the characteristics of fast response speed and high voice recognition accuracy.

[0033] (3) The present invention is based on speech recognition technology. The speech content of the dispatcher's conversation with other roles during the simulated fault handling process is recognized and processed and converted into text information. The voice / vehicle control event flow is carried out through the CTC simulation training platform to facilitate the completion of the machine automation standard terminology assessment.

[0034] (4) In terms of online voice dictation, the present invention optimizes the voice recognition effect mainly by uploading hot words and matching the recognition results. In the recognition result matching processing stage, text similarity comparison is performed through single-word and double-word matching, distance-editing algorithm, and pinyin set single-word matching, and the best matching process statement and confidence are calculated, so that the present invention has the characteristics of flexible recognition method and high fault tolerance.

[0035] (5) The present invention is based on the service of a third-party speech recognition library and combines the characteristics of process speech events. By optimizing the processing algorithm, the accuracy of the system speech recognition can be effectively improved, and the problem of difficult recognition of process statements can be effectively solved. In addition, the software development cost can be reduced, the system intelligence level can be improved, and the product competitiveness can be enhanced.

[0036] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1This is a speech recognition processing information flow diagram of a CTC simulation training platform provided by an embodiment of the present invention;

[0038] Figure 2 A flowchart of a CTC simulation training speech recognition processing method provided by an embodiment of the present invention;

[0039] Figure 3 A flowchart of a CTC simulation training speech online recognition processing method according to a specific example of the present invention;

[0040] Figure 4 A flowchart of online speech dictation recognition result processing provided by an embodiment of the present invention;

[0041] Figure 5 A flowchart of dynamically constructing an offline command word syntax file provided by an embodiment of the present invention;

[0042] Figure 6 A flow chart of a CTC simulation training speech offline recognition processing method according to a specific example of the present invention. DETAILED DESCRIPTION

[0043] The present embodiment is described in detail below, and examples of the embodiment are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0044] As described in the background technology, in the railway field, there is still a lack of an effective solution for machine assessment process standard terms that has online and offline speech recognition capabilities and can improve the accuracy of system speech recognition. To this end, this embodiment proposes a CTC (Centralized Traffic Conrol System) simulation training speech recognition processing method, which is applied to the CTC simulation training platform. The speech recognition processing information flow diagram of the CTC simulation training platform is as follows: Figure 1As shown. Among them, SimFAS is the simulated FAS radio software carried by the present invention, which is used to simulate the communication between the dispatcher and other roles. The SCU (student machine) sends the process content and scene-related information to SimFAS for building an offline grammar file, matching online recognition results, setting the call role button, and prompting the process flow status. SimFAS turns on the Mic recording device, obtains the user's speech content, and performs voice recognition processing according to the user's speech content. By calling the third-party voice real-time dictation / offline command word interface, the recognition result is processed by an algorithm, and the process statement most similar to the user's speech content is calculated, and the recognition result is displayed to the user through the human-computer interface, and the recognition result and confidence are returned to the SCU for the flow and automatic evaluation of voice events and vehicle control events in the process.

[0045] The following describes the CTC simulation training speech recognition processing method, storage medium and electronic device of this embodiment with reference to the accompanying drawings.

[0046] Figure 2 Flow chart of a CTC simulation training speech recognition processing method provided by an embodiment of the present invention. Figure 2 As shown, the method includes:

[0047] Step S1: Acquire dynamic parameters of rail transit emergency response process, and form multiple groups of process statements according to the dynamic parameters of the emergency response process.

[0048] Since different dispatching desks govern different stations, the section screen, CTC operation, equipment status, route status, fault information and train running status in the CTC simulation training platform change over time. Therefore, according to the dynamic changes of the emergency response process parameters, the corresponding parameters in the grammar file template can be replaced to obtain multiple groups of process statements after parameter replacement, and the multiple groups of process statements and their keywords are saved in a two-dimensional array. The multiple groups of process statements and their keywords are used for subsequent online recognition statement matching.

[0049] Step S2: collect audio data sent by the call object online, use a speech recognizer to convert the audio data into sentence text, obtain an online recognition sentence, and return the online recognition sentence in real time.

[0050] Wherein, when the speech recognizer returns the online recognition sentence in real time, the method further comprises: the speech recognizer dynamically corrects the online recognition sentence according to the dialogue context and the relationship between the upper and lower sentences of the dialogue content.

[0051] After collecting the audio data and before converting the audio data, the method also includes: detecting the current network connection status, and if the current network connection status is in a disconnected state, switching the current online speech recognition mode to the offline speech recognition mode, so as to perform offline recognition processing on the collected audio data through the offline speech recognition mode.

[0052] It should be noted that the speech recognizer is a third-party speech recognition device (such as iFlytek speech recognition device), which is configured with a public cloud. Before uploading the audio data to the speech recognizer for conversion, the method also includes: uploading hot words to the public cloud, and setting basic parameters for online speech dictation for the speech recognizer, wherein the hot words include at least one of the train number, process statement keywords, and a railway term library, and the basic parameters for online speech dictation include at least one of punctuation adding parameters, language area parameters, text return format parameters, and engine type parameters.

[0053] In this embodiment, the audio data sent by the caller can be collected online, and then the public cloud interface of a third-party speech recognition device such as iFlytek speech recognition device can be called to convert the natural language audio data into sentence text, obtain an online recognition sentence, and return the online recognition sentence in real time.

[0054] As a specific example, this specific example will combine Figure 3 The CTC simulation training speech online recognition processing method of this embodiment is described in detail with steps S21-S29.

[0055] Step S21, start the recording device, collect 16k sampling rate, 16-bit mono PCM (Pulse Code Modulation) format audio data, and store it in the audio cache queue;

[0056] Step S22, network connection status detection, if it is detected that the network connection fails, it switches to the voice offline recognition mode and ends the call process, if it is detected that the network connection is successful, it proceeds to the next step;

[0057] Step S23, uploading the train number, process statement keywords, and railway terminology library as hot words to the iFLYTEK public cloud;

[0058] Step S24, setting basic parameters of online voice dictation, such as punctuation, language region, return format, and engine type;

[0059] Step S25, taking a set of audio data from the audio cache queue, calling the iFLYTEK audio writing interface, and converting the audio data into text information based on natural language processing technology;

[0060] Step S26, after the audio data is successfully uploaded, obtain the uplink traffic for detecting the network connection status;

[0061] Step S27, determine whether there is an intermediate recognition result returned according to the flag bit. If the condition is true, read and parse the Json file returned by the speech dictation, and obtain the downlink traffic; otherwise, proceed to the next step.

[0062] Step S28, judge the end status of the recognition process. If the user actively hangs up or is automatically hung up due to silent timeout, proceed to the next step; otherwise, enter Step S25 again.

[0063] Step S29, after the recognition ends, write the last frame of empty audio, obtain and parse the final recognition result, and get the online recognition statement.

[0064] Further, before matching multiple groups of process statements with the online recognition statement, the method further includes performing online preprocessing on the process statements, that is, as Figure 4 shown, process the content of the process statements.

[0065] Among them, the online preprocessing of the process statements includes at least one of the following processing methods: when the process statement contains multiple train numbers, perform multi-train statement segmentation; delete the items with duplicate content or unsubstituted dynamic parameters of the emergency handling process in multiple groups of process statements; replace the characters that do not conform to the dispatching and command standard terms in the process statement with Chinese characters; change the train number to meet the standard reading requirements; delete the symbols that do not conform to the dispatching and command standard in the process statement.

[0066] Specifically, since the dispatcher can only call one train at a time, a voice / vehicle control event containing multiple call train numbers needs to be split into separate statements. For example, split "Driver of Train G102#G107, please stop immediately" into "Driver of Train G107, please stop immediately" and "Driver of Train G102, please stop immediately". In addition, delete the items with duplicate content and unsubstituted dynamic parameters in the process statement array, and according to the requirements of the dispatching and command standard terms, replace the special meaning characters in the process statement and keywords with Chinese characters. For example, replace "FG" with "anti-high". This embodiment also needs to replace all the numbers in the process statement with Chinese characters, and use regular expressions to delete the symbols contained in the statement to avoid affecting the matching rate, and make the train number support two readings, such as "Driver of Train High One Nine One One, please stop immediately" and "Driver of Train High One Nine One One, please stop immediately".

[0067] Step S3: Match multiple groups of process statements with the online recognition statement to match the process statements with a confidence level greater than the preset threshold from multiple groups of process statements.

[0068] Specifically, after the process statements are preprocessed online, the method further includes: obtaining the word count of each group of process statements and the word count of the online recognition statements; determining the word count difference and word count difference rate between each group of process statements and the online recognition statements according to the word count of each group of process statements and the word count of the online recognition statements, and screening out from each group of process statements several groups of process statements whose word count difference and word count difference rate both meet preset conditions, to obtain a first process statement set, wherein the preset condition is expressed by the following formula:

[0069]

[0070] Among them, Y is the number of words in the online recognition sentence, A is the word difference, and R is the word difference rate.

[0071] like Figure 4 As shown, this embodiment is a flow statement matching length limit (word length matching limit). For example, let X be the number of words in the flow statement, and Y be the number of words in the recognition result, then the word difference is A=|XY|, and the word difference rate is Then, a number of groups of process statements in which both A and R meet the above preset conditions are selected from each group of process statements.

[0072] In one embodiment of the present invention, after obtaining the first process statement set, the method also includes: calculating the single-word and double-word matching rates of each group of process statements in the first process statement set and the online recognition statements; selecting several groups of process statements whose single-word and double-word matching rates are greater than a first preset value from the first process statement set to obtain a second process statement set.

[0073] Specifically, the single-word matching rate can be set to ΔS, the double-word matching rate can be set to ΔD, and then the single-word and double-word matching rate ΔM of the process statement and the online recognition statement can be calculated as:

[0074]

[0075] Among them, let M be the number of identical single-word characters and N be the number of identical double-word characters, then:

[0076]

[0077]

[0078] Therefore, we can get:

[0079]

[0080] In this embodiment, the first preset value can be set to 0.7, that is, the process statements with ΔM≥0.7 in the first process statement set are similar to the online recognition statements, and then these process statements are screened out for the next step of operation. If ΔM of all process statements is less than 0.7, the online recognition statements are replaced back to the standard format of the process statements for output.

[0081] In one embodiment of the present invention, after obtaining the second set of process statements, the method further includes: calculating the distance-edit similarity between each group of process statements in the second set of process statements and the online recognition statements by using the Levenshtein-Distance algorithm; screening out several groups of process statements with a distance-edit similarity greater than a second preset value from the second set of process statements to obtain a third set of process statements.

[0082] Specifically, since the single and double character matching method can only calculate the character similarity of two strings, and the inverted matching rate of the statements remains unaffected, it is easy to ignore the relevance and coherence of the words in the statements. Therefore, in this embodiment, the distance-edit algorithm is introduced to calculate the minimum number of edit operations between statements, which can avoid the problem of "the same character with different meanings" and further reduce the ambiguity between the matching statements.

[0083] For example, let the string str1 be "A red light band appears on the up line between the main calling station Suzhou North and Wuxi East stations", and the string str2 be "Note that a red ribbon appears on the up line between Suzhou North Station and Wuxi East Station", and use the two-dimensional array x[i, j] to record the number of times required to convert str1 to str2. The basic steps of this algorithm are as follows:

[0084] (1) If the length of str1 or str2 is 0, the shortest edit distance returns the length of the other string;

[0085] (2) Construct the x[i, j] array matrix to save the number of conversion operations between strings. The minimum number of times to convert from str1 to str2 is matrix

[19]

[20] ;

[0086] (3) Initialize the x[i, j] array matrix, where the first row and the first column start increasing from 0, as shown in Table 1 below:

[0087] Table 1 Character comparison table of str1 and str2

[0088]

[0089]

[0090] (4) Starting from the first character "注" of str2, compare the characters from matrix[1][1] to matrix

[20] [1]. If the two characters are equal, then add 1 to matrix[i][0] and matrix[1][i - 1], and add 0 to matrix[i - 1][0]. Then:

[0091] matrix[i][1]=Min(matrix[i][0], matrix[1][i-1], matrix[i-1][0]) (6)

[0092] If the two characters are not equal, then:

[0093] matrix[i][1]=Min(matrix[i][0], matrix[1][i-1], matrix[i-1][0])+1 (7)

[0094] (5) After scanning 19 columns in sequence, the shortest edit distance matrix

[19]

[20] is 5, as shown in Table 2 below:

[0095] Table 2 The shortest edit distance calculation table of str1 and str2

[0096]

[0097]

[0098] (6) Then the distance-edit similarity between the two strings str1 and str2 is:

[0099]

[0100] In this embodiment, the second preset value can be set to 0.7 to filter out process statements with large differences in relevance and coherence between statements. If the process statement array is not empty, proceed to the next step, otherwise, replace the online recognition statement back to the process statement standard format output.

[0101] In one embodiment of the present invention, the step of matching process statements with a confidence greater than a preset threshold from multiple groups of process statements includes: calculating the Pinyin set single-word matching degree between each group of process statements in a third process statement set and the online recognition statement; determining the confidence of each group of process statements based on the single-word and double-word matching rate, distance-edit similarity and Pinyin set single-word matching degree between each group of process statements in the third process statement set and the online recognition statement, and screening out the process statements with a confidence greater than the preset threshold from the third process statement set as the best matching process statements.

[0102] Specifically, the similarity between the process statement and the online recognition statement after being processed by the Levenshtein-Distance algorithm is high, but the influence of homophones causes the single and double words and the distance-editing algorithm to match poorly, which may cause matching errors or low confidence in the final result. Therefore, the homophone error can be compensated by pinyin single word matching processing. The specific processing method is described in the following steps:

[0103] (1) Convert the process statements and their keywords and online recognition statements into pinyin sets and store them;

[0104] (2) Searching for the process statement keyword pinyin set in the online recognition statement pinyin set, if it exists, retaining the process statement, if it does not exist, removing it; after the calculation is completed, if the process statement array, i.e., the third process statement set, is empty, then replacing the online recognition statement with the process statement standard format output, otherwise proceeding to the next step;

[0105] (3) calculating the pinyin set single-word matching degree ΔP of the process statement and the online recognition statement in sequence;

[0106] (4) Take the weighted average of the single-word and double-word matching rate ΔM, the distance-editing similarity ΔT and the pinyin set single-word matching degree ΔP to obtain the matching degree, i.e., the confidence degree ΔZ:

[0107]

[0108] Among them, the item with the largest ΔZ in the third process statement set is the optimal solution, that is, the process statement closest to the online recognition statement. If the number of process statement array items in the third process statement set is not 0, the confidence is output and the process statement with the highest matching degree is output. Otherwise, the online recognition statement is replaced back to the standard process statement format output for process flow and automatic evaluation.

[0109] Figure 3 This is the flow chart of the CTC simulation training speech online recognition processing method. Figure 4 This is a flowchart for processing online speech dictation recognition results. Figure 3 and Figure 4 As shown, in this embodiment, the focus of online voice dictation is on hot words and recognition result processing. Uploading hot words helps to improve the recognition rate of proper nouns. The recognition result processing calculates the closest process standard terms through the similarity matching algorithm, which can solve the problem of disordered recognition content and greatly improve the recognition effect. In addition, when the dispatcher calls out, he first turns on the recording device, caches the audio data, and then detects whether the network status is normal, which can prevent communication failure and lead to unrecognition. Then, the hot words extracted from the process statement are uploaded to the iFlytek public cloud. The recognition process needs to obtain upload and download traffic to detect the connection status. Other interface calling methods are similar to the offline voice recognition method. Among them, the recognition result acquisition is divided into two parts: intermediate results and final results. The intermediate results are real-time recognition content dynamically corrected according to the context, which is only used to display the process recognition content to the user. The final result is the recognition statement obtained last time after the call ends. The closest process statement is calculated by the similarity algorithm. If it is not similar to all process statements, the output is replaced with the recognition content in the process standard format.

[0110] It should be noted that since iFLYTEK's voice dictation service has a poor recognition effect on railway-related proper nouns, after the online voice recognition is completed, the present invention adopts a combination of methods such as process statement preprocessing, word length restriction rules, single and double word matching, edit-distance algorithm, and pinyin set single word matching to calculate the process statement with the highest similarity to the online recognition statement. If the capacity of the process statement array is not empty after calculation, the process statement with the highest matching rate and its confidence are taken out and output to the student machine SCU. Otherwise, the online recognition statement is replaced with a process standard format output, so that the SCU performs process flow and automatic evaluation according to the output results of the simulated FAS radio software SimFAS.

[0111] Furthermore, as described above, when it is detected that the current network connection state is in a disconnected state, the current online speech recognition mode can also be switched to an offline speech recognition mode to perform offline recognition processing on the collected audio data through the offline speech recognition mode.

[0112] In one embodiment of the present invention, before performing offline recognition processing on the collected audio data by means of offline speech recognition, the method further comprises: dynamically constructing an offline command word syntax file, wherein the offline command word syntax file is applied to the offline recognition processing of the collected audio data.

[0113] Specifically, as mentioned above, since different dispatching desks govern different stations, the section screen, CTC operation, equipment status, route status, fault information and train operation status in the CTC simulation training platform change over time. Therefore, it is necessary to dynamically construct an offline command word syntax file based on the parameter replacement results and scenario information of the emergency response process to support voice recognition of process voice events, vehicle control events and vehicle control operations outside the process.

[0114] Among them, the steps of dynamically constructing the offline command word syntax file are as follows: Figure 5 As shown, including:

[0115] Step S10: receiving a voice event, recognizing the voice event to obtain a corresponding text sentence, and performing offline preprocessing on the text sentence to obtain a dynamic parameter field, wherein the voice event includes a process voice event and / or a vehicle control event.

[0116] In this embodiment, the step of performing offline preprocessing on the text sentence to obtain the dynamic parameter field includes: performing preprocessing on the text sentence twice, wherein the first preprocessing is to perform Chinese character replacement processing and invalid sentence deletion processing on the text sentence, and the second preprocessing is to perform sentence segmentation on the text sentence after the first preprocessing to obtain multiple sentence arrays.

[0117] Among them, the steps of splitting the text statement after the first preprocessing include: determining whether the current text statement contains a train number. If it does not contain a train number, the text statement is split and saved in groups of 16 characters; if it contains a train number, the train number part is extracted, and the remaining characters are split and saved in groups of 16 characters.

[0118] Furthermore, multiple statement arrays after preprocessing can be encapsulated into multiple rule items including a rule name and rule content, and according to the semantics of the original text statement, the rule names in multiple rule items are concatenated into a sequence to obtain the dynamic parameter field.

[0119] Specifically, according to the characteristics of dispatching and command terms, the process voice event and train control event statements can be preprocessed for the first time to improve the accuracy of offline speech recognition. The processing methods are as follows:

[0120] (1) Replace letters with special meanings in the railway with Chinese characters, e.g., replace S1LQ with "previous departure".

[0121] (2) Replace the hundreds value of the kilometer marker with Chinese characters, e.g., replace 800 in K1805+800 with "eight hundred".

[0122] (3) Replace the train speed limit value with Chinese characters, e.g., replace 160 with "one hundred and sixty".

[0123] (4) Replace numbers with Chinese characters, e.g., replace 2 with "two".

[0124] (5) Remove special symbols in the statement and eliminate duplicate and parameter-containing invalid statements.

[0125] Furthermore, the text statement after the first preprocessing can be preprocessed for the second time. For example, according to the rules defined in the iFlytek offline command word grammar file, the content of the process statement is split, and there are two processing methods:

[0126] (1) If the content of the text statement does not contain a train number, the whole sentence is split and saved in groups of 16 characters.

[0127] (2) If the content of the text statement contains a train number, the train number part is extracted. The train number supports two readings, e.g., "G1974" can be read as "high one nine seven four" or "high one nine guai four", and the remaining content is split and saved in groups of 16 characters.

[0128] Furthermore, the multiple statement arrays after two preprocessing can be encapsulated into multiple rules (consisting of rule names and rule contents), and the rule names of the same sentence before segmentation can be concatenated into a sequence through rule references, and the grammar file body is composed of multiple rules and sequences. In this embodiment, in the process of dynamically constructing an offline command word grammar file, reusing rule names with the same rule content can reduce software resource consumption and improve the efficiency of constructing grammar. The specific processing example is described in the following steps:

[0129] (1) Assume the sentence is: "Driver of G1805, the adjacent train has been speed-restricted, and the onboard mechanic is allowed to get off the train for inspection on the non-intersecting side."

[0130] (2) Sentence segmentation is done as follows:

[0131] ① "Gao 1805|Gao 18dong5"

[0132] ② "Second driver, the train on the adjacent line has been speed-limited, you are allowed to follow the train"

[0133] ③ “The mechanic gets off the vehicle to inspect on the non-intersecting side”

[0134] (3) Encapsulated into multiple rule items,

[0135] ① <voice11>: High school one eight zero five | High school eight holes five;

[0136] ②<voice 12> : Second driver, the train on the adjacent line has been speed-limited, and you are allowed to follow the train;

[0137] ③<voice 13> : The mechanic gets off the vehicle on the non-intersecting side for inspection;

[0138] (4) The above three rules are connected into a sequence through rule references.

[0139] <voicetext1> : <voice11><voice 12><voice 13>;

[0140] Step S20: Obtain a grammar file template, and use dynamic parameter fields to replace corresponding parameters in the grammar file template to dynamically construct an offline command word grammar file.

[0141] Among them, the dynamic parameter replacement items in the grammar file template include at least one of a self-identification header, a grammar name, a slot declaration and a dynamic parameter reserved word item, and the dynamic parameter reserved word item includes at least one of a newly added slot declaration, a grammar body, a station name and a train number.

[0142] In this embodiment, the parameter fields in the grammar file template may be replaced with the dynamic parameter fields obtained in step S10 in sequence to complete the dynamic construction of the offline command word grammar file and prepare for the offline speech recognition described below.

[0143] In one embodiment of the present invention, the step of performing offline recognition processing on the collected audio data by means of offline voice recognition includes: storing the collected audio data in an audio cache queue, retrieving the audio data from the audio cache queue, and using a voice recognizer to match command words on the audio data to parse and obtain offline recognition sentences; and replacing the offline recognition sentences with the standard format of process sentences according to a dynamically constructed offline command word syntax file.

[0144] Among them, after storing the collected audio data in the audio cache queue and before retrieving the audio data from the audio cache queue, the method also includes: the speech recognizer sets basic parameters for offline speech recognition, and the basic parameters for offline speech recognition include resource storage path and / or matching result return type.

[0145] Specifically, audio data can be collected, and then the iFLYTEK interface can be called to obtain offline recognition sentences, and the kilometer mark, speed limit value, train number, special characters and other contents in the offline recognition sentences can be replaced with the process standard format.

[0146] As a specific example, this specific example will combine Figure 6 The CTC simulation training speech offline recognition processing method of this embodiment is described in detail with steps S31-S36.

[0147] Step S31, select and construct different grammar files according to the calling object, call the train driver to construct the train control grammar, call the station attendant and other roles to construct the process statement grammar;

[0148] Step S32, start the recording device, collect 16k sampling rate, 16-bit mono PCM format audio data, and store it in the audio cache queue;

[0149] Step S33, setting basic parameters of offline speech recognition, such as resource storage path, result return type, etc.;

[0150] Step S34, taking out a group of audio data from the audio cache queue, and then calling the iFLYTEK audio writing interface, and the speech recognizer performs command word matching based on grammatical rules and speech feature information;

[0151] Step S35, judging the end status of the recognition process, if the user actively hangs up or the call is automatically hung up due to silence timeout, proceed to the next step, otherwise, proceed to step S34 again;

[0152] Step S36, after the recognition is completed, the last frame of empty audio is written, and the recognition result is obtained and analyzed to obtain the offline recognition sentence, and the offline recognition sentence is replaced with the standard format of the process sentence.

[0153] In this embodiment, since the offline speech recognition method is to match paths based on the grammar network and speech feature information, the grammar network is a necessary condition for offline speech recognition. In addition, due to the different contents of different fault handling process statements, different dynamic parameter calculation results in different scenarios, and changes in the content of process statements during the process flow, the grammar file cannot be kept consistent. Therefore, in this embodiment, SimFAS constructs a dynamic grammar file based on the process statements and scenario information sent by the SCU.

[0154] During the offline speech recognition process, when the dispatcher calls out, the recording device is first turned on to cache the audio data, and then the iFLYTEK interfaces such as user verification, grammar construction, and parameter setting are called in sequence to complete the preparation work. The cached audio is then continuously read and written into the dictation interface until the dispatcher actively hangs up or hangs up automatically after being silent for 3 seconds. The matching result of the speech recognizer is obtained through the result return interface, and finally the recognition result is replaced with the process standard format for interface display and process flow.

[0155] In summary, the present invention can optimize speech recognition for both online and offline speech recognition modes according to different network configurations, thereby meeting the needs of different usage scenarios and providing users with a variety of human-computer interaction methods; the present invention can also dynamically construct offline command word syntax files according to process content and scene information, thereby meeting the recognition of process statements and offline vehicle control commands in different processes and different scenarios, and has the characteristics of being unaffected by network factors, fast response speed and high speech recognition accuracy; the present invention can also be based on speech recognition technology, and the speech content of the conversation between the dispatcher and other roles in the process of simulating fault handling can be recognized and processed and converted into text information, and the speech / vehicle control event flow can be carried out through the CTC simulation training platform to facilitate completion. into machine automation standard terminology assessment; in addition, the present invention mainly optimizes the voice recognition effect in online voice dictation by uploading hot words and matching the recognition results. For example, in the recognition result matching processing stage, text similarity comparison is performed through single and double word matching, distance-editing algorithm, and pinyin set single word matching, and the best matching process statement and confidence are calculated, so that the present invention has the characteristics of flexible recognition method and high fault tolerance; and the present invention can also be based on the service of a third-party voice recognition library, combined with the characteristics of process voice events, and effectively improve the system voice recognition accuracy by optimizing the processing algorithm, and can effectively solve the problem that process statements are difficult to recognize, and can reduce software development costs, improve the system intelligence level, and enhance product competitiveness.

[0156] Furthermore, the present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned CTC simulation training speech recognition processing method is implemented.

[0157] Furthermore, the present invention also provides an electronic device, including a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the above-mentioned CTC simulation training speech recognition processing method is implemented.

[0158] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0159] Although the content of the present invention has been described in detail through the above preferred embodiments, it should be appreciated that the above description should not be considered as a limitation of the present invention. After reading the above content, it will be apparent to those skilled in the art that various modifications and substitutions of the present invention will occur. Therefore, the protection scope of the present invention should be limited by the appended claims. < / voicetext1>

Claims

1. A CTC simulation training speech recognition processing method, characterized in that: include: Acquire dynamic parameters of rail transit emergency response process, and form multiple groups of process statements according to the dynamic parameters of the emergency response process, wherein the dynamic parameters of the emergency response process are generated due to the changes of section screen, CTC operation, equipment status, route status, fault information and train operation status in the CTC simulation training platform over time. According to the dynamic parameters of the emergency response process, replace the corresponding parameters in the grammar file template to obtain multiple groups of process statements; Collecting audio data sent by the call object online, converting the audio data into sentence text using a speech recognizer to obtain an online recognition sentence, and returning the online recognition sentence in real time; The multiple groups of process statements are matched with the online recognition statements to obtain process statements with a confidence level greater than a preset threshold from the multiple groups of process statements.

2. The CTC simulation training speech recognition processing method according to claim 1, characterized in that: When the speech recognizer returns the online recognition sentence in real time, the method further includes: the speech recognizer dynamically corrects the online recognition sentence according to the dialogue context and the relationship between the upper and lower sentences of the dialogue content.

3. The CTC simulation training speech recognition processing method according to claim 1, characterized in that: After collecting the audio data and before converting the audio data, the method also includes: detecting the current network connection status, and if the current network connection status is in a disconnected state, switching the current online speech recognition mode to an offline speech recognition mode, so as to perform offline recognition processing on the collected audio data through the offline speech recognition mode.

4. The CTC simulation training speech recognition processing method according to claim 1, characterized in that: The speech recognizer is a third-party speech recognition device, and the third-party speech recognition device is configured with a public cloud. Before uploading the audio data to the speech recognizer for conversion, the method also includes: uploading hot words to the public cloud, and setting basic parameters of online speech dictation for the speech recognizer, the hot words include at least one of the train number, process statement keywords and railway terminology library, and the basic parameters of online speech dictation include at least one of punctuation adding parameters, language area parameters, text return format parameters and engine type parameters.

5. The CTC simulation training speech recognition processing method according to claim 1, characterized in that: Before matching the multiple groups of process statements with the online recognition statements, the method further includes: performing online preprocessing on the process statements.

6. The CTC simulation training speech recognition processing method according to claim 5, characterized in that: The online preprocessing of the process statement includes at least one of the following processing methods: when the process statement contains multiple train numbers, multiple train number statements are segmented; Delete items with duplicate content in multiple groups of process statements or unreplaced dynamic parameters of emergency response processes; Replace characters in process statements that do not conform to standard dispatch command terms with Chinese characters; change train numbers to meet standard reading requirements; Delete symbols in process statements that do not meet scheduling command standards.

7. The CTC simulation training speech recognition processing method according to claim 6, characterized in that: After the process statement is preprocessed online, the method further includes: Get the word count of each group of process statements and the word count of online recognition statements; The word count difference and word count difference rate between each group of flow statements and the online recognition statement are determined according to the word count of each group of flow statements and the word count of the online recognition statement, and a number of groups of flow statements whose word count difference and word count difference rate meet the preset conditions are screened out from each group of flow statements to obtain a first flow statement set, wherein the preset condition is expressed by the following formula: Among them, Y is the number of words in the online recognition sentence, A is the word difference, and R is the word difference rate.

8. The CTC simulation training speech recognition processing method according to claim 7, characterized in that: After obtaining the first process statement set, the method further includes: Calculating single-word and double-word matching rates between each group of flow statements in the first flow statement set and the online recognition statement; A plurality of groups of flow statements whose single-word and double-word matching rates are greater than a first preset value are screened out from the first flow statement set to obtain a second flow statement set.

9. The CTC simulation training speech recognition processing method according to claim 8, characterized in that: After obtaining the second process statement set, the method further includes: Using the Levenshtein-Distance algorithm to calculate the distance-edit similarity between each group of flow statements in the second flow statement set and the online recognition statement; A plurality of groups of flow statements whose distance-edit similarity is greater than a second preset value are screened out from the second flow statement set to obtain a third flow statement set.

10. The CTC simulation training speech recognition processing method according to claim 9, characterized in that: The step of matching and obtaining a process statement having a confidence level greater than a preset threshold from multiple groups of process statements includes: Calculating the matching degree of the pinyin set single words of each group of flow statements in the third flow statement set and the online recognition statement; The confidence of each group of process statements in the third process statement set is determined based on the single-word and double-word matching rate, distance-editing similarity and pinyin set single-word matching degree between each group of process statements in the third process statement set and the online recognition statement, and the process statements with confidence greater than a preset threshold are screened out from the third process statement set as the best matching process statements.

11. The CTC simulation training speech recognition processing method according to claim 3, characterized in that: Before performing offline recognition processing on the collected audio data by means of offline speech recognition, the method further comprises: dynamically constructing an offline command word syntax file, and the offline command word syntax file is applied to the offline recognition processing of the collected audio data.

12. The CTC simulation training speech recognition processing method according to claim 11, characterized in that: The step of dynamically constructing an offline command word syntax file includes: receiving a voice event, identifying the voice event to obtain a corresponding text sentence, and performing offline preprocessing on the text sentence to obtain a dynamic parameter field, wherein the voice event includes a process voice event and / or a vehicle control event; A grammar file template is obtained, and corresponding parameters in the grammar file template are replaced with the dynamic parameter field to dynamically construct an offline command word grammar file.

13. The CTC simulation training speech recognition processing method according to claim 12, characterized in that: The step of performing offline preprocessing on the text sentence to obtain a dynamic parameter field includes: Preprocessing the text sentence twice, wherein the first preprocessing is to replace Chinese characters and delete invalid sentences on the text sentence, and the second preprocessing is to segment the text sentence after the first preprocessing to obtain multiple sentence arrays; The preprocessed multiple statement arrays are encapsulated into multiple rule items including rule names and rule contents, and the rule names in the multiple rule items are concatenated into a sequence according to the semantics of the original text statements to obtain the dynamic parameter field.

14. The CTC simulation training speech recognition processing method according to claim 13, characterized in that: The steps of performing sentence segmentation on the text sentence after the first preprocessing include: Determine whether the current text sentence contains the train number. If not, the text sentence is divided into groups of 16 characters for storage; If the train number is included, the train number part is extracted and the remaining characters are divided into groups of 16 characters and saved.

15. The CTC simulation training speech recognition processing method according to claim 12, characterized in that: The dynamic parameter replacement items in the grammar file template include at least one of a self-identification header, a grammar name, a slot declaration and a dynamic parameter reserved word item, and the dynamic parameter reserved word item includes at least one of a newly added slot declaration, a grammar body, a station name and a train number.

16. The CTC simulation training speech recognition processing method according to claim 11, characterized in that: The step of performing offline recognition processing on the collected audio data by the offline speech recognition method includes: The collected audio data is stored in an audio cache queue, the audio data is retrieved from the audio cache queue, and the audio data is matched with command words by the speech recognizer to obtain an offline recognition sentence; According to the dynamically constructed offline command word syntax file, the offline recognition statement is replaced with a process statement standard format.

17. The CTC simulation training speech recognition processing method according to claim 16, characterized in that: After storing the collected audio data in the audio cache queue and before retrieving the audio data from the audio cache queue, the method also includes: setting basic parameters for offline speech recognition for the speech recognizer, wherein the basic parameters for offline speech recognition include a resource storage path and / or a matching result return type.

18. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the CTC simulation training speech recognition processing method as described in any one of claims 1 to 17 is implemented.

19. An electronic device, characterized in that: It includes a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the CTC simulation training speech recognition processing method as described in any one of claims 1 to 17 is implemented.