Data processing method, device, equipment, and computer-readable storage medium
By obtaining storage space information and audio type information in the elevator system, and dynamically adjusting the sampling threshold to determine the stored audio information, the problem of low storage resource utilization in the elevator system is solved, and more efficient data diversity and resource utilization are achieved.
Patent Information
- Application Number
- CN202111478085.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-06
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-12-06
AI Technical Summary
The utilization rate of control log storage resources in the elevator system is low, resulting in single log records and a lack of flexibility.
By obtaining the remaining storage space information of the target storage unit, when the remaining space is less than the preset space, the audio type information set is obtained, and the sampling threshold is determined based on the audio type information set to decide whether to store the audio information to dynamically adjust the sampling of different audio types. Proportion.
In the case of limited storage capacity, the data diversity in the storage space of the elevator system and the utilization of storage resources are improved.
Smart Images

Figure CN114368654B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of intelligent control technology, and in particular, relates to a data processing method, device, equipment, and computer-readable storage medium. Background Art
[0002] At present, in the process of providing services to users, the elevator system can control the operation of the elevator according to the user's voice commands and record relevant control logs during the operation of the elevator. Due to the limitation of the storage space of the elevator system, the control log generally only contains the operation information that has responded to the user's commands, resulting in a relatively simple log record and a lack of flexibility. In addition, since the elevator system storage space only stores relatively simple log data, the utilization rate of storage resources is also low. Summary of the invention
[0003] The embodiment of the present application provides an implementation scheme different from the prior art to solve the technical problem of low utilization rate of elevator control log storage resources in the prior art.
[0004] In a first aspect, the present application provides a data processing method, comprising: obtaining remaining storage space information of a target storage unit; when the remaining storage space information indicates that the remaining space is less than a preset space, obtaining an audio type information set stored in the target storage unit; determining a corresponding first sampling threshold based on the audio type information set; wherein the first sampling threshold is used to determine whether to store the obtained first audio information in the target storage unit.
[0005] In a second aspect, the present application provides a data processing device, comprising: a first acquisition module, used to acquire the remaining storage space information of a target storage unit; a second acquisition module, used to acquire an audio type information set stored in the target storage unit when the remaining storage space information indicates that the remaining space is less than a preset space; a determination module, used to determine a corresponding first sampling threshold based on the audio type information set; wherein the first sampling threshold is used to determine whether to store the acquired first audio information in the target storage unit.
[0006] In a third aspect, the present application provides an electronic device, including:
[0007] Processor; and
[0008] A memory, configured to store executable instructions of the processor;
[0009] The processor is configured to execute the method described in any one of the first aspect or any possible implementation manners of the first aspect by executing the executable instructions.
[0010] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method described in the first aspect or any of the possible implementations of the first aspect is implemented.
[0011] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the method described in the first aspect or any possible implementation manner of the first aspect.
[0012] The present application obtains the remaining storage space information of the target storage unit; when the remaining storage space information indicates that the remaining space is less than the preset space, obtains the audio type information set stored in the target storage unit; determines the corresponding first sampling threshold according to the audio type information set; wherein the first sampling threshold is used to determine whether to store the obtained first audio information in the target storage unit, which can achieve the effect of determining the sampling number of audio of the preset audio type according to the remaining storage space information and the audio type information set stored in the target storage unit, thereby enabling more types of audio to be obtained under limited storage capacity, and dynamically adjusting the audio sampling ratio of different audio types according to actual needs, thereby improving the diversity of data in the storage space of the elevator system and improving the utilization rate of storage resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0014] Figure 1a A flowchart of a data processing method provided in one embodiment of the present application;
[0015] Figure 1b A scenario diagram of a data processing method provided in an embodiment of the present application;
[0016] Figure 2 A schematic diagram of the structure of a data processing device provided in one embodiment of the present application;
[0017] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0018] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, but cannot be understood as limiting the present application.
[0019] The terms "first" and "second" etc. in the specification, claims and drawings of the embodiments of the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, the process, method, system, product or equipment comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0020] First, some terms in the embodiments of the present application are explained below to facilitate understanding by those skilled in the art.
[0021] ASR: Automatic Speech Recognition, automatic speech recognition technology, is a technology that converts human speech into text.
[0022] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0023] Figure 1a A flow chart of a data processing method provided by an exemplary embodiment of the present application is provided. The execution subject of the method may be an elevator control device. The method at least includes the following steps:
[0024] S101, obtaining remaining storage space information of a target storage unit;
[0025] S102: when the remaining storage space information indicates that the remaining space is less than a preset space, obtaining an audio type information set stored in the target storage unit;
[0026] S103, determining a corresponding first sampling threshold according to the audio type information set;
[0027] The first sampling threshold is used to determine whether to store the acquired first audio information into the target storage unit.
[0028] Accordingly, the method further includes: acquiring first audio information; and determining whether to store the first audio information in the target storage unit based on the first sampling threshold.
[0029] Specifically, the aforementioned target storage unit may refer to a storage device or a memory card for storing the operation log information of the elevator, the operation log information including multiple audio messages for indicating the operation of the elevator, and audio type information corresponding to each of the multiple audio messages, and the corresponding elevator operation details, wherein the operation details include destination floor information, operation time information, etc.
[0030] Furthermore, the aforementioned first audio information may be audio information collected by an audio collection device disposed at a preset position, and the preset position may be inside the elevator or at the elevator entrance, and this application does not impose any limitation on this.
[0031] Furthermore, the aforementioned audio type information set is a collection of audio type information in the operation log information stored in the target storage unit within a preset time period, and the operation log information includes multiple second audio information and audio type information corresponding to each second audio information in the multiple second audio information.
[0032] The audio type information includes the following two types: awakened type and non-awakened type. The awakened type includes correct awakening and false awakening. The audio type information can be determined according to the annotation information for the second audio information. The awakened type audio is the audio to which the elevator makes a corresponding response (operation), and the awakened type audio will be automatically stored in the aforementioned target storage unit.
[0033] Further, determining the first sampling threshold according to the audio type information set includes: adjusting the first sampling threshold according to the audio type information set, and adjusting the first sampling threshold according to the audio type information set includes:
[0034] If, in the audio type information set, the ratio of the number of second audio information of the non-wake-up type audio type information to the total number of all second audio information is less than a first preset ratio, reducing the first sampling threshold according to a preset adjustment rule;
[0035] If, in the audio type information set, the ratio of the number of second audio information with audio type information of the non-wake-up type to the total number of all second audio information is greater than a second preset ratio, the first sampling threshold is increased according to the preset adjustment rule.
[0036] Optionally, before the first sampling threshold is adjusted, the first sampling threshold is less than or equal to the wake-up confidence.
[0037] Optionally, the second preset ratio is greater than the first preset ratio, and the preset adjustment rule may be to adjust the first sampling threshold according to a preset adjustment step, wherein the adjustment step may refer to the adjustment step of the numerical value each time the first sampling threshold is adjusted, for example, each adjustment may be 0.2 (adjustment step).
[0038] Further, the determining whether to store the first audio information in the target storage unit based on the first sampling threshold may include:
[0039] Inputting the first audio information into a first preset model to obtain a corresponding first recognition result;
[0040] Determine whether to store the first audio information in the target storage unit according to the first recognition result and the first sampling threshold. Wherein, the first preset model can be a machine learning model obtained by training multiple groups of sample data.
[0041] Specifically, the first audio information can be obtained from the aforementioned audio acquisition device, and the audio acquisition device and the aforementioned elevator control device can establish a communication connection through their respective communication modules. The aforementioned first preset model can be a preset ASR recognition model.
[0042] Further, the determining whether to store the first audio information in the target storage unit according to the first recognition result and the first sampling threshold comprises:
[0043] Determine a plurality of first recognition score groups corresponding to the first audio information according to the first recognition result; wherein each of the plurality of first recognition score groups comprises: a first candidate text, a first acoustic score result and a first language score result;
[0044] Determine a first text corresponding to the first audio information and a first target confidence level corresponding to the first audio information using the plurality of first recognition score groups;
[0045] If the first text includes a first preset elevator command word and the first target confidence is greater than or equal to the first sampling threshold, the first audio information is stored in the target storage unit.
[0046] Among them, the first acoustic score result is used to indicate the phoneme similarity between the first text and the first candidate text, and the first language score result is used to indicate the sentence fluency of the first candidate text. Among them, the higher the first acoustic score result, the higher the phoneme similarity between the first text and the first candidate text, and the higher the first language score result, the more fluent the first candidate text is.
[0047] Furthermore, using the multiple first recognition score groups to determine the first text corresponding to the first audio information includes: calculating the score sum of the first acoustic score result and the first language score result in each of the multiple first recognition score groups to obtain multiple score sums; and taking the first candidate text in the first recognition score group corresponding to the highest score sum among the multiple score sums as the first text.
[0048] Determining a first target confidence level corresponding to the first audio information using the plurality of first recognition score groups includes:
[0049] Determine a first candidate confidence value corresponding to each first recognition score group in the plurality of first recognition score groups to obtain a plurality of first candidate confidence values;
[0050] The highest confidence value among the multiple first candidate confidence values is used as the first target confidence.
[0051] Wherein, determining the first candidate confidence value corresponding to any first recognition score group includes:
[0052] Obtaining the highest acoustic score among the multiple first acoustic score results corresponding to the multiple first recognition score groups;
[0053] The ratio of the first acoustic score in the current first recognition score group to the highest acoustic score is used as the first candidate confidence value corresponding to the first recognition score group.
[0054] Further, whether the first text includes the first preset elevator command word may be determined according to the following method;
[0055] The first text is used as an input parameter of a first command word recognition model, and the first command word recognition model is executed to obtain a first candidate word; wherein the first command word recognition model is used to recognize command words in the first text, that is, the first candidate word.
[0056] Obtain the first command library; when the first target command corresponding to the first alternative word exists in the first command library, the first text is deemed to be associated with the first command library. Wherein, when the similarity between the text corresponding to the first target command and the first alternative word is greater than a first preset value, the first alternative word is deemed to correspond to the first target command. When the first text is associated with the first command library, it is deemed that the first text contains the first preset elevator command word. Accordingly, when the first target command corresponding to the first alternative word does not exist in the first command library, it is deemed that the first text is not associated with the first command library, and the first text does not contain the first preset elevator command word.
[0057] Furthermore, the method further comprises:
[0058] If the first text does not contain the first preset elevator command word, and / or the first target confidence is less than the first sampling threshold, then
[0059] Determine from the preset matching word library the target matching word with the highest similarity to the related text of the first text; wherein the related text of the first text can be determined based on a preset association relationship, and the preset association relationship can store the association information between the first text and its related text, and the similarity between the first text and its related text can be greater than a preset threshold, for example: the first text can be "I want to go to the 7th floor", and the related text can be "I want to go to the 7th floor".
[0060] If the similarity between the related text of the first text and the target matching word is greater than a preset similarity value, the first audio information is input into a second preset model to obtain a second recognition result;
[0061] Determine whether to store the first audio information in the target storage unit according to the second recognition result and a second sampling threshold, wherein the second sampling threshold is less than the wake-up confidence.
[0062] Furthermore, the second preset model is also an ASR recognition model. The second preset model may be smaller than the first preset model. The second preset model may only include a decoding graph consisting of an elevator command word and a small number of similar interference words. The decoding paths involved in recognition are fewer, the re-decoding speed is faster, and the result is easier to align with the path containing the command word. Among them, the second preset model can be a machine learning model obtained by training multiple groups of sample data.
[0063] Further, determining whether to store the first audio information in the target storage unit according to the second recognition result and the second sampling threshold includes:
[0064] Determine a plurality of second recognition score groups corresponding to the first audio information according to the second recognition result; wherein each second recognition score group in the plurality of second recognition score groups includes: a second candidate text, a second acoustic score result and a second language score result;
[0065] Determine a second text corresponding to the first audio information and a second target confidence level corresponding to the first audio information using the plurality of second recognition score groups;
[0066] If the second text includes a second preset elevator command word and the second target confidence is greater than or equal to the second sampling threshold, the first audio information is stored in the target storage unit.
[0067] The second acoustic score result is used to indicate the phoneme similarity between the second text and the second candidate text, and the second language score result is used to indicate the sentence fluency of the second candidate text. The higher the second acoustic score result, the higher the phoneme similarity between the second text and the second candidate text, and the higher the second language score result, indicating that the second candidate text is more fluent.
[0068] Furthermore, using the multiple second recognition score groups to determine the second text corresponding to the first audio information includes: calculating the score sum of the second acoustic score results and the second language score results in each of the multiple second recognition score groups to obtain multiple score sums; and using the second candidate text in the second recognition score group corresponding to the highest score sum among the multiple score sums as the second text.
[0069] Determining a second target confidence level corresponding to the first audio information using the plurality of second recognition score groups includes:
[0070] Determine a second candidate confidence value corresponding to each second recognition score group in the plurality of second recognition score groups to obtain a plurality of second candidate confidence values;
[0071] The highest confidence value among the plurality of second candidate confidence values is used as the second target confidence.
[0072] Wherein, determining the second candidate confidence value corresponding to any second recognition score group includes:
[0073] Obtaining the highest acoustic score among the plurality of second acoustic score results corresponding to the plurality of second recognition score groups;
[0074] The ratio of the second acoustic score in the current second recognition score group to the highest acoustic score is used as the second candidate confidence value corresponding to the second recognition score group.
[0075] Further, whether the second text includes the second preset elevator command word may be determined according to the following method;
[0076] The second text is used as an input parameter of a second command word recognition model, and the second command word recognition model is executed to obtain a second candidate word; wherein the second command word recognition model is used to recognize the command word in the second text, that is, the second candidate word.
[0077] Obtain a second command library; when there is a second target command corresponding to the second alternative word in the second command library, the second text is deemed to be associated with the second command library. Wherein, when the similarity between the text corresponding to the second target command and the second alternative word is greater than a second preset value, the second alternative word is deemed to correspond to the second target command. When the second text is associated with the second command library, the second text is deemed to contain the second preset elevator command word. Accordingly, when there is no second target command corresponding to the second alternative word in the second command library, the second text is deemed to be unassociated with the second command library, and the second text does not contain the second preset elevator command word.
[0078] Furthermore, if the first sampling threshold is equal to or less than the wake-up confidence, and the first target confidence is less than the first sampling threshold, and the second target confidence is greater than or equal to the second sampling threshold, after storing the first audio information in the target storage unit, the above method also includes: marking the first audio information with an audio type, and marking the audio type information corresponding to the first audio information as not awakened.
[0079] Furthermore, if the first sampling threshold is equal to or greater than the wake-up confidence, after storing the acquired first audio information in the target storage unit, the method also includes: marking the audio type of the first audio information, and marking the audio type information corresponding to the first audio information as an awakened type.
[0080] Furthermore, the above method also includes: after a preset time length, if it is detected that the ratio of the number of second audio information of the non-awakening type to the total number of the multiple second audio information is still less than the first preset ratio, then the second sampling threshold, or the value of the preset similarity value is reduced according to the preset adjustment rule to increase the audio sampling ratio of the non-awakening type.
[0081] Furthermore, the initial value of the first sampling threshold, the initial value of the second sampling threshold, and the aforementioned wake-up confidence level may be set by relevant personnel.
[0082] It should be noted that, in this solution, if the first text contains the first preset elevator command word and the first target confidence is greater than or equal to the wake-up confidence, the first audio information is directly stored in the target storage unit, and the audio type of the first audio information is marked as the awakened type. That is, in the solution of the present application, the elevator responds only when the text corresponding to the user's audio contains the preset elevator word and the corresponding confidence is greater than or equal to the wake-up confidence, such as: when the first text contains the first preset elevator command word and the first target confidence is greater than or equal to the wake-up confidence, the elevator responds.
[0083] Through the scheme of the present application, the collection of audio of the non-awakening type can be controlled by adjusting the sampling threshold. The non-awakening audio can play a key role in analyzing and improving the recognition model, which helps to improve the recognition performance and thus improve the accuracy of elevator calls.
[0084] The present application obtains the remaining storage space information of the target storage unit; when the remaining storage space information indicates that the remaining space is less than the preset space, obtains the audio type information set stored in the target storage unit; determines the corresponding first sampling threshold according to the audio type information set; wherein the first sampling threshold is used to determine whether to store the obtained first audio information in the target storage unit, which can achieve the effect of determining the sampling number of audio of the preset audio type according to the remaining storage space information and the audio type information set stored in the target storage unit, thereby enabling more types of audio to be obtained under limited storage capacity, and dynamically adjusting the audio sampling ratio of different audio types according to actual needs, thereby improving the diversity of data in the storage space of the elevator system and improving the utilization rate of storage resources.
[0085] The following is a further description of this solution based on specific scenarios:
[0086] For details, please refer to Figure 1b As shown, after the audio acquisition device collects audio a during elevator operation, it can be sent to the elevator control device, so that the elevator control device performs audio recognition on audio a through the ASR recognition module A to obtain a first recognition result. When the first recognition text (the aforementioned first text) in the first recognition result contains the first preset elevator command word, and the first target confidence is greater than or equal to the first sampling threshold value_a, the audio a is uploaded to the audio storage device. Among them, value_a is equal to or less than the wake-up confidence.
[0087] When the first recognition text does not contain the first preset elevator command word, and / or the first target confidence is less than the first sampling threshold value_a, the relevant text of the determined first recognition text can be input into the command word similarity matching module, so that the command word similarity matching module determines the similarity between the relevant text and each command word in the preset command word library according to the preset command word library, and obtains multiple similarity results; and determines the highest similarity among the multiple similarity results.
[0088] Among them, the preset command vocabulary may store multiple command words and multiple command information corresponding to them, and the command information may include text command information or audio command information; the similarity between the relevant text and each command word can be text similarity (such as Euclidean distance, cosine distance) or pronunciation similarity (such as Hamming distance).
[0089] When the highest similarity is greater than the similarity threshold value_c, audio a is input to ASR recognition module B for secondary recognition. ASR recognition module B is smaller than ASR recognition module A, and contains only a decoding graph consisting of elevator command words and a small number of similar interference words. There are fewer decoding paths involved in recognition, and the re-decoding speed is faster. The result is easier to align to the path containing the command word, so as to further improve the data processing speed.
[0090] When the second recognition text obtained according to the ASR recognition module B contains a second preset elevator command word, and its corresponding second target confidence is greater than or equal to the second sampling threshold value_b, the audio a is marked as non-awakened audio, and the audio a marked as non-awakened audio is stored in the audio storage device, thereby realizing the sampling of non-awakened data.
[0091] Furthermore, when the value of the first sampling threshold value_a is equal to the wake-up confidence threshold (when the recognition result contains a command word, the confidence of the command word is determined, and the wake-up confidence threshold means that when the command word confidence is greater than this value, the elevator will be woken up, and the elevator system will respond to the elevator), only the audio of correct awakening and false awakening is saved at this time; when the value of value_a is less than the wake-up confidence threshold, the audio of the non-awakening type can be further saved.
[0092] Furthermore, the number of samples of the non-awakening type audio may be reduced by increasing value_c or increasing value_b, and the number of samples of the non-awakening type audio may be increased by decreasing value_c or decreasing value_b.
[0093] To summarize, in the above process, the ratio of sampled awakened and non-awakened audio can be dynamically adjusted by adjusting value_a, value_c and value_b. When value_a is greater than or equal to the awakening confidence, only the audio of correct awakening and false awakening is sampled; when value_a is less than the awakening confidence, possible non-awakened audio will also be sampled. The command word similarity matching module only matches the audio text whose recognition results do not contain command words and / or whose confidence is less than value_a. By adjusting value_c, the number of possible non-awakened audio that enters recognition module B for secondary recognition can be controlled. By adjusting the value_b given by recognition module B, the sampling number of non-awakened data can be controlled, which is convenient for collecting corresponding audio according to needs.
[0094] Some of the audio that has not been awakened can be uploaded by adjusting value_a, and some of the audio that has not been awakened can be sampled and uploaded after command word similarity matching and secondary recognition. This part of the audio can be used to improve the performance of recognition module A and recognition module B, thereby improving the performance of the entire elevator system and the satisfaction of elevator users.
[0095] Figure 2 A schematic diagram of the structure of a data processing device provided for an exemplary embodiment of the present application; wherein the device comprises: a first acquisition module 21, a second acquisition module 22, and a determination module 23; wherein:
[0096] A first acquisition module 21 is used to acquire the remaining storage space information of the target storage unit;
[0097] A second acquisition module 22, configured to acquire the audio type information set stored in the target storage unit when the remaining storage space information indicates that the remaining space is less than a preset space;
[0098] A determination module 23, configured to determine a corresponding first sampling threshold according to the audio type information set;
[0099] The first sampling threshold is used to determine whether to store the acquired first audio information into the target storage unit.
[0100] Optionally, the above device is also used for:
[0101] Acquiring first audio information;
[0102] Whether to store the first audio information in the target storage unit is determined based on the first sampling threshold.
[0103] Optionally, when the above apparatus is used to determine whether to store the first audio information in the target storage unit based on the first sampling threshold, it is specifically used to:
[0104] Inputting the first audio information into a first preset model to obtain a corresponding first recognition result;
[0105] Determine whether to store the first audio information in the target storage unit according to the first recognition result and the first sampling threshold.
[0106] Optionally, when the above device is used to determine whether to store the first audio information in the target storage unit according to the first recognition result and the first sampling threshold, it is specifically used to:
[0107] Determine a plurality of first recognition score groups corresponding to the first audio information according to the first recognition result; wherein each of the plurality of first recognition score groups comprises: a first candidate text, a first acoustic score result and a first language score result;
[0108] Determine a first text corresponding to the first audio information and a first target confidence level corresponding to the first audio information using the plurality of first recognition score groups;
[0109] If the first text includes a first preset elevator command word and the first target confidence is greater than or equal to the first sampling threshold, the first audio information is stored in the target storage unit.
[0110] Optionally, the above device is also used for:
[0111] If the first text does not contain the first preset elevator command word, and / or the first target confidence is less than the first sampling threshold, then
[0112] Determining a target matching word with the highest similarity to the related text of the first text from a preset matching word library; wherein the related text of the first text can be determined according to a preset association relationship;
[0113] If the similarity between the related text of the first text and the target matching word is greater than a preset similarity value, the first audio information is input into a second preset model to obtain a second recognition result;
[0114] According to the second recognition result and a second sampling threshold, it is determined whether to store the first audio information in the target storage unit.
[0115] Optionally, the first sampling threshold is less than or equal to the wake-up confidence, and determining the first sampling threshold according to the audio type information set includes:
[0116] If, in the audio type information set, the ratio of the number of second audio information of the non-wake-up type audio type information to the total number of all second audio information is less than a first preset ratio, reducing the first sampling threshold according to a preset adjustment rule;
[0117] If, in the audio type information set, the ratio of the number of second audio information with audio type information of the non-wake-up type to the total number of all second audio information is greater than a second preset ratio, the first sampling threshold is increased according to the preset adjustment rule.
[0118] Optionally, if the first sampling threshold is greater than or equal to the wake-up confidence, after storing the acquired first audio information in the target storage unit, the device is further used to: mark the audio type information corresponding to the first audio information as the awakened type.
[0119] Optionally, the audio type information includes the following two types: awakened type and not awakened type.
[0120] It should be understood that the device embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. To avoid repetition, no further description is given here. Specifically, the device may perform the above method embodiment, and the above and other operations and / or functions of each module in the device are the corresponding processes in each method in the above method embodiment, respectively, and no further description is given here for the sake of brevity.
[0121] The above describes the device of the embodiment of the present application from the perspective of the functional module in conjunction with the accompanying drawings. It should be understood that the functional module can be implemented in hardware form, can be implemented by instructions in software form, and can also be implemented by a combination of hardware and software modules. Specifically, the steps of the method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit and / or software form instructions in the processor, and the steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or a combination of hardware and software modules in the decoding processor to perform. Optionally, the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory, and completes the steps in the above method embodiment in conjunction with its hardware.
[0122] Figure 3 is a schematic block diagram of an electronic device provided in an embodiment of the present application, and the electronic device may include:
[0123] The memory 301 and the processor 302, the memory 301 is used to store the computer program and transmit the program code to the processor 302. In other words, the processor 302 can call and run the computer program from the memory 301 to implement the method in the embodiment of the present application.
[0124] For example, the processor 302 may be configured to execute the above method embodiments according to instructions in the computer program.
[0125] In some embodiments of the present application, the processor 302 may include but is not limited to:
[0126] General-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
[0127] In some embodiments of the present application, the memory 301 includes but is not limited to:
[0128] Volatile memory and / or non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DR RAM).
[0129] In some embodiments of the present application, the computer program may be divided into one or more modules, which are stored in the memory 301 and executed by the processor 302 to complete the method provided by the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.
[0130] like Figure 3 As shown, the electronic device may also include:
[0131] The transceiver 303 may be connected to the processor 302 or the memory 301 .
[0132] The processor 302 may control the transceiver 303 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices. The transceiver 303 may include a transmitter and a receiver. The transceiver 303 may further include an antenna, and the number of antennas may be one or more.
[0133] It should be understood that the various components in the electronic device are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.
[0134] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a computer, the computer can perform the method of the above method embodiment. In other words, the present application embodiment also provides a computer program product containing instructions, and when the instructions are executed by a computer, the computer can perform the method of the above method embodiment.
[0135] When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., a solid state drive (solid state disk, SSD)), etc.
[0136] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0137] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0138] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. For example, each functional module in each embodiment of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0139] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A data processing method, It is characterized in that include: Obtaining the remaining storage space information of the target storage unit; When the remaining storage space information indicates that the remaining space is less than a preset space, acquiring the audio type information set stored in the target storage unit; Determine a corresponding first sampling threshold according to the audio type information set; Wherein, the first sampling threshold is used to determine whether to store the acquired first audio information into the target storage unit; Determining whether to store the first audio information in the target storage unit based on the first sampling threshold comprises: Inputting the first audio information into a first preset model to obtain a corresponding first recognition result; determining whether to store the first audio information in the target storage unit according to the first recognition result and the first sampling threshold; Determining whether to store the first audio information in the target storage unit according to the first recognition result and the first sampling threshold includes: Determine a plurality of first recognition score groups corresponding to the first audio information according to the first recognition result; wherein each of the plurality of first recognition score groups comprises: a first candidate text, a first acoustic score result and a first language score result; Determine a first text corresponding to the first audio information and a first target confidence level corresponding to the first audio information using the plurality of first recognition score groups; If the first text includes a first preset elevator command word, and the first target confidence is greater than or equal to the first sampling threshold, storing the first audio information in the target storage unit; If the first text does not include the first preset elevator command word, and / or the first target confidence is less than a first sampling threshold, a target matching word with the highest similarity to a related text of the first text is determined from a preset matching word library; wherein the related text of the first text can be determined according to a preset association relationship; If the similarity between the relevant text and the target matching word is greater than a preset similarity value, the first audio information is input into a second preset model to obtain a second recognition result; Determine whether to store the first audio information in the target storage unit according to the second recognition result and a second sampling threshold; The audio type information includes the following two types: awakened type and unawakened type, wherein the audio information corresponding to the awakened type is the audio information to which the elevator makes a corresponding response, and the audio information corresponding to the awakened type is automatically stored in the target storage unit; The first sampling threshold is less than or equal to the wake-up confidence, and determining the first sampling threshold according to the audio type information set includes: If, in the audio type information set, the ratio of the number of second audio information of the non-wake-up type audio type information to the total number of all second audio information is less than a first preset ratio, reducing the first sampling threshold according to a preset adjustment rule; If, in the audio type information set, the ratio of the number of second audio information of the non-wake-up type audio type information to the total number of all second audio information is greater than a second preset ratio, increasing the first sampling threshold according to the preset adjustment rule; If the first sampling threshold is greater than or equal to the wake-up confidence, after storing the acquired first audio information in the target storage unit, the method further includes: marking the audio type information corresponding to the first audio information as the awakened type; If the first sampling threshold is equal to or less than the wake-up confidence, and the first target confidence is less than the first sampling threshold, and the second target confidence is greater than or equal to the second sampling threshold, after storing the first audio information in the target storage unit, the method further includes: marking the first audio information with an audio type, marking the audio type information corresponding to the first audio information as a non-awakening type; after a preset time period, if it is detected that the ratio of the number of second audio information of the non-awakening type to the total number of multiple second audio information is still less than the first preset ratio, then reducing the second sampling threshold or the value of the preset similarity value according to the preset adjustment rule to increase the audio sampling ratio of the non-awakening type; by adjusting the sampling threshold, the collection of the non-awakening type audio is controlled, and the non-awakening type audio plays a key role in analyzing and improving the performance of the recognition model, which helps to improve the recognition performance, thereby improving the accuracy of the elevator call.
2. A data processing device, It is characterized in that include: A first acquisition module, used to acquire remaining storage space information of a target storage unit; A second acquisition module, configured to acquire the audio type information set stored in the target storage unit when the remaining storage space information indicates that the remaining space is less than a preset space; A determination module, configured to determine a corresponding first sampling threshold according to the audio type information set; Wherein, the first sampling threshold is used to determine whether to store the acquired first audio information into the target storage unit; When the device is used to determine whether to store the first audio information in the target storage unit based on the first sampling threshold, the device is specifically used to: Inputting the first audio information into a first preset model to obtain a corresponding first recognition result; determining whether to store the first audio information in the target storage unit according to the first recognition result and the first sampling threshold; When the device is used to determine whether to store the first audio information in the target storage unit according to the first recognition result and the first sampling threshold, it is specifically used to: Determine a plurality of first recognition score groups corresponding to the first audio information according to the first recognition result; wherein each of the plurality of first recognition score groups comprises: a first candidate text, a first acoustic score result and a first language score result; Determine a first text corresponding to the first audio information and a first target confidence level corresponding to the first audio information using the plurality of first recognition score groups; If the first text includes a first preset elevator command word, and the first target confidence is greater than or equal to the first sampling threshold, storing the first audio information in the target storage unit; The device is further configured to: if the first text does not include the first preset elevator command word, and / or the first target confidence is less than a first sampling threshold, determine a target matching word with the highest similarity to a related text of the first text from a preset matching word library; wherein the related text of the first text can be determined according to a preset association relationship; If the similarity between the relevant text and the target matching word is greater than a preset similarity value, the first audio information is input into a second preset model to obtain a second recognition result; Determine whether to store the first audio information in the target storage unit according to the second recognition result and a second sampling threshold; The audio type information includes the following two types: awakened type and unawakened type, wherein the audio information corresponding to the awakened type is the audio information to which the elevator makes a corresponding response, and the audio information corresponding to the awakened type is automatically stored in the target storage unit; The first sampling threshold is less than or equal to the wake-up confidence, and determining the first sampling threshold according to the audio type information set includes: If, in the audio type information set, the ratio of the number of second audio information of the non-wake-up type audio type information to the total number of all second audio information is less than a first preset ratio, reducing the first sampling threshold according to a preset adjustment rule; If, in the audio type information set, the ratio of the number of second audio information of the non-wake-up type audio type information to the total number of all second audio information is greater than a second preset ratio, increasing the first sampling threshold according to the preset adjustment rule; If the first sampling threshold is greater than or equal to the wake-up confidence, after storing the acquired first audio information in the target storage unit, the device is further used to: mark the audio type information corresponding to the first audio information as the awakened type; If the first sampling threshold is equal to or less than the wake-up confidence, and the first target confidence is less than the first sampling threshold, and the second target confidence is greater than or equal to the second sampling threshold, after storing the first audio information in the target storage unit, the device is also used to: mark the audio type of the first audio information, and mark the audio type information corresponding to the first audio information as a non-awakening type; after a preset time period, if it is detected that the ratio of the number of second audio information of the non-awakening type to the total number of multiple second audio information is still less than the first preset ratio, then reduce the second sampling threshold, or the value of the preset similarity value, according to the preset adjustment rule to increase the audio sampling ratio of the non-awakening type; by adjusting the sampling threshold, the collection of the non-awakening type audio is controlled, and the non-awakening type audio plays a key role in analyzing and improving the performance of the recognition model, which helps to improve the recognition performance and thus improve the accuracy of the elevator call.
3. An electronic device, It is characterized in that include: processor; as well as A memory, configured to store executable instructions of the processor; Wherein, the processor is configured to perform the method of claim 1 by executing the executable instructions.
4. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to claim 1 is implemented.
