On-device training based user recognition method and apparatus
The on-device training method using a dual neural network setup addresses the discrepancy between training and actual user data, improving user recognition accuracy by refining feature extraction and distinguishing between authorized users and intruders.
Patent Information
- Application Number
- JP2020136959
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-10-14
- Filing Date
- 2020-08-14
- Publication Date
- 2024-08-14
- Estimated Expiration
- 2040-08-14
AI Technical Summary
Existing user recognition systems face challenges in accurately distinguishing between authorized users and intruders due to discrepancies between training data and actual user data, particularly when dealing with similar user characteristics.
An on-device training method using a combination of a pre-trained neural network with fixed parameters and an adjustable neural network, where the latter is trained using actual user data and reference data to refine feature extraction, enhancing the ability to differentiate between registered and intruder feature vectors.
This approach improves user recognition accuracy by aligning training data with actual user data, effectively distinguishing between registered users and intruders, especially in cases of similar characteristics, and enhances the overall recognition performance.
Smart Images

Figure 0007534045000006 
Figure 0007534045000008 
Figure 0007534045000005
Abstract
Description
[Technical field]
[0001] The following embodiments relate to a method and apparatus for user recognition based on on-device training. [Background technology]
[0002] The technical automation of the recognition process is realized, for example, through a neural network model embodied in a processor as a specialized computational structure, which after considerable training can provide a computationally intuitive mapping between input and output patterns. The trained ability to generate such a mapping is said to be the learning ability of the neural network. Moreover, due to the specialized training, such a specialized trained neural network has a generalization ability to generate relatively accurate outputs for, for example, untrained input patterns. Summary of the Invention [Problem to be solved by the invention]
[0003] The following embodiments are intended to provide a method and apparatus for user recognition based on on-device training. [Means for solving the problem]
[0004] According to one embodiment, the recognition method includes the steps of receiving user data entered by a legitimate user for user enrollment, performing on-device training of a feature extractor based on reference data corresponding to a generalized user and the user data, determining an enrollment feature vector based on an output of the feature extractor in response to the input of the user data, receiving test data entered by a test user for user recognition, determining a test feature vector based on the output of the feature extractor in response to the input of the test data, and performing user recognition for the test user based on a comparison between the enrollment feature vector and the test feature vector.
[0005] The feature extractor may include a first neural network having fixed parameters and a second neural network having adjustable parameters, and the on-device training may adjust the adjustable parameters of the second neural network. The first neural network may be pre-trained to extract features from input data based on a large user database. The step of performing the on-device training may include the steps of assigning labels of different values to the user data and the reference data, respectively, and performing the on-device training based on a comparison between the labels and an output of the feature extractor in response to input of the user data and the reference data.
[0006] The feature extractor may include a first neural network having fixed parameters and a second neural network having adjustable parameters, and the step of performing the on-device training may include the steps of inputting the user data to the first neural network, inputting an output of the first neural network in response to the input of the user data and the reference data to the second neural network, and performing the on-device training based on the output of the second neural network. The reference data may include a generalized feature vector corresponding to the generalized user, and the generalized feature vector may be generated by clustering feature vectors corresponding to a plurality of general users.
[0007] The step of performing user recognition may include a step of performing the user recognition based on a comparison between a distance between the enrollment feature vector and the test feature vector and a threshold. The distance between the enrollment feature vector and the test feature vector may be determined based on any one of a cosine distance and a Euclidean distance between the enrollment feature vector and the test feature vector. The recognition method may further include a step of storing the determined enrollment feature vector in an enrolled user database once the enrollment feature vector is determined.
[0008] According to another embodiment, a method for recognition includes obtaining a feature extractor including a first neural network having fixed parameters and a second neural network having adjustable parameters, performing on-device training of the feature extractor based on user data corresponding to legitimate users and reference data corresponding to generalized users, and performing user recognition using the feature extractor once the on-device training is completed.
[0009] According to one embodiment, a method for on-device training of a feature extractor, comprising a first neural network having pre-trained and fixed parameters and a second neural network having adjustable parameters, and mounted on a user device, includes the steps of obtaining user data input by a legitimate user, inputting the user data into the first neural network, inputting an output of the first neural network in response to the input of the user data and predetermined reference data into the second neural network, and adjusting parameters of the second neural network.
[0010] The reference data may include 1000 feature vectors or less, 500 feature vectors or less, or 100 feature vectors or less.
[0011] According to one embodiment, the recognition device includes a processor and a memory including instructions executable by the processor, and when the instructions are executed by the processor, the processor receives user data input by a valid user for user enrollment, performs on-device training for a feature extractor based on reference data corresponding to a generalized user and the user data, determines an enrollment feature vector based on an output of the feature extractor in response to the input of the user data, receives test data input by a test user for user recognition, determines a test feature vector based on the output of the feature extractor in response to the input of the test data, and performs user recognition for the test user based on a comparison between the enrollment feature vector and the test feature vector.
[0012] According to another embodiment, a recognition device includes a processor and a memory including instructions executable by the processor, and when the instructions are executed by the processor, the processor obtains a feature extractor including a first neural network having fixed parameters and a second neural network having adjustable parameters, performs on-device training on the feature extractor based on user data corresponding to a legitimate user and reference data corresponding to a generalized user, and when the on-device training is completed, performs user recognition using the feature extractor.
[0013] In one embodiment, the method includes pre-training a first neural network of a feature extractor on a server side; providing the feature extractor to a device after the first neural network is pre-trained; training a second neural network of the feature extractor on the device using data input to the device; and using the feature extractor to perform user recognition on test data input to the device.
[0014] The data input to the device may include user data input by a legitimate user for user enrollment and reference data corresponding to a generalized user. The method may further include performing the user recognition by comparing an enrollment feature vector corresponding to the user data with a test feature vector corresponding to the test data. Effect of the Invention
[0015] According to the present invention, a method and apparatus for user recognition based on on-device training can be provided. [Brief description of the drawings]
[0016] [Figure 1] FIG. 2 illustrates the operation of a recognition device for user registration and user recognition according to an embodiment. [Diagram 2] FIG. 1 illustrates a process for pre-training, user enrollment, and user recognition according to one embodiment. [Diagram 3] FIG. 1 illustrates a detailed process of pre-training according to an embodiment. [Figure 4] FIG. 1 illustrates the operation of a recognition device for on-device training and user enrollment according to one embodiment. [Diagram 5] FIG. 1 illustrates a detailed process of on-device training according to one embodiment. [Figure 6] FIG. 2 illustrates a process for generating a generalized user model according to one embodiment. [Figure 7] FIG. 2 illustrates an operation of a recognition device for user recognition according to an embodiment. [Figure 8] FIG. 13 is a diagram illustrating distribution changes of feature vectors before and after on-device training according to one embodiment. [Figure 9] FIG. 13 is a diagram illustrating distribution changes of feature vectors before and after on-device training according to one embodiment. [Figure 10] 1 is a flowchart illustrating a method for recognizing an on-device training platform according to an embodiment. [Figure 11] 11 is a flowchart illustrating a recognition method based on on-device training according to another embodiment. [Figure 12] 1 is a block diagram illustrating an on-device training-based recognition apparatus according to an embodiment. [Figure 13] FIG. 2 is a block diagram illustrating a user device according to an embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0017] Specific structural or functional descriptions disclosed herein are merely exemplary for purposes of describing embodiments, and the embodiments may be embodied in various different forms and are not limited to the embodiments set forth herein.
[0018] Although terms such as first or second may be used to describe multiple components, such terms should be construed only for the purpose of distinguishing one component from the other components. For example, a first component may be named a second component, and similarly, a second component may be named a first component.
[0019] The singular expression includes the plural expression unless the context clearly indicates otherwise. In this specification, the terms "comprise" or "have" and the like indicate the presence of a feature, number, step, operation, component, part, or combination thereof described in the specification, and should be understood as not precluding the possibility of the presence or addition of one or more other features, numbers, steps, operations, components, parts, or combinations thereof.
[0020] Unless otherwise defined, all terms used herein, including technical or scientific terms, have the same meaning as commonly understood by a person of ordinary skill in the art to which the present invention belongs. Commonly used predefined terms should be interpreted as having a meaning consistent with the meaning they have in the context of the relevant art, and should not be interpreted as ideal or overly formal unless expressly defined in this specification.
[0021] Hereinafter, embodiments will be described in detail with reference to the accompanying drawings. In the description with reference to the accompanying drawings, the same components are denoted by the same reference numerals regardless of the reference numerals, and duplicated description thereof will be omitted.
[0022] FIG. 1 is a diagram illustrating an operation of a recognition device for user registration and user recognition according to an embodiment. Referring to FIG. 1, the recognition device 110 registers the legitimate user 101 in the recognition device 110 based on user data of the legitimate user 101. The legitimate user 101 may be one or more, and one or more legitimate users 101 may be registered in the recognition device 110. The legitimate user 101 refers to a person who has the authority to use the recognition device 110, such as an owner or administrator of a device in which the recognition device 110 is installed, and may be called a genuine user. Registering the legitimate user 101 in the recognition device 110 is called a user registration process. Through the user registration process, identification information of the legitimate user 101 (e.g., a registration feature vector) is stored in the recognition device 110 or another device related to the recognition device 110. Once the registration of the legitimate user 101 is completed, the legitimate user 101 is called a registered user.
[0023] The test user 102 is a person who attempts user recognition by the recognition device 110 in order to use the recognition device 110 in an anonymous state, and may be a legitimate user 101 or an imposter. An imposter is a person who does not have the authority to use the recognition device 110. The recognition device 110 can perform user recognition for the test user 102 by comparing the test data of the test user 102 with the user data, and output the recognition result. Performing user recognition for the test user 102 is called a user recognition process. The user recognition process may be executed after the user registration process.
[0024] User recognition includes user identification and user verification. User authentication is to determine whether the test user 102 is a registered user, and user identification is to determine whether the test user 102 is one of a plurality of users. When there are a plurality of registered users and the test user 102 belongs to one of the plurality of registered users, it is determined whether the test user 102 is one of the plurality of registered users according to the user identification.
[0025] The recognition result includes at least one of an identification result and an authentication result. For example, if the test user 102 is a registered user, the recognition device 110 outputs an authentication result corresponding to successful recognition. Here, if there are multiple registered users, the recognition result includes an identification result regarding which registered user among the multiple registered users the test user 102 corresponds to. If the test user 102 is an intruder, the recognition device 110 can output an authentication result corresponding to unsuccessful recognition.
[0026] The user data is from an authorized user 101 and the test data is from a test user 102. The user data can be input to the recognition device 110 by the authorized user 101, input to another device including the recognition device 110 and transmitted to the recognition device 110, or input to a further device separate from the recognition device 110 and transmitted to the recognition device 110. Similarly, the test data can be input to the recognition device 110 by the test user 102, input to another device including the recognition device 110 and transmitted to the recognition device 110, or input to a further device separate from the recognition device 110 and transmitted to the recognition device 110.
[0027] Data input to the recognition device 110, such as user data and test data, is referred to as input data. The input data includes voice or video. For example, in the case of speaker recognition, the input data includes speech, voice, or audio. In the case of face recognition, the input data may include face video, in the case of fingerprint recognition, the input data may include fingerprint video, and in the case of iris recognition, the input data may include iris video. The recognition device 110 can perform user authentication based on at least one of such multiple authentication methods. The modalities of the user data, test data, reference data, and training data correspond to at least one authentication method used by the authentication device 110. In the following, an embodiment of speaker recognition will be described as a representative example, but this is merely for convenience of explanation, and the present invention is also applicable to other authentication methods other than speaker recognition.
[0028] The recognition device 110 can perform user authentication using a feature extractor 120. The feature extractor 120 includes neural networks such as a first neural network 121 and a second neural network 122. At least a part of the neural network may be implemented in software, in hardware including a neural processor, or in a combination of software and hardware. For example, the neural network is a deep neural network (DNN), including a fully connected network, a deep convolutional network, and a recurrent neural network. The DNN includes multiple layers. The multiple layers include an input layer, at least one hidden layer, and an output layer.
[0029] A neural network is trained to perform a given operation by mapping input data and output data that are in a nonlinear relationship to each other based on deep learning. Deep learning is a machine learning method for solving a given problem from a set of big data. Deep learning is understood as an optimized problem-solving process that searches for a point where energy is minimized while training a neural network using prepared training data. Weights corresponding to the structure or model of a neural network are obtained through supervised or unsupervised learning of deep learning, and input data and output data can be mapped to each other through such weights. Although the feature extractor 120 is illustrated as being located outside the recognition device 110 in FIG. 1, the feature extractor 120 may be located inside the recognition device 110.
[0030] The recognition device 110 inputs input data to the feature extractor 120, and registers a user in the recognition device 110 or generates a recognition result based on the output of the feature extractor 120 in response to the input of the input data. According to an embodiment, the recognition device 110 applies a certain pre-processing to the input data, and inputs the pre-processed input data to the feature extractor 120. The input data may be transformed through the pre-processing into a form suitable for the feature extractor 120 to extract features. For example, if the input data is a voice wave, the voice wave may be converted into a frequency spectrum through a pre-processing process.
[0031] The feature extractor 120 outputs output data in response to the input of input data. The output data of the feature extractor 120 is referred to as a feature vector. Alternatively, the output data of the feature extractor 120 may be referred to as an embedding vector, in the sense that it includes the user's identification information. In a user registration process of the legitimate user 101, the feature extractor 120 outputs a feature vector in response to the input of user data. Here, the output feature vector is referred to as an enrollment feature vector, and may be stored in the recognition device 110 or another device related to the recognition device 110 as the identification information of the legitimate user 101. In a user recognition process of the test user 102, the feature extractor 120 outputs a feature vector in response to the input of test data. Here, the output feature vector is referred to as a test feature vector.
[0032] The recognition device 110 compares the enrollment feature vector and the test feature vector to generate a recognition result. For example, the recognition device 110 may determine a distance between the enrollment feature vector and the test feature vector and generate a recognition result based on a comparison between the determined distance and a threshold. If the determined distance value is less than the threshold, the enrollment feature vector and the test feature vector are said to be matched with each other.
[0033] When there are multiple enrolled users, there are multiple enrollment feature vectors for each enrolled user. In this case, the recognition device 110 compares the test feature vector with each enrollment feature vector to generate a recognition result. For example, when the test feature vector is matched with any one of the multiple enrollment feature vectors, the recognition device 110 outputs a recognition result corresponding to successful recognition. Here, the recognition result includes an identification result regarding the enrolled user corresponding to the enrollment feature vector matched with the test feature vector. It also includes an identification result regarding which enrolled user the test user 102 is among the multiple enrolled users.
[0034] The feature extractor 120 includes a first neural network 121 and a second neural network 122. The first neural network 121 is pre-trained based on a large-scale user database, and the second neural network 122 is further trained based on user data in a user registration process. Here, "pre-training" means a time before the user registration process is performed, for example, at the time of development and production of the feature extractor 120. The large-scale user database corresponds to unspecified users, and the user data corresponds to a specific user, such as the legitimate user 101. The training of the first neural network 121 is performed by a server in the development and production step of the feature extractor 120, and is referred to as pre-training or primary training. The training of the second neural network 122 is performed by a device including the recognition device 110 in a user registration process, and is referred to as on-device training or secondary training. In on-device training, "device" means a user device equipped with the recognition device 110.
[0035] The first neural network 121 has fixed parameters, and the second neural network 122 has adjustable parameters. The parameters include weights. Once the first neural network 121 is trained by pre-training, the parameters of the first neural network 121 are fixed and are not changed by on-device training. The fact that the parameters are fixed may be expressed as the parameters being frozen. The parameters of the second neural network 122 are adjusted by on-device training. If the first neural network 121 extracts features from input data in a general manner, the second neural network 122 is understood to remap the features extracted by the first neural network 121 to be specific to a user of an individual device.
[0036] In user recognition, inconsistency between training data and actual user data results in a decrease in recognition performance. For example, since actual user data is not used during pre-training of the first neural network 121, the recognition performance of the feature extractor 120 composed only of the first neural network 121 may not be high. On-device training of the second neural network 122 is performed based on actual user data, which helps to eliminate such inconsistency. For example, when a general feature extractor to which only pre-training is applied is used, it may be difficult to identify users with similar characteristics, such as family members. However, when the feature extractor 120 according to the embodiment is used, since the actual user data of each user is used for on-device training, users with similar characteristics can be relatively accurately identified.
[0037] Furthermore, in on-device training according to the embodiment, not only user data but also reference data corresponding to a generalized user may be used. By on-device training using the user data and the reference data, the feature extractor 120 can extract features from the user data that can be distinguished from the reference data. Therefore, the feature vector of an intruder and the feature vector of a registered user can be more clearly distinguished, and the recognition performance can be improved. On-device training using the user data and the reference data will be described in detail later.
[0038] 2 is a diagram showing a process for pre-training, user registration, and user authentication according to an embodiment. Referring to FIG. 2, pre-training is performed in step S210. The pre-training is performed based on a large-scale user database corresponding to unspecified users, and the first neural network 201 of the feature extractor 200 is trained through the pre-training. The pre-training may be performed at a server end, and the feature extractor 200 may be installed in a device and distributed to a user after step S210 is performed.
[0039] If user data is input by a valid user for user registration, on-device training is performed in step S220, and user registration is performed in step S230. Steps S220 and S230 are referred to as a user registration process. It is understood that on-device training is performed in the user registration process. On-device training is performed based on user data of a specific user, such as a valid user, and reference data corresponding to a generalized user, and the second neural network 202 of the feature extractor 200 is trained through on-device training. Before on-device training, the second neural network 202 may be initialized to an identity matrix.
[0040] After step S220, the feature extractor 200 may be in a state specialized for the enrolled user. After on-device training is completed, user data of a valid user is input to the feature extractor 200 in step S230. Based on the output of the feature extractor 200 in response to the input of the user data, an enrollment feature vector is determined. Once the enrollment feature vector is determined, the determined enrollment feature vector is stored in an enrolled user database.
[0041] In step S240, user recognition is performed. Step S240 is referred to as a user recognition process. Test data input by a test user for user recognition is input to the feature extractor 200. Based on the output of the feature extractor 200 in response to the input of the test data, a test feature vector is determined. Based on the comparison between the enrollment feature vector and the test feature vector, user recognition for the test user is performed. Steps S220 to S240 can be performed by the device.
[0042] FIG. 3 is a diagram showing a detailed process of pre-training according to an embodiment. Referring to FIG. 3, a training device 310 uses a large-scale user database 320 to train a neural network 330 to extract features from input data. For example, the large-scale user database 320 may include training data for multiple unspecified users, and a label may be assigned to each training data. The training data includes audio or video. For example, in the case of speaker recognition, the input data includes speech, voice, or audio.
[0043] The neural network 330 includes an input layer 331, at least one hidden layer 332, and an output layer 333. For example, the input layer 331 corresponds to training data, and the output layer 333 corresponds to an activation function such as Softmax. Through pre-training of the neural network 330, parameters (e.g., weights) of the at least one hidden layer 332 are adjusted. Different labels are assigned to each training data, and the neural network 330 has the ability to output different output data for different input data through pre-training based on such training data and labels. Such an ability of the neural network 330 is understood as a feature extraction function.
[0044] For example, assume that a first label is assigned for the first training data and a second label is assigned for the second training data. In this case, the neural network 330 outputs first output data in response to the input of the first training data, and outputs second output data in response to the input of the second training data. The training device 310 can compare the first output data with the first label, and adjust the parameters of at least one hidden layer 332 in a direction in which the first output data and the first label become identical. Similarly, the training device 310 can compare the second output data with the second label, and adjust the parameters of at least one hidden layer 332 in a direction in which the second output data and the second label become identical. The training device 310 can repeat such a process on the large-scale user database 320 to pre-train the neural network 330.
[0045] According to an embodiment, the training process may be performed in a suitable batch unit. For example, a process of inputting one training data to the neural network 330 and obtaining one output data corresponding to the output of the neural network 330 based on the input of the training data is performed in a batch unit, and pre-training using the large-scale user database 320 is performed by repeating the execution in batch units.
[0046] The output layer 333 serves to convert the feature vector output from the at least one hidden layer 332 into a form corresponding to the label. The parameters of the at least one hidden layer 332 are set to values according to the training purpose by pre-training, and when the pre-training is completed, the parameters of the at least one hidden layer 332 are fixed. Thereafter, the output layer 333 is removed from the neural network 330, and a first neural network of the feature extractor can be configured with the part 340 including the input layer 331 and the at least one hidden layer 332.
[0047] Once pre-training is complete, the neural network 330 can perform a feature extraction function that outputs different output data for different input data. Such feature extraction functions perform best when the training data is the same as the actual data used in the user registration process and the user recognition process. However, in general, the training data and the actual data may be different. In order to improve recognition performance, it is theoretically possible to reduce the discrepancy between the training data and the actual data by including the actual data in the training data and re-training it.
[0048] However, until the neural network 330 has a feature extraction function, it is necessary to train the neural network 330 on the large-scale user database 320, and such a training process requires large-scale computing resources. In general, since the computing resources of a user device are limited, such training is performed at a large-capacity server end. Therefore, according to the embodiment, a dual training method of pre-training and on-device training can be provided, in which the neural network 330 is trained via the large-scale user database 320 to generate a first neural network of the feature extractor, and a second neural network of the feature extractor is generated based on actual data. Therefore, it is possible to solve the inconsistency between the training data and the actual data and provide a feature extractor specialized for a user device.
[0049] FIG. 4 is a diagram illustrating the operation of an authentication device for on-device training and user registration according to an embodiment. Referring to FIG. 4, a legitimate user inputs user data for user registration. The recognition device 410 may perform on-device training for the feature extractor 420 based on the user data. The feature extractor 420 includes a first neural network 421 and a second neural network 422. The parameters of the first neural network 421 are fixed by pre-training, and the parameters of the second neural network 422 are adjusted by on-device training. Reference data may be used for the on-device training. The recognition device 410 obtains reference data from a generalized user model 430 and inputs it to the second neural network 422. The user data may correspond to a legitimate user, and the reference data may correspond to a generalized user. The generalized user model 430 will be described later.
[0050] The recognition device 410 can assign different labels to each user data and each reference data, compare the output of the feature extractor 420 in response to the input of each user data and each reference data with the labels, and adjust the parameters of the second neural network 422. In this way, the recognition device trains the feature extractor 420 so that the feature extractor 420 outputs a feature vector that is distinguished for each user data and each reference data. By training the feature extractor 420 using both the user data and the reference data, not only can the registered feature vectors of the registered users be clearly distinguished from each other, but also the registered feature vectors of the registered users and the feature vectors of the intruder can be clearly distinguished from each other. Thus, the on-device training provides the feature extractor 420 with a discrimination ability to distinguish registered users from each other and an authentication ability to distinguish registered users from intruders and authenticate registered users.
[0051] Once on-device training is complete, the recognition device 410 inputs user data to the feature extractor 420 and obtains a feature vector output by the feature extractor 420 in response to the input of the user data. The recognition device 410 stores the feature vector output by the feature extractor 420 as an enrollment feature vector in the enrollment user database 440. The enrollment feature vector may later be used in a user authentication process.
[0052] FIG. 5 is a diagram showing a detailed process of on-device training according to an embodiment. Referring to FIG. 5, the recognition device 510 may perform on-device training on the feature extractor 520 using user data and reference data. The user data may be input to a first neural network 521, and the reference data may be input to a second neural network 522. The reference data is obtained from a generalized user model 540. The recognition device 510 may input user data to the first neural network 521, and if the first neural network 521 outputs a feature vector in response to the input of the user data, the recognition device 510 may input the corresponding feature vector to the second neural network 522. The reference data may be generated using a neural network that performs feature extraction, such as the first neural network 521. It is understood that the output of the first neural network 521 is input from the first neural network 521 to the second neural network 522 without special control of the recognition device.
[0053] The second neural network 522 is trained through a process similar to that of the neural network 330 shown in FIG. 3. For example, it is understood that the training data shown in FIG. 3 is replaced with feature vectors and reference vectors corresponding to user data. The second neural network 522 includes an input layer 523, at least one hidden layer 524, and an output layer 525. For example, the input layer 523 corresponds to input data including feature vectors and reference data corresponding to user data, and the output layer 525 corresponds to an activation function such as softmax. The parameters (e.g., weights) of at least one hidden layer 524 are adjusted through on-device training. The second neural network 522 is composed of a portion 530 including the input layer 523 and the hidden layer 524.
[0054] A different label may be assigned to each user data and each reference data, and the feature extractor 520 has the capability of outputting different output data for different user data and different reference data by on-device training based on the user data, reference data, and labels. For example, if the first neural network 521 extracts features from input data in a general manner, the second neural network 522 can be understood to remap the features extracted by the first neural network 521 to be specific to a user of an individual device.
[0055] According to one embodiment, the training process is performed in a suitable batch unit. For example, a process of inputting one of the user data and the reference data into the feature extractor 520 and obtaining one output data corresponding to the output of the feature extractor 520 is performed in a batch unit, and on-device training using the user data and the reference data is performed by repeating the batch unit execution. After the on-device training is completed, the parameters of at least one hidden layer 524 are fixed. Then, the output layer 525 is removed from the second neural network 522, and the second neural network 522 can be determined with the output layer 525 removed.
[0056] As described above, the inconsistency between the training data and the actual data can be resolved through on-device training. For example, the discrimination ability between the enrollment feature vectors can be improved through the user data, and the discrimination ability between the enrollment feature vectors and the intruder's feature vector can be improved through the reference data.
[0057] 6 is a diagram illustrating a process of generating a generalized user model according to an embodiment. Referring to FIG. 6, input data is extracted from a large-scale user database 610 and input to a neural network 620. For example, the neural network 620 corresponds to the first neural network 421 shown in FIG. 4 and can output a feature vector based on the input data. The large-scale user database 610 may be the same as or different from the large-scale user database 610 shown in FIG. 3.
[0058] The feature vectors output by the neural network 620 are displayed as points on a vector plane 630. These feature vectors correspond to multiple general users included in the large-scale user database 610 and are called basic feature vectors. A representative vector of these basic feature vectors is the representative feature vector θ 1 , θ 2 , ..., θ c For example, the basic feature vectors are clustered to select a representative feature vector θ 1 , θ 2 , ..., θ c may be selected. 1 , θ 2 , ..., θ c corresponds to a generalized user and is called a generalized feature vector. In addition, the representative feature vector θ 1 , θ 2 , ..., θ c The representative feature vectors may be tens to hundreds of representative feature vectors, 1000 or less, 500 or less, or 100 or less, and may be data that the user device can realistically process for deep learning training. For example, a database containing about 1 million utterances may be constructed by collecting 10 utterances from each of about 100,000 users, and about 100 representative feature vectors may be generated based on the database.
[0059] FIG. 7 is a diagram illustrating the operation of an authentication device for user authentication according to an embodiment. Referring to FIG. 7, a recognition device 710 inputs test data to a feature extractor 720. The feature extractor 720 may be in a state where on-device training has been completed. The feature extractor 720 outputs a test feature vector in response to the input of the test data. The test data is input by a test user in a user authentication process. The test user is a person who attempts user recognition by the recognition device 710 in order to use the recognition device 710 in an anonymous state, and is a legitimate user or an intruder.
[0060] The recognition device can obtain an enrollment feature vector from the enrollment user database 730, compare the enrollment feature vector with the test feature vector, and perform user recognition for the test user to generate a recognition result. For example, the recognition device 710 can determine a distance between the enrollment feature vector and the test feature vector, and generate a recognition result based on a comparison between the determined distance and a threshold. For example, the distance between the enrollment feature vector and the test feature vector can be determined based on a cosine distance, a Euclidean distance, etc. between the enrollment feature vector and the test feature vector.
[0061] 8 and 9 are diagrams illustrating distribution changes of feature vectors before and after on-device training according to an embodiment. Referring to FIG. 8, enrollment feature vectors are displayed on vector planes 810 and 820. The enrollment feature vectors are displayed in the form of dots, and dots with the same pattern indicate enrollment feature vectors of the same enrolled user. The enrollment feature vectors of the vector plane 810 are obtained through a feature extractor that does not reflect on-device training, and the enrollment feature vectors of the vector plane 820 are obtained through a feature extractor that reflects on-device training. As shown in FIG. 8, the enrollment feature vectors are rearranged to be specific to the enrolled user through on-device training. Therefore, enrolled users, especially enrolled users having similar characteristics such as family members, can be clearly distinguished from each other.
[0062] 9, the vector planes 910 and 920 further include an intruder feature vector compared to the vector planes 810 and 820 shown in FIG. 8. The intruder feature vector is displayed in a star pattern. The enrollment feature vector and the intruder feature vector of the vector plane 910 are obtained through a feature extractor that does not reflect on-device training, and the enrollment feature vector and the intruder feature vector of the vector plane 920 are obtained through a feature extractor that reflects on-device training. As shown in FIG. 9, not only the enrollment feature vector but also the intruder feature vector may be rearranged to be specialized for a registered user through on-device training. Therefore, the registered user and the intruder are clearly distinguished from each other, and the registered user can be accurately authenticated.
[0063] FIG. 10 is a flow chart showing an on-device training based authentication method according to an embodiment. Referring to FIG. 10, the authentication device receives user data input by a valid user for user registration in step S1010, performs on-device training on a feature extractor based on reference data corresponding to a generalized user and the user data in step S1020, determines an enrollment feature vector based on an output of the feature extractor in response to the input of the user data in step S1030, receives test data input by a test user for user recognition in step S1040, determines a test feature vector based on an output of the feature extractor in response to the input of the test data in step S1050, and performs user recognition on the test user based on a comparison between the enrollment feature vector and the test feature vector in step S1060. In addition, the matters described with reference to FIG. 1 to FIG. 9 are applied to the on-device training based authentication method.
[0064] FIG. 11 is a flowchart showing an on-device training based authentication method according to another embodiment. Referring to FIG. 11, the authentication device obtains a feature extractor including a first neural network having fixed parameters and a second neural network having adjustable parameters in step S1110, performs on-device training on the feature extractor based on user data corresponding to a valid user and reference data corresponding to a generalized user in step S1120, and performs user recognition using the feature extractor when the on-device training is completed in step S1130. In addition, the matters described with reference to FIG. 1 to FIG. 10 are applied to the on-device training based authentication method.
[0065] 12 is a block diagram illustrating an on-device training based authentication device according to an embodiment. Referring to FIG. 12, the recognition device 1200 receives input data including user data and test data and processes neural network operations on the input data. For example, the neural network operations include user recognition operations. The recognition device 1200 may perform one or more operations described or illustrated herein in connection with neural network operations and may provide neural network processing results to a user.
[0066] The recognition device 1200 includes one or more processors 1210 and a memory 1220. The memory 1220 is connected to the processor 1210 and stores instructions executable by the processor 1210, data operated by the processor 1210, or data processed by the processor 1210. The memory 1220 includes a non-transitory computer-readable recording medium, such as a high-speed random access memory and / or a computer-readable non-volatile storage medium (e.g., one or more disk storage devices, flash memory devices, or other non-volatile solid-state memory devices).
[0067] The processor 1210 executes instructions to perform one or more of the operations described with reference to Figures 1 to 11. According to an embodiment, when the instructions stored in the memory 1220 are executed by the processor 1210, the processor 1210 can receive user data input by a valid user for user registration, perform on-device training for the feature extractor 1225 based on the reference data corresponding to the generalized user and the user data, determine an enrollment feature vector based on the output of the feature extractor 1225 in response to the input of the user data, receive test data input by a test user for user recognition, determine a test feature vector based on the output of the feature extractor 1225 in response to the input of the test data, and perform user recognition for the test user based on a comparison between the enrollment feature vector and the test feature vector.
[0068] According to another embodiment, when the instructions stored in the memory 1220 are executed by the processor 1210, the processor 1210 obtains a feature extractor 1225 including a first neural network having fixed parameters and a second neural network having adjustable parameters, performs on-device training for the feature extractor 1225 based on user data corresponding to a legitimate user and reference data corresponding to a generalized user, and once the on-device training is completed, can perform user recognition using the feature extractor 1225.
[0069] FIG. 13 illustrates a user device according to an embodiment. Referring to FIG. 13, the user device 1300 receives input data and processes neural network operations on the input data. For example, the neural network operations include user recognition operations. The user device 1300 may include or perform the functions of the recognition devices described with reference to FIGS. 1-12.
[0070] The user device 1300 includes a processor 1310, a memory 1320, a camera 1330, a storage device 1340, an input device 1350, an output device 1360, and a network interface 1370. The processor 1310, the memory 1320, the camera 1330, the storage device 1340, the input device 1350, the output device 1360, and the network interface 1370 communicate with each other via a communication bus 1380. For example, the user device 1300 includes a smartphone, a tablet PC, a laptop computer, a desktop PC, a wearable device, a smart home appliance, a smart speaker, a smart car, and the like.
[0071] The processor 1310 executes functions and instructions for execution within the user device 1300. For example, the processor 1310 processes instructions stored in the memory 1320 or the storage device 1340. The processor 1310 may perform one or more of the operations described with reference to FIGS.
[0072] The memory 1320 stores information for processing the operation of the neural network. The memory 1320 may include a computer-readable storage medium or a computer-readable storage device. The memory 1320 stores instructions for execution by the processor 1310 and stores relevant information during the execution of software or applications by the user device 1300.
[0073] The camera 1330 may capture still images, video footage, or all of these. The camera 1330 may capture a facial region that a user inputs to attempt facial recognition. The camera 1330 may provide 3D footage that includes depth information about objects.
[0074] Storage device 1340 includes a computer readable storage medium or computer readable storage device. According to one embodiment, storage device 1340 stores a larger amount of information than memory 1320 and stores information for a longer period of time. For example, storage device 1340 includes a magnetic hard disk, an optical disk, a flash memory, a floppy disk, or other forms of non-volatile memory known in the art.
[0075] The input device 1350 receives input from a user through traditional input methods through a keyboard and mouse, and newer input methods such as touch input, voice input, and image input. For example, the input device 1350 may include a keyboard, mouse, touch screen, microphone, or any other device capable of detecting input from a user and communicating the detected input to the user device 1300. Data such as a user's fingerprint, iris, speech, voice, and audio may be input via the input device 1350.
[0076] Output device(s) 1360 provide output of user device 1300 to a user via visual, auditory or tactile channels. Output device(s) 1360 may include, for example, a display, a touch screen, a speaker, a vibration generator, or any other device capable of providing output to a user. Network interface 1370 can communicate with external devices via a wired or wireless network.
[0077] The above-described embodiments may be implemented using hardware components, software components, or a combination of hardware and software components. For example, the devices and components described herein may be implemented using one or more general-purpose or special-purpose computers, such as a processor, a controller, an arithmetic logic unit (ALU), a digital signal processor, a microcomputer, a field programmable array (FPA), a programmable logic unit (PLU), a microprocessor, or other devices that execute and respond to instructions. The processing device executes an operating system (OS) and one or more software applications that run on the operating system. The processing device also accesses, stores, manipulates, processes, and generates data in response to the execution of the software. For ease of understanding, the processing device may be described as being one in which only one processing device is used, but one skilled in the art will appreciate that the processing device may include multiple processing elements and / or multiple types of processing elements. For example, the processing device may include multiple processors or one processor and one controller. Other processing configurations, such as parallel processors, are also possible.
[0078] The software may include computer programs, codes, instructions, or any combination of one or more thereof, capable of configuring or instructing a processing device to operate as desired, either independently or in combination. The software and / or data may be embodied in any type of machine, component, physical device, virtual device, computer storage medium or device, or transmitted signal wave, either permanently or temporarily, to be interpreted by the processing device or to provide instructions or data to the processing device. The software may be distributed across computer systems coupled to a network, and may be stored and executed in a distributed manner. The software and data may be stored on one or more computer readable recording media.
[0079] The method according to the present invention may be embodied in the form of program instructions to be executed by various computer means and recorded on a computer-readable recording medium. The recording medium may include program instructions, data files, data structures, and the like, alone or in combination. The recording medium and the program instructions may be specially designed and constructed for the purposes of the present invention, or may be well known and available to those skilled in the art of computer software. Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks and magnetic tapes, optical recording media such as CD-ROMs and DVDs, magneto-optical media such as floptical disks, and hardware devices specially configured to store and execute program instructions, such as ROM, RAM, flash memory, and the like. Examples of program instructions include not only machine code, such as produced by a compiler, but also high-level language code executed by a computer using an interpreter, and the like. The hardware devices may be configured to operate as one or more software modules to perform the operations shown in the present invention, and vice versa.
[0080] Although the embodiments have been described above with reference to limited drawings, those skilled in the art may apply various technical modifications and variations based on the above description. For example, the described techniques may be performed in a different order than described, and / or the components of the described systems, structures, devices, circuits, etc. may be combined or combined in a different manner than described, or may be replaced or substituted with other components or equivalents to achieve appropriate results.
Claims
1. receiving user data entered by a valid user for user registration; on-device training of a feature extractor based on reference data corresponding to a generalized user and the user data; determining an enrollment feature vector based on output of the feature extractor in response to input of the user data; receiving test data input by a test user for user recognition; determining a test feature vector based on an output of the feature extractor in response to input of the test data; performing user recognition for the test user based on a comparison between the enrollment feature vector and the test feature vector; Including, the feature extractor includes a first neural network having fixed parameters in response to pre-training and a second neural network having adjustable parameters in response to the on-device training; The step of performing on-device training includes: inputting the user data into the first neural network; inputting an output of the first neural network in response to the input of the user data and the reference data into the second neural network; performing the on-device training based on an output of the second neural network; A method of recognition, including:
2. The recognition method described in claim 1, wherein the on-device training adjusts the adjustable parameters of the second neural network.
3. The method of claim 2 , wherein the first neural network is pre-trained to extract features from input data based on a large user database.
4. The step of performing on-device training includes: assigning a label of a different value to each of the user data and the reference data; performing the on-device training based on a comparison between an output of the feature extractor in response to input of the user data and the reference data and the label; The method of claim 1 , comprising:
5. the reference data includes a generalized feature vector corresponding to the generalized user; The method of claim 1 , wherein the generalized feature vector is generated by clustering feature vectors corresponding to a plurality of general users.
6. The method of claim 1 , wherein the step of performing user recognition comprises the step of performing the user recognition based on a comparison between a distance between the enrollment feature vector and the test feature vector and a threshold.
7. The method of claim 6 , wherein the distance between the enrollment feature vector and the test feature vector is determined based on one of a cosine distance and a Euclidean distance between the enrollment feature vector and the test feature vector.
8. The method of claim 1 , further comprising the step of: once the enrollment feature vector is determined, storing the determined enrollment feature vector in an enrollment user database.
9. A method for detecting a feature extractor, the method comprising: obtaining a feature extractor including a first neural network having fixed parameters in response to pre-training and a second neural network having adjustable parameters in response to on-device training; performing the on-device training of the feature extractor based on user data corresponding to legitimate users and reference data corresponding to generalized users; Once the on-device training is complete, performing user recognition using the feature extractor; A recognition method including:
10. The method of claim 9 , wherein the on-device training adjusts the tunable parameters of the second neural network.
11. The step of performing on-device training includes: inputting the user data into the first neural network; inputting an output of the first neural network in response to the input of the user data and the reference data into the second neural network; performing the on-device training based on an output of the second neural network; The method of claim 9 , comprising:
12. 1. A method for on-device training of a feature extractor mounted on a user device, the method comprising: a first neural network having pre-trained and fixed parameters; and a second neural network having adjustable parameters in response to on-device training, the method comprising: obtaining user data entered by a legitimate user; inputting said user data into said first neural network; inputting an output of the first neural network in response to the input of the user data and predetermined reference data into the second neural network, and adjusting parameters of the second neural network; An on-device training method comprising:
13. The on-device training method of claim 12, wherein the reference data comprises 1000 or less, 500 or less, or 100 or less feature vectors.
14. The on-device training method of claim 12 , wherein the reference data includes generalized feature vectors corresponding to generalized users.
15. The on-device training method of claim 14 , wherein the generalized feature vector is generated by clustering feature vectors corresponding to a plurality of general users.
16. A computer readable storage medium having stored thereon one or more programs including instructions for carrying out the method according to any one of claims 1 to 15.
17. A processor; a memory containing instructions executable by the processor; Including, When the instruction is executed by the processor, the processor receiving user data input by a legitimate user for user registration; on-device training of a feature extractor based on reference data corresponding to a generalized user and the user data; determining an enrollment feature vector based on output of the feature extractor in response to input of the user data; receiving test data input by a test user for user recognition; determining a test feature vector based on an output of the feature extractor in response to input of the test data; performing user recognition for the test user based on a comparison between the enrollment feature vector and the test feature vector; the feature extractor includes a first neural network having fixed parameters in response to pre-training and a second neural network having adjustable parameters in response to the on-device training; In performing the on-device training, inputting the user data into the first neural network; inputting an output of the first neural network in response to the input of the user data and the reference data into the second neural network; performing the on-device training based on an output of the second neural network; recognition device.
18. The recognition device of claim 17, wherein the on-device training adjusts the tunable parameters of the second neural network.
19. 20. The recognition device of claim 18, wherein the first neural network is pre-trained to extract features from input data based on a large user database.
20. The processor, assigning a label of a different value to each of the user data and the reference data; 18. The recognition apparatus of claim 17, further comprising: a recognition device for performing the on-device training based on a comparison between an output of the feature extractor in response to input of the user data and the reference data and the labels.
21. the reference data includes a generalized feature vector corresponding to the generalized user; The recognition device according to claim 17 , wherein the generalized feature vector is generated by clustering feature vectors corresponding to a plurality of general users.
22. The recognition apparatus of claim 17 , wherein the processor performs the user recognition based on a comparison between a distance between the enrollment feature vector and the test feature vector and a threshold.
23. The recognition apparatus of claim 22 , wherein the distance between the enrollment feature vector and the test feature vector is determined based on one of a cosine distance and a Euclidean distance between the enrollment feature vector and the test feature vector.
24. The recognition apparatus of claim 17 , wherein once the enrollment feature vector is determined, the processor stores the determined enrollment feature vector in an enrollment user database.
25. A processor; a memory containing instructions executable by the processor; Including, When the instruction is executed by the processor, the processor obtaining a feature extractor including a first neural network having fixed parameters responsive to pre-training and a second neural network having adjustable parameters responsive to on-device training; performing on-device training of the feature extractor based on user data corresponding to legitimate users and reference data corresponding to generalized users; Once the on-device training is complete, performing user recognition using the feature extractor. recognition device.
26. The recognition apparatus of claim 25, wherein the on-device training adjusts the tunable parameters of the second neural network.
27. The processor, inputting the user data into the first neural network; inputting an output of the first neural network in response to the input of the user data and the reference data into the second neural network; The recognition apparatus of claim 25, further comprising: a processor for executing the on-device training based on an output of the second neural network.
28. pre-training a first neural network of a feature extractor on the server side; providing the feature extractor to a device after the first neural network has been pre-trained, the feature extractor including a first neural network having fixed parameters responsive to pre-training and a second neural network having adjustable parameters responsive to on-device training; on-device training of the second neural network of the feature extractor on the device using data input to the device; performing user recognition on test data input to the device using the feature extractor; Including, The step of performing user recognition includes: inputting the user data into the first neural network; inputting an output of the first neural network in response to the input of the user data and the reference data into the second neural network; performing the on-device training based on an output of the second neural network; A method comprising:
29. 29. The method of claim 28, wherein the data entered into the device includes user data entered by a legitimate user for user registration and reference data corresponding to a generalized user.
30. 30. The method of claim 29, further comprising performing the user recognition by comparing an enrollment feature vector corresponding to the user data with a test feature vector corresponding to the test data.
Citation Information
Patent Citations
JPP6561219B
A speech recognition method and apparatus
WO2018039500A1
