Information identification method, system and related equipment

By encoding digital information and matching it with the search tree, the problem of low information recognition efficiency and poor accuracy caused by the huge feature space is solved, and efficient information recognition is achieved.

CN118820541APending Publication Date: 2024-10-22HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310847705.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-04-18
Filing Date
2023-07-11
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

In existing information recognition technology, the large feature space leads to slow recognition process and high error rate. Especially in the field of speaker identification, the voiceprint database is huge and the search complexity is high, resulting in poor accuracy and low efficiency.

Method used

By encoding the digital information to be queried, the first code is obtained, and the code is used to match the pre-constructed search tree. The search tree consists of multiple search paths, each path corresponds to the second code of an object, and searches through matching Trees realize information identification and improve accuracy and efficiency.

Benefits of technology

It significantly improves the accuracy and efficiency of information identification, reduces resource consumption, avoids the situation of being unable to identify when the amount of information in the registration vector library is insufficient, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118820541A_ABST
    Figure CN118820541A_ABST
Patent Text Reader

Abstract

The invention provides an information identification method and system and related equipment, and the method comprises the following steps: obtaining to-be-queried digital information, encoding the to-be-queried digital information, obtaining a first code of the digital information, matching the first code with a search tree, determining a target object related to the digital information, the search tree comprises a plurality of search paths, each search path corresponds to a second code of one object, digital information of a plurality of objects in a registration information base is coded in advance, the second code of each object is coded, and the search tree is created based on the second codes, so that information identification can be realized by matching the search tree; and the information identification precision and efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence (AI), and in particular to an information recognition method, system and related equipment. Background Art

[0002] Information is a reflection of the existence or movement of things in the real world. Information recognition refers to the use of computer technology to process, analyze and understand information in order to identify various types of targets and objects. Information recognition generally includes image information recognition, text information recognition and speaker identification (SI).

[0003] Information recognition generally matches the information to be processed with the features in the feature space to determine the category of the information to be processed. However, the feature space is huge, which makes the recognition process slow and the error rate high. Taking speaker recognition as an example, the volume of the voiceprint library is very large, covering millions, tens of millions, or even hundreds of millions of speakers. According to the voice to be recognized, the voiceprints of all candidates in the huge voiceprint library are traversed, and the search complexity is very high. Therefore, the information recognition task has the problems of poor accuracy and low efficiency, and the user experience is poor. Summary of the invention

[0004] The present application provides an information recognition method, system and related equipment for solving the problems of poor accuracy and low efficiency in information recognition tasks.

[0005] In a first aspect, the present application provides an information identification method, which includes the following steps: obtaining digital information to be queried, encoding the digital information to be queried, obtaining a first code of the digital information to be queried, matching the first code with a search tree, and determining a target object corresponding to the digital information, wherein the search tree includes multiple search paths, each search path corresponding to a second code of an object.

[0006] The method described in the first aspect is implemented, by encoding the digital information to be queried, obtaining the first code of the digital information to be queried, and then using the first code to match the search tree to determine the target object corresponding to the digital information to be queried, wherein the search tree includes multiple search paths, each search path corresponds to the second code of an object, so that by pre-encoding the digital information of multiple objects in the registration information library, the second code of each object is created based on the second code, so that information identification can be achieved by matching the search tree, thereby improving the accuracy and efficiency of information identification.

[0007] In a possible implementation, the first code is an N-bit binary code, and the first M bits in the first code are used to represent characteristics of digital information, M<N.

[0008] It should be noted that the first bit of the code is the first bit of the code, for example, the first bit on the left side of the code, and the Mth bit of the code refers to the Mth bit from the first bit of the code to the right. Alternatively, the first bit can also be the first bit on the right side of the code, and the Mth bit of the code is the Mth bit from the first bit on the right side of the code to the left. As long as the definition of the first bit of the code is consistent in the training and application stages of the coding model, this application does not make any specific limitations.

[0009] By implementing the above implementation method, the features of digital information are represented by the first M bits of the code, so that in subsequent feature matching, only the first few bits of features need to be matched, thereby improving the efficiency of information recognition.

[0010] In a possible implementation, the digital information includes one or more of the following: sound information, image information, and text information.

[0011] The above implementation makes the information recognition method provided by this application applicable to multiple fields, and the solution is highly universal. In the speaker recognition scenario, the target object corresponding to the digital information may refer to the speaker associated with the query voice, and the speaker corresponding to the query voice can be displayed to the user; in the face recognition scenario, the target object corresponding to the digital information may refer to the face associated with the query image, and the target to which the face corresponding to the query image belongs can be displayed to the user. It should be understood that the above examples are for illustration and are not specifically limited in this application.

[0012] In a possible implementation, in the first encoding, the features indicated by the bits at the front are more important, and the more important features provide more information when distinguishing the differences between vectors.

[0013] It should be noted that the features that can effectively distinguish the differences between vectors are important features. The more useful information a feature provides for distinguishing vectors, the higher its importance. For example, in the field of speaker recognition, features may include speech frequency, speech speed, pitch, speech intensity, speech rhythm, speech prosody, speech stress, speech quality, etc. These features have a certain influence on speaker recognition. Generally speaking, speech frequency and pitch may be the most important features because they can effectively distinguish different speakers. Secondly, features such as speech intensity and speech speed may be secondary features, and speech rhythm, speech prosody, and speech stress may be the least important features. Therefore, features representing speech frequency and pitch can be represented by bits in the front position, features of speech intensity and speech speed can be represented by bits in the middle position, and features such as speech rhythm and prosody can be represented by bits in the back position. The above examples are for illustration and are not specifically limited in this application.

[0014] By implementing the above implementation method, the features of the digital information to be queried are compressed to the first few bits of the first code, and the first M bits thereof can represent the features of the N-dimensional vector. That is to say, the features of the N-dimensional vector are extracted into the first M bits of the first code, and the closer the bit position is, the higher the importance of the features it represents. Thus, the features of the digital information are compressed without losing the vector features, so that during subsequent feature matching, there is already a large similarity between the two codes with the same first few bits. If the registered vector library does not contain the second code that is the same as the first code, the target object corresponding to the digital information can also be determined based on the second code with the same first few bits as the first code. The target object is an object similar to the digital information, thereby improving the efficiency of information recognition, improving the applicability of the solution, and avoiding the situation where the target object corresponding to the digital information cannot be identified when the registered vector library has insufficient information.

[0015] In a possible implementation manner, first X bits of the first code and the second code are the same, where X is less than or equal to M.

[0016] In implementing the above implementation method, since the first encoding and the second encoding compress the features of the digital information to the first M bits, and the features indicated by the first bits are more important and easier to distinguish the differences between vectors, the first encoding and the second encoding do not need to be completely matched to obtain the target object corresponding to the digital information, thereby further improving the matching efficiency and the efficiency of digital information recognition.

[0017] In one possible implementation, the first code is obtained through a coding model. During the model training process, the output result of the coding model is masked by a masker so that the first M bits in the output result of the trained coding model are used to represent the characteristics of the input data.

[0018] Furthermore, the encoding model includes an encoder, a masker and a decoder. The masker is used to input the sample into the encoder during the model training process, and then perform a masking operation based on the output result of the encoder to obtain a first code of the sample. The decoder is used to decode the first code. During the training process, the encoding model adjusts the model parameters of the encoder through the loss value until the model converges, wherein the loss value is determined based on the gap between the output result of the decoder and the sample.

[0019] By implementing the above implementation method, the encoding model is iteratively trained through a masker and a decoder, so that the trained encoder has the ability to extract features to the first N bits of the first code. In this way, no matter what the application scenario is, this method can enable the encoder to have the above ability, thereby improving the adaptability of the solution.

[0020] In one possible implementation, the coding model includes a sampler, the sampler is used to perform sampling based on the output result of the encoder to obtain a sampling result, and the masker is used to perform a masking operation based on the sampling result to obtain a first encoding of the sample, and the sampling result is approximately an N-bit binary code.

[0021] It should be understood that by sampling the output results of the encoder and then orderly masking the sampled results, the first code generated after masking can be made close to the binary code. In this way, the first code is decoded and restored, and the loss value is determined according to the gap between the decoder output result and the input vector. The encoder parameters are then adjusted based on this, so that the encoding result obtained by the final trained encoder can be closer to the binary code. After the encoding result is binarized, the encoding loss can be reduced and the encoding accuracy can be improved.

[0022] In one possible implementation, the masker includes a first masker and a second masker, the first masker is used to perform a mask operation on the output result of the encoder to obtain a second code of the sample, the sampler is used to sample the second code to obtain a sampling result, and the second masker is used to mask the sampling result to obtain the first code of the sample.

[0023] It should be noted that the greater the number of maskers, the greater the training complexity, the heavier the server pressure and the training cost. Therefore, the appropriate number of maskers can be selected according to the application scenario, and this application does not make any specific limitation.

[0024] By implementing the above implementation method, the code is subjected to multiple masking operations, and the number of masking bits M+1 each time is determined by random sampling, so that when the coding model is continuously iterated and trained, the features of the vector will be continuously compressed to the bits at the front positions, and the closer the bit position is, the more important the features it represents. At the same time, combined with the decoder calculation loss, the coding model can compress the vector without losing the features of the vector, and the features of the vector are concentrated in the first few bits of the code, thereby improving the efficiency of subsequent information recognition. In addition, multiple masking can also improve the robustness and generalization ability of the coding model and improve the universality of the scheme.

[0025] In a possible implementation, the masking operation includes performing a masking operation on the M+1th bit to the Nth bit in the data input to the masker, where M is an integer obtained by random sampling from 1 to N.

[0026] By implementing the above implementation method, during the model training process, the last few bits of the encoder's output are randomly masked, so that when the encoding model is continuously iterated in training, the characteristics of the vector will be continuously compressed to the bits at the front positions, and the closer the bits are to the front, no matter what the application scenario is, this method can enable the encoder to have the above capabilities and improve the adaptability of the solution.

[0027] In a possible implementation, the encoding model includes a binary encoder, digital information is input into the encoder, and the output result of the encoder is input into the binary encoder to obtain a first code. In a specific implementation, the binary encoder is implemented by a discriminant function, such as a positive and negative discriminant function, which maps bits greater than 0 to 1 and bits less than 0 to 0, thereby obtaining a binary code of the vector. It should be understood that the above examples are for illustration and are not specifically limited in this application.

[0028] During the model training process, the input data is input into the encoder, and then the output result of the encoder is input into the first masker to obtain the second code, and then the second code is input into the sampler to obtain the sampling result, and then the sampling result is input into the second masker to obtain the first code, and finally the first code is input into the decoder. The loss value is determined according to the gap between the output of the decoder and the input data, and the model parameters of the encoder are adjusted according to the loss value. The above steps are repeated until the loss value reaches the threshold to obtain a trained encoder.

[0029] During the model inference process, the digital information is converted into a query vector, which is then input into the encoder, and then the output result of the encoder is input into the binary encoder to obtain the first encoding of the digital information.

[0030] In implementing the above implementation method, the coding model is trained through a masker, a sampler and a decoder, so that in the output result of the coding model, the features of the vector are concentrated in the first few bits of the output result, and the output result is similar to the binary code. Therefore, when the output result of the coding model is converted into a binary code by a binary encoder, the loss of binary conversion is very small, avoiding the loss of accuracy caused by binary conversion of the vector. At the same time, the features of the vector in the generated binary code are represented by the first few bits, so that in subsequent information recognition, we can focus on matching the first few bits to improve the efficiency of subsequent information recognition.

[0031] In one possible implementation, the search tree includes a binary search tree. Before obtaining the digital information to be queried, the method also includes the following steps: obtaining multiple registration vectors, inputting the multiple registration vectors into a coding model, and obtaining a second code for each of the multiple registration vectors, wherein the first M bits in the second code are used to describe the characteristics of the registration vector, and the more forward the bits, the more important the characteristics indicated. A search tree is created based on the second code of each registration vector, wherein each search path in the search tree corresponds to a second code, and the search tree includes multiple search layers, and each of the multiple search layers includes a left child node and / or a right child node.

[0032] When implementing the above implementation method, since the second code is an ordered binary code, a binary search tree can be created based on multiple second codes, and each search path corresponds to a second code, so that information recognition can be achieved by simply matching the binary search tree, without the need to match each second code, which can improve the efficiency of information recognition.

[0033] In one possible implementation, when the first code is used to match the search tree, starting from the first bit of the first code and the first search layer of the search tree, the bits of the first code are matched with the left child node and / or the right child node in the search layer in the order of the bits and the order of the search layers, and the successfully matched target child nodes in each search layer are recorded to determine the search path, wherein the search path includes a child node sequence composed of multiple target child nodes in the order of successful matching, and the number of target child nodes in the search path is less than or equal to the number of bits in the first code.

[0034] In the implementation method described above, the first M bits of the first code output by the trained coding model are used to represent the features of the query vector. The more important the feature, the closer the bit corresponding to it is to the front. Therefore, starting from the first position of the first code, layer by layer matching can be performed in sequence with the search tree until the bit at the current position fails to match the left and right child nodes in the current search layer, and at least one search path containing the sequence order of the target child node is obtained, so as to ensure that the first X bits of the second code finally obtained are the same as the first code. Referring to the above content, it can be seen that the more important the feature, the greater the contribution of the information it carries to distinguishing the difference between vectors. Therefore, matching is performed starting from the most important feature in sequence until the match fails. The second code that is most similar to the first code can be retrieved, thereby avoiding the problem that the information recognition result cannot be returned when there is no second code that is the same as the first code in the registered information database, thereby improving the user experience.

[0035] In a possible implementation, the registration vector associated with the query vector includes a first registration vector corresponding to a first search path, wherein the number of target subnodes in the first search path is equal to the number of bits in the first code, and the first code is the same as the second code.

[0036] Optionally, the registration vector associated with the query vector includes a second registration vector corresponding to a second search path, wherein the number of target sub-nodes in the second search path is less than the number of bits in the first code, and the first code is similar to the second code.

[0037] In implementing the above implementation method, since each search layer includes left and right child nodes, when the first code matches the search tree, after the current search layer successfully matches and obtains the target child node, the next search layer connected to the target child node can be determined, and then the matching can be continued, while the next search layer connected to the non-target child node of the current search layer does not need to be matched, so not every second code is matched with the first code. Second codes that are not related to the first code can be continuously eliminated through each search layer. Since the more important features have corresponding bits that are closer to the front, the second codes eliminated by the closer search layers have a worse correlation with the first codes. Therefore, the solution provided by the present application can reduce resource consumption and improve the efficiency of information recognition.

[0038] Therefore, the time complexity of searching for a first code of length m in N second codes is O(Nm), that is, it is necessary to calculate the similarity between the first code and the second code Nm times, such as the cosine distance. The present application uses a binary search tree retrieval method, and its retrieval time complexity is O(m), which is independent of the number of second codes N, and can greatly improve the efficiency of information recognition. At the same time, the search on the binary tree is only a series of bit matches, and the search speed is very fast, which can further improve the efficiency of information recognition.

[0039] In the second aspect, the present application provides an information identification system, which includes 7. An information identification system, characterized in that the system includes: an acquisition unit, used to acquire the digital information to be queried, an encoding unit, used to encode the digital information to be queried, and obtain a first code of the digital information to be queried, and a matching unit, used to use the first code to match the search tree to determine the target object corresponding to the digital information, wherein the search tree includes multiple search paths, and each of the multiple search paths corresponds to a second code of an object.

[0040] The system described in the second aspect is implemented, by encoding the digital information to be queried, obtaining the first code of the digital information to be queried, and then using the first code to match the search tree to determine the target object corresponding to the digital information to be queried, wherein the search tree includes multiple search paths, each search path corresponds to the second code of an object. In this way, by pre-encoding the digital information of multiple objects in the registration information library, the second code of each object is created based on the second code, so that information identification can be achieved by matching the search tree, thereby improving the accuracy and efficiency of information identification.

[0041] In a possible implementation, the first code is an N-bit binary code, and the first M bits in the first code are used to represent characteristics of digital information, M<N.

[0042] In a possible implementation, the digital information includes one or more of the following: sound information, image information, and text information.

[0043] In a possible implementation manner, first X bits of the first code and the second code are the same, where X is less than or equal to M.

[0044] In one possible implementation, the first code is obtained through a coding model. During the model training process, the output result of the coding model is masked by a masker so that the first M bits in the output result of the trained coding model are used to represent the characteristics of the input data.

[0045] In a possible implementation, the masker is used to perform a masking operation on the M+1th bit to the Nth bit of the output result of the coding model, where M is an integer obtained by random sampling from 1 to N.

[0046] In a third aspect, a computing device is provided, which includes a processor and a memory, the memory is used to store instructions, and the processor is used to execute instructions, so that the computing device implements the method described in the first aspect.

[0047] In a fourth aspect, a computing device cluster is provided, which includes at least one computing device, each of the at least one computing device includes a processor and a memory, and the processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster implements the method described in the first aspect.

[0048] In a fifth aspect, a computer-readable storage medium is provided, in which instructions are stored. When the instructions are executed by a computing device or a computing device cluster, the method described in the first aspect is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 It is an architectural diagram of an information identification system provided by this application;

[0050] Figure 2 It is an information identification method provided by this application;

[0051] Figure 3 This is a schematic diagram of the steps of a coding model in the training phase provided by the present application;

[0052] Figure 4 This is a schematic diagram of the steps of a coding model provided by the present application in the inference stage;

[0053] Figure 5 is a schematic diagram of a search tree provided by this application;

[0054] Figure 6 This is a schematic diagram of the steps of the search tree matching provided by this application;

[0055] Figure 7 This is a schematic diagram of the steps of an information identification method provided by the present application in an application scenario;

[0056] Figure 8 It is a flowchart of matching a first code with a search tree in an application scenario in an information identification method provided by the present application;

[0057] Fig. 9 It is a structural schematic diagram of a computing device provided by the present application;

[0058] Fig.10 It is a structural diagram of a computing device cluster provided by this application;

[0059] Fig.11 This is another structural schematic diagram of a computing device cluster provided by this application. DETAILED DESCRIPTION

[0060] The following will describe the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0061] In order to solve the problems of poor accuracy and low efficiency in current information identification tasks, the present application provides an information identification system, which encodes a query vector to obtain a first code of the query vector, and then uses the first code to match it with a search tree, wherein the search tree includes multiple search paths, each search path corresponds to the second code of a registration vector, and determines the registration vector related to the query vector. In this way, by pre-creating a search tree for multiple registration vectors in a registration information library, information identification can be achieved by matching the search tree, thereby improving the accuracy and efficiency of information identification.

[0062] Figure 1 This is an architecture diagram of an information identification system provided by this application, such as Figure 1 As shown, the architecture includes a storage system 100, an information identification system 200, and a client 300, wherein there is a communication connection between the storage system 100, the information identification system 200, and the client 300, which may be a wired connection or a wireless connection, which is not specifically limited in this application. Among them, the number of the client 300 and the storage system 100 that establish a communication connection with the information identification system 200 may be one or more, which is not specifically limited in this application.

[0063] The storage system 100 and the information identification system 200 can be deployed on a computing device, wherein the computing device includes a bare metal server (BMS), a virtual machine, a container or an edge computing device. Among them, BMS refers to a general physical server, such as an ARM server or an X86 server; a virtual machine refers to a complete computer system with complete hardware system functions implemented by network function virtualization (NFV) technology and simulated by software, running in a completely isolated environment; a container refers to a group of processes that are resource-constrained and isolated from each other; an edge computing device refers to a device that is closer to the data source and end user and has low latency and high bandwidth characteristics, such as intelligent routing, edge servers, etc. The storage system 100 and the information identification system 200 can also be deployed in a computing device cluster, which may include multiple of the above computing devices.

[0064] The client 300 can be deployed on a terminal device or a computing device, wherein the terminal device includes a personal computer, a smart phone, a handheld processing device, a tablet computer, a mobile notebook, an augmented reality (AR) device, a virtual reality (VR) device, an integrated handheld device, a wearable device, a vehicle-mounted device, an intelligent conference device, an intelligent advertising device, an intelligent home appliance, etc., and the intelligent home appliance can be a sweeping robot, a mopping robot, etc., which are not specifically limited here. The computing device can be a BMS, a virtual machine, a container or an edge computing device. The specific description can refer to the above content, which is not repeated here.

[0065] Optionally, the storage system 100 and the information identification system 200 may be deployed on different computing devices, or on the same computing device. When the storage system 100 and the information identification system 200 are deployed on different computing devices, the storage system 100 and the information identification system 200 may be deployed on different computing devices in the same computing device cluster, or on different computing devices in different computing clusters. The specific decision may be made based on the actual application scenario, and this application does not make any specific limitation.

[0066] Optionally, the client 300 and the information identification system 200 can be deployed on different computing devices, or on the same computing device, or the client 300 can be deployed on a terminal device, and the information identification system 200 can be deployed on a computing device. When the client 300 and the information identification system 200 are deployed on different computing devices, the client 300 and the information identification system 200 can be deployed on different computing devices in the same computing device cluster, or on different computing devices in different computing clusters, which can be determined according to the actual application scenario, and this application does not make specific limitations.

[0067] Optionally, the client 300 may be implemented in the form of software, which may be an independent software specifically used for information recognition. Information recognition here includes speaker recognition, image information recognition, text information recognition, etc. Users can use it by downloading and installing the information recognition software. Figure 1 The above examples are for illustration only and are not specifically limited in this application.

[0068] Optionally, the client 300 may also be built into an application tool as a plug-in, for example, as a speaker information recognition plug-in in a smart car system, by recognizing the owner's voice, assisting the smart car system to open windows, close windows, play music and other functions; for example, as a face information recognition plug-in in a smart home system, by recognizing the owner's face, assisting the smart home system to unlock doors, unlock in security mode and other functions; for example, as a text information recognition plug-in in a learning and education system, it identifies the corresponding article or poem according to the sentence information input by the user, and assists the learning and education system in course teaching. Users can use it by upgrading the business software. Figure 1 The above examples are for illustration only and are not specifically limited in this application.

[0069] Optionally, the client 300 may also be a console of the cloud platform, which, as a sub-service of the cloud platform, provides information identification functions to users. Users can use the cloud platform by purchasing cloud services. Figure 1 The console can be a web-based client, an application client, or an application programming interface (API), which is not specifically limited in this application.

[0070] Furthermore, the information identification system 200 can be further divided into a plurality of unit modules, for example, Figure 1 As shown, the information identification system 200 may include a training unit 210, a creation unit 220, an acquisition unit 230, an encoding unit 240, a matching unit 250, and a sending unit 260, and also includes a storage device 270 storing an encoding model and a search tree. It should be understood that Figure 1 This is an exemplary division method. The information identification system 200 can also include more or fewer units. For example, the encoding unit and the matching unit can be merged into an information identification unit. For example, the training unit can be split into a model training unit and an incremental learning unit. For example, the creation unit can be split into a sample encoding unit and a search tree creation unit. It should be understood that the above examples are for illustration only and are not specifically limited in this application.

[0071] Among them, the training unit 210, the creation unit 220, the acquisition unit 230, the encoding unit 240, the matching unit 250 and the sending unit 260 can be implemented by software or by hardware. Exemplarily, the implementation of the training unit 210 is introduced below by taking the training unit 210 as an example. Similarly, the implementation of the creation unit 220, the acquisition unit 230, the encoding unit 240, the matching unit 250 and the sending unit 260 can refer to the implementation of the training unit 210.

[0072] The training unit 210 is taken as an example of a software functional unit. The training unit 210 may include code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the computing instance may be one or more. For example, the training unit 210 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple data centers with close geographical locations. Generally, a region may include multiple AZs.

[0073] The training unit 210 is an example of a hardware functional unit, and the training unit 210 may include at least one computing device, such as a server, etc. Alternatively, the training unit 210 may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0074] The functions of each unit module in the information identification system 200 are described below.

[0075] The training unit 210 is used to train the coding model, the input data of the coding model includes a vector, and the output data includes the coding result of the vector. The vector may be obtained based on digital information, and the digital information includes one or more of sound information, image information and text information. In the speaker recognition scenario, the vector may be obtained based on human voice, in the image information recognition scenario, the vector may be obtained based on a face image, and in the text information recognition scenario, the vector may be obtained based on text.

[0076] In the specific implementation, different technologies are required to obtain the corresponding vectors of different digital information. For example, for sound, speech recognition technology can be used to convert it into text, and then natural language processing technology can be used to convert the text into vectors; for images, convolutional neural network (CNN) can be used to extract image features, and then dimensionality reduction technology can be used to convert the features into vectors. For text, word embedding technology can be used to convert text into vectors. In general, different technologies can be adaptively selected to obtain the corresponding vectors according to different data types.

[0077] It should be understood that in order to make the present application better understood, the following description will be given using the speaker recognition scenario as an example, and the specific implementation methods of other application scenarios may refer to the implementation methods of the speaker recognition scenario.

[0078] Optionally, the above encoding model includes an encoder and a decoder, wherein the encoder is used to convert the input data into a low-dimensional code. The decoder is used to receive the low-dimensional code output by the encoder, and map the low-dimensional code back to the space of the input data to obtain the output data. If the output data of the decoder is very different from the input data, it means that the output data of the encoder is wrong, and the model parameters need to be adjusted until the model converges. The low-dimensional code obtained by encoding the input data by the trained encoder will not lose the important features of the input data, thereby ensuring the accuracy of the subsequent information recognition process.

[0079] Optionally, the above-mentioned coding model includes a masker, and during the model training process, the coding model masks the output result of the coding model through the masker, so that the first M bits in the output result of the trained coding model are used to represent the characteristics of the input data. In a specific implementation, after the vector is input into the encoder to obtain the low-dimensional code of the vector, the low-dimensional code of the vector can be input into the masker to obtain the first code of the vector, and then the first code is input into the decoder to obtain the decoding result, and the loss value (loss) is determined according to the gap between the decoding result and the encoder, and the model parameters of the encoder are adjusted according to the loss value, and the iteration is repeated multiple times until the model converges to obtain a trained encoder.

[0080] In a specific implementation, when training the coding model, the masker can perform a masking operation on the M+1th to Nth bits of the low-dimensional code output by the encoder, such as setting the characters of the M+1th to Nth bits to 0, while the 1st to Mth bits of the low-dimensional code remain unchanged, to obtain the first code of the vector, where M can be an integer obtained by random sampling. In simple terms, the low-dimensional code output by the encoder can be an N-bit code, and the first code output by the masker is also an N-bit code, but the first M bits of the first code are used to indicate the characteristics of the vector input to the encoder, and M is a positive integer not greater than N. It should be noted that the first bit of the code is the first bit of the code, such as the first bit on the left side of the code, and the Mth bit of the code refers to the Mth bit from the first bit of the code to the right. Alternatively, the first bit can also be the first bit on the right side of the code, and the Mth bit of the code is the Mth bit from the first bit on the right side of the code to the left. As long as the definition of the first bit of the code is consistent in the training and application stages of the coding model, this application does not make specific limitations.

[0081] It should be understood that the first code is obtained by performing a masking operation on the M+1 to N bits in the output result of the encoder, and then the first code is decoded to obtain a decoding result. The encoder model is adjusted according to the gap between the decoding result and the input data. In this way, the first code obtained in the inference stage output by the trained encoder and masker, its first M bits can represent the characteristics of the N-dimensional vector, that is, the characteristics of the N-dimensional vector are extracted into the first M bits of the first code, and the closer the position of the bit is, the higher the importance of the feature it represents, thereby achieving compression of the vector without losing the vector feature, thereby improving the efficiency of subsequent information recognition.

[0082] It should be noted that the features that can effectively distinguish the differences between vectors are important features. The more useful information a feature provides for distinguishing vectors, the higher its importance. For example, in the field of speaker recognition, features may include speech frequency, speech rate, pitch, speech intensity, speech rhythm, speech prosody, speech stress, speech quality, etc. These features have a certain influence on speaker recognition. Generally speaking, speech frequency and pitch may be the most important features because they can effectively distinguish different speakers. Secondly, features such as speech intensity and speech rate may be secondary features, and speech rhythm, speech prosody, and speech stress may be the least important features. Therefore, features representing speech frequency and pitch can be represented by bits in the front position, features of speech intensity and speech rate can be represented by bits in the middle position, and features such as speech rhythm and prosody can be represented by bits in the back position. The above examples are for illustration and are not specifically limited in this application.

[0083] It should be understood that the coding model is iteratively trained through a masker and a decoder, so that the trained encoder has the ability to extract features to the first N bits of the first code. In this way, no matter what the application scenario is, the encoder can have the above-mentioned ability through this method, thereby improving the adaptability of the solution.

[0084] Optionally, the encoding model further includes a sampler, which is used to sample the output result of the encoder to obtain a sampling result, and then input the sampling result into the above-mentioned masker to obtain a first encoding of the vector. In a specific implementation, each bit in the above-mentioned sampling result can be a character close to 0 or 1. For example, the sampler can be implemented based on Bernoulli sampling, or other sampling methods that can convert each bit into a value close to 0 or 1, which is not specifically limited in this application.

[0085] It should be understood that by sampling the output results of the encoder and then orderly masking the sampled results, the first code generated after masking can be made close to the binary code. In this way, the first code is decoded and restored, and the loss value is determined according to the gap between the decoder output result and the input vector. The encoder parameters are then adjusted based on this, so that the encoding result obtained by the final trained encoder can be closer to the binary code. After the encoding result is binarized, the encoding loss can be reduced and the encoding accuracy can be improved.

[0086] Optionally, the number of maskers in the coding model can be multiple, for example, the coding model includes a first encoder and a second encoder, the output result of the first encoder can be first input into the first masker to obtain the second code, and then the second code is input into the sampler, and then the output result of the sampler is input into the second masker to obtain the first code. Of course, if the coding model includes more than two maskers, then the output result of the second masker can be input into the sampler, and the output result of the sampler can be input into the third masker to obtain the first code, and so on, which will not be explained one by one here.

[0087] It should be noted that the greater the number of maskers, the greater the training complexity, the heavier the server pressure and the training cost. Therefore, the appropriate number of maskers can be selected according to the application scenario, and this application does not make any specific limitation.

[0088] It should be understood that by performing multiple masking operations on the code, and the number of mask bits M+1 each time is determined by random sampling, so that when the coding model is continuously iterated and trained, the features of the vector will be continuously compressed to the bits at the front positions, and the closer the bit position is, the more important the feature it represents. At the same time, combined with the decoder calculation loss, the coding model can compress the vector without losing the vector features, and the vector features are concentrated in the first few bits of the code, thereby improving the efficiency of subsequent information recognition. In addition, multiple masking can also improve the robustness and generalization ability of the coding model and improve the universality of the scheme.

[0089] Optionally, the encoding model also includes a binary encoder. After the model is trained, the output result of the encoder can be input into the binary encoder to obtain the binary encoding of the vector.

[0090] In a specific implementation, the binary encoder is implemented by a discriminant function, such as a positive and negative discriminant function, which maps bits greater than 0 to 1 and bits less than 0 to 0, thereby obtaining a binary encoding of the vector. It should be understood that the above examples are for illustration and are not specifically limited in this application.

[0091] Simply put, during the model training process, the vector is input into the encoder, and then the output result of the encoder is input into the first masker to obtain the second code, and then the second code is input into the sampler to obtain the sampling result, and then the sampling result is input into the second masker to obtain the first code, and finally the first code is input into the decoder, and the loss value is determined according to the gap between the output of the decoder and the vector, and the model parameters of the encoder are adjusted according to the loss value. The above steps are repeated until the loss value reaches the threshold to obtain a trained encoder.

[0092] During the model inference process, the vector to be inferred can be input into the encoder, and then the output result of the encoder is input into the binary encoder to obtain the binary code of the vector to be inferred.

[0093] It should be understood that the coding model is trained through a masker, a sampler and a decoder, so that in the output result of the coding model, the features of the vector are concentrated in the first few bits of the output result, and the output result is similar to the binary code. Therefore, when the output result of the coding model is converted into a binary code by a binary encoder, the loss of binary conversion is very small, thereby avoiding the loss of accuracy caused by binary conversion of the vector. At the same time, the features of the vector in the generated binary code are represented by the first few bits, so that in subsequent information recognition, we can focus on matching the first few bits to improve the efficiency of subsequent information recognition.

[0094] The creation unit 220 is used to input the registration vector of the object into the coding model trained by the training unit 210, obtain the binary code of each object (for ease of understanding, it is uniformly referred to as the second code in the following text, and the binary code corresponding to the query vector is called the first code), and then create a search tree based on the second code of each object.

[0095] Referring to the above content, it can be known that the information recognition system 200 provided by the present application can be applied to speaker recognition, image information recognition, text information recognition, etc. Therefore, the registration vector here is obtained based on the registered digital information, such as the registered voiceprint, the registered face image, and the text of the registered person, etc. The method of obtaining the vector based on the digital information can refer to the description of the above content. It should be understood that the registration vector refers to the vector of an object. For example, in the speaker recognition scenario, the registration vector can be the voice vector of a registered person in the voiceprint library, and the registered person here is an object; in the face recognition scenario, the registration vector can be the face image of a registered person in the face library, and the registered person here is an object; in the text information recognition scenario, the registration vector can be the text of a registered person in the text library, and the registered person here is an object. In order to make the present application better understood, the speaker recognition scenario is used as an example for explanation below, that is, the above registration vector is the voiceprint vector of the registered person.

[0096] In a specific implementation, the registration vector can be input into the encoder, and then the output result of the encoder is input into the binary encoder to obtain the second encoding of the registration vector. Referring to the description of the training process of the encoding model by the training unit 210, it can be seen that compared with the registration vector itself, the second encoding of the registration vector not only has no loss of accuracy, but also the characteristics of the vector are represented by the first few bits of the binary code, that is, the first M bits in the second encoding are used to describe the characteristics of the registration vector. In this way, in subsequent information recognition, we can focus on matching the first few bits to improve the efficiency of subsequent information recognition.

[0097] Optionally, the above-mentioned search tree can be a binary search tree. A binary search tree is a data structure having left and right subtrees and left and right child nodes. In an embodiment of the present application, the binary search tree can be established according to the binary encoding of each registration vector and the bit order of the binary encoding. In a specific implementation, the binary search tree may include multiple search layers, each search layer includes a left child node and / or a right child node, the left child node represents 0, and the right child node represents 1 (of course, the left child node can also represent 1 and the right child node can represent 0, which is not specifically limited in this application), each search layer can correspond to a bit of the binary code, starting from the first bit of the binary code, and each search layer of the binary tree is created in sequence. The number of bits of the binary code is N, and the number of layers of the binary tree is N+1.

[0098] It should be understood that a search tree is created according to the second encoding of the registration vector, each child node in the search tree represents character 1 or character 0, and each layer of child nodes corresponds to each bit of the second encoding. The created search tree includes multiple search paths, and each search path can correspond to the second encoding of a registration vector. For example, the registration vector corresponding to the search path with the child node 0 of the second layer has the third bit 0, and the registration vector corresponding to the search path with the child node 1 of the first layer has the first bit 1. The above examples are for illustration and are not specifically limited in this application.

[0099] It should be noted that the trained coding model and search tree can be stored in the storage device 270, which can be a file system, a storage system, a database, etc., which is not specifically limited in this application. In addition, referring to the above content, it can be seen that the information identification system 200 can be deployed in a single computing device or a computing device cluster. When the information identification system 200 is deployed in a single computing device, the storage device 270 can be deployed in the memory of the computing device. When the information identification system 200 is deployed in a computing device cluster, the storage device 270 can be deployed in the same or different computing devices as other units, which is not specifically limited in this application.

[0100] The acquisition unit 230 is used to acquire the digital information to be queried. The digital information can be obtained according to the query request input by the user through the client 300.

[0101] Referring to the foregoing content, it can be known that the information recognition system 200 provided in the present application can be applied to speaker recognition, image information recognition, text information recognition, etc. Therefore, the query request here may be different in different application scenarios. For example, in the speaker recognition scenario, the query request may be a request for querying the registrant corresponding to the sound. In the face recognition scenario, the query request may be a request for querying the registrant corresponding to the target face. In the text information recognition scenario, the query request may be a request for querying the registrant corresponding to the target text. In order to make the present application better understood, the speaker recognition scenario is uniformly used as an example for explanation below, that is, the above query request is a request for querying the registrant corresponding to the sound, carrying a query sound, and the above query vector may be a vector obtained after processing the sound. The method of obtaining the vector from the sound can refer to the relevant description in the above training unit 210, which will not be repeated here.

[0102] The encoding unit 240 is used to input the digital information to be queried into the encoding model trained by the training unit 210 to obtain the first code corresponding to the digital information to be queried.

[0103] Optionally, the encoding unit 240 can obtain a corresponding query vector based on the digital information to be queried, and then input the query vector into the encoding model to obtain a first code corresponding to the digital information to be queried. The specific process of the digital information obtaining its corresponding query vector can be referred to the relevant description of the training unit 210 in the aforementioned content, which will not be repeated here.

[0104] Referring to the above content, it can be known that after the encoding model is trained, the query vector can be first input into the encoder, and then the output result of the encoder is input into the binary encoder to obtain the binary encoding of the query vector, that is, the first encoding. The first encoding is not only a binary encoding, but also the first M bits in the first encoding are used to represent the features of the query vector. A feature can be represented by one or more bits, and the more important the information, the closer the corresponding bits are. Among them, the working principle of the encoding model can be referred to the above content, and it will not be repeated here.

[0105] The matching unit 250 is used to match the first code with the search tree to determine the target object corresponding to the digital information.

[0106] Referring to the relevant description of the creation unit 220 in the aforementioned content, it can be known that the created search tree includes multiple search paths, each search path corresponds to the second encoding of an object, and by matching the first encoding of the query vector with the search tree, a registration vector related to the query vector can be obtained, wherein the first encoding can be the same as the second encoding, or the first X bits of the first encoding are the same as the first X bits of the second encoding, wherein X<M.

[0107] Optionally, when the first code is used to match the search tree, the search path corresponding to the first code is determined by matching the first search layer of the search tree and the first bit of the first code in the order of each bit of the first code. In a specific implementation, the search tree may include multiple search layers, each search layer corresponds to a bit of a binary code, and the left child node in each search layer represents the character 0, and the right child node represents the character 1. Therefore, the bits can be matched with the left and right child nodes of the corresponding search layer in the order of the bits of the first code and in the order of the search layers from top to bottom, thereby determining the search path.

[0108] In a specific implementation, when the current bit is successfully matched with the target subnode in the current search layer, and the target subnode is connected to the subnode of the next search layer, the next bit can be matched with the subnode of the next search layer, and the target subnode successfully matched in the current search layer is recorded, and so on, until the match fails, and the recorded multiple target subnode sequences are obtained in the matching order to determine the search path.

[0109] If the current bit fails to match the left and right child nodes in the current search layer, for example, the current bit is 0, and there is only a right child node representing 1 in the current search layer, but no left child node, multiple target child node sequences of the current record can be obtained in the matching order, and at least one second code corresponding to at least one search path containing the target child node sequence sequence can be obtained. The registration vector corresponding to the above at least one second code is the registration vector related to the first code.

[0110] It should be understood that if there is no second code that is the same as the first code in the search tree, then a second code that is similar to the first code can be obtained. Referring to the foregoing content, it can be seen that the first M bits in the first code output by the trained coding model are used to represent the features of the query vector. The more important the feature, the closer the corresponding bit is to the front. Therefore, starting from the first bit of the first code, layer by layer matching can be performed with the search tree until the bit at the current position fails to match the left and right child nodes in the current search layer, and at least one search path containing the sequence order of the target child node is obtained, so as to ensure that the first X bits in the second code finally obtained are the same as the first code. Referring to the foregoing content, it can be seen that the more important the feature, the greater the contribution of the information it carries to distinguishing the difference between vectors. Therefore, matching is performed starting from the most important feature in sequence until the match fails, and the second code that is most similar to the first code can be retrieved.

[0111] It should be noted that since each search layer includes left and right child nodes, when the first code matches the search tree, after the current search layer successfully matches and obtains the target child node, the next search layer connected to the target child node can be determined, and then the matching can be continued, while the next search layer connected to the non-target child node of the current search layer does not need to be matched, so not every second code is matched with the first code. Through each search layer, the second codes that are not related to the first code can be continuously eliminated. Since the more important features correspond to the more forward bits, the second codes eliminated by the more forward search layers have a worse correlation with the first codes. Therefore, the solution provided in the present application can reduce resource consumption and improve the efficiency of information recognition.

[0112] For example, using a first code of length m, the time complexity of searching in N second codes is O(Nm), that is, it is necessary to calculate the similarity between the first code and the second code Nm times, such as the cosine distance. The present application uses a binary search tree retrieval method, and its retrieval time complexity is O(m), which is independent of the number of second codes N, and can greatly improve the efficiency of information recognition. At the same time, the search on the binary tree is only a series of bit matches, and the search speed is very fast, which can further improve the efficiency of information recognition.

[0113] The sending unit 260 is used to send the target object corresponding to the digital information to the client 300 .

[0114] In a specific implementation, in different application scenarios, the client 300 may display the target object corresponding to the digital information to the user in different ways. In a speaker recognition scenario, the target object corresponding to the digital information may refer to the speaker associated with the query voice, and the speaker corresponding to the query voice may be displayed to the user; in a face recognition scenario, the target object corresponding to the digital information may refer to the face associated with the query image, and the target to which the face corresponding to the query image belongs may be displayed to the user. It should be understood that the above examples are for illustration only and are not specifically limited in this application.

[0115] It should be noted that in some application scenarios, the sending unit 260 can also send the target object corresponding to the digital information to the storage system 100, and the storage system 100 can generate a new sample set for the training unit 210 to perform incremental learning on the coding model, so that the coding model can be continuously updated as the data changes, further improving the adaptability of the solution and the accuracy of the model.

[0116] In summary, the information identification system provided by the present application provides an information identification system, which encodes the digital information to be queried to obtain the first code of the digital information to be queried, and then uses the first code to match the search tree to determine the target object corresponding to the digital information to be queried, wherein the search tree includes multiple search paths, each search path corresponds to the second code of an object, so that by pre-encoding the digital information of multiple objects in the registration information library and the second code of each object, a search tree is created based on the second code, so that information identification can be achieved by matching the search tree, thereby improving the accuracy and efficiency of information identification.

[0117] The above text introduces the application scenario and information recognition system of the technical solution provided by this application in combination with the figure. Next, Figures 2 to 8 A detailed description of a method of identifying the information provided by the application.

[0118] Figure 2 This application provides an information identification method, which can be applied to Figure 1 In the information identification system 200 shown in FIG. Figure 2 As shown, the method comprises the following steps:

[0119] Step S210: training the coding model. This step can be performed by Figure 1 The training unit 210 in the embodiment implements.

[0120] Optionally, the above-mentioned encoding model includes an encoder, a masker and a decoder, wherein, after the vector is input into the encoder to obtain the low-dimensional code of the vector, the low-dimensional code of the vector can be input into the masker to obtain the first code of the vector, and then the first code is input into the decoder to obtain a decoding result, and the loss value is determined according to the gap between the decoding result and the encoder, and the model parameters of the encoder are adjusted according to the loss value, and the iteration is repeated multiple times until the model converges to obtain a trained encoder.

[0121] In a specific implementation, when training the coding model, the masker can perform a masking operation on the M+1th to Nth bits of the low-dimensional code output by the encoder, such as setting the character of the bit to 0, while the first 1 to M bits of the low-dimensional code remain unchanged, to obtain the first code of the vector, where M can be an integer obtained by random sampling. In simple terms, the low-dimensional code output by the encoder can be an N-bit code, and the first code output by the masker is also an N-bit code, but the first M bits of the first code are used to indicate the characteristics of the vector input to the encoder, and M is a positive integer not greater than N.

[0122] It should be understood that the first code is obtained by masking the M+1 to N bits in the output result of the encoder, and then the first code is decoded to obtain the decoding result. The encoder model is adjusted according to the difference between the decoding result and the input data, so that the first code obtained in the inference stage output by the trained encoder and masker, its first M bits can represent the characteristics of the N-dimensional vector, that is, the characteristics of the N-dimensional vector are extracted to the first M bits of the first code, and the closer the position of the bit is, the higher the importance of the feature it represents, thereby achieving compression of the vector without losing the vector feature, and improving the efficiency of subsequent information recognition. The coding model is iteratively trained through the masker and decoder, so that the trained encoder has the ability to extract features to the first N bits of the first code, so that no matter what the application scenario is, the encoder can have the above-mentioned ability through this method, thereby improving the adaptability of the solution.

[0123] Optionally, the encoding model further includes a sampler, which is used to sample the output result of the encoder to obtain a sampling result, and then input the sampling result into the above-mentioned masker to obtain a first encoding of the vector. In a specific implementation, each bit in the above-mentioned sampling result can be a character close to 0 or 1. For example, the sampler can be implemented based on Bernoulli sampling, or other sampling methods that can convert each bit into a value close to 0 or 1, which is not specifically limited in this application.

[0124] It should be understood that by sampling the output results of the encoder and then orderly masking the sampled results, the first code generated after masking can be made close to the binary code. In this way, the first code is decoded and restored, and the loss value is determined according to the gap between the decoder output result and the input vector. The encoder parameters are then adjusted based on this, so that the encoding result obtained by the final trained encoder can be closer to the binary code. After the encoding result is binarized, the encoding loss can be reduced and the encoding accuracy can be improved.

[0125] Optionally, the number of maskers in the coding model can be multiple, for example, the coding model includes a first encoder and a second encoder, the output result of the first encoder can be first input into the first masker to obtain the second code, and then the second code is input into the sampler, and then the output result of the sampler is input into the second masker to obtain the first code. Of course, if the coding model includes more than two maskers, then the output result of the second masker can be input into the sampler, and the output result of the sampler can be input into the third masker to obtain the first code, and so on, which will not be explained one by one here.

[0126] It should be noted that the greater the number of maskers, the greater the training complexity, the heavier the server pressure and the training cost. Therefore, the appropriate number of maskers can be selected according to the application scenario, and this application does not make any specific limitation.

[0127] It should be understood that by performing multiple masking operations on the code, and the number of mask bits M+1 each time is determined by random sampling, so that when the coding model is continuously iterated and trained, the features of the vector will be continuously compressed to the bits at the front positions, and the closer the bit position is, the more important the feature it represents. At the same time, combined with the decoder calculation loss, the coding model can compress the vector without losing the vector features, and the vector features are concentrated in the first few bits of the code, thereby improving the efficiency of subsequent information recognition. In addition, multiple masking can also improve the robustness and generalization ability of the coding model and improve the universality of the scheme.

[0128] Figure 3 This is a schematic diagram of the steps of a coding model in the training phase provided by the present application. It should be understood that Figure 3 This is an exemplary training method. The coding model provided in this application may also have more or fewer samplers and maskers, which is not specifically limited in this application. Figure 3 As shown, the coding model includes an encoder, a first masker, a sampler, a second masker and a decoder. The training process of the coding model is illustrated below.

[0129] First, after sample x in the sample set is input into the encoder, code z can be obtained. The dimension or number of bits of code z can be N. It should be understood that the number of bits of the encoder's output result z can be less than the number of bits of sample x, so as to achieve the purpose of compressing sample x and improve subsequent processing efficiency.

[0130] Secondly, the code z can be input into the first masker to obtain the second code Specifically, the first M bits in the output result z of the encoder can be retained, and the M+1th to Nth bits can be masked, that is, the characters of the M+1th to Nth bits are set to 0, so as to obtain the second code

[0131] In a specific implementation, M is an integer randomly sampled from 1 to N, such as randomly sampling an integer M from a uniform distribution U(1,N) from 1 to N. The above examples are for illustration only and are not specifically limited in this application. The first code obtained in the inference phase output by the trained encoder and masker can represent the features of the N-dimensional vector in its first M bits, that is, the features of the N-dimensional vector are extracted into the first M bits of the first code, and the closer the bit position is, the more important the feature it represents, thereby achieving compression of the vector without losing the features of the vector, thereby improving the efficiency of subsequent information recognition.

[0132] Next, the second code Input sampler and get sampling result z s , sampling result z s Approximately to binary coding, each bit can be a character close to 0 or 1. For example, the sampler can be implemented based on Bernoulli sampling. For example, the formula of the sampler can be as follows:

[0133]

[0134] where u satisfies a uniform distribution between 0 and 1, T is the temperature coefficient. The smaller T is, The more inclined to 0 and 1, the more used for control The sharpness of the distribution.

[0135] It should be understood that the above formula (1) is a sampling formula based on Bernoulli sampling. The present application may also adopt other sampling methods and sampling formulas that can convert each bit to be close to 0 or 1, and the present application does not make specific limitations. The sampler can make the encoding result obtained by the finally trained encoder closer to the binary code. Binarizing the encoding result can reduce the encoding loss and improve the encoding accuracy.

[0136] Then, the sampling result z sInput the second masker to obtain the first code Specifically, the second masker is similar to the first masker, and also retains the first M bits, and performs masking operations on the M+1th to Nth bits, where M is an integer obtained by random sampling from 1 to N. It should be understood that by performing multiple masking operations on the encoding, and the number of bits M+1 of each mask is determined by random sampling, when the encoding model is continuously iterated and trained, the features of the vector will be continuously compressed to the bits at the front positions, and the closer the position of the bit is to the front, the more important the feature it represents. Multiple masking can also improve the robustness and generalization ability of the encoding model and improve the universality of the scheme.

[0137] It should be noted that the integer M used by the second masker for masking can be the integer M sampled by the first masker, or the integer M' obtained by random re-sampling. The specific value can be determined according to the actual application scenario and is not specifically limited in this application.

[0138] Finally, the first code Input the decoder, obtain the decoder output result x', determine the loss value based on the difference between the decoder output result x' and the sample x in the sample set, adjust the encoder model parameters based on the loss value, and repeat with different samples x Figure 1 The steps shown in the figure are as follows, until the loss value reaches the threshold and the model converges to obtain the trained encoder.

[0139] Exemplarily, the loss value L may be the mean square error loss between the output result x' of the decoder and the sample x input to the encoder. The formula of the loss value L may be as follows:

[0140]

[0141] It should be understood that Figure 3 The exemplary training process of a coding model provided by the present application is shown. The present application does not specifically limit the coding model. For incomplete descriptions of the coding model, please refer to the aforementioned Figure 1 The relevant descriptions in the embodiments are not repeated here.

[0142] Step S220: Input the registration vector of the object into the coding model to obtain the second coding of the object. This step can be performed by Figure 1 The creation unit 220 in the embodiment implements.

[0143] Optionally, the encoding model also includes a binary encoder, which is used to convert input data into binary code. In a specific implementation, after the model is trained, in the model inference stage, the vector can be input into the trained encoder, and then the output result of the encoder can be input into the binary encoder to obtain the binary code of the vector. Therefore, step S220 can first input the registration vector into the encoder, and then input the output result of the encoder into the binary encoder to obtain the second code. In a specific implementation, the binary encoder is implemented by a discriminant function, such as a positive and negative discriminant function, which maps bits greater than 0 to 1 and bits less than 0 to 0, thereby obtaining the binary code of the vector. Exemplarily, the binary encoder can be implemented based on the following formula (3) of the positive and negative discriminant function:

[0144]

[0145] Each code can be mapped to 0 / 1 by formula (3), thus obtaining the second code b t The second code is an ordered binary code, and the first M bits of the second code are used to describe the characteristics of the registration vector, and the characteristics indicated by the first bits are more important.

[0146] For example, Figure 4 This is a schematic diagram of the steps of a coding model in the inference stage provided by this application, such as Figure 4 As shown, the registration vector x can be input into a trained encoder to obtain the output result z of the encoder, and then the output result z of the encoder is input into a binary encoder to obtain the second encoding B of the registration vector x. The encoder can be Figure 3 The binary encoder obtained by the steps described above can be implemented by formula (3) above.

[0147] It should be understood that the coding model is trained through a masker, a sampler and a decoder, so that in the output result of the coding model, the features of the vector are concentrated in the first few bits of the output result, and the output result is similar to the binary code. Therefore, when the output result of the coding model is converted into a binary code by a binary encoder, the loss of binary conversion is very small, thereby avoiding the loss of accuracy caused by binary conversion of the vector. At the same time, the features of the vector in the generated binary code are represented by the first few bits, so that in subsequent information recognition, we can focus on matching the first few bits to improve the efficiency of subsequent information recognition.

[0148] Step S230: Create a search tree based on the second encoding of the object. This step can be done by Figure 1 The creation unit 220 in the embodiment implements.

[0149] Optionally, the above-mentioned search tree can be a binary search tree. A binary search tree is a data structure having left and right subtrees and left and right child nodes. In an embodiment of the present application, the binary search tree can be established according to the binary code of each registration vector and the bit order of the binary code. In a specific implementation, the binary search tree may include multiple search layers, each search layer includes a left child node and / or a right child node, the left child node represents 0, and the right child node represents 1 (of course, the left child node can also represent 1 and the right child node represents 0, which is not specifically limited in this application), each search layer can correspond to a bit of the binary code, starting from the first bit of the binary code, and each search layer of the binary tree is created in sequence. The number of bits of the binary code is N, and the number of layers of the binary tree is N+1. The created search tree includes multiple search paths, and each search path corresponds to the second code of a registration vector.

[0150] It should be understood that a search tree is created according to the second encoding of the registration vector, each child node in the search tree represents character 1 or character 0, and each layer of child nodes corresponds to each bit of the second encoding. The created search tree includes multiple search paths, and each search path can correspond to the second encoding of a registration vector. For example, the registration vector corresponding to the search path with the child node 0 of the second layer has the third bit 0, and the registration vector corresponding to the search path with the child node 1 of the first layer has the first bit 1. The above examples are for illustration and are not specifically limited in this application.

[0151] For example, Figure 5 is a schematic diagram of a search tree provided by this application, such as Figure 5 As shown, assuming that the second encoding of the registration vector includes 0000...1, 0100...0, 0101...0, 1001...0, 1101...1, 1111...1, Figure 5 In the example shown, character 0 corresponds to the left child node, and character 1 corresponds to the right child node. The left and right leaf nodes in each search layer are determined according to the character of each bit. Taking the second code 0000…1 as an example, the search path can be left child node-left child node-left child node-left child node…right child node. Taking the second code 0100…0 as an example, the search path can be left child node-right child node-left child node-left child node…left child node, and so on. According to the above second code, the following can be created: Figure 5 The search tree. It should be understood that Figure 5 This application is used for illustration only and is not intended to be limiting.

[0152] Step S240: Obtain the digital information to be queried. This step can be performed by Figure 1The acquisition unit 230 in the embodiment is implemented. The digital information to be queried is different in different application scenarios. For example, in the speaker recognition scenario, the digital information to be queried may be the sound to be queried, in the face recognition scenario, the digital information to be queried may be the image to be queried, and in the text query scenario, the digital information to be queried may be the text to be queried, which is not specifically limited in this application.

[0153] Step S250: Encode the digital information to be queried to obtain the first code of the query vector. This step can be performed by Figure 1 The encoding unit 240 in the embodiment is implemented.

[0154] Referring to the above content, it can be known that after the coding model is trained, the digital information to be queried can be converted into a query vector first. The method of obtaining the corresponding query vector according to the sound, image and text can refer to the above content, and will not be repeated here. Then the query vector can be input into the encoder first, and then the output result of the encoder is input into the binary encoder to obtain the binary encoding of the query vector, that is, the first encoding. The first encoding is not only a binary encoding, but also the first M bits in the first encoding are used to represent the characteristics of the query vector. A feature can be represented by one or more bits. The more important the information, the closer the corresponding bit is. Among them, the working principle of the coding model can refer to the above content, and will not be repeated here.

[0155] It should be understood that the first code and the second code are obtained in a similar manner, and can also be referred to Figure 4 In the embodiment, the query vector x is input into the encoder to obtain the output result z of the encoder, and then the output result z is input into the binary encoder to obtain the first code B. For detailed description, please refer to steps S220 and Figure 4 The relevant description of the embodiments will not be repeated here.

[0156] Step S260: Use the first code to match the search tree to determine the target object corresponding to the digital information to be queried. This step can be performed by Figure 1 The matching unit 250 in the embodiment is implemented.

[0157] Optionally, according to the order of each bit of the first code, matching is performed starting from the first search layer of the search tree and the first bit of the first code to determine the search path corresponding to the first code. In a specific implementation, the search tree may include multiple search layers, each search layer corresponds to a bit of a binary code, the left child node in each search layer represents the character 0, and the right child node represents the character 1, so the bits can be matched with the left and right child nodes of the corresponding search layer in the order of the bits of the first code and in the order of the search layers from top to bottom, thereby determining the search path.

[0158] Optionally, if the current bit successfully matches the target subnode in the current search layer, and the target subnode is connected to the subnode of the next search layer, the next bit can be matched with the subnode of the next search layer, and the target subnode that successfully matches the current search layer can be recorded, and so on, until the match fails, and the recorded multiple target subnode sequences are obtained in the matching order to determine the search path.

[0159] Optionally, if the current bit fails to match the left and right child nodes in the current search layer, for example, the current bit is 0, and there is only a right child node representing 1 in the current search layer, and no left child node, multiple target child node sequences of the current record can be obtained in the matching order, and at least one second code corresponding to at least one search path containing the target child node sequence sequence can be obtained. The registration vector corresponding to the above at least one second code is the registration vector related to the first code.

[0160] Optionally, if there is no second code identical to the first code in the search tree, then a second code similar to the first code may be obtained, and the first X bits of the first code are identical to the first X bits of the second code, where X<M.

[0161] Referring to the foregoing content, it can be seen that the first M bits in the first code output by the trained coding model are used to represent the features of the query vector. The more important the feature, the closer the bit corresponding to it is to the front. Therefore, starting from the first bit of the first code, layer by layer matching can be performed in sequence with the search tree until the bit at the current position fails to match the left and right child nodes in the current search layer, and at least one search path containing the sequence order of the target child node is obtained, so as to ensure that the first X bits in the second code finally obtained are the same as the first code. Referring to the foregoing content, it can be seen that the more important the feature, the greater the contribution of the information it carries to distinguishing the difference between vectors. Therefore, matching can be performed starting from the most important feature in sequence until the match fails, and the second code that is most similar to the first code can be retrieved.

[0162] For example, Figure 6 This is a flowchart of the steps of the search tree matching provided by this application, such as Figure 6 As shown, the steps of using the first encoding to match the search tree can be as follows:

[0163] Step 1. Determine that the current comparison bit is the first bit of the first code and the current node is the root node of the search tree.

[0164] It should be understood that the above-mentioned comparison bit refers to the bit of the first code involved in the matching, and the current node refers to the node of the search tree involved in the matching.

[0165] Step 2. Determine whether the current comparison bit is 0. If the current comparison bit is 0, execute step 4, and if the current comparison bit is not 0, execute step 3.

[0166] For example, the current comparison bit is the first digit of the first code. If the first code is 0101010, then the current comparison bit is 0. If the first code is 101010, then the current comparison bit is 1. The above example is for illustration only and this application does not make any specific limitation.

[0167] Step 3. Determine whether the current node has a right child node. If the current node has a right child node, execute step 6; if the current node does not have a right child node, execute step 9.

[0168] exist Figure 6 In the example shown, when the search tree is created, when the bit in the second code is 0, the corresponding child node created is the left child node, and when the bit is 1, the corresponding child node created is the right child node. Therefore, when the first code is used to match the search tree, if the current comparison bit is not 0, that is, the current bit is 1, and the current node has a right child node, it means that the search tree has a second code with a current comparison bit of 1, and you can continue with the next bit and the next child node; if there is no right child node, it means that the search tree does not have a second code with a current comparison bit of 1, and you can stop matching.

[0169] Step 4. Determine whether the current node has a left child node. If the current node has a left child node, execute step 5; if the current node does not have a left child node, execute step 9.

[0170] When using the first encoding to match the search tree, if the current comparison bit is 0 and the current node has a left child node, it means that the search tree has a second encoding with a current comparison bit of 0, so you can continue with the next bit and the next child node; if there is no left child node, it means that the search tree does not have a second encoding with a current comparison bit of 0, so you do not need to continue matching.

[0171] Step 5. Update the current node to the left child node.

[0172] It should be understood that when it is determined that the current comparison bit is 0 and the current node has a left child node representing character 0, a match can be performed between the next comparison bit and the next node, so the current node needs to be updated to the left child node determined in step 4.

[0173] Step 6. Update the current node to the right child node.

[0174] It should be understood that when it is determined that the current comparison bit is 1 and the current node has a right child node representing character 1, a match can be performed between the next comparison bit and the next node, so the current node needs to be updated to the right child node determined in step 3.

[0175] Step 7. Whether the current comparison bit is the last bit of the first code. If the current comparison bit is the last bit, execute step 9; if the current comparison bit is not the last bit, execute step 8.

[0176] Step 8. Update the current comparison bit to the next bit. After step 8 is completed, step 2 can be executed.

[0177] It should be understood that when the current comparison bit is not the last bit, the current comparison bit can be updated to the next bit, and the next bit can be matched with the next node. In this way, according to the bit order of the first code, the bits are matched with the left and right child nodes of the corresponding search layer in order from top to bottom, so as to determine the search path.

[0178] It should be noted that each time the bit and the current node are updated, the names of the updated target nodes can be recorded in the update order to generate a target node sequence, based on which the search path to be returned in step 9 can be determined.

[0179] Step 9. Return to the search path.

[0180] When it is determined in step 3 that the current node has no right child node, it means that the current first code comparison bit is 1, but the current node has no right child node for representing character 1, that is, the search tree does not have a second code that is the same as the first code, and multiple second codes similar to the first code can be returned at this time. Therefore, the search path returned in step 9 includes the search path of the second registration vector, wherein the number of child nodes X in the search path of the second registration vector is less than the number of bits N in the first code, and the first X bits in the first code are the same as the first X bits of the first code. It should be understood that the above search path can be the entire search path containing the target node sequence, in other words, the above search path can be the search path corresponding to all child nodes connected to the current node.

[0181] When it is determined in step 4 that the current node has no left child node, it means that the current first code comparison bit is 0, but the current node has no left child node for representing character 0, that is, the search tree does not have a second code that is the same as the first code. At this time, multiple second codes similar to the first code can be returned.

[0182] When it is determined in step 7 that the current comparison bit is determined to be the last bit of the first code, it means that there is a second code that is the same as the first code in the search tree, and the above search path is the search path corresponding to the target node sequence recorded previously.

[0183] It should be understood that Figure 6 For the purpose of illustration, the present application may also use other methods to achieve the match between the first code and the search tree. For example, step 2 may be matched by determining whether the table comparison is 1. Correspondingly, step 3 needs to determine whether the current node has a left child node, step 4 needs to determine whether it has a right child node, and subsequent steps need to make corresponding new changes. Examples are not given here one by one, and the present application does not make specific limitations.

[0184] Optionally, after determining the registration vector related to the query vector, that is, the target object corresponding to the digital information to be queried, it can be returned to the client. In the specific implementation, in different application scenarios, the client can use different methods to display the target object to the user. In the speaker recognition scenario, the target object corresponding to the digital information may refer to the speaker related to the query voice. At this time, the speaker corresponding to the query voice can be displayed to the user; in the face recognition scenario, the target object corresponding to the digital information may refer to the face related to the query image. At this time, the target to which the face corresponding to the query image belongs can be displayed to the user. It should be understood that the above examples are for illustration only and are not specifically limited in this application.

[0185] In order to make this application better understood, Figure 5 The search tree shown in FIG. 1 is used to illustrate the information recognition method provided by the present application, taking the speaker recognition scenario as an example. Figure 7 As shown, Figure 7 This is a schematic diagram of the step flow of an information identification method provided by the present application in an application scenario.

[0186] First, the coding model is trained through the steps described in step S210. Figure 7 In the example shown, the dimension of the input vector is 256, and the dimension of the encoder output result is 32. The training process can refer to steps S210 and Figure 3 The description in the embodiments will not be repeated here.

[0187] Secondly, through the steps described in step S220, the registration vector is input into the encoder trained in step S210 to obtain the second encoding of the registration vector. In a specific implementation, the registration vector can be input into the encoder and then into the binary encoder to obtain an ordered binary encoding, that is, the second encoding, wherein the above binary encoding can be a positive and negative discriminant function. It should be understood that the above steps can refer to steps S220 and Figure 4 The detailed description of the embodiments will not be repeated here.

[0188] Next, a search tree is created according to the second code through the steps described in step S230. The search tree includes multiple search paths, each of which corresponds to a second code, or a speaker. It should be understood that the creation process of the search tree can refer to steps S230 and Figure 5 The description of the embodiments will not be repeated here.

[0189] Then, through the description of step S240 and step S250, the query vector to be identified is obtained, and then referring to the method of obtaining the second encoding in step S220, the query vector is input into the encoding model trained in step S210 to obtain the 32-dimensional encoding z, and then the 32-dimensional encoding z is input into the positive and negative discriminant function to obtain the ordered binary encoding, that is, the first encoding of the query vector. Figure 7 In the example shown, the first code is 1001…0. It should be understood that the method for obtaining the first code can refer to step S240 and Figure 4 The detailed steps of the embodiment will not be repeated here.

[0190] Finally, as described in step S260, the first code is used to match the search tree to obtain a registration vector related to the query vector, where the number of registration vectors can be one or more. In a specific implementation, according to the order of each bit of the first code, the first search layer of the search tree and the first bit of the first code are matched to determine the search path corresponding to the first code. For details, please refer to step S260 and Figure 6 The description in the embodiments will not be repeated here.

[0191] In simple terms, combining Figure 6 In the step flow, first determine according to step 1 that the current comparison bit is the first bit, and the current node is the root node of the search tree, then determine according to step 2 whether the current comparison bit is 0, and determine according to the first code 1001…0 that the first bit is not 0, so execute step 3 to determine whether the current node has a right child node, and determine according to the search tree that the current node (root node) has a right child node, so you can continue to execute step 6 to update the current node to the right child node, and then execute step 7 to determine whether the current comparison bit is the last bit of the first code. The current comparison bit is the first bit, so you can execute step 8 to update the current comparison bit to the next bit, that is, the second bit "0", and then continue to execute step 2 to determine whether the current comparison bit is 0. If yes, execute step 4 to determine whether the current node (the right child node of the root node) has a left child node. Figure 7In the search tree in , the right child node of the root node includes the left child node, so execute step 5, update the current node to the left child node of the right child node of the root node, and then execute step 7 to determine whether the current comparison bit is the last bit of the first code. Here, the current comparison bit is the second bit of the first code, so execute step 8 to update the current comparison bit to the next bit, that is, the current comparison bit is updated to the third bit "0" of the first code, and then execute steps 2 to 8 until step 9 is executed, that is, the comparison bit reaches the end, or the current bit and the current node fail to match, thereby obtaining the search path.

[0192] Understandably, in Figure 7 In the example shown, the search path corresponding to speaker C is the same as the first encoding, that is, the first encoding is the same as the second encoding. If there is no second encoding that is the same as the first encoding, then a second encoding that is similar to the first encoding can be selected. For example, assuming that the first encoding obtained by the query vector input encoder is 0111…0, Figure 8 This is a flow chart of a method for information identification provided by the present application when a first code is matched with a search tree in an application scenario, such as Figure 8 As shown, the first bit and the second bit of the first code successfully match the search tree, but the third bit is 1, and the current node is y2. At this time, the current node does not have a right child node for representing character 1. At this time, step 9 needs to be executed to return the search path. Then, the search path returned at this time can be all search paths containing the target node sequence that was successfully matched before. The target node sequence that was successfully matched before was y1, y2, so all search paths containing y1, y2 can be returned. In other words, the search path corresponding to the child node connected to the child node that failed to match, that is, all search paths connected to the child node y2 can be returned. Figure 8 In the example shown, there are two search paths connected to y2, a search path corresponding to the second code 0100...0, and a search path corresponding to the second code 0101...0.

[0193] Referring to the foregoing content, it can be seen that the first M bits in the first code output by the trained coding model are used to represent the features of the query vector. The more important the feature, the closer the bit corresponding to it is to the front. Therefore, starting from the first bit of the first code, layer by layer matching can be performed in sequence with the search tree until the bit at the current position fails to match the left and right child nodes in the current search layer, and at least one search path containing the sequence order of the target child node is obtained, so as to ensure that the first X bits in the second code finally obtained are the same as the first code. Referring to the foregoing content, it can be seen that the more important the feature, the greater the contribution of the information it carries to distinguishing the difference between vectors. Therefore, matching can be performed starting from the most important feature in sequence until the match fails, and the second code that is most similar to the first code can be retrieved.

[0194] It can be understood that, since each search layer includes left and right child nodes, when the first code matches the search tree, after the current search layer successfully matches and obtains the target child node, the next search layer connected to the target child node can be determined, and then the matching can be continued, while the next search layer connected to the non-target child node of the current search layer does not need to be matched, for example Figure 8 In the example shown, other child nodes in the search layer where y2 is located do not need to match the bits of the first code, so not every second code is matched with the first code. Second codes that are irrelevant to the first code can be continuously eliminated through each search layer. Since the more important features correspond to the closer the bits are to the front, the second codes eliminated by the closer search layers have a lower correlation with the first code. Therefore, the solution provided in the present application can reduce resource consumption and improve the efficiency of information recognition.

[0195] Therefore, the time complexity of searching for a first code of length m among N second codes is O(Nm), that is, it is necessary to calculate the similarity between the first code and the second code Nm times, such as the cosine distance. The present application uses a binary search tree search method, and its search time complexity is O(m), which is independent of the number of second codes N, and can greatly improve the efficiency of information recognition. At the same time, the search on the binary tree is only a series of bit matches, and the search speed is very fast, which can further improve the efficiency of information recognition. It should be understood that Figure 7 and Figure 8 This application is used for illustration only and is not intended to be limiting.

[0196] In summary, the present application provides an information identification method, which encodes the digital information to be queried to obtain a first code of the digital information to be queried, and then uses the first code to match the search tree to determine the target object corresponding to the digital information to be queried, wherein the search tree includes multiple search paths, each search path corresponds to the second code of an object, so that by pre-encoding the digital information of multiple objects in the registration information library and the second code of each object, a search tree is created based on the second code, so that information identification can be achieved by matching the search tree, thereby improving the accuracy and efficiency of information identification.

[0197] Combined with the above Figures 2 to 8 , describes in detail the information identification method provided by this application, and will be combined with Figures 9 to 11 , describing the computing device and computing device cluster provided according to the present application.

[0198] Fig. 9 It is a structural diagram of a computing device provided in the present application. The computing device 900 may be the information identification system in the aforementioned content.

[0199] Furthermore, the computing device 900 includes a processor 901, a storage unit 902, a storage medium 903 and a communication interface 904, wherein the processor 901, the storage unit 902, the storage medium 903 and the communication interface 904 communicate through a bus 905, and also communicate through other means such as wireless transmission.

[0200] The processor 901 is composed of a plurality of general-purpose processors, such as a CPU, an NPU, or a combination of a CPU and a hardware chip. The hardware chip is an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD is a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), a data processing unit (DPU), a system on chip (SoC), or any combination thereof. The processor 901 executes various types of digital storage instructions, such as software or firmware programs stored in the storage unit 902, which enables the computing device 900 to provide a wide variety of services.

[0201] In a specific implementation, as an embodiment, the processor 901 includes one or more CPUs, such as Fig. 9 CPU0 and CPU1 are shown in the figure.

[0202] In a specific implementation, as an embodiment, the computing device 900 also includes multiple processors, such as Fig. 9 901 and processor 906 are shown in FIG. Each of these processors can be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor here refers to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0203] The storage unit 902 is used to store program codes, and is controlled by the processor 901 to execute the above Figure 1-Figure 8 The processing steps of the information identification method in any embodiment of the present invention. The program code includes one or more software units. The one or more software units are Figure 1 The training unit, the creation unit, the acquisition unit, the encoding unit, the matching unit and the sending unit in the embodiment, specifically, the training unit is used to perform Figure 2 Step S210 in the embodiment, Figure 3 Embodiment and optional steps thereof, creating a unit for executing Figure 2 Step S220, step S230, Figure 4 Example Figure 5 Embodiment and optional steps thereof, the acquisition unit is used to execute Figure 2 In step S230 and its optional steps in the embodiment, the encoding unit is used to perform Figure 2 Step S240 in the embodiment, Figure 4 Embodiment and optional steps thereof, the matching unit is used to perform Figure 2 Step S250 in the embodiment, Figure 6 Steps 1 to 9 and optional steps in the embodiment are not described in detail here.

[0204] The storage unit 902 includes a read-only memory and a random access memory, and provides instructions and data to the processor 901. The storage unit 902 also includes a non-volatile random access memory. The storage unit 902 is a volatile memory or a non-volatile memory, or includes both volatile and non-volatile memories. Among them, the non-volatile memory is a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory is a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are used, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct rambus RAM (DR RAM). It can also be a hard disk, a universal serial bus (USB), a flash memory, a secure digital memory card (SD card), a memory stick, etc. The hard disk is a hard disk drive (HDD), a solid state disk (SSD), a mechanical hard disk (HDD), etc., and this application does not make specific limitations.

[0205] The storage medium 903 is a carrier for storing data, such as a hard disk, a universal serialbus (USB), a flash memory, a secure digital memory card (SD card), a memory stick, etc. The hard disk can be a hard disk drive (HDD), a solid state disk (SSD), a mechanical hard disk (HDD), etc., and this application does not make specific limitations.

[0206] The communication interface 904 is a wired interface (such as an Ethernet interface), an internal interface (such as a high-speed serial computer expansion bus (Peripheral Component Interconnect express, PCIe) bus interface), a wired interface (such as an Ethernet interface) or a wireless interface (such as a cellular network interface or a wireless local area network interface) for communicating with other servers or units.

[0207] The bus 905 is a Peripheral Component Interconnect Express (PCIe) bus, an extended industry standard architecture (EISA) bus, a unified bus (Ubus or UB), a compute express link (CXL), a cache coherent interconnect for accelerators (CCIX), etc. The bus 905 is divided into an address bus, a data bus, a control bus, etc.

[0208] The bus 905 includes not only a data bus but also a power bus, a control bus, and a status signal bus, etc. However, for the sake of clarity, various buses are labeled as the bus 905 in the figure.

[0209] Need to explain, Fig. 9 This is only one possible implementation of the embodiment of the present application. In practical applications, the computing device 900 may also include more or fewer components, which is not limited here. Figure 1-Figure 8 The relevant explanations in the embodiments will not be repeated here.

[0210] Fig.101 is a schematic diagram of a computing device cluster provided by the present application, wherein the computing device cluster includes at least one computing device. The computing device may be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device may also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.

[0211] like Fig.10 As shown, the computing device cluster includes at least one computing device 1000. The memory 1003 in one or more computing devices 1000 in the computing device cluster may store the same instructions for executing the information identification method.

[0212] In some possible implementations, the memory 1003 of one or more computing devices 1000 in the computing device cluster may also store partial instructions for executing the information identification method. In other words, the combination of one or more computing devices 1000 may jointly execute instructions for executing the information identification method.

[0213] It should be noted that the memory 1003 in different computing devices 1000 in the computing device cluster can store different instructions, which are respectively used to execute part of the functions of the resource migration system. That is, the instructions stored in the memory 1003 in different computing devices 1000 can implement the training unit, the creation unit, the acquisition unit, the encoding unit, the matching unit and the sending unit. Specifically, the training unit is used to execute Figure 2 Step S210 in the embodiment, Figure 3 Embodiment and optional steps thereof, creating a unit for executing Figure 2 Step S220, step S230, Figure 4 Example Figure 5 Embodiment and optional steps thereof, the acquisition unit is used to execute Figure 2 In step S230 and its optional steps in the embodiment, the encoding unit is used to perform Figure 2 Step S240 in the embodiment, Figure 4 Embodiment and optional steps thereof, the matching unit is used to perform Figure 2 Step S250 in the embodiment, Figure 6 Steps 1 to 9 and optional steps in the embodiment are not described in detail here.

[0214] The computing device 1000 includes a processor 1001, a communication interface 1002, a memory 1003, and a bus 1004. For further description of the processor 1001, the communication interface 1002, the memory 1003, and the bus 1004, please refer to Fig. 9The descriptions of the processor 901 , the processor 901 , the storage unit 902 , the storage medium 903 , the communication interface 904 , and the bus 905 in the embodiment are not repeated here.

[0215] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Fig.11 A possible implementation is shown. Fig.11 is another structural diagram of a computing device cluster provided by the present application, such as Fig.11 As shown, two computing devices 1000A and 1000B are connected via a network. Specifically, they are connected to the network via a communication interface in each computing device. In this type of possible implementation, the memory 1003 in the computing device 1000A stores instructions for implementing the training unit. At the same time, the memory 1003 in the computing device 1000B stores instructions for implementing the creation unit, the acquisition unit, the matching unit, the encoding unit, and the sending unit.

[0216] It should be understood that Fig.11 The functions of the computing device 1000A shown in FIG. 1000A may also be completed by multiple computing devices 1000. Similarly, the functions of the computing device 1000B may also be completed by multiple computing devices 1000.

[0217] Need to explain, Fig.11 The implementation method shown may be an implementation method for a case where the processing power of the computing device 1000A is insufficient, or the storage space of the computing device 1000A is insufficient, or an implementation method for other business scenarios, and this application does not make any specific limitations.

[0218] The present application embodiment also provides another computing device cluster. The connection relationship between the computing devices in the computing device cluster can be similar to that of Fig.10 and Fig.11 Connection mode of computing device cluster. The difference is that the memory 1003 in one or more computing devices 1000 in the computing device cluster may store the same instructions for executing the information identification method.

[0219] In some possible implementations, the memory 1003 of one or more computing devices 1000 in the computing device cluster may also store partial instructions for executing the information identification method. In other words, the combination of one or more computing devices 1000 may jointly execute instructions for executing the information identification method.

[0220] The embodiment of the present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the information identification method.

[0221] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by the computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a high-density digital video disc (DVD)), or a semiconductor medium (for example, a solid-state hard disk), etc. The computer-readable storage medium includes instructions that instruct the computing device to execute the information identification method, or instruct the computing device to execute the information identification method.

[0222] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented using software, the above embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product includes a plurality of computer instructions. When the computer program instructions are loaded or executed on a computer, the process or function according to the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.

[0223] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent repairs or replacements within the technical scope disclosed by the present invention, and these repairs or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. An information identification method, characterized in that: The method is applied to an information identification device, and the method comprises: Obtain digital information to be queried; Encoding the digital information to be queried to obtain a first code of the digital information to be queried; The first code is matched with a search tree to determine a target object corresponding to the digital information, wherein the search tree includes a plurality of search paths, and each of the plurality of search paths corresponds to a second code of an object.

2. The method according to claim 1, characterized in that The first code is an N-bit binary code, and the first M bits in the first code are used to represent the characteristics of the digital information, M<N.

3. The method according to claim 1 or 2, characterized in that: The digital information includes one or more of the following: sound information, image information, and text information.

4. The method according to any one of claims 1 to 3, characterized in that: The first code and the second code have the same first X bits, where X is less than or equal to M.

5. The method according to any one of claims 2 to 4, characterized in that: The first code is obtained through a coding model. During the model training process, the coding model masks the output result of the coding model through a masker so that the first M bits in the output result of the trained coding model are used to represent the characteristics of the input data.

6. The method according to claim 5, characterized in that The masker is used to perform a masking operation on the M+1th bit to the Nth bit of the output result of the coding model, wherein M is an integer obtained by random sampling from 1 to N.

7. An information recognition system, characterized in that: The system comprises: An acquisition unit, used for acquiring digital information to be queried; An encoding unit, used for encoding the digital information to be queried to obtain a first code of the digital information to be queried; A matching unit is used to match the first code with a search tree to determine a target object corresponding to the digital information, wherein the search tree includes a plurality of search paths, each of the plurality of search paths corresponds to a second code of an object.

8. The system according to claim 7, characterized in that The first code is an N-bit binary code, and the first M bits in the first code are used to represent the characteristics of the digital information, M<N.

9. The system according to claim 7 or 8, characterized in that: The digital information includes one or more of the following: sound information, image information, and text information.

10. The system according to any one of claims 7 to 9, characterized in that: The first code and the second code have the same first X bits, where X is less than or equal to M.

11. The system according to any one of claims 8 to 10, characterized in that: The first code is obtained through a coding model. During the model training process, the coding model masks the output result of the coding model through a masker so that the first M bits in the output result of the trained coding model are used to represent the characteristics of the input data.

12. The system according to claim 11, characterized in that The masker is used to perform a masking operation on the M+1th bit to the Nth bit of the output result of the coding model, wherein M is an integer obtained by random sampling from 1 to N.

13. A computing device cluster, characterized in that: The method comprises at least one computing device, each of which comprises a processor and a memory, and the processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster implements the method according to any one of claims 1 to 6.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and the instructions are executed by a computing device or a computing device cluster to implement the method according to any one of claims 1 to 6.

15. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a computing device or a computing device cluster, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Method and system for recognizing feature character strings

    CN102402692A

  • Address matching method and system based on Chinese word segmentation device

    CN112612863A

  • Information search method and device, terminal equipment and computer readable storage medium

    CN113342848A

  • Joint detection and decoding method with polar codes in multiple input multiple output system and receiver using thereof

    KR101918584B1