Coexistence user identity recognition model training method and coexistence user identity recognition method
By performing sample feature enhancement processing and knowledge distillation technology on the initial data set, the user identification model in the coexisting user environment is trained, which solves the problem of low recognition accuracy in WiFi sensing technology and achieves accurate identification of coexisting user identities.
Patent Information
- Application Number
- CN202410913680.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-10-11
AI Technical Summary
In an environment of coexisting users, the recognition accuracy of the person identification method of WiFi sensing technology is low. The reason is that the dynamic path not only contains signals reflected by user activities, but also contains interference signals between users, causing the independent identity characteristics of users to be obscured.
By performing sample feature enhancement processing on the initial data set, including filtering, normalization, forward diffusion and reverse reconstruction processing, clustering processing, a knowledge distillation data set is constructed, and the multi-branch neural network model and knowledge distillation technology are used to The recognition model is trained and the model parameters are adjusted to improve the recognition accuracy.
It improves the branch feature extraction capability and performance of the user identification model, achieves accurate identification of coexisting user identities, and improves identification accuracy.
Smart Images

Figure CN118761436A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a co-existing user identity recognition model training method and a co-existing user identity recognition method. Background Art
[0002] Personnel identification is a core component of artificial intelligence in the fields of human-computer interaction, home security, and virtual reality. With the popularization of WiFi devices and the development of wireless communication technology, WiFi devices use multiple input multiple output (MIMO) technology and orthogonal frequency division multiplexing (OFDM) technology to obtain channel state information (CSI) from each transmitting antenna to each receiving antenna along multiple paths on each carrier frequency. When users exist independently in the sensing area, multiple paths can be divided into static paths and dynamic paths, where the dynamic path is the signal reflected by user activities.
[0003] However, when there are co-existing users in the sensing area, that is, when there are multiple users, the dynamic path contains not only signals reflected by user activities, but also signals that interfere with each other between users, which causes the independent identity characteristics of users to be masked. The identity recognition capability of co-existing users is significantly reduced, ultimately resulting in low recognition accuracy of the personnel recognition method based on WiFi sensing technology. Summary of the invention
[0004] In view of this, an embodiment of the present application provides a co-existing user identity recognition model training method and a co-existing user identity recognition method to solve the technical problem of low accuracy in the related art for co-existing user identity recognition.
[0005] In a first aspect, an embodiment of the present application provides a method for training a co-existing user identity recognition model, comprising:
[0006] Acquire an initial data set, perform sample feature enhancement processing on the initial data set, and obtain a processed data set; the data set includes samples of gait CSI data of multiple users when they are independent and coexistent, and corresponding sample labels, wherein the sample labels indicate whether each user exists;
[0007] The processed data set is used to train a preset user recognition model to obtain a trained user recognition model and a corresponding recognition accuracy rate; wherein the user recognition model is a multi-branch neural network model, the user recognition model inputs gait CSI data, and outputs the recognized user;
[0008] According to the processed data set and the recognition accuracy, a knowledge distillation data set is constructed; the knowledge distillation data set is input into a trained user classification model to obtain a user identity probability distribution, and the knowledge distillation data set is input into a trained user recognition model to obtain a first user existence probability distribution; wherein the user classification model inputs the user's independent gait CSI data and outputs the recognized user;
[0009] The total loss is determined based on the user identity probability distribution and the first user existence probability distribution, and the model parameters of the trained user identification model are adjusted based on the total loss to obtain a trained user identification model; wherein the user identification model is used to identify the identities of co-existing users.
[0010] In a possible implementation of the first aspect, performing sample feature enhancement processing on the initial data set to obtain a processed data set includes:
[0011] Performing filtering and normalization processing on the initial data set to obtain an initial data set after primary processing;
[0012] Using a preset diffusion model, the initial data set after the primary processing is subjected to forward diffusion processing and reverse reconstruction processing to obtain the initial data set after the secondary processing;
[0013] The secondary processed initial data set is clustered to obtain a clustering coefficient, and a processed data set is obtained based on the clustering coefficient and the secondary processed initial data set.
[0014] In a possible implementation of the first aspect, the clustering process includes Hopkins clustering process, and the clustering coefficient includes the Hopkins clustering coefficient; the data set includes an environmental sample, and the environmental sample is a sample in which there is no user's gait CSI data;
[0015] The clustering process is performed on the secondary processed initial data set to obtain a clustering coefficient, and a processed data set is obtained according to the clustering coefficient and the secondary processed initial data set, including:
[0016] According to whether each user indicated by the sample label exists, the initial data set after secondary processing is divided to obtain a data set of existence and a data set of non-existence corresponding to each user;
[0017] For each user, perform Hopkins clustering on the corresponding presence data set and absence data set to obtain the corresponding Hopkins clustering coefficient;
[0018] According to the existence data set corresponding to each user, the corresponding Hopkins clustering coefficient and the environmental samples in the initial data set after secondary processing, the processed data set is obtained.
[0019] In a possible implementation of the first aspect, the user identification model includes a trunk network, multiple branch networks, and multiple binary classifiers; each branch network corresponds to each binary classifier in a one-to-one manner, and each branch network corresponds to each user in a one-to-one manner;
[0020] The method of training a preset user recognition model using the processed data set to obtain a trained user recognition model and a corresponding recognition accuracy rate includes:
[0021] Inputting samples of gait CSI data in the processed data set into the backbone network, so that the backbone network extracts features from the samples of gait CSI data to obtain user features;
[0022] For each branch network, the user features are input into the branch network so that the branch network extracts features of the user corresponding to the branch network, and obtains independent user features of the user corresponding to the branch network; the independent user features are input into the binary classifier corresponding to the branch network to obtain an output probability distribution; and the cross entropy loss is calculated according to the output probability distribution and the sample labels corresponding to the samples of the gait CSI data;
[0023] The total cross entropy loss is calculated according to the cross entropy losses corresponding to all branch networks, and the user recognition model is adjusted based on the total cross entropy loss until the training is completed, so as to obtain the trained user recognition model and the corresponding recognition accuracy of each branch network.
[0024] In a possible implementation of the first aspect, the parameter adjustment processing of the user recognition model based on the total cross entropy loss until the training is completed to obtain the trained user recognition model and the corresponding recognition accuracy of each branch network includes:
[0025] Determine whether the total cross entropy loss is less than a preset threshold;
[0026] If the total cross entropy loss is less than the preset threshold, the training is completed, and the trained user recognition model and the corresponding recognition accuracy of each branch network are obtained;
[0027] If the total cross entropy loss is greater than or equal to the preset threshold, the trunk network, the multiple branch networks and the multiple binary classifiers are adjusted respectively, and the user recognition network with adjusted parameters is trained using samples of the next batch of gait CSI data until the training is completed.
[0028] In a possible implementation of the first aspect, constructing a knowledge distillation dataset according to the processed dataset and the recognition accuracy rate includes:
[0029] According to the existence of each user indicated by the sample label, the initial data set after secondary processing is divided to obtain the existence data set corresponding to each user;
[0030] For each user, a sampling coefficient is determined according to the recognition accuracy rate of the branch network corresponding to the user;
[0031] According to the existing data set corresponding to each user, the corresponding sampling coefficient and the environmental samples in the initial data set after secondary processing, the knowledge distillation data set is obtained.
[0032] In a possible implementation of the first aspect, the first user presence probability distribution is multiple;
[0033] The determining of the total loss based on the user identity probability distribution and the first user existence probability distribution, and adjusting the model parameters of the trained user recognition model based on the total loss to obtain the trained user recognition model, includes:
[0034] Converting the user identity probability distribution into a plurality of second user existence probability distributions; the plurality of second user existence probability distributions correspond one-to-one to the plurality of first user existence probability distributions;
[0035] Calculating a first loss based on the plurality of second user existence probability distributions and the plurality of first user existence probability distributions, and calculating a second loss based on the plurality of first user existence probability distributions;
[0036] A total loss is determined according to the first loss and the second loss, and parameter adjustment is performed on multiple branch networks of the trained user recognition model according to the total loss to obtain a trained user recognition model.
[0037] In a second aspect, an embodiment of the present application provides a method for identifying a coexisting user, including:
[0038] Obtain real-time gait CSI data;
[0039] Inputting the real-time gait CSI data into a trained user recognition model to obtain the identity of the co-existing user identified by the user recognition model;
[0040] The trained user identification model is obtained by training using the co-existing user identity recognition model training method as described in any one of the first aspects.
[0041] In a third aspect, an embodiment of the present application provides a co-existing user identity recognition model training device, including:
[0042] An acquisition module is used to acquire an initial data set, perform sample feature enhancement processing on the initial data set, and obtain a processed data set; the data set includes samples of gait CSI data of multiple users when they are independent and coexistent, and corresponding sample labels, wherein the sample labels indicate whether each user exists;
[0043] A training module, used to train a preset user recognition model using the processed data set to obtain a trained user recognition model and a corresponding recognition accuracy rate; wherein the user recognition model is a multi-branch neural network model, the user recognition model inputs gait CSI data and outputs the recognized user;
[0044] A construction module is used to construct a knowledge distillation data set according to the processed data set and the recognition accuracy; input the knowledge distillation data set into a trained user classification model to obtain a user identity probability distribution, and input the knowledge distillation data set into a trained user recognition model to obtain a first user existence probability distribution; wherein the user classification model inputs the user's independent gait CSI data and outputs the recognized user;
[0045] A module is obtained, which is used to determine the total loss based on the user identity probability distribution and the first user existence probability distribution, and adjust the model parameters of the trained user identification model based on the total loss to obtain a trained user identification model; wherein the user identification model is used to identify the identity of the co-existing user.
[0046] In a fourth aspect, an embodiment of the present application provides a co-existing user identity recognition device, including:
[0047] An acquisition module, used to obtain real-time gait CSI data;
[0048] an identification module, configured to input the real-time gait CSI data into a trained user identification model to obtain the identity of the co-existing user identified by the user identification model;
[0049] The trained user identification model is obtained by training using the co-existing user identity recognition model training method as described in any one of the first aspects.
[0050] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, it implements the co-existence user identity recognition model training method as described in any one of the first aspect, or the co-existence user identity recognition method as described in the second aspect.
[0051] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the co-existence user identity recognition model training method as described in any one of the first aspect, or the co-existence user identity recognition method as described in the second aspect.
[0052] In the seventh aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the co-existence user identity recognition model training method described in any one of the first aspect above, or the co-existence user identity recognition method described in the second aspect.
[0053] It can be understood that the beneficial effects of the second to seventh aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.
[0054] The co-existing user identity recognition model training method and the co-existing user identity recognition method provided in the embodiments of the present application use a data set that has been subjected to sample feature enhancement processing to train a preset user recognition model, thereby improving the user recognition model branch feature extraction capability, and using the trained user classification model, adopting the knowledge distillation method to train the trained user recognition model, that is, adjusting the parameters of the trained user recognition model, balancing and improving the user recognition model branch performance, thereby improving the accuracy of the user recognition model and achieving accurate recognition of the co-existing user identities.
[0055] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present specification. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0057] Figure 1 It is a schematic diagram of an application scenario provided by an embodiment of the present application;
[0058] Figure 2 It is a flowchart of a co-existing user identity recognition model training method provided by an embodiment of the present application;
[0059] Figure 3 It is a flowchart of a co-existing user identity recognition model training method provided by an embodiment of the present application;
[0060] Figure 4It is a flowchart of a method for identifying a co-existing user provided in an embodiment of the present application;
[0061] Figure 5 It is a structural diagram of a co-existing user identity recognition model training device provided in one embodiment of the present application;
[0062] Figure 6 It is a structural diagram of a co-existing user identity recognition device provided by an embodiment of the present application;
[0063] Figure 7 It is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0064] The present application is described more clearly below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the effects of the present application, but are not intended to limit the present application in any form. It should be noted that, for those of ordinary skill in the art, several variations and improvements may be made without departing from the concept of the present application. These all fall within the scope of protection of the present application.
[0065] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0066] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0067] In the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0068] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0069] In addition, the “plurality” mentioned in the embodiments of the present application should be interpreted as two or more.
[0070] WiFi devices are used in the field of personnel identification. When there are multiple users in the sensing area, the dynamic path contains not only signals reflected by user activities, but also signals that interfere with each other between users, which causes the independent identity characteristics of users to be masked. The identity identification capabilities of coexisting users are significantly reduced, ultimately resulting in low recognition accuracy of personnel identification methods based on WiFi sensing technology.
[0071] Based on the above problems, the inventors have discovered through research that the sample feature enhancement processing of the training data set can be performed to improve the feature extraction capability of the user identification model branch. The user identification model can also be trained by using the already trained user classification model and adopting the knowledge distillation method to balance and improve the performance of the user identification model branches, thereby improving the accuracy of the user identification model and achieving accurate identification of the identities of co-existing users.
[0072] In order to make the purpose, technical solutions and advantages of the present invention more clear, specific embodiments will be described below in conjunction with the accompanying drawings.
[0073] First reference Figure 1 , Figure 1 The application scenario of the present application is schematically shown, in which an electronic device, such as a server 101 and a terminal device 102, is included, and the terminal device 102 communicates with the server 101 wirelessly or by wire. In addition, the application scenario may also include a database 103, in which a data set for training a user recognition model is stored.
[0074] The server 101 can obtain an initial data set from the database 103, perform sample feature enhancement processing on the above initial data set, and use the obtained processed data set to train a preset user recognition model to obtain a trained user recognition model and a corresponding recognition accuracy rate. Thereafter, a knowledge distillation data set is constructed based on the processed data set and the recognition accuracy rate, and the above knowledge distillation data set is respectively input into the trained user classification model (teacher model) and the trained user recognition model (student model) to obtain a user identity probability distribution and a first user existence probability distribution, respectively. According to the total loss determined based on the user identity probability distribution and the first user existence probability distribution, the trained user recognition model is adjusted to obtain a trained user recognition model.
[0075] After the user identification model training is completed, the trained user identification model can be deployed in the terminal device 102. The terminal device 102 can identify the identity of the co-existing user according to the trained user identification model to obtain an identity identification result, and then the identity identification result can be used to achieve human-computer interaction or home security, etc.
[0076] The terminal device 102 may be, but is not limited to, a smart phone, a tablet, a personal computer, or a smart home appliance (for example, a water heater, a washing machine, a television, a smart speaker, etc.).
[0077] Combine the following Figure 1 ,refer to Figure 2 To describe the co-existence user identity recognition model training method provided according to an exemplary embodiment of the present application.
[0078] Figure 2 FIG. 1 is a flow chart of a method for training a coexisting user identity recognition model provided by an embodiment of the present application. Figure 2 As shown, the method in the embodiment of the present application may include:
[0079] Step 201: Acquire an initial data set, perform sample feature enhancement processing on the initial data set, and obtain a processed data set.
[0080] The data set includes samples of gait CSI data of multiple users when they are independent or coexisting, as well as corresponding sample labels, and the above sample labels indicate whether each user exists.
[0081] Exemplarily, the data set may correspond to multiple users. Taking the data set corresponding to three users such as A, B and C as an example, the samples of independent gait CSI data of the users may include samples of A's independent gait CSI data, samples of B's independent gait CSI data and samples of C's independent gait CSI data, and the samples of gait CSI data when the users coexist may include samples of gait CSI data when A and B coexist, samples of gait CSI data when B and C coexist, samples of gait CSI data when A and C coexist, and samples of gait CSI data when A, B and C coexist. In addition, the data set also includes environmental samples, that is, samples of environmental data of A, B and C are not included.
[0082] The sample label can be represented by a code to indicate whether each user exists. For example, a three-digit code can be set for three users, and each digit of the code corresponds to one user. For example, the first to third digits of the three-digit code in this embodiment correspond to users A, B, and C, respectively. The code only includes the numbers 0 and 1, 0 represents that the corresponding user does not exist, and 1 represents that the corresponding user exists. For example, the sample label corresponding to the sample of A's independent gait CSI data is 100, the sample label corresponding to the sample of B and C's coexisting gait CSI data is 011, the sample label corresponding to the sample of A, B and C's coexisting gait CSI data is 111, and the sample label corresponding to the environmental sample is 000.
[0083] In a possible implementation, when performing sample feature enhancement processing on an initial data set to obtain a processed data set, this embodiment may perform filtering processing and normalization processing on the initial data set to obtain an initial data set after primary processing, and use a preset diffusion model to perform forward diffusion processing and reverse reconstruction processing on the initial data set after primary processing to obtain an initial data set after secondary processing. Thereafter, clustering processing is performed on the initial data set after secondary processing to obtain a clustering coefficient, and a processed data set is obtained based on the clustering coefficient and the initial data set after secondary processing.
[0084] Optionally, the filtering process may include Hampel filtering and Butterworth low-pass filtering. The diffusion model includes a forward diffusion model and a reverse reconstruction model. In the process of performing forward diffusion processing on the initial data set after the initial processing using the forward diffusion model, random noise is added to each sample in the initial data set after the initial processing to generate each noise sample. Then, when performing reverse reconstruction processing using the reverse reconstruction model, each noise sample is denoised to achieve reconstruction of each noise sample, and each reconstructed sample constitutes the initial data set after the secondary processing. in, represents the samples in the initial data set after secondary processing, Y s Represents the sample label.
[0085] The reverse reconstruction model can be a multi-layer convolutional neural network (CNN), which consists of three one-dimensional convolutional layers. ReLU activation functions are used between the convolutional layers to enhance user features and alleviate the gradient vanishing problem. The number of input channels of the three convolutional layers is 1000, 180, and 100, respectively, the number of output channels is 180, 100, and 1000, respectively, the size of the convolution kernel is 3×180, 3×100, and 3×1000, respectively, the step size is 1, 1, and 1, respectively, and the padding is 1, 1, and 1, respectively.
[0086] Reference Figure 3In this embodiment, the initial data set is subjected to sample feature enhancement processing including filtering processing + normalization processing, forward diffusion and reverse reconstruction processing, which can improve the branch feature extraction capability of the user recognition model.
[0087] In some embodiments, clustering processing may include Hopkins clustering processing, and the clustering coefficient may include the Hopkins clustering coefficient. In this embodiment, the initial data set after secondary processing may be divided according to whether each user indicated by the sample label exists, to obtain a presence data set and a non-existence data set corresponding to each user. For each user, Hopkins clustering processing is performed on the corresponding presence data set and non-existence data set to obtain a corresponding Hopkins clustering coefficient. According to the presence data set corresponding to each user, the corresponding Hopkins clustering coefficient and the environmental samples in the initial data set after secondary processing, a processed data set is obtained.
[0088] For example, for the nth user, the initial data set after secondary processing can be Divided into the nth user existence data set and the dataset does not exist Based on the Hopkins clustering formula, the existence data set and the non-existence data set of the n-th user are clustered to obtain the Hopkins clustering coefficient corresponding to the n-th user.
[0089] The Hopkins clustering formula is:
[0090]
[0091] Where, d i represents the distance between the i-th random point (sample) and the nearest point (sample) in the same cluster, q represents the number of clusters to which the i-th random point belongs, and p represents the number of clusters to which the nearest point (sample) in the same cluster as the i-th random point (sample) belongs.
[0092] After calculating the Hopkins clustering coefficient corresponding to each user, the maximum value of all Hopkins clustering coefficients is determined as the maximum Hopkins clustering coefficient. Then, for each user, the ratio of the Hopkins clustering coefficient corresponding to the user to the maximum Hopkins clustering coefficient is used as the sampling coefficient corresponding to the user. In this way, according to the sampling coefficient corresponding to each user, a certain proportion of samples are extracted from the existing data set corresponding to each user, and together with the environmental samples in the initial data set after secondary processing, the processed data set {X r ,Y r For example, if the sampling coefficient corresponding to user A is 0.3, 30% of the samples are extracted from the existing data set corresponding to A to participate in forming the processed data set.
[0093] It should be noted that the larger the Hopkins clustering coefficient is, the better the clustering degree of the samples is, the higher the similarity between the samples is, and the more difficult it is to separate them into two clusters. In order to better train the performance of the user recognition model, it is hoped that there will be more samples that are less likely to be separated into two clusters. Therefore, in this embodiment, samples are sampled from the existing data set corresponding to the user according to the Hopkins clustering coefficient.
[0094] Step 202: Use the processed data set to train a preset user recognition model to obtain a trained user recognition model and a corresponding recognition accuracy rate.
[0095] The user identification model is a multi-branch neural network model, which inputs gait CSI data and outputs the identified user, and the user identification model includes a backbone network, multiple branch networks and multiple binary classifiers. Each branch network corresponds to each binary classifier one by one, and each branch network corresponds to each user one by one.
[0096] In a possible implementation manner, when training a preset user recognition model to obtain a trained user recognition model and a corresponding recognition accuracy rate, this embodiment may include steps A1 to A3.
[0097] A1. Input the samples of gait CSI data in the processed data set into the backbone network, so that the backbone network extracts features of the samples of gait CSI data to obtain user features.
[0098] A2. For each branch network, the user features are input into the branch network so that the branch network can extract the features of the user corresponding to the branch network and obtain the independent user features of the user corresponding to the branch network. Then, the independent user features are input into the binary classifier corresponding to the branch network to obtain the output probability distribution, and the cross entropy loss is calculated based on the output probability distribution and the sample labels corresponding to the samples of the gait CSI data.
[0099] A3. Calculate the total cross entropy loss based on the cross entropy losses corresponding to all branch networks, and adjust the parameters of the user recognition model based on the total cross entropy loss until the training is completed, and obtain the trained user recognition model and the corresponding recognition accuracy of each branch network.
[0100] Exemplarily, samples of gait CSI data in the processed data set are input into the backbone network so that the backbone network can extract user features when multiple users are independent and coexisting, while removing some environmental interference. The backbone network adopts a CNN structure, which consists of three layers of one-dimensional convolutional layers. ReLU activation functions are used between each convolutional layer to enhance user features and alleviate the gradient vanishing problem. The number of input channels of the three convolutional layers is 1000, 180, and 100, respectively, and the number of output channels is 180, 100, and 60, respectively. The sizes of the convolution kernels are 12×180, 7×100, and 3×60, respectively, and the step sizes are 4, 3, and 1, respectively.
[0101] After that, the obtained user features are input into each branch network respectively. The number of branch networks is the same as the number of users, for example, 3. Each branch network corresponds to one user, that is, each branch network only extracts the independent user features corresponding to the user. For each branch network, the user features are input into the branch network so that the branch network can extract the independent user features of the corresponding user and remove the mutual interference between some users. Thus, multiple branch networks can obtain independent user features of multiple users. Each branch network adopts a bidirectional recurrent gated unit (BiGRU) architecture. Each BiGRU is independent of each other, with 11 input channels and 256 output channels.
[0102] Optionally, each branch is assigned an independent binary classifier, and each binary classifier can be composed of a random dropout layer, a fully connected layer, and a SoftMax layer, wherein the dropout layer parameter can be 0.4, the number of input channels of the fully connected layer is 256, and the number of output channels is 2. The independent user features obtained by each branch network are input into the binary classifier corresponding to the branch network to obtain the corresponding output probability distribution p n,c , where n represents the nth user, c = 0, 1 represents binary classification, c = 0 represents the user does not exist, and c = 1 represents the user exists.
[0103] Afterwards, the cross entropy loss corresponding to each branch network is calculated according to the output probability distribution corresponding to the branch network and the sample label corresponding to the sample of the gait CSI data, and the total cross entropy loss is calculated according to the cross entropy losses corresponding to all branch networks.
[0104] The cross entropy loss formula is:
[0105]
[0106] Where Y r,n represents the sample label corresponding to the sample of gait CSI data corresponding to the nth branch network, p(z r,n ) represents the output probability distribution of the sample of gait CSI data corresponding to the nth branch network, Yr,n,m represents the sample label corresponding to the mth gait CSI data sample corresponding to the nth branch network, p m (z r,n,m ) represents the output probability distribution of the mth gait CSI data sample corresponding to the nth branch network, Loss n () represents the cross entropy loss corresponding to the nth branch network.
[0107] The total cross entropy loss formula is:
[0108]
[0109] In the formula, Loss represents the total cross entropy loss, and N is the number of users.
[0110] In some embodiments, it can be determined whether the total cross entropy loss is less than a preset threshold. If the total cross entropy loss is less than the preset threshold, the training is completed, and the trained user recognition model and the corresponding recognition accuracy of each branch network are obtained. If the total cross entropy loss is greater than or equal to the preset threshold, the backbone network, multiple branch networks, and multiple binary classifiers are adjusted respectively, and the user recognition network with adjusted parameters is trained using samples of the next batch of gait CSI data until the training is completed.
[0111] Exemplarily, when the total cross entropy loss is greater than or equal to a preset threshold, the present embodiment uses the independent optimizers corresponding to the main network, multiple branch networks, and multiple binary classifiers to adjust the parameters of the main network, multiple branch networks, and multiple binary classifiers, and continues to train the user recognition network after parameter adjustment until the total cross entropy loss is less than the preset threshold, or the preset number of training times is reached, and the training is completed. Afterwards, the corresponding recognition accuracy of each branch network can be calculated using the samples participating in the training, the corresponding sample labels (true values), and the corresponding output probability distribution (predicted values).
[0112] In this way, the preset user recognition model is trained using the processed data set after sample feature enhancement, which can improve the branch feature extraction capability of the user recognition model and alleviate the problem that the feature extraction capability of each branch network is easily unbalanced. During the training, the independent optimizers corresponding to the backbone network, multiple branch networks and multiple binary classifiers are used to adjust the parameters of the above parts of the user recognition model to further improve the performance of the user recognition model.
[0113] Step 203: construct a knowledge distillation data set based on the processed data set and the recognition accuracy; input the knowledge distillation data set into the trained user classification model to obtain the user identity probability distribution, and input the knowledge distillation data set into the trained user recognition model to obtain the first user existence probability distribution.
[0114] The user classification model inputs the user's independent gait CSI data and outputs the identified user. The user classification model is a trained model that is only based on the user's independent gait CSI data. For example, when there are three users A, B, and C, the user classification model can be understood as a three-classifier, which is trained only with samples of A's independent gait CSI data, B's independent gait CSI data, and C's independent gait CSI data. The output is the identified user A, B, or C.
[0115] In this embodiment, in order to further improve the performance of the user recognition model, the trained user recognition model obtained in step 202 is used as a student model, and the trained user classification model is used as a teacher model. The trained user recognition model is trained using knowledge distillation to balance and improve the performance of the user recognition model branches.
[0116] The user classification model can be composed of 4 layers of one-dimensional convolutional layers and 1 layer of BiGRU. The number of input channels of the 4 convolutional layers is 1000, 180, 100 and 60 respectively, the number of output channels is 180, 100, 60 and 60 respectively, the size of the convolution kernel is 12×180, 7×100, 5×60 and 3×60 respectively, and the step size is 4, 2, 1 and 1 respectively. The input channel of BiGRU is 11, the output channel is 256, and the classifier is composed of a dropout layer, a fully connected layer and a SoftMax layer, where the dropout parameter is 0.4, the input channel of the fully connected layer parameter is 256, and the output channel is N.
[0117] In a possible implementation, when constructing a knowledge distillation data set, this embodiment can divide the initial data set after secondary processing according to whether each user indicated by the sample label exists, so as to obtain the existence data set corresponding to each user. Then, for each user, the sampling coefficient is determined according to the recognition accuracy corresponding to the branch network corresponding to the user, and the knowledge distillation data set is obtained according to the existence data set corresponding to each user, the corresponding sampling coefficient and the environmental samples in the initial data set after secondary processing.
[0118] Exemplarily, similar to the step of determining the sampling coefficient in the aforementioned embodiment, after obtaining the corresponding recognition accuracy rate of the branch network corresponding to each user, this embodiment determines the minimum value of all recognition accuracy rates as the minimum recognition accuracy rate. Thereafter, for each user, the ratio of the minimum recognition accuracy rate to the corresponding recognition accuracy rate of the branch network corresponding to the user is used as the sampling coefficient corresponding to the user.
[0119] In this way, according to the sampling coefficient corresponding to each user, a certain proportion of samples are extracted from the existing data set corresponding to each user, and together with the environmental samples in the initial data set after secondary processing, the knowledge distillation data set {X k ,Y k For example, if the sampling coefficient corresponding to user A is 0.6, 60% of the samples are extracted from the existing data set corresponding to A to form the knowledge distillation data set. In this way, more samples can be extracted from the corresponding existing data sets of users corresponding to the branch network with low recognition accuracy to form the knowledge distillation data set, so as to better train the user recognition model in the future and balance and improve the performance of the user recognition model branches.
[0120] Optionally, the samples of gait CSI data in the knowledge distillation dataset are input into the trained user classification model to obtain the user identity probability distribution. As mentioned above, for example, when there are three users A, B and C, the user classification model can be understood as three classifiers, and the probability distribution of its output is the probability of being identified as A, the probability of being identified as B, and the probability of being identified as C. The samples of gait CSI data in the knowledge distillation dataset are input into the trained user identification model to obtain the first user existence probability distribution. As mentioned above, for example, when there are three users A, B and C, the user identification model has three branch networks, and its first user existence probability distribution is the probability of user A existing, the probability of A not existing, the probability of B existing, the probability of B not existing, the probability of C existing, and the probability of C not existing.
[0121] Step 204 : determine the total loss based on the user identity probability distribution and the first user existence probability distribution, and adjust the model parameters of the trained user recognition model based on the total loss to obtain a trained user recognition model.
[0122] Among them, the user identification model is used to identify the identity of co-existing users. It is known that the premise of satisfying knowledge distillation is that the probability distribution dimensions are the same, so the three dimensions corresponding to the user classification model need to be converted into the two dimensions corresponding to the user identification model.
[0123] As can be seen from the foregoing, there are multiple first user existence probability distributions. In some embodiments, this embodiment can convert the user identity probability distribution into multiple second user existence probability distributions, wherein the multiple second user existence probability distributions correspond one-to-one to the multiple first user existence probability distributions. Thereafter, the first loss is calculated based on the multiple second user existence probability distributions and the multiple first user existence probability distributions, and the second loss is calculated based on the multiple first user existence probability distributions. Based on the first loss and the second loss, the multiple branch networks of the trained user recognition model are adjusted to obtain a trained user recognition model.
[0124] Exemplarily, in this embodiment, according to the conversion formula, the user identity probability distribution is converted into multiple second user existence probability distributions, and each user corresponds to two second user existence probability distributions and also corresponds to a branch network in the user identification network.
[0125] The conversion formula is:
[0126]
[0127] Where P n (z t ) represents the probability distribution of the existence of the second user corresponding to the nth branch network, P j (z t ) represents the probability distribution of user identity of category (user) j with the highest probability, Q represents the probability, P else (z t ) is the probability distribution of user identities of all categories except category (user) j with the highest probability.
[0128] Afterwards, the first loss corresponding to each branch network is calculated according to the plurality of second user existence probability distributions and the plurality of first user existence probability distributions, that is, the soft loss corresponding to each branch network is calculated. The second loss corresponding to each branch network is calculated according to the plurality of first user existence probability distributions, that is, the hard loss corresponding to each branch network is calculated.
[0129] The formula for the first loss is:
[0130] Loss soft,n (p n (z t ,T),p n (z s ,T))=∑ k p nk (z t ,T)log(p n (z s ,T))
[0131] In the formula, Loss soft,n () represents the first loss corresponding to the nth branch network, p n (z t ,T) represents the probability distribution of the existence of the second user corresponding to the nth branch network, p n (z s ,T) represents the probability distribution of the first user existence corresponding to the nth branch network, p nk (z t ,T) represents the probability distribution of the second user existence corresponding to the kth gait CSI data sample corresponding to the nth branch network, z trepresents the output features of the user classification model (teacher model), z s represents the output feature of the user identification model (student model), T represents the “temperature”, which is used to control the smoothness of the soft label. The soft label is the probability distribution of the second user existence corresponding to the user classification model. It should be noted that pn(zt,T), pn(zs,T) and p nk (z t ,T) is the corresponding user existence probability distribution at temperature “T”.
[0132] The formula for the second loss is:
[0133] Loss hard,n (Y s,n ,p n (z s ,T))=∑ k -Y s,n,k log(p n (z s ,T))
[0134] In the formula, Loss hard,n () represents the second loss corresponding to the nth branch network. When calculating the hard loss, T takes 1 and Y s,n represents the sample label corresponding to the gait CSI data sample corresponding to the nth branch network, Y s,n,k Represents the sample label corresponding to the kth gait CSI data sample corresponding to the nth branch network.
[0135] Optionally, for each branch network, the weighted sum of the corresponding first loss and the second loss is used as the loss value corresponding to the branch network. For example, the weight of the first loss can be 0.95, and the weight of the second loss can be 0.05. The sum of the loss values corresponding to all branch networks is used as the total loss. Afterwards, if the total loss is less than the preset loss threshold, the training is completed and a trained user recognition model is obtained. If the total loss is greater than or equal to the preset loss threshold, the backbone network is frozen, that is, the backbone network is not adjusted, and only the parameters of the multiple branch networks of the trained user recognition model are adjusted. The user recognition network with adjusted parameters is trained using the samples of the next batch of gait CSI data in the knowledge distillation dataset until the training is completed.
[0136] In this embodiment, the trained user classification model is used as the teacher model, and the trained user identification model obtained in step 202 is used as the student model. The trained user identification model is trained using knowledge distillation to achieve balance and improve the performance of the user identification model branches, thereby improving the accuracy of identifying co-existing users.
[0137] That is, refer to Figure 3Based on the constructed knowledge distillation dataset and the trained user classification model, the user identity probability distribution is obtained and converted into multiple second user existence probability distributions. Then, based on the multiple second user existence probability distributions, the trained user recognition model is trained by using knowledge distillation, that is, the parameters of multiple branch networks of the trained user recognition model are adjusted, and the backbone network is frozen to achieve multi-branch performance enhancement processing, thereby balancing and improving the performance of the user recognition model branches and achieving accurate recognition of co-existing user identities.
[0138] Exemplarily, the obtained trained user identification model can be used to identify the identity of at least one of the coexisting users, for example, it can be applied to application scenarios such as home security or human-computer interaction. For example, in a home security scenario, when it is necessary to unlock a door lock by identifying the identity of a user, the trained user identification model provided in this embodiment can accurately identify whether there is a homeowner among multiple coexisting users, so that the door lock can be unlocked only when the homeowner is identified, thereby achieving home security.
[0139] The co-existing user identity recognition model training method provided in the embodiment of the present application uses a data set that has been subjected to sample feature enhancement processing to train a preset user recognition model, thereby improving the user recognition model branch feature extraction capability, and utilizes an already trained user classification model to adopt a knowledge distillation method to train the trained user recognition model, that is, to adjust the parameters of the trained user recognition model, thereby balancing and improving the user recognition model branch performance, thereby improving the accuracy of the user recognition model and achieving accurate recognition of the identities of co-existing users.
[0140] Figure 4 FIG. 1 is a flow chart of a method for identifying a coexisting user provided in an embodiment of the present application. Figure 4 As shown, the method in the embodiment of the present application may include:
[0141] Step 401: Obtain real-time gait CSI data.
[0142] Step 402: input the real-time gait CSI data into the trained user recognition model to obtain the identity of the co-existing user identified by the user recognition model.
[0143] Among them, the above-mentioned trained user identification model can be trained using the co-existence user identity recognition model training method provided in any embodiment of the present application.
[0144] Exemplarily, in this embodiment, after obtaining real-time gait CSI data, the real-time gait CSI data is input into a trained user recognition model, so that the backbone network of the trained user recognition model performs feature extraction on the above real-time gait CSI data to obtain user features, and each branch network performs feature extraction on the above user features to obtain corresponding independent user features. After that, each binary classifier performs a probability distribution output based on the independent user features extracted by the corresponding branch network to obtain whether the corresponding user of the corresponding branch network exists, thereby achieving accurate identification of co-existing users based on the results of whether each user exists.
[0145] As mentioned above, the co-existing user identity recognition method provided in this embodiment can be applied to application scenarios such as home security or human-computer interaction. For example, in a home security scenario, when it is necessary to unlock a door lock by identifying a user identity, the trained user recognition model provided in this embodiment can accurately identify whether there is a homeowner among multiple co-existing users, so that the door lock can be unlocked only when the homeowner is identified, thereby achieving home security.
[0146] In some embodiments, after acquiring the real-time gait CSI data, sample feature enhancement processing can be performed on the real-time gait CSI data to obtain processed real-time gait CSI data. Accordingly, when the real-time gait CSI data is input into a trained user recognition model to obtain the identity of co-existing users identified by the user recognition model, the processed real-time gait CSI data can be input into the trained user recognition model to obtain the identity of at least one of the co-existing users identified by the user recognition model.
[0147] Exemplarily, when performing sample feature enhancement processing on real-time gait CSI data, this embodiment can perform filtering processing and normalization processing on the real-time gait CSI data to obtain real-time gait CSI data after initial processing. Thereafter, a preset diffusion model is used to perform forward diffusion processing and reverse reconstruction processing on the real-time gait CSI data after initial processing to obtain processed real-time gait CSI data.
[0148] The specific implementation process and principles of this embodiment can refer to the relevant description in the aforementioned embodiments, which will not be repeated here.
[0149] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0150] Figure 5 Schematic diagram of the structure of a co-existing user identity recognition model training device provided by an embodiment of the present application. Figure 5As shown, the co-existing user identity recognition model training device provided in this embodiment may include: an acquisition module 501, a training module 502, a construction module 503 and a obtaining module 504.
[0151] Among them, the acquisition module 501 is used to obtain an initial data set, perform sample feature enhancement processing on the initial data set, and obtain a processed data set; the data set includes samples of gait CSI data of multiple users when they are independent and coexistent, and corresponding sample labels, and the sample labels indicate whether each user exists.
[0152] The training module 502 is used to train the preset user recognition model using the processed data set to obtain the trained user recognition model and the corresponding recognition accuracy; wherein the user recognition model is a multi-branch neural network model, the user recognition model inputs the gait CSI data and outputs the recognized user.
[0153] Construction module 503 is used to construct a knowledge distillation data set based on the processed data set and recognition accuracy; input the knowledge distillation data set into the trained user classification model to obtain the user identity probability distribution, and input the knowledge distillation data set into the trained user recognition model to obtain the first user existence probability distribution; wherein the user classification model inputs the user's independent gait CSI data and outputs the recognized user.
[0154] Obtaining module 504, which is used to determine the total loss based on the user identity probability distribution and the first user existence probability distribution, and adjust the model parameters of the trained user identification model based on the total loss to obtain a trained user identification model; wherein the user identification model is used to identify the identity of the co-existing user.
[0155] Optionally, the acquisition module 501 is specifically used for:
[0156] Performing filtering and normalization processing on the initial data set to obtain an initial data set after primary processing;
[0157] Using a preset diffusion model, the initial data set after the primary processing is subjected to forward diffusion processing and reverse reconstruction processing to obtain the initial data set after the secondary processing;
[0158] The secondary processed initial data set is clustered to obtain a clustering coefficient, and a processed data set is obtained based on the clustering coefficient and the secondary processed initial data set.
[0159] Optionally, the clustering process includes Hopkins clustering process, and the clustering coefficient includes Hopkins clustering coefficient; the acquisition module 501 is further specifically used for:
[0160] According to whether each user indicated by the sample label exists, the initial data set after secondary processing is divided to obtain a data set of existence and a data set of non-existence corresponding to each user;
[0161] For each user, perform Hopkins clustering on the corresponding presence data set and absence data set to obtain the corresponding Hopkins clustering coefficient;
[0162] According to the existence data set corresponding to each user, the corresponding Hopkins clustering coefficient and the environmental samples in the initial data set after secondary processing, the processed data set is obtained.
[0163] Optionally, the user identification model includes a trunk network, multiple branch networks and multiple binary classifiers; each branch network corresponds to each binary classifier one-to-one, and each branch network corresponds to each user one-to-one; the training module 502 is specifically used for:
[0164] Inputting samples of gait CSI data in the processed data set into the backbone network, so that the backbone network extracts features from the samples of gait CSI data to obtain user features;
[0165] For each branch network, the user features are input into the branch network so that the branch network extracts features of the user corresponding to the branch network, and obtains independent user features of the user corresponding to the branch network; the independent user features are input into the binary classifier corresponding to the branch network to obtain an output probability distribution; and the cross entropy loss is calculated according to the output probability distribution and the sample labels corresponding to the samples of the gait CSI data;
[0166] The total cross entropy loss is calculated according to the cross entropy losses corresponding to all branch networks, and the user recognition model is adjusted based on the total cross entropy loss until the training is completed, so as to obtain the trained user recognition model and the corresponding recognition accuracy of each branch network.
[0167] Optionally, the training module 502 is further specifically configured to:
[0168] Determine whether the total cross entropy loss is less than a preset threshold;
[0169] If the total cross entropy loss is less than the preset threshold, the training is completed, and the trained user recognition model and the corresponding recognition accuracy of each branch network are obtained;
[0170] If the total cross entropy loss is greater than or equal to the preset threshold, the trunk network, the multiple branch networks and the multiple binary classifiers are adjusted respectively, and the user recognition network with adjusted parameters is trained using samples of the next batch of gait CSI data until the training is completed.
[0171] Optionally, the construction module 503 is specifically used for:
[0172] According to the existence of each user indicated by the sample label, the initial data set after secondary processing is divided to obtain the existence data set corresponding to each user;
[0173] For each user, a sampling coefficient is determined according to the recognition accuracy rate of the branch network corresponding to the user;
[0174] According to the existing data set corresponding to each user, the corresponding sampling coefficient and the environmental samples in the initial data set after secondary processing, the knowledge distillation data set is obtained.
[0175] Optionally, the first user existence probability distribution is multiple; the obtaining module 504 is specifically used for:
[0176] Converting the user identity probability distribution into a plurality of second user existence probability distributions; the plurality of second user existence probability distributions correspond one-to-one to the plurality of first user existence probability distributions;
[0177] Calculating a first loss based on the plurality of second user existence probability distributions and the plurality of first user existence probability distributions, and calculating a second loss based on the plurality of first user existence probability distributions;
[0178] A total loss is determined according to the first loss and the second loss, and parameter adjustment is performed on multiple branch networks of the trained user recognition model according to the total loss to obtain a trained user recognition model.
[0179] Figure 6 Schematic diagram of the structure of a coexisting user identity recognition device provided by an embodiment of the present application. Figure 6 As shown, the co-existing user identity recognition device provided in this embodiment may include: an obtaining module 601 and an identifying module 602 .
[0180] Wherein, the acquisition module 601 is used to obtain real-time gait CSI data;
[0181] An identification module 602 is used to input the real-time gait CSI data into a trained user identification model to obtain the identity of the co-existing user identified by the user identification model;
[0182] The trained user identification model is obtained by training using the co-existing user identity recognition model training method provided in any embodiment of the present application.
[0183] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0184] Figure 7 Schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 7 As shown, the electronic device 700 of this embodiment includes: a processor 710 and a memory 720, wherein the memory 720 stores a computer program 721 that can be run on the processor 710. When the processor 710 executes the computer program 721, the steps in any of the above method embodiments are implemented, for example Figure 2 Steps 201 to 204 shown, or as Figure 4 Alternatively, when the processor 710 executes the computer program 721, the functions of each module / unit in the above-mentioned device embodiments are implemented, for example Figure 5 The functions of modules 501 to 504 shown in FIG. Figure 6 Functions of modules 601 to 602 are shown.
[0185] Exemplarily, the computer program 721 may be divided into one or more modules / units, one or more modules / units are stored in the memory 720, and are executed by the processor 710 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 721 in the electronic device 700.
[0186] Those skilled in the art will understand that Figure 7 These are merely examples of electronic devices and do not constitute a limitation of the electronic device. The electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components, such as input and output devices, network access devices, buses, etc.
[0187] The processor 710 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0188] The memory 720 may be an internal storage unit of the electronic device, such as a hard disk or memory of the electronic device, or an external storage device of the electronic device, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. The above-mentioned memory 720 may also include both an internal storage unit of the electronic device and an external storage device. The above-mentioned memory 720 is used to store computer programs and other programs and data required by the electronic device. The memory 720 may also be used to temporarily store data that has been output or is to be output.
[0189] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0190] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0191] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0192] In the embodiments provided by the present invention, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0193] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0194] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0195] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.
[0196] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A method for training a co-existing user identity recognition model, characterized in that: include: Acquire an initial data set, and perform sample feature enhancement processing on the initial data set to obtain a processed data set; The dataset includes samples of gait CSI data of multiple users when they are independent and coexistent, and corresponding sample labels, where the sample labels indicate whether each user exists; The processed data set is used to train a preset user recognition model to obtain a trained user recognition model and a corresponding recognition accuracy rate; wherein the user recognition model is a multi-branch neural network model, the user recognition model inputs gait CSI data, and outputs the recognized user; According to the processed data set and the recognition accuracy, a knowledge distillation data set is constructed; the knowledge distillation data set is input into a trained user classification model to obtain a user identity probability distribution, and the knowledge distillation data set is input into a trained user recognition model to obtain a first user existence probability distribution; wherein the user classification model inputs the user's independent gait CSI data and outputs the recognized user; The total loss is determined based on the user identity probability distribution and the first user existence probability distribution, and the model parameters of the trained user identification model are adjusted based on the total loss to obtain a trained user identification model; wherein the user identification model is used to identify the identities of co-existing users.
2. The co-existing user identity recognition model training method according to claim 1, characterized in that: The performing sample feature enhancement processing on the initial data set to obtain a processed data set includes: Performing filtering and normalization processing on the initial data set to obtain an initial data set after primary processing; Using a preset diffusion model, the initial data set after the primary processing is subjected to forward diffusion processing and reverse reconstruction processing to obtain the initial data set after the secondary processing; The secondary processed initial data set is clustered to obtain a clustering coefficient, and a processed data set is obtained based on the clustering coefficient and the secondary processed initial data set.
3. The co-existing user identity recognition model training method according to claim 2, characterized in that: The clustering process includes Hopkins clustering process, and the clustering coefficient includes Hopkins clustering coefficient; the data set includes environmental samples, and the environmental samples are samples without gait CSI data of the user; The clustering process is performed on the secondary processed initial data set to obtain a clustering coefficient, and a processed data set is obtained according to the clustering coefficient and the secondary processed initial data set, including: According to whether each user indicated by the sample label exists, the initial data set after secondary processing is divided to obtain a data set of existence and a data set of non-existence corresponding to each user; For each user, perform Hopkins clustering on the corresponding presence data set and absence data set to obtain the corresponding Hopkins clustering coefficient; According to the existence data set corresponding to each user, the corresponding Hopkins clustering coefficient and the environmental samples in the initial data set after secondary processing, the processed data set is obtained.
4. The co-existing user identity recognition model training method according to claim 2, characterized in that: The user identification model includes a backbone network, multiple branch networks and multiple binary classifiers; each branch network corresponds to each binary classifier one by one, and each branch network corresponds to each user one by one; The method of training a preset user recognition model using the processed data set to obtain a trained user recognition model and a corresponding recognition accuracy rate includes: Inputting samples of gait CSI data in the processed data set into the backbone network, so that the backbone network extracts features from the samples of gait CSI data to obtain user features; For each branch network, the user features are input into the branch network so that the branch network extracts features of the user corresponding to the branch network, and obtains independent user features of the user corresponding to the branch network; the independent user features are input into the binary classifier corresponding to the branch network to obtain an output probability distribution; and the cross entropy loss is calculated according to the output probability distribution and the sample labels corresponding to the samples of the gait CSI data; The total cross entropy loss is calculated according to the cross entropy losses corresponding to all branch networks, and the user recognition model is adjusted based on the total cross entropy loss until the training is completed, so as to obtain the trained user recognition model and the corresponding recognition accuracy of each branch network.
5. The co-existing user identity recognition model training method according to claim 4, characterized in that: The parameter adjustment process of the user recognition model based on the total cross entropy loss is performed until the training is completed to obtain the trained user recognition model and the corresponding recognition accuracy of each branch network, including: Determine whether the total cross entropy loss is less than a preset threshold; If the total cross entropy loss is less than the preset threshold, the training is completed, and the trained user recognition model and the corresponding recognition accuracy of each branch network are obtained; If the total cross entropy loss is greater than or equal to the preset threshold, the trunk network, the multiple branch networks and the multiple binary classifiers are adjusted respectively, and the user recognition network with adjusted parameters is trained using samples of the next batch of gait CSI data until the training is completed.
6. The co-existing user identity recognition model training method according to claim 4, characterized in that: The method of constructing a knowledge distillation dataset based on the processed dataset and recognition accuracy includes: According to the existence of each user indicated by the sample label, the initial data set after secondary processing is divided to obtain the existence data set corresponding to each user; For each user, a sampling coefficient is determined according to the recognition accuracy rate of the branch network corresponding to the user; According to the existing data set corresponding to each user, the corresponding sampling coefficient and the environmental samples in the initial data set after secondary processing, the knowledge distillation data set is obtained.
7. The co-existing user identity recognition model training method according to claim 6, characterized in that: The first user existence probability distribution is multiple; The determining of the total loss based on the user identity probability distribution and the first user existence probability distribution, and adjusting the model parameters of the trained user recognition model based on the total loss to obtain the trained user recognition model, includes: Converting the user identity probability distribution into a plurality of second user existence probability distributions; the plurality of second user existence probability distributions correspond one-to-one to the plurality of first user existence probability distributions; Calculating a first loss based on the plurality of second user existence probability distributions and the plurality of first user existence probability distributions, and calculating a second loss based on the plurality of first user existence probability distributions; A total loss is determined according to the first loss and the second loss, and parameter adjustment is performed on multiple branch networks of the trained user recognition model according to the total loss to obtain a trained user recognition model.
8. A method for identifying a coexisting user, characterized in that: include: Obtain real-time gait CSI data; Inputting the real-time gait CSI data into a trained user recognition model to obtain the identity of the co-existing user identified by the user recognition model; The trained user identification model is obtained by training using the co-existing user identity recognition model training method according to any one of claims 1 to 7.
9. A co-existing user identity recognition model training device, characterized in that: include: An acquisition module is used to acquire an initial data set, perform sample feature enhancement processing on the initial data set, and obtain a processed data set; The dataset includes samples of gait CSI data of multiple users when they are independent and coexistent, and corresponding sample labels, where the sample labels indicate whether each user exists; A training module, used to train a preset user recognition model using the processed data set to obtain a trained user recognition model and a corresponding recognition accuracy rate; wherein the user recognition model is a multi-branch neural network model, the user recognition model inputs gait CSI data and outputs the recognized user; A construction module is used to construct a knowledge distillation data set according to the processed data set and the recognition accuracy; input the knowledge distillation data set into a trained user classification model to obtain a user identity probability distribution, and input the knowledge distillation data set into a trained user recognition model to obtain a first user existence probability distribution; wherein the user classification model inputs the user's independent gait CSI data and outputs the recognized user; A module is obtained, which is used to determine the total loss based on the user identity probability distribution and the first user existence probability distribution, and adjust the model parameters of the trained user identification model based on the total loss to obtain a trained user identification model; wherein the user identification model is used to identify the identity of the co-existing user.
10. A co-existing user identity recognition device, characterized in that: include: An acquisition module, used to obtain real-time gait CSI data; an identification module, configured to input the real-time gait CSI data into a trained user identification model to obtain the identity of the co-existing user identified by the user identification model; The trained user identification model is obtained by training using the co-existing user identity recognition model training method according to any one of claims 1 to 7.
