Data identification method, device, electronic device and storage medium

By determining correction weights and weighting processing based on the correlation of different dimensional features of the data to be identified in machine learning, the problem of extracting efficient features is solved, the data recognition performance is improved, and it is suitable for big data and sequence modeling tasks.

CN113408539BActive Publication Date: 2024-08-23TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011355650.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-26
Publication Date
2024-08-23
Estimated Expiration
2040-11-26

AI Technical Summary

Technical Problem

It is difficult for existing technologies to effectively extract features with better expressive capabilities to improve the accuracy of machine learning models, especially when processing big data.

Method used

By obtaining the correlation between data features of different dimensions of the data to be identified, determining the correction weight, and weighting each data feature to achieve correlation modeling of different dimensions, thereby improving the directivity of the data features.

Benefits of technology

By correcting the data characteristics, it makes full use of the global information of the data to be recognized and improves the recognition performance. It is suitable for sequence modeling tasks without relying on channel structures and is suitable for different network structures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113408539B
    Figure CN113408539B
Patent Text Reader

Abstract

The embodiments of the present application provide a data recognition method, device, electronic device and storage medium, which relate to speech recognition technology and machine learning in the field of artificial intelligence. The method includes: obtaining data to be recognized; performing feature extraction on each sub-data in the data to be recognized, and obtaining data features of at least two dimensions of each sub-data; determining the correction weight corresponding to the data to be recognized based on the correlation between the data features of different dimensions corresponding to the data to be recognized; performing weighted processing on each data feature based on the correction weight to obtain each data feature after weighted processing; and obtaining the recognition result of the data to be recognized based on each data feature after weighted processing. The embodiments of the present application determine the correction weight of the data to be recognized based on the correlation between the data features of different dimensions of the data to be recognized, and perform weighted processing on each data feature, so that the directionality of the data features after weighted processing can be stronger, thereby improving the recognition performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and more specifically, to a data identification method, device, electronic device and storage medium. Background Art

[0002] With the advent of the cloud era, big data has attracted more and more attention. Big data refers to a massive and diverse collection of data obtained through the Internet. The core of big data is to utilize the value of data. Machine learning is a key technology for utilizing the value of data. For big data, machine learning is indispensable. On the contrary, for machine learning, the more data the model can utilize, the more likely it is to improve the accuracy of the model.

[0003] The basis of machine learning is feature extraction. By removing irrelevant and redundant data, the efficiency and effect of machine learning can be improved. How to extract features with better expressiveness from the data to be processed has become a problem that needs to be solved. Summary of the invention

[0004] The present application provides a data identification method, device and electronic device, which can solve the problems existing in the prior art.

[0005] The specific technical solutions provided by the embodiments of this application are as follows:

[0006] On the one hand, an embodiment of the present application provides a data identification method, the method comprising:

[0007] Acquire the data to be identified, where the data to be identified includes at least two sub-data;

[0008] Perform feature extraction on each sub-data to obtain data features of at least two dimensions for each sub-data;

[0009] Determine, based on the correlation between data features of different dimensions corresponding to the data to be identified, a correction weight corresponding to the data to be identified, wherein the dimension of the correction weight corresponds to the dimension of the data feature;

[0010] Based on the modified weight, each data feature is weighted to obtain each data feature after weighted processing;

[0011] Based on each data feature after weighted processing, the recognition result of the data to be recognized is obtained.

[0012] On the other hand, an embodiment of the present invention further provides a data identification device, the device comprising:

[0013] An acquisition module, used for acquiring data to be identified, where the data to be identified includes at least two sub-data;

[0014] An extraction module, used to extract features from each sub-data to obtain data features of at least two dimensions for each sub-data;

[0015] A determination module, used to determine the correction weight corresponding to the data to be identified based on the correlation between the data features of different dimensions corresponding to the data to be identified, wherein the dimension of the correction weight corresponds to the dimension of the data feature;

[0016] A weighting module, used for performing weighted processing on each data feature based on the modified weight to obtain each data feature after weighted processing;

[0017] The processing module is used to obtain the recognition result of the data to be recognized based on each data feature after weighted processing.

[0018] An embodiment of the present invention also provides an electronic device, which includes one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method shown in the first aspect of the present application.

[0019] An embodiment of the present invention further provides a computer-readable storage medium, which is used to store a computer program. When the computer program runs on a processor, the processor can execute the method shown in the first aspect of the present application.

[0020] The beneficial effects of the technical solution provided by this application are:

[0021] The present application provides a data recognition method, device and electronic device. Based on the correlation between the data features of different dimensions corresponding to the data to be recognized, the correction weight corresponding to the data to be recognized is determined. Based on the correction weight, the data features of each sub-data of the data to be recognized are weighted, thereby realizing correlation modeling of different dimensions, so that the global information of the data to be recognized can be used to correct the data features of different dimensions, and then the correction of each sub-data is realized, so that the extracted data features are more directed. Finally, based on each data feature after weighted processing, the recognition result of the data to be recognized is obtained. Since the extracted data features can be more directed after the correction of the data features, the context information between different sub-data can be fully utilized, and the recognition performance can be effectively improved, so as to achieve the purpose of improving the performance of the entire network. In addition, the technical solution of the present application is realized based on correlation modeling of different dimensions, without relying on the channel structure, and is therefore suitable for sequence modeling tasks, and can process data to be recognized in the form of a sequence containing at least two sub-data. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.

[0023] Figure 1 A flowchart of a data identification method provided in an embodiment of the present application;

[0024] Figure 2 A schematic diagram of a process for processing speech data to be recognized provided in an embodiment of the present application;

[0025] Figure 3 A schematic diagram of the structure of a data identification device provided in an embodiment of the present application;

[0026] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present application.

[0028] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0029] The technical solutions provided in the embodiments of the present application involve cloud computing, artificial intelligence computer vision technology, natural language processing technology, and machine learning / deep learning technologies, which are specifically illustrated by the following embodiments.

[0030] Cloud computing refers to the delivery and use model of IT infrastructure, which means obtaining required resources through the network in an on-demand and easily scalable manner; in a broad sense, cloud computing refers to the delivery and use model of services, which means obtaining required services through the network in an on-demand and easily scalable manner. This service can be related to IT and software, the Internet, or other services. Cloud computing is the product of the development and integration of traditional computer and network technologies such as grid computing, distributed computing, parallel computing, utility computing, network storage technologies, virtualization, and load balancing.

[0031] With the development of the Internet, real-time data streams, and the diversification of connected devices, as well as the demand for search services, social networks, mobile commerce, and open collaboration, cloud computing has developed rapidly. Different from the previous parallel distributed computing, the emergence of cloud computing will promote revolutionary changes in the entire Internet model and enterprise management model from a conceptual perspective.

[0032] Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.

[0033] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0034] Computer Vision (CV) is a science that studies how to make machines "see". To put it more specifically, it refers to machine vision such as using cameras and computers to replace human eyes to identify and measure targets, and further perform graphic processing so that computer processing becomes an image that is more suitable for human eye observation or transmission to instrument detection. As a scientific discipline, computer vision studies related theories and technologies, and attempts to establish an artificial intelligence system that can obtain information from images or multi-dimensional data. Computer vision technology usually includes image processing, image recognition, image semantic understanding, image retrieval, OCR, video processing, video semantic understanding, video content / behavior recognition, three-dimensional object reconstruction, 3D technology, virtual reality, augmented reality, simultaneous positioning and map construction, and other technologies, as well as common biometric recognition technologies such as face recognition and fingerprint recognition.

[0035] The key technologies of speech processing technology include automatic speech recognition technology (ASR), text-to-speech technology (TTS) and voiceprint recognition technology. Enabling computers to listen, see, speak and feel is the future development direction of human-computer interaction, among which speech has become one of the most promising human-computer interaction methods in the future.

[0036] Natural language processing (NLP) is an important direction in the fields of computer science and artificial intelligence. It studies various theories and methods that can achieve effective communication between people and computers using natural language. Natural language processing is a science that integrates linguistics, computer science, and mathematics. Therefore, research in this field will involve natural language, that is, the language people use in daily life, so it is closely related to the study of linguistics. Natural language processing technology usually includes text processing, semantic understanding, machine translation, robot question answering, knowledge graph and other technologies.

[0037] Machine Learning (ML) is a multi-disciplinary subject that involves probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and self-learning.

[0038] The executor of the technical solution of this application is a computer device, including but not limited to servers, personal computers, laptops, tablet computers, smart phones, etc. Computer devices include user devices and network devices. Among them, user devices include but are not limited to computers, smart phones, PADs, etc.; network devices include but are not limited to a single network server, a server group composed of multiple network servers, or a cloud composed of a large number of computers or network servers in cloud computing, wherein cloud computing is a kind of distributed computing, a super virtual computer composed of a group of loosely coupled computer sets. Among them, the computer device can be run alone to implement this application, or it can be connected to the network and implement this application through interactive operations with other computer devices in the network. Among them, the network where the computer device is located includes but is not limited to the Internet, wide area network, metropolitan area network, local area network, VPN network, etc.

[0039] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0040] The embodiment of the present application provides a data identification method, and the execution subject of the method can be any electronic device, and optionally, can be a server, such as Figure 1 As shown, the method includes:

[0041] Step S101, obtaining data to be identified, where the data to be identified includes at least two sub-data;

[0042] The data to be identified may be data in a sequence form consisting of at least two sub-data. For example, the data to be identified may include voice data, video data, etc. The sub-data corresponding to the voice data may be each frame of data obtained after the voice data is frame-processed, and the sub-data corresponding to the video data may be each frame of image data of the video. The data to be identified may also be data in any other sequence form or data that can be divided into a sequence form, which is not limited in this application.

[0043] Step S102, extracting features from each sub-data to obtain data features of at least two dimensions for each sub-data;

[0044] Specifically, the server extracts features from each sub-data, and can use the extracted features as data features of each sub-data. Optionally, data features can be extracted through a neural network model to obtain higher-dimensional features output by the neural network model as data features of each sub-data. The neural network model can specifically include deep neural networks (DNN), convolutional neural networks (CNN), long short-term memory networks (LSTM), feed-forward sequential memory networks, etc.

[0045] The dimension may refer to the number of features, and each dimension corresponds to one feature. Data features of at least two dimensions refer to data features including at least two features. The more dimensions a data feature has, the richer the expression of the data feature. By extracting data features through a neural network model, a higher-dimensional feature with stronger expression capability output by the neural network model can be obtained.

[0046] Step S103, determining a correction weight corresponding to the data to be identified based on the correlation between data features of different dimensions corresponding to the data to be identified;

[0047] The dimension of the modified weight corresponds to the dimension of the data feature. In some embodiments, the dimension of the modified weight corresponds to the dimension of the data feature, and the value of the dimension of the modified weight is the same as the value of the dimension of the data feature. In other words, if the modified weight contains multiple weights, the value of the dimension of the modified weight is the number of multiple weights contained in the modified weight. In this case, one weight corresponds to the dimension of one data feature.

[0048] In other implementations, the value of the dimension of the modified weight may also be greater than or less than the value of the dimension of the data feature, that is, the number of multiple weights included in the modified weight may be greater than or less than the number of dimensions of the data feature. This embodiment is not limited to this.

[0049] There is correlation between data features of different dimensions of the data to be identified, and the correlation may include dependency relationships between data features of different dimensions.

[0050] Among them, the correction weights corresponding to the data to be identified are determined based on the correlation between the data features of different dimensions, and the correction weights corresponding to the data features of different dimensions may be the same or different. In practical applications, the data features of different dimensions are expressions of sub-data from different dimensions, and the importance of different dimensions is usually different.

[0051] In one embodiment, when determining the correction weight corresponding to the data to be identified based on the correlation between data features of different dimensions corresponding to the data to be identified, the weights corresponding to important features can be larger, and the weights corresponding to unimportant features can be smaller. Thus, the global correction weight for the data to be identified obtained based on the weights corresponding to the data features of each dimension can enhance important data features and suppress unimportant data features, thereby making the extracted features more directional and achieving the purpose of improving the performance of the entire network.

[0052] Step S104, performing weighted processing on each data feature based on the modified weight to obtain each data feature after weighted processing;

[0053] Specifically, the server performs weighted calculation on the correction weight of the data feature of each dimension and the corresponding data feature of each dimension to obtain each weighted data feature, and corrects the data feature of each dimension based on the correction weight of the data feature of each dimension, thereby enhancing important data features and suppressing unimportant data features, making the data features more directional.

[0054] In the technical solution of the present application, based on the correlation between the data features of different dimensions corresponding to the data to be identified, the correction weight of the data features of each dimension is determined. The global information of different dimensions of the sequence formed by at least two sub-data in the data to be identified can be used to correct the data features of different dimensions, thereby realizing the correction of different sub-data, thereby making full use of the context information of the data to be identified, and effectively improving the performance of data recognition.

[0055] Step S105, obtaining the recognition result of the data to be recognized based on each data feature after weighted processing.

[0056] The server processes the data to be identified based on the data features of each dimension after weighted processing as the data features of the data to be identified, according to the specific content of the data to be identified and the specific application scenario.

[0057] Since the data recognition method provided in this embodiment can model the correlation between data features of different dimensions without relying on the channel structure, the network can use the global information of the entire data to be recognized, that is, the correction weight corresponding to the data to be recognized obtained through the correlation between different data features, to correct the data features of different dimensions, so that each corrected data feature (that is, each data feature after weighted processing) is more directional and more suitable for sequence modeling tasks such as speech recognition and video processing. For example, if the data to be recognized is video data, image recognition can be performed on the video data to be recognized based on the data features after weighted processing to obtain image recognition results.

[0058] The data identification method provided in the embodiment of the present application determines the correction weight corresponding to the data to be identified based on the correlation between the data features of different dimensions corresponding to the data to be identified, and performs weighted processing on each data feature based on the correction weight, thereby correcting the data features extracted from the data to be identified, and realizing correlation modeling of different dimensions, so that the global information of the data to be identified can be used to correct the data features of different dimensions, and then realize the correction of each sub-data, so that the extracted data features are more directional, and the purpose of improving the performance of the entire network is achieved. In addition, since the embodiment of the present application is realized by modeling the correlation of different dimensions, rather than modeling the correlation of different channels, there is no need to rely on the channel structure, so the embodiment of the present application is not only applicable to networks with channel structures, such as CNN, but also to networks without channel structures, such as DNN, LSTM, FSMN, etc., that is, it can be applied to any network structure.

[0059] The specific implementation method of the server determining the correction weight corresponding to the data to be identified is shown in the following embodiment.

[0060] In a possible implementation, based on the correlation between data features of different dimensions corresponding to the data to be identified, determining the correction weight corresponding to the data to be identified includes:

[0061] For each dimension, based on the features of each data feature corresponding to the same dimension, the global features corresponding to each dimension are obtained;

[0062] Based on the correlation between the global features corresponding to each dimension, determine the weight corresponding to each dimension;

[0063] Based on the weight corresponding to each dimension, the correction weight corresponding to the data to be identified is obtained.

[0064] In actual applications, for each dimension, the server can determine the global features corresponding to each dimension based on the data features of the same dimension of each sub-data. The global features are features that reflect the overall attributes of the features of the dimension of each sub-data. The weight corresponding to each dimension is determined through the correlation between the global features of each dimension, and based on the weight corresponding to each dimension, the correction weight corresponding to the data to be identified is obtained. The correction weight is global to the data to be identified, so that global information can be effectively utilized, context information can be fully utilized, and the processing performance of the data to be identified can be effectively improved.

[0065] In one example, assuming that the data to be identified contains T sub-data, and the dimension of the data feature of each sub-data is D, then the data feature X of the T*D dimension of the data to be identified is as follows:

[0066]

[0067] Each row in the matrix represents the data feature of a sub-data, and each column represents the feature of the same dimension of each sub-data. Taking the feature of the first dimension as an example, we can 11 、a 21 …a T1 Determine the global features of the dimension. After determining the global features of each dimension, the weight corresponding to each dimension can be determined according to the correlation between the global features of each dimension, and based on the weight corresponding to each dimension, the correction weight corresponding to the entire data to be identified can be obtained.

[0068] In a possible implementation, for each dimension, based on the features of each data feature corresponding to the same dimension, a global feature corresponding to each dimension is obtained, including:

[0069] For each dimension, the features of each data feature corresponding to the same dimension are globally pooled to obtain the global features corresponding to each dimension.

[0070] In practical applications, a global feature corresponding to a dimension can be obtained through global pooling processing. Optionally, the features of the same dimension of each sub-data can be weighted averaged to obtain the global feature of the dimension.

[0071] In a possible implementation, for each dimension, based on the features of each data feature corresponding to the same dimension, a global feature corresponding to each dimension is obtained, including:

[0072] For each dimension, the neural network model is used to globally process the features of each data feature corresponding to the same dimension to obtain the global features corresponding to each dimension.

[0073] In practical applications, global features can also be obtained through a neural network model, which can specifically be a DNN, LSTM, etc.

[0074] Optionally, the global features can be obtained through DNN, and the data features of the T*D dimension of the data to be identified as shown in formula (1) are input into the fully connected layer of DNN for processing to obtain the global features corresponding to each dimension.

[0075] Optionally, the global feature can be obtained through LSTM, and each sub-data of the data to be identified is input into the LSTM in sequence for processing, and the output of the LSTM corresponding to the last sub-data is used as the global feature of the data to be identified.

[0076] In the embodiment of the present application, the features of the same dimension corresponding to the data features of each sub-data are globally processed to obtain the global features corresponding to each dimension, and the weight corresponding to each dimension is determined based on the correlation between the global features corresponding to each dimension, and then the correction weight corresponding to the entire data to be identified is obtained to correct the sub-data of the data to be identified. Therefore, there is no need to rely on the channel structure, and the global information of the data to be identified can be used to correct the data features of different dimensions, that is, data in sequence form can be processed. Therefore, the data recognition method provided in the embodiment of the present application can be more suitable for sequence modeling tasks such as speech recognition, and is applicable to any network structure, without being limited to CNN, that is, its application range is expanded from CNN to any network, such as CNN, DNN, LSTM, etc.

[0077] In a possible implementation, based on the correlation between data features of different dimensions corresponding to the data to be identified, determining the correction weight corresponding to the data to be identified includes:

[0078] The compression excitation network determines the correction weight corresponding to the data to be identified based on the correlation between data features of different dimensions.

[0079] In practical applications, the data features of different dimensions of each sub-data can be input into the Squeeze and Excitation (SE) network. The Squeeze and Excitation network determines the weight of the data features of each dimension based on the data features of different dimensions and the correlation between the data features of different dimensions. Based on the weight of the data features of each dimension, the corrected weight corresponding to the data to be identified is obtained.

[0080] In a possible implementation, the compression excitation network includes a compression module and an excitation module, and the compression excitation network determines the correction weight corresponding to the data to be identified according to the correlation between data features of different dimensions, including:

[0081] Through the compression module, for each dimension, based on the features of each data feature corresponding to the same dimension, the global features corresponding to each dimension are obtained;

[0082] Through the excitation module, the correction weight corresponding to the data to be identified is determined based on the correlation between the global features corresponding to each dimension.

[0083] In practical applications, the compression excitation network can realize corresponding functions through different modules. The compression module performs global pooling processing on the features of the same dimension corresponding to each data feature, and outputs the global features corresponding to each dimension; the global features corresponding to each dimension are input into the excitation module, and the weight of the data features of each dimension is output. Based on the weight of the data features of each dimension, the correction weight corresponding to the data to be identified is obtained.

[0084] In one example, the global feature of one dimension can be obtained by the following formula (2):

[0085]

[0086] Among them, z d represents the global feature of d dimension; F sq () indicates that the data features of each dimension of each sub-data are globally pooled through the compression module; T indicates the number of sub-data; x td Represents the d-dimensional data features of the t-th sub-data.

[0087] The SE network determines the weight of the data features of each dimension based on the global features corresponding to each dimension through the excitation module, and then obtains the correction weight corresponding to the data to be identified.

[0088] In one example, the data to be identified contains T sub-data, and the dimension of the data feature of each sub-data is D. The excitation module includes two layers of fully connected layers, and the first layer of fully connected layers is used for dimensionality reduction processing. Optionally, the dimensionality reduction processing can be performed through the reduction coefficient, and the output dimension is a global feature of D / r, where r is an integer greater than 0, representing the reduction coefficient, which is used to first reduce the output dimension, thereby reducing the number of model parameters. Then a nonlinear transformation is performed, and optionally, a linear rectified function (Rectified Linear Unit, ReLU) can be added after this layer for nonlinear transformation; the weights of the data features of each dimension are determined by the second layer of fully connected layers. Specifically, the output dimension is first restored to D dimensions, and then the activation function is passed to finally obtain a global correction coefficient of 1×D dimensions as the correction weight of the data to be identified, where the activation function can be a sigmoid function. The global correction coefficient is obtained by using the changes in data features of different dimensions, and the correlation between data features of different dimensions is used. At the same time, the global correction coefficient can play a gating role, enhancing important data features and suppressing unimportant data features.

[0089] The weight of the data feature of each dimension can be obtained by the following formula (3):

[0090] s d =F ex (z d ,W)=σ(W2δ(W1z d )) (3)

[0091] Among them, s d represents the weight of the d-dimensional feature output by the compression excitation network; F ex (z d,w) represents the processing of the global features of d dimensions through the excitation module; W1 represents the network parameters of the first fully connected layer; δ() represents the linear rectification function; W2 represents the network parameters of the second fully connected layer; σ() represents the activation function.

[0092] The weight of the data features of each dimension is used to weight the data features of each dimension, and the weighted data features of each dimension are obtained by the following formula (4):

[0093] X′=F scale (X,S)=S·X (4)

[0094] Among them, X′ represents the weighted data features of each dimension; F scale () represents the dot product function at the element level; S represents the weight of the data feature of each dimension; X represents the data feature of each dimension before weighting.

[0095] Therefore, this embodiment is based on the SE network, and changes the original modeling of the correlation of different channels that needs to be used in combination with CNN to the modeling of the correlation of different dimensions, so that the network can use the global information of the entire data to be identified to correct the features of different dimensions, enhance the important features, and suppress the unimportant features, so that the extracted data features are more directional, thereby achieving the purpose of improving the performance of the entire network.

[0096] In a possible implementation, the data to be recognized is speech data to be recognized, the sub-data is a frame of data of the speech data to be recognized; the recognition result is a speech recognition result of the speech data to be recognized;

[0097] Perform feature extraction on each sub-data to obtain the data features of each sub-data, including:

[0098] Extracting features from each frame of speech data to be recognized to obtain speech features corresponding to each frame of speech data, wherein the data features are speech features;

[0099] Based on the correlation between the data features of different dimensions corresponding to the data to be identified, the correction weight corresponding to the data to be identified is determined, including:

[0100] Based on the correlation between the speech features of different dimensions corresponding to the speech data to be recognized, the correction weight corresponding to the speech data to be recognized is obtained.

[0101] In practical applications, the speech data to be recognized is divided into frames to obtain each frame of speech data, and features are extracted from each frame of speech data to extract features of at least two dimensions as speech features of each frame of speech data. The speech features may include spectral features of the speech data, such as Mel-scale Frequency Cepstral Coefficient (MFCC), Linear Predictive Cepstral Coefficient (LPCC), etc.

[0102] Among them, there is a correlation between the speech features of different dimensions of each frame of speech data, and the correlation may include the dependency between the speech features of different dimensions. Through the correlation between the speech features of different dimensions, the weight of the speech features of each dimension is determined, and the correction weight corresponding to the data to be recognized is obtained, and each speech feature is weighted by the correction weight, so as to use the global information of the entire speech sequence to correct each frame of speech data, make full use of context information, effectively improve the speech recognition performance, and by modeling the correlation of speech features of different dimensions, enhance important features, and suppress unimportant features, so that the extracted features are more directional, so as to achieve the purpose of improving the performance of the entire network. In addition, the data recognition method provided in the embodiment of the present application is applicable to sequence modeling tasks such as speech recognition, and is applicable to any network structure, not limited to CNN.

[0103] The data processing process of the technical solution of the present application is described in detail below through a specific embodiment. This embodiment is only one implementation of the technical solution of the present application and does not represent all implementations of the technical solution of the present application.

[0104] like Figure 2 As shown, in this embodiment, the data to be recognized is voice data to be recognized. Based on the data recognition method provided in one embodiment of the present application, the specific process of processing the voice data to be recognized to correct the data features of different dimensions of the voice data to be recognized is as follows:

[0105] The speech data to be recognized is divided into frames, and features are extracted from each frame of speech data to obtain speech features X, where speech features X include speech features of T frames of speech data. After speech features X are input into a neural network model (which can be one of DNN, CNN or LSTM, or other neural network models) for feature extraction, T×D-dimensional features can be output. The T×D dimensional features The input compression module performs global pooling processing in the time dimension, adds and averages the data features of the same dimension corresponding to each frame of speech data, and obtains a 1×D-dimensional global feature in order to obtain global information on the entire speech sequence; the global feature is input into the excitation module, which models the correlation between different dimensions. The excitation module includes two fully connected layers. The global feature passes through the first fully connected layer and performs dimensionality reduction processing to obtain dimensional global features, where r is an integer greater than 0, indicating the reduction coefficient, which first reduces the output dimension, thereby reducing the number of model parameters. Then a linear rectification function is added after this layer to perform a nonlinear transformation. After being processed by the linear rectification function, we get dimensional global features; after the second fully connected layer, the dimension is restored to D dimensions, and a 1×D dimensional global feature is obtained; after being processed by the activation function, a 1×D dimensional global feature is obtained, which is used as the correction weight corresponding to the speech data to be recognized and as the global correction coefficient. The global correction coefficient is used to perform weighted processing on the speech features of each dimension of each frame of speech data, that is, correction processing, and output the T×D dimensional feature X′ after processing. Among them, the global correction coefficient is obtained by using the feature changes of different dimensions, and the correlation between data features of different dimensions is used to play a gating role, and the data features of each dimension of each frame of speech data are corrected to enhance important data features and suppress unimportant data features.

[0106] The data recognition method provided in the embodiment of the present application determines the correction weight corresponding to the data to be recognized based on the correlation between the data features of different dimensions corresponding to the data to be recognized, and performs weighted processing on the data features of each sub-data of the data to be recognized based on the correction weight to achieve the correction of each sub-data, and obtains the recognition result of the data to be recognized based on each data feature after weighted processing, and enhances important features and suppresses unimportant features through the correction weight, so that the extracted features are more directional, thereby achieving the purpose of effectively improving the performance of the entire network. In addition, the technical solution of the present application can process the data to be recognized in the form of a sequence containing at least two sub-data, which solves the problem of being unable to process data in the form of a sequence, that is, the data recognition method provided in the embodiment of the present application is suitable for sequence modeling tasks such as speech recognition, and is suitable for any network structure.

[0107] Based on Figure 1 Based on the same principle as the method shown in , the embodiment of the present disclosure also provides a data identification device 30, such as Figure 3 As shown, the data identification device 30 includes:

[0108] An acquisition module 31 is used to acquire data to be identified, where the data to be identified includes at least two sub-data;

[0109] An extraction module 32, used to extract features from each sub-data to obtain data features of at least two dimensions for each sub-data;

[0110] A determination module 33, configured to determine a correction weight corresponding to the data to be identified based on the correlation between data features of different dimensions corresponding to the data to be identified, wherein the dimension of the correction weight corresponds to the dimension of the data feature;

[0111] A weighting module 34, used to perform weighted processing on each data feature based on the modified weight to obtain each data feature after weighted processing;

[0112] The processing module 35 is used to obtain the recognition result of the data to be recognized based on each data feature after weighted processing.

[0113] In a possible implementation, the data to be recognized is speech data to be recognized, the sub-data is a frame of data of the speech data to be recognized; the recognition result is a speech recognition result of the speech data to be recognized;

[0114] The extraction module 32 is used to:

[0115] Extracting features from each frame of speech data to be recognized to obtain speech features corresponding to each frame of speech data, wherein the data features are speech features;

[0116] The determination module 33 is used to:

[0117] Based on the correlation between the speech features of different dimensions corresponding to the speech data to be recognized, the correction weight corresponding to the speech data to be recognized is obtained.

[0118] In a possible implementation, the determination module 33 is specifically configured to:

[0119] For each dimension, based on the features of each data feature corresponding to the same dimension, the global features corresponding to each dimension are obtained;

[0120] Based on the correlation between the global features corresponding to each dimension, determine the weight corresponding to each dimension;

[0121] Based on the weight corresponding to each dimension, a correction weight corresponding to the data to be identified is obtained.

[0122] In a possible implementation, when obtaining the global feature corresponding to each dimension based on the feature corresponding to the same dimension of each data feature, the determination module 33 is used to:

[0123] For each dimension, the features of each data feature corresponding to the same dimension are globally pooled to obtain the global features corresponding to each dimension.

[0124] In a possible implementation, when obtaining the global feature corresponding to each dimension based on the feature corresponding to the same dimension of each data feature, the determination module 33 is used to:

[0125] For each dimension, the neural network model is used to globally process the features of each data feature corresponding to the same dimension to obtain the global features corresponding to each dimension.

[0126] In a possible implementation, the determination module 33 is specifically configured to:

[0127] The compression excitation network determines the correction weight corresponding to the data to be identified based on the correlation between data features of different dimensions.

[0128] In a possible implementation, the compression excitation network includes a compression module and an excitation module, and the determination module 33 is specifically used for:

[0129] Through the compression module, for each dimension, based on the features of each data feature corresponding to the same dimension, the global features corresponding to each dimension are obtained;

[0130] Through the excitation module, the correction weight corresponding to the data to be identified is determined based on the correlation between the global features corresponding to each dimension.

[0131] The data identification device of the embodiment of the present disclosure can execute the data identification device provided by the embodiment of the present disclosure. Figure 1 The corresponding data identification method has a similar implementation principle. The actions performed by each module in the data identification device in the embodiment of the present disclosure correspond to the steps in the data identification method in the embodiment of the present disclosure. For the detailed functional description of each module in the data identification device, please refer to the description in the corresponding data identification method shown in the previous text, which will not be repeated here.

[0132] The data identification device provided in the embodiment of the present application determines the correction weight corresponding to the data to be identified based on the correlation between the data features of different dimensions corresponding to the data to be identified, and performs weighted processing on the data features of each sub-data of the data to be identified based on the correction weight, thereby realizing correlation modeling of different dimensions, so that the global information of the data to be identified can be used to correct the data features of different dimensions, and then to realize the correction of each sub-data, so that the extracted data features are more directional, and finally, based on each data feature after weighted processing, the identification result of the data to be identified is obtained. After the data features are corrected, the extracted data features can be more directional, so that the context information between different sub-data can be fully utilized, and the recognition performance can be effectively improved, so as to achieve the purpose of improving the performance of the entire network. In addition, the technical solution of the present application is implemented based on correlation modeling of different dimensions, without relying on the channel structure, and is therefore suitable for sequence modeling tasks, and can process data to be identified in the form of a sequence containing at least two sub-data.

[0133] The above embodiment introduces a data identification device from the perspective of a virtual module. The following describes an electronic device from the perspective of a physical module, as shown below:

[0134] The present application embodiment provides an electronic device, such as Figure 4 As shown, Figure 4 The electronic device 8000 shown includes: a processor 8001 and a memory 8003. The processor 8001 and the memory 8003 are connected, such as through a bus 8002. Optionally, the electronic device 8000 may also include a transceiver 8004. It should be noted that in actual applications, the transceiver 8004 is not limited to one, and the structure of the electronic device 8000 does not constitute a limitation on the embodiments of the present application.

[0135] The processor 8001 may be a CPU, a general-purpose processor, a GPU, a DSP, an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor 8001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0136] The bus 8002 may include a path to transmit information between the above components. The bus 8002 may be a PCI bus or an EISA bus, etc. The bus 8002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0137] The memory 8003 can be a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, or an EEPROM, CD-ROM or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this.

[0138] The memory 8003 is used to store application code for executing the solution of the present application, and the execution is controlled by the processor 8001. The processor 8001 is used to execute the application code stored in the memory 8003 to implement the content shown in any of the above method embodiments.

[0139] An embodiment of the present application provides an electronic device, and the electronic device in the embodiment of the present application includes: one or more processors; a memory; one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, and when the one or more programs are executed by the processor, data to be identified is obtained, and the data to be identified includes at least two sub-data; feature extraction is performed on each sub-data to obtain data features of at least two dimensions of each sub-data; based on the correlation between data features of different dimensions corresponding to the data to be identified, a correction weight corresponding to the data to be identified is determined, wherein the dimension of the correction weight corresponds to the dimension of the data feature; based on the correction weight, each data feature is weighted to obtain each data feature after weighted processing; based on each data feature after weighted processing, an identification result of the data to be identified is obtained.

[0140] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program runs on a processor, the processor can execute the corresponding content in the aforementioned method embodiment.

[0141] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method provided in various optional implementations of the above-mentioned data identification method.

[0142] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0143] The above descriptions are only some embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A data identification method, characterized in that: include: Acquire data to be recognized, wherein the data to be recognized includes at least two sub-data, the data to be recognized is voice data to be recognized, and the sub-data is a frame of data of the voice data to be recognized; Performing feature extraction on each of the sub-data to obtain data features of at least two dimensions for each of the sub-data, wherein the data features of different dimensions are expressions of the sub-data from different dimensions, wherein the data features include spectral features of the speech data, and the spectral features of the speech data include: Mel-frequency cepstral coefficients and linear prediction cepstral coefficients; Determine, based on the correlation between data features of different dimensions corresponding to the data to be identified, a correction weight corresponding to the data to be identified, wherein the dimension of the correction weight corresponds to the dimension of the data feature; Based on the modified weight, weighted processing is performed on each of the data features to obtain each data feature after weighted processing; Based on each data feature after the weighted processing, obtaining a recognition result of the data to be recognized, wherein the recognition result is a speech recognition result of the speech data to be recognized; The determining, based on the correlation between the data features of different dimensions corresponding to the data to be recognized, the correction weight corresponding to the speech data to be recognized includes: For each dimension, based on the features of each data feature corresponding to the same dimension, a global feature corresponding to each dimension is obtained; Based on the correlation between the global features corresponding to each dimension, determine the weight corresponding to each dimension; Based on the weight corresponding to each dimension, a correction weight corresponding to the data to be identified is obtained.

2. The method according to claim 1, characterized in that The feature extraction is performed on each sub-data to obtain the data feature of each sub-data, including: Extracting features from each frame of speech data to be recognized to obtain speech features corresponding to each frame of speech data, wherein the data features are speech features; The determining, based on the correlation between the data features of different dimensions corresponding to the data to be identified, the correction weight corresponding to the data to be identified includes: Based on the correlation between the speech features of different dimensions corresponding to the speech data to be recognized, the correction weight corresponding to the speech data to be recognized is obtained.

3. The method according to claim 1, characterized in that For each dimension, based on the features of each data feature corresponding to the same dimension, obtaining the global features corresponding to each dimension includes: For each dimension, a global pooling process is performed on the features of each data feature corresponding to the same dimension to obtain a global feature corresponding to each dimension.

4. The method according to claim 1, characterized in that: For each dimension, based on the features of each data feature corresponding to the same dimension, obtaining the global features corresponding to each dimension includes: For each dimension, the features of each data feature corresponding to the same dimension are globally processed through a neural network model to obtain the global features corresponding to each dimension.

5. The method according to claim 1 or 2, characterized in that: The determining, based on the correlation between the data features of different dimensions corresponding to the data to be identified, the correction weight corresponding to the data to be identified includes: The compression excitation network determines the correction weight corresponding to the data to be identified according to the correlation between data features of different dimensions.

6. The method according to claim 5, characterized in that The compression excitation network includes a compression module and an excitation module. The compression excitation network determines the correction weight corresponding to the to-be-identified data according to the correlation between data features of different dimensions, including: By means of the compression module, for each dimension, based on the features of each data feature corresponding to the same dimension, a global feature corresponding to each dimension is obtained; The excitation module determines the correction weight corresponding to the data to be identified based on the correlation between the global features corresponding to each dimension.

7. A data identification device, characterized in that: The device comprises: An acquisition module, used for acquiring data to be recognized, wherein the data to be recognized includes at least two sub-data, the data to be recognized is voice data to be recognized, and the sub-data is a frame of data of the voice data to be recognized; An extraction module is used to extract features from each of the sub-data to obtain data features of at least two dimensions for each of the sub-data, where the data features of different dimensions are expressions of the sub-data from different dimensions, and the data features include spectral features of the speech data, and the spectral features of the speech data include: Mel-frequency cepstral coefficients and linear prediction cepstral coefficients; A determination module, configured to determine a correction weight corresponding to the data to be identified based on the correlation between data features of different dimensions corresponding to the data to be identified, wherein the dimension of the correction weight corresponds to the dimension of the data feature; A weighting module, used for performing weighted processing on each of the data features based on the modified weight to obtain each data feature after weighted processing; A processing module, used for obtaining a recognition result of the data to be recognized based on each data feature after the weighted processing, wherein the recognition result is a speech recognition result of the speech data to be recognized; The determination module is specifically used for: For each dimension, based on the features of each data feature corresponding to the same dimension, the global features corresponding to each dimension are obtained; Based on the correlation between the global features corresponding to each dimension, determine the weight corresponding to each dimension; Based on the weight corresponding to each dimension, a correction weight corresponding to the data to be identified is obtained.

8. An electronic device, characterized in that: The electronic device comprises: one or more processors; Memory; One or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program. When the computer program runs on a processor, the processor can execute the method according to any one of claims 1 to 6.