A WiFi personnel identification method based on federated learning and quasi-incremental learning

By using federated learning and incremental learning in WiFi personnel identification technology, privacy risks, network bandwidth pressure and real-time issues are solved, efficient identification on edge devices is achieved, and contactless identification is suitable for complex environments. Identify.

CN117750320BActive Publication Date: 2024-09-13NANHUA UNIV
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202311763304.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-20
Publication Date
2024-09-13
Estimated Expiration
2043-12-20

AI Technical Summary

Technical Problem

Existing WiFi person identification technology has problems such as privacy risks, network bandwidth pressure, lack of real-time performance, and insufficient scene generalization capabilities, especially in terms of high-density device deployment and new user needs.

Method used

Using methods based on federated learning and incremental learning, the initial global model is established on the server side and locally trained and optimized on the client side to avoid uploading original data, improve model generalization capabilities, and complete model training and inference on edge devices. .

Benefits of technology

Effectively protects user privacy, reduces dependence on central servers, improves real-time performance and identification efficiency, and is suitable for contactless identity recognition in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117750320B
    Figure CN117750320B
Patent Text Reader

Abstract

The present invention proposes a WiFi personnel identity recognition method and system based on federated learning and quasi-incremental learning, which utilizes WiFi signals for identity recognition and integrates the advantages of quasi-incremental learning and federated learning. The two learning methods are combined so that the server can update the global model according to the user's model and improve the generalization ability. At the same time, the user's model training is only performed on the local device, and there is no need to upload the original data to the central server, which effectively protects the user's privacy. The model training and reasoning can be completed on the edge device, reducing the dependence on the central server and improving the real-time performance and efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of wireless communications, and in particular to a wifi personnel identification method based on federated learning and quasi-incremental learning. Background Art

[0002] In some specific workplaces, in order to protect the safety and order of the work site, it is necessary to set up a warning zone at the entrance to prevent non-staff from entering. Therefore, it is an important function to timely identify the personnel entering the warning zone, issue a warning to non-staff and prohibit them from entering, while allowing the normal passage of staff who have been entered into the system. There are two main traditional identity recognition methods: one is based on an optical camera, which recognizes the person by capturing the facial information of the person; the other is based on a specific sensor, which recognizes the person by verifying the biometric information of the person, such as fingerprints, eye patterns, etc. Both methods have their own shortcomings: the method based on an optical camera will be affected by environmental factors such as indoor light brightness and viewing distance, and it poses a certain threat to the user's privacy; the method based on a specific sensor requires the detection person to approach the sensor and cooperate with the sensor to enter the biometric information, which will increase the user's usage burden, and it is not easy to implement for some parts that are inconvenient to touch, such as eye patterns.

[0003] At present, identity recognition includes traditional identity recognition technologies, such as fingerprint recognition technology, iris recognition technology, voiceprint recognition technology, card encryption technology, etc. Although traditional technologies have been widely used in our daily lives, these traditional technologies generally have some common problems, including sensitivity to environmental conditions, difficulty in handling changes, possible privacy violations, and insufficient security. With the development of science and technology, the solutions to these problems have gradually turned to emerging technologies based on artificial intelligence and deep learning to improve accuracy, security, and user-friendliness.

[0004] Existing identity recognition technologies based on artificial intelligence and deep learning, such as the application of deep learning in face recognition, behavior recognition based on deep learning, multimodal deep learning, etc. These artificial intelligence technologies have made remarkable achievements in the field of traditional identity authentication, but they also face the following problems:

[0005] 1. Privacy risks:

[0006] Traditional centralized identification systems usually need to store and process raw data on a central server, which poses a risk of user privacy leakage. Users may worry that their personal information will be stored in a centralized manner, causing privacy issues.

[0007] 2. Network bandwidth pressure:

[0008] Traditional centralized systems usually require a large amount of data to be transmitted to the central server, which leads to pressure on network bandwidth. This not only increases communication costs, but may also cause latency issues, especially in scenarios with high-density device deployment.

[0009] 3. Lack of real-time performance:

[0010] Centralized systems may not be able to meet application scenarios that require real-time response, because all data needs to be transmitted to the central server for processing, which increases the system response time.

[0011] Ordinary WiFi-based identity recognition is a contactless recognition method that only requires passing normally within the effective radiation range of the WiFi signal to perform identity recognition, and the process is simple. However, this method has an obvious problem, that is, there is a lack of a mechanism for the server to participate in model adjustment and optimization. Since the model is trained only based on the identity recognition data collected by the local client, the learning effect of the local model may be poor. Due to the small number of samples and the singleness, it is easy to cause the model to overfit and generalize poorly.

[0012] The invention patent application with application publication number CN115310473A discloses a method for multi-person identity recognition based on commercial WiFi signals. First, a channel state information collection platform is built using a transceiver device. The data is preprocessed and enhanced, and then a tensor similar in size to a visual image is output through a deconvolution network. It is then input into a deep convolutional neural network to extract discriminative identity features, and finally the features are used to identify the human body. The disadvantage of this method is that the lack of scene generalization capability requires independent training of the model for each specific scene, which is not only time-consuming and resource-intensive, but also cannot flexibly adapt to the needs of new users and requires retraining from scratch. At the same time, there is a lack of steps for collaborative optimization of the server and the client, which increases the computing power requirements of the device and fails to give full play to the advantages of distributed computing.

[0013] The invention patent application with application publication number CN112333653A discloses an intelligent identity recognition method and system based on WiFi channel status information, wherein the method includes: using a pair of WiFi transceivers to sense and collect CSI data in a typical indoor environment; performing discrete wavelet transform denoising on the collected CSI data containing personnel identity information, suppressing the influence of random noise in the indoor environment while retaining the details of the signal; performing inverse Fourier transform operation on the filtered CSI data to obtain the channel impulse response, and extracting the channel power change feature quantity from it; using a deep neural network RNN ​​model to learn and train the extracted channel power change feature until all parameters in the RNN model reach the optimal value; using the trained neural network to intelligently identify the identity information of different personnel. The disadvantage of this method is that the system has not yet adopted an incremental learning method, resulting in the need to retrain the entire model when dealing with new users. And the system may suffer from catastrophic forgetting, and the recognition ability of users who have previously entered information will be reduced as the training tasks increase. Summary of the invention

[0014] In order to solve the above technical problems, the present invention proposes a WiFi personnel identity recognition method based on federated learning and quasi-incremental learning, which uses WiFi signals for identity recognition and combines the advantages of quasi-incremental learning and federated learning, so that the server can update the global model according to the user's model and improve the generalization ability. At the same time, the user's model training is only performed on the local device, and there is no need to upload the original data to the central server, which effectively protects the user's privacy.

[0015] The purpose of the present invention is to provide a method for identifying WiFi personnel based on federated learning and quasi-incremental learning, including establishing an initial WiFi identity recognition global model on the server side, sending the WiFi identity recognition global model and version number to all clients, and further comprising the following steps:

[0016] Step 1: Each client receives the WiFi identity recognition global model sent by the server, collects data of registered users' activities under WiFi signal coverage, adds the data to the local data set after processing, trains the downloaded WiFi identity recognition global model with the local data set, and updates it to the local model;

[0017] Step 2: Determine whether the local model is aggregated with the latest issued WiFi identity recognition global model, update the local model and upload the updated local model parameters to the server;

[0018] Step 3: The server receives the updated parameters of the local model from all clients and aggregates the model parameters;

[0019] Step 4: updating the WiFi identity global model on the server side, waiting for the client to request downloading, and sending the latest version of the model data to the client if a download request from the client is received;

[0020] Step 5: Repeat steps 2 to 4 to continuously optimize the performance of the global model and each client's local model during the idle time period, and use the updated WiFi identity recognition global model for real-time identity recognition.

[0021] Preferably, step 2 includes requesting the cloud to download the latest version of the WiFi identity recognition global model when the local model is not aggregated with the latest issued WiFi identity recognition global model, and performing weighted aggregation with the local model, using the local data set to train and test the aggregated model, and evaluating whether the accuracy of the aggregated model meets the expected standard.

[0022] In any of the above schemes, preferably, step 2 also includes if the accuracy of the aggregated model reaches the expected standard, it indicates that the model aggregation is successful, and the local model is updated; if the accuracy of the aggregated model does not reach the standard, it indicates that the model aggregation has failed, and the aggregation weight is readjusted and aggregation is performed until the accuracy of the aggregated model reaches the expected standard.

[0023] In any of the above solutions, preferably, when the weight of the global model is 0 during the aggregation weight adjustment process, the original local model is retained.

[0024] In any of the above schemes, preferably, step 2 also includes checking whether the local data set is updated. If the local data set is not updated, it means that the local model has reached the optimal state and the batch training mode is terminated; if the local data set is updated, the local model is trained using the current data set and the local model is updated.

[0025] In any of the above schemes, preferably, step 3 includes the following sub-steps:

[0026] Step 31: The server receives the model parameters from the client and temporarily stores them. When the temporarily stored model parameters reach a quantity threshold, the global model is aggregated;

[0027] Step 32: Assign different weights to different clients by evaluating the quality of the local model uploaded by the client;

[0028] Step 33: After the global model aggregation is completed, a new global model is generated and trained again;

[0029] Step 34: Compare the accuracy of the test model with the global model of the previous version to determine whether the accuracy growth standard is met.

[0030] In any of the above solutions, preferably, step 32 includes evaluating the quality of the local model based on the client's data set size, model accuracy, and number of registered users, and the formula is:

[0031]

[0032] Among them, w i represents the weight of the i-th client, n i represents the dataset size of the i-th client, a i represents the model accuracy of the i-th client, u i represents the number of registered users of the i-th client, K represents the total number of clients, and n j represents the dataset size of the jth client, a j represents the model accuracy of the jth client, u j Indicates the number of registered users of the j-th client.

[0033] In any of the above schemes, preferably, step 34 includes continuing training until the next global model aggregation if the accuracy growth standard is not met; if the accuracy growth standard is met, updating the global model, saving the global model to a storage medium, and updating the version number and timestamp of the global model.

[0034] In any of the above solutions, preferably, the real-time identity recognition method comprises the following sub-steps:

[0035] Step 51: The WiFi signal collector obtains WiFi signals in the space in real time;

[0036] Step 52: When the WiFi signal changes abnormally, it indicates that someone has passed through the coverage area of ​​the device, and the WiFi signal at this time is automatically captured, and features are extracted using the local model to obtain a feature vector;

[0037] Step 53: Compare the obtained feature vector with all feature vectors in the feature vector database and calculate the similarity between them;

[0038] Step 54: If the highest similarity between this feature vector and a feature vector in the database is greater than or equal to the similarity threshold, it is considered that the person passing by is the corresponding user in the database; if the highest similarity is less than the similarity threshold, it is considered that the person passing by is an unregistered stranger and the alarm mode is activated.

[0039] In any of the above solutions, preferably, the alarm mode is that the voice announcer will immediately issue a warning sound and notify the staff to come and verify the identity of the person.

[0040] In any of the above solutions, it is preferred that when the staff confirms that the person is not a registered user, the staff asks the person to leave.

[0041] In any of the above solutions, preferably, when the staff finds that the person is a registered user, a false alarm occurs in the system, and the staff manually enters the real number of the person and marks it as a system false alarm.

[0042] In any of the above solutions, it is preferred that the WiFi signal data falsely reported by the system is marked with the real number and added to the local data set, and the corresponding feature vector is generated during the next model training.

[0043] The present invention proposes a WiFi personnel identification method based on federated learning and quasi-incremental learning, which uses WiFi signals for identity identification. It has the advantages of being contactless, not affected by light and other factors, and suitable for venues with complex environments. It completes model training and reasoning on edge devices, reduces dependence on central servers, and improves real-time performance and efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 The present invention is a flowchart of a preferred embodiment of a wifi personnel identification method based on federated learning and class incremental learning.

[0045] Figure 2 The present invention is a schematic diagram of an identity recognition scenario according to a preferred embodiment of a Wi-Fi personnel identity recognition method based on federated learning and quasi-incremental learning.

[0046] Figure 3 The present invention is a schematic diagram of the system composition of a preferred embodiment of a Wi-Fi personnel identification method based on federated learning and class incremental learning.

[0047] Figure 4 It is a schematic diagram of an embodiment of a WiFi identity recognition system based on deep learning according to the WiFi personnel identity recognition method based on federated learning and quasi-incremental learning of the present invention.

[0048] Figure 5 The present invention is a flowchart of an embodiment of the server-side operation of the WiFi personnel identification method based on federated learning and quasi-incremental learning according to the present invention.

[0049] Figure 6 The present invention is a flowchart of an embodiment of the client operation of the wifi personnel identification method based on federated learning and class incremental learning according to the present invention.

[0050] Figure 7It is a flowchart of an embodiment of the alarm mode of the WiFi personnel identification method based on federated learning and class incremental learning according to the present invention.

[0051] Figure 8 The present invention is a flowchart of an embodiment of the model batch training of the WiFi personnel identification method based on federated learning and class incremental learning according to the present invention. DETAILED DESCRIPTION

[0052] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments.

[0053] Embodiment 1

[0054] like Figure 1 As shown, a WiFi personnel identification method based on federated learning and quasi-incremental learning is performed, step 100 is executed, the server side establishes an initial WiFi identity identification global model, and the server side sends the WiFi identity identification global model and version number to all clients.

[0055] Execute step 110, each client receives the WiFi identity recognition global model sent by the server, collects data on registered users' activities under WiFi signal coverage, adds the data to the local data set after processing, trains the downloaded WiFi identity recognition global model with the local data set, and updates it to the local model.

[0056] Execute step 120 to determine whether the local model is aggregated with the latest issued WiFi identity recognition global model, update the local model and upload the updated local model parameters to the server.

[0057] When the local model is not aggregated with the latest issued WiFi identity recognition global model, a request is made to the cloud to download the latest version of the WiFi identity recognition global model, and weighted aggregation is performed with the local model. The aggregated model is trained and tested using a local data set to evaluate whether the accuracy of the aggregated model meets the expected standard.

[0058] If the accuracy of the aggregated model reaches the expected standard, it means that the model aggregation is successful and the local model is updated; if the accuracy of the aggregated model does not reach the standard, it means that the model aggregation fails, and the aggregation weight is readjusted and aggregation is performed until the accuracy of the aggregated model reaches the expected standard. When the weight of the global model is 0 during the aggregation weight adjustment process, the original local model is retained.

[0059] Check whether the local data set is updated. If the local data set is not updated, it means that the local model has reached the optimal state and the batch training mode is terminated. If the local data set is updated, the local model is trained using the current data set and the local model is updated.

[0060] Execute step 130, the server receives the updated parameters of the local model from all clients, and aggregates the model parameters, including the following sub-steps:

[0061] Execute step 131, the server receives the model parameters from the client and temporarily stores them. When the temporarily stored model parameters reach a quantity threshold, the global model is aggregated.

[0062] Execute step 132, by evaluating the quality of the local model uploaded by the client, assign different weights to different clients, and evaluate the quality of the local model based on the client's data set size, model accuracy, and number of registered users. The formula is:

[0063]

[0064] Among them, w i represents the weight of the i-th client, n i represents the dataset size of the i-th client, a i represents the model accuracy of the i-th client, u i represents the number of registered users of the i-th client, K represents the total number of clients, and n j represents the dataset size of the jth client, a j represents the model accuracy of the jth client, u j Indicates the number of registered users of the j-th client.

[0065] Execute step 133, after the global model aggregation is completed, generate a new global model, and train it again.

[0066] Execute step 134, compare the accuracy of the test model with the previous version of the global model to determine whether the accuracy growth standard is met; if the accuracy growth standard is not met, continue training until the next global model aggregation; if the accuracy growth standard is met, update the global model, save the global model to a storage medium, and update the version number and timestamp of the global model.

[0067] Execute step 140 to update the WiFi identity global model on the server side, wait for the client to request download, and send the latest version of the model data to the client if the client's download request is received.

[0068] Execute step 150, repeat steps 120 to 140, and continuously optimize the performance of the global model and the local model of each client during the idle time period.

[0069] Execute step 160 to perform real-time identity recognition using the updated WiFi identity recognition global model. The real-time identity recognition method includes the following sub-steps:

[0070] Execute step 161, the WiFi signal collector obtains the WiFi signal in the space in real time;

[0071] Execute step 162, when the WiFi signal changes abnormally, it indicates that someone has passed through the coverage area of ​​the device, automatically capture the WiFi signal at this time, and extract features from it using the local model to obtain a feature vector;

[0072] Execute step 163, compare the obtained feature vector with all feature vectors in the feature vector database, and calculate the similarity between them;

[0073] Execute step 164. If the highest similarity between this feature vector and a feature vector in the database is greater than or equal to the similarity threshold, it is considered that the person passing by is the corresponding user in the database; if the highest similarity is less than the similarity threshold, it is considered that the person passing by is an unregistered stranger and the alarm mode is activated.

[0074] The alarm mode is that the voice announcer will immediately issue a warning sound and notify the staff to come and verify the identity of the person. When the staff confirms that the person is not a registered user, the person is asked to leave; when the staff finds that the person is a registered user, a false alarm occurs in the system. The staff manually enters the real number of the person and marks it as a system false alarm. The wifi signal data that generates the system false alarm and the input number are added to the local data set, and the corresponding feature vector is generated during the next model training.

[0075] Embodiment 2

[0076] The present invention proposes a method and system for identifying personnel using WiFi based on federated learning and quasi-incremental learning. The method uses WiFi signals for identification, has the advantages of being contactless, not affected by light and other links, and being applicable to sites with complex environments. The system of the method consists of two parts: a server and a client. The server is a user-end model data collection center and a global model training center, which is responsible for communicating with all clients, collecting model data uploaded by the clients, using these data to analyze potential commonalities, and training a global model. When the global model meets the accuracy requirements, the cloud model is updated and waits for user requests to download. The client is a site where personnel identification is required, and each site corresponds to a client. A WiFi signal transmitter and the identification device of the present invention are placed in each site to collect and process WiFi signal data, as well as to train and reason about the model.

[0077] The core theme of the present invention is: the present invention proposes a wifi personnel identification method and system based on federated learning and class incremental learning, which uses WiFi signals for identity identification and combines the advantages of class incremental learning and federated learning. Class incremental learning is a learning method that can maintain good performance when adding new users to be identified. It expands the recognition range of the model by adding new categories to the original categories; federated learning is a learning method that can train a global model using local data of multiple clients while protecting user data privacy. It performs model training locally on the client and uploads local model parameters to the server for global model aggregation, avoiding the risk of uploading original data and reducing communication overhead. The present invention combines these two learning methods, so that the server can update the global model according to the user's model, improve generalization ability, and at the same time, the user's model training is only performed on the local device, and there is no need to upload the original data to the central server, which effectively protects the user's privacy. In addition, due to the support of edge computing, the present invention can complete model training and reasoning on the edge device, reduce dependence on the central server, and improve real-time performance and efficiency.

[0078] Step 1: The server establishes an initial WiFi identity recognition global model as the starting point of the entire federated incremental learning task. The server sends the model and version number to all clients. Step 2: Each client receives the global model sent by the server, collects data on registered users' activities under WiFi signal coverage, adds the processed data to the local data set, trains the downloaded global model with the local data set, and updates the local model.

[0079] Step 3: The system can identify people based on whether they are in idle time periods. In non-idle time periods, the system will obtain WiFi signals and extract signal features through local models. Then, the system will match the features with the features of registered people in the database to obtain the highest match. If the highest match is lower than the preset similarity standard value, the system will assume that the signal comes from a non-staff member and issue a warning to prohibit them from entering, and notify the staff to conduct an identity review. If the highest match is higher than the similarity standard value, the system will continue to operate normally.

[0080] Step 4: When the system is in batch training mode, it is necessary to first check whether the local model has been aggregated with the latest version of the global model. If it has not been aggregated, it is necessary to request the cloud to download the latest version of the global model and perform weighted aggregation with the local model. After aggregation, the aggregated model is trained and tested using the local data set to evaluate whether its accuracy meets the expected standard. If it meets the standard, it means that the model aggregation is successful and the local model is updated. If it does not meet the standard, it means that the model aggregation fails and the original local model is retained. If the local model is found to have been aggregated with the latest version of the global model, it is necessary to check whether the local data set has been updated, resulting in new data that has not been trained by the model. If so, the local model needs to be trained with the current data set and updated. If not, it means that the local model has reached the optimal state and the batch training mode ends. In any case, after the model is updated, the data of the local model needs to be uploaded to the cloud so that it can be shared with other devices. Step 5: The server receives the updated parameters of the local model from all clients and aggregates the model parameters. The client's aggregation weight is set by evaluating the quality of the local model based on the size of the client's data set, the model accuracy, and the number of registered users. Train the aggregated model and test the model's accuracy and other performance. If the performance reaches the expected effect, update the global model and update the global model version number.

[0081] Step 6: Update the global model on the server side and wait for the client to request download. If a download request is received from the client, the latest version of the model data is sent to the client. Then repeat Step 2-Step 6 to continuously optimize the performance of the global model and each client's local model.

[0082] The present invention utilizes WiFi signals as the basis for identity recognition, and can realize contactless identity recognition without contacting or photographing the user. It is also not affected by environmental factors such as light and viewing angle, and is suitable for various complex workplaces.

[0083] The present invention combines the idea of ​​federated learning and can use the local data of multiple clients to train a global model while protecting the privacy of user data, thereby improving the recognition performance of each client. This solution trains the model locally on the client and uploads the local model parameters to the server for global model aggregation, avoiding the risk of uploading original data and reducing communication overhead.

[0084] The present invention adopts a method of incremental learning, which can maintain good performance when adding new users to be identified. It does not need to retrain the entire model, but only needs to add new categories to the original categories to expand the recognition range of the model. This solution still has good performance in scenarios where the client needs to frequently add new users.

[0085] Embodiment 3

[0086] The purpose of the present invention is to set up an identity recognition warning system at the entrance of a specific workplace to prevent non-staff from intruding. The principle of identity recognition of the present invention is to use the changes in WiFi signals to distinguish different human features. Figure 2 As shown. On both sides of the entrance, the transmitter and receiver of the WiFi signal are installed to form a WiFi signal coverage area. When someone passes through the area, the WiFi signal will be reflected by the human body, resulting in signal changes. These changes will be captured by the receiver and CSI data will be extracted from them. CSI data is a part of the WiFi signal, reflecting the change information of the signal in the frequency domain, including amplitude, phase and frequency. Through the pre-established identity recognition model, useful information can be extracted from the CSI data to determine the identity of the person.

[0087] The schematic diagram of the system structure of the present invention is as follows Figure 3As shown. This system mainly consists of the following parts: embedded processor, WiFi signal collector, system controller, voice announcer and communication module. These parts are connected through a bus and use a unified data frame format to exchange information. Among them, the embedded processor is the core part of this system, responsible for completing computing tasks such as data processing, model training, and model fusion. The WiFi signal collector is the input part of this system, responsible for capturing WiFi data packets in space and parsing CSI data from them. The WiFi signal collector is installed with a WiFi network card and corresponding driver, as well as a library or script for processing CSI data. The WiFi signal collector sends the CSI data to the embedded processor through the bus. The system controller is the operating part of this system, responsible for providing an interface for staff to set and adjust this system. For example, there is a button on the system controller. When the button is pressed, this system will enter the user entry mode for adding new user data. When a false alarm occurs in this system, the staff can manually cancel the alarm through the system controller and mark the user number of the false alarm for subsequent optimization. The voice announcer is the output part of this system, responsible for providing user reminder function. When the system enters the user entry mode, the voice announcer will issue corresponding instructions to guide the new user to perform corresponding actions according to the instructions so that the new user's data can be entered into the system. When the system recognizes that a non-staff member is approaching the entrance, the voice announcer will issue a warning sound to drive the person away and notify the staff. The system will regularly request to download the latest global model from the cloud server. The communication module is responsible for establishing a connection with the cloud server to complete the functions of requesting to download the cloud model and uploading the local model parameters.

[0088] The present invention designs an identity recognition system based on WiFi signals. The system consists of a server and multiple clients, which exchange data and models through a communication protocol to achieve collaborative optimization of global and local models. The system architecture of the present invention is as follows: Figure 4 As shown. The initial stage of the system is to create an initial model on the server side as the basis for subsequent iterative optimization. Since the goal of the present invention is to use WiFi signals for identity recognition, a suitable initial model is selected, the weight of the model is randomly initialized, and then the existing public WiFi activity recognition data set is preprocessed, and the WiFi activity data of different people are annotated to form an initial data set, which is used to train the initial model. After the training is completed, the first global model is generated and its version number is set to 1.0.

[0089] The subsequent stages of the system are carried out alternately by the server and the client. The server is responsible for optimizing the global model and distributing it to all clients. The client is responsible for receiving the global model, weighting and aggregating the local model and the global model, and training it with the local data set to improve the recognition ability of users who enter data locally and achieve personalized effects. After the client training is completed, if the accuracy of the model meets the preset requirements, its parameters are uploaded to the server and set as the new version of the local model, otherwise the original local model is retained. After receiving the model parameters uploaded by the client, the server performs weighted aggregation and training with the global model to form an updated global model and increment its version number. This process is repeated until the system reaches stability or meets the expected performance.

[0090] After completing the global model of version 1.0, the system of the present invention enters a cyclic optimization process, and the server-side process is as follows: Figure 5 As shown. First, the server receives the model parameters from the client and temporarily stores them. When the temporarily stored model parameters reach a certain number, the global model aggregation begins. We evaluate the quality of the local model uploaded by the client and assign different weights to different clients, thereby achieving a weighted average of the models of each client. The present invention evaluates the quality of the local model based on the size of the client's data set, the model accuracy, and the number of registered users. The specific formula is as follows:

[0091]

[0092] Among them, w i represents the weight of the i-th client, n i represents the dataset size of the i-th client, a i represents the model accuracy of the i-th client, u i represents the number of registered users of the i-th client, and K represents the total number of clients.

[0093] After the global model is aggregated, a new global model is generated and trained again. After the training is completed, the accuracy of the model is tested and compared with the previous version of the global model. If the accuracy growth standard is not met, the training will continue until the next global model aggregation. If the accuracy growth standard is met, the global model is updated and saved to the storage medium, and the version number and timestamp of the global model are updated. Then, the client enters a waiting state, waiting to collect enough model parameters to start the next round of model aggregation and training, or waiting for the user's request to download the global model.

[0094] Embodiment 4

[0095] The workflow of the client of the present invention is as follows Figure 6As shown, there is a button for entering users on the client device. When the user presses the button, the device system will enter the mode of adding new users and issue voice commands to guide the user to make a series of actions within the set range in order to collect the user's WiFi signal data. The device system will mark the WiFi signal data collected in the same time period according to the actions corresponding to the voice commands, and indicate the action category corresponding to the data. After the user data is collected, the device system will generate a new user code, mark the user data with the code, and add the collected user data to the local data set to update the local data set. Then, the local model will use the updated local data set to train the model so that the model can recognize the newly added users. During the task of model training at this time, the normal operation of the system will not be affected. The system will detect whether to add new users and complete subsequent tasks from the beginning to ensure that the identity recognition task can still be performed during training. After the model training is completed, the device system will update the local model and use the updated local model to extract features from the local data set to obtain the feature vector of each user, and store it in the feature vector database to replace the original feature vector to complete the update of the feature vector database. If the device system does not perform the user addition operation, it will first determine whether it is currently in an idle time period. The idle time period refers to the time period during which few or no one passes through the entrance where the device is located, and identity recognition is required. The idle time period can be set manually by the administrator, or it can be automatically determined by the device system based on the number of recognitions within a period of time. The purpose of setting the idle time period is to avoid affecting the performance of the device system during model weighted aggregation and batch model training, resulting in the inability to perform identity recognition tasks normally. If the device is currently in the idle time period, the device system will enter the model batch training mode. If the device is currently in the non-idle time period, the device system will enter the normal working state and continuously obtain the WiFi signal in the space. When the WiFi signal changes abnormally, it indicates that someone has passed through the coverage area of ​​the device. The device system will capture the WiFi signal at this time and use the local model to extract features from it to obtain a feature vector, and then compare this feature vector with all feature vectors in the feature vector database to calculate the similarity between them. If the highest similarity between this feature vector and a feature vector in the database reaches the preset similarity threshold, the device system will consider that the person passing by at this time is the corresponding user in the database, and the device system will continue to work normally. If the highest similarity is lower than the similarity threshold, the device system will consider that the person passing by at this time is an unregistered stranger, and the device system will immediately enter the alarm mode.

[0096] When the client device of the present invention finds an unregistered stranger passing by, it will enter the alarm mode, and the process is as follows: Figure 7As shown. In alarm mode, the voice announcer will immediately sound a warning and notify the staff to come and verify the identity of the person. If the staff confirms that the person is indeed not a registered user, they will drive him out. If the staff finds that the person is actually a registered user, it means that the system has a false alarm. In order to avoid the system from falsely alarming again, the staff needs to manually enter the person's real number in the device system and mark it as a system false alarm. The device system will mark the WiFi signal data at this time according to the number and add it to the local data set so that the corresponding feature vector can be generated during the next model training, thereby improving the recognition accuracy of the system.

[0097] like Figure 8 As shown, when the client device of the present invention detects an idle time period, it will start the model batch training mode to improve the performance of the local model. First, the device system will automatically check whether the local model has been weighted aggregated with the latest version of the global model. If so, it will proceed to the next step; if not, it will send a request to the server to download the latest version of the global model and weighted aggregate it with the local model. During the aggregation process, the device system will adjust the aggregation weight according to the set loss function to achieve the optimal value. After each aggregation is completed, the device system will use the local data set to train the aggregated model. After the training is completed, the device system will test the accuracy of the aggregated model and compare it with the accuracy of the local model. If the accuracy is significantly improved and reaches the accuracy growth standard, the model aggregation is considered to be successful. If the accuracy improvement does not reach the accuracy growth standard, the model aggregation is considered to have failed, and the aggregation weight needs to be appropriately adjusted and re-aggregated until the accuracy of the aggregated model reaches the preset standard. The most conservative case is that the global model weight is 0, that is, the original local model is retained. Then the aggregated model replaces the local model as the new version of the local model.

[0098] If the device system detects in the first step that the local model has been weighted aggregated with the latest version of the global model, it will proceed to the next step to check whether there is new data added to the local data set after the local model is updated. If so, it means that the local model may not have a good recognition ability for the new data, and it is necessary to use the updated local data set to train the local model. After the training is completed, the trained model will replace the original model as the new version of the local model. If not, it means that the local model has reached the optimal state and no further adjustments are required, and the model batch training mode can be ended. In either case, after updating the local model, the device system needs to upload the parameters of the local model to the server so that the server can obtain the latest local model parameters of each client.

[0099] In order to better understand the present invention, the above is described in detail in conjunction with the specific embodiments of the present invention, but it is not intended to limit the present invention. Any simple modifications made to the above embodiments based on the technical essence of the present invention still fall within the scope of the technical solution of the present invention. Each embodiment in this specification focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referenced to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

Claims

1. A method for identifying Wi-Fi personnel based on federated learning and quasi-incremental learning, comprising: a server establishing an initial Wi-Fi global identification model; the server sending the Wi-Fi global identification model and version number to all clients; and characterized in that: The following steps are also included: Step 1: Each client receives the WiFi identity recognition global model sent by the server, collects data of registered users' activities under WiFi signal coverage, adds the data to the local data set after processing, trains the downloaded WiFi identity recognition global model with the local data set, and updates it to the local model; Step 2: Determine whether the local model is aggregated with the latest issued WiFi identity recognition global model, update the local model and upload the updated local model parameters to the server; Step 3: The server receives the updated parameters of the local model from all clients and aggregates the model parameters, including the following sub-steps: Step 31: The server receives the model parameters from the client and temporarily stores them. When the temporarily stored model parameters reach a quantity threshold, the global model is aggregated; Step 32: By evaluating the quality of the local model uploaded by the client, different weights are assigned to different clients. The quality of the local model is evaluated based on the client's data set size, model accuracy, and number of registered users. The formula is: Among them, w i represents the weight of the i-th client, n i represents the dataset size of the i-th client, a i represents the model accuracy of the i-th client, u i represents the number of registered users of the i-th client, K represents the total number of clients, and w j represents the weight of the jth client, n j represents the dataset size of the jth client, a j represents the model accuracy of the jth client, u j represents the number of registered users of the jth client; Step 33: After the global model aggregation is completed, a new global model is generated and trained again; Step 34: Compare the accuracy of the test model with the global model of the previous version to determine whether the accuracy growth standard is met; Step 4: updating the WiFi identity global model on the server side, waiting for the client to request downloading, and sending the latest version of the model data to the client if a download request from the client is received; Step 5: Repeat steps 2 to 4 to continuously optimize the performance of the global model and each client's local model during the idle time period, and use the updated WiFi identity recognition global model for real-time identity recognition.

2. The method for identifying Wi-Fi personnel based on federated learning and quasi-incremental learning as claimed in claim 1, characterized in that: The step 2 includes, when the local model is not aggregated with the latest issued WiFi identity recognition global model, requesting the cloud to download the latest version of the WiFi identity recognition global model, and performing weighted aggregation with the local model, using the local data set to train and test the aggregated model, and evaluating whether the accuracy of the aggregated model meets the expected standard.

3. The method for identifying Wi-Fi personnel based on federated learning and quasi-incremental learning as claimed in claim 2, characterized in that: The step 2 also includes if the accuracy of the aggregated model reaches the expected standard, it indicates that the model aggregation is successful and the local model is updated; if the accuracy of the aggregated model does not reach the standard, it indicates that the model aggregation has failed, and the aggregation weight is readjusted and aggregation is performed until the accuracy of the aggregated model reaches the expected standard.

4. The method for identifying Wi-Fi personnel based on federated learning and quasi-incremental learning as claimed in claim 3, characterized in that: The step 2 also includes checking whether the local data set has been updated. If the local data set has not been updated, it means that the local model has reached the optimal state and the batch training mode is terminated; if the local data set has been updated, the local model is trained using the current data set and the local model is updated.

5. The method for identifying Wi-Fi personnel based on federated learning and quasi-incremental learning as claimed in claim 4, characterized in that: The step 34 includes continuing training until the next global model aggregation if the accuracy growth standard is not met; if the accuracy growth standard is met, updating the global model, saving the global model to a storage medium, and updating the version number and timestamp of the global model.

6. The method for identifying Wi-Fi personnel based on federated learning and quasi-incremental learning as claimed in claim 5, characterized in that: The real-time identity recognition method comprises the following sub-steps: Step 51: The WiFi signal collector obtains WiFi signals in the space in real time; Step 52: When the WiFi signal changes abnormally, it indicates that someone has passed through the coverage area of ​​the device, and the WiFi signal at this time is automatically captured, and features are extracted using the local model to obtain a feature vector; Step 53: Compare the obtained feature vector with all feature vectors in the feature vector database and calculate the similarity between them; Step 54: If the highest similarity between this feature vector and a feature vector in the database is greater than or equal to the similarity threshold, it is considered that the person passing by is the corresponding user in the database; if the highest similarity is less than the similarity threshold, it is considered that the person passing by is an unregistered stranger and the alarm mode is activated.

7. The method for identifying Wi-Fi personnel based on federated learning and quasi-incremental learning as claimed in claim 6, characterized in that: The alarm mode is that the voice announcer will immediately issue a warning sound and notify the staff to come and verify the identity of the person; when the staff confirms that the person is not a registered user, the person is asked to leave.

8. The method for identifying Wi-Fi personnel based on federated learning and quasi-incremental learning as claimed in claim 7, characterized in that: When the staff finds that the person is a registered user, the system generates a false alarm. The staff manually enters the person's real number and marks it as a system false alarm. The WiFi signal data of the system false alarm is marked with the real number and added to the local data set, and the corresponding feature vector is generated during the next model training.

Citation Information

Patent Citations

  • Identity intelligent identification method and system based on WiFi channel state information

    CN112333653A

  • Multi-person identity recognition method based on commercial WiFi signal

    CN115310473A

  • Federal learning-based human activity identification method and system

    CN114386621A

  • Federal incremental learning method, system and device for streaming data and medium

    CN116431679A

  • Federal learning optimization method and system based on reinforcement learning

    CN116523079A