Student identification system, attendance punching device and server based on federated learning
Using federated learning technology to share and update model parameters between servers and multiple attendance and clocking devices solves the problem of limited training samples for student recognition models in the existing technology, improves recognition accuracy and performance, and improves user experience.
Patent Information
- Application Number
- CN202210353505.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-06
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-04-06
AI Technical Summary
The existing image feature recognition algorithm model is difficult to popularize and apply due to limited training samples and image feature occlusion, which leads to reduced recognition performance in student recognition.
A student identification system based on federated learning is used to share and update model parameters through collaborative training between servers and multiple attendance clocking devices, thereby increasing the number of training samples and identification accuracy of the identification model.
The accuracy and recognition performance of student recognition are significantly improved, the user experience is improved, and the problem of low recognition performance in the existing technology is solved.
Smart Images

Figure CN114926870B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image recognition technology, and in particular to a student recognition system, an attendance clocking device and a server based on federated learning. Background Art
[0002] In real school life, some students' image features (such as facial features, fingerprint features or pupil features) are blocked, not extracted or have limited training samples, which leads to the reduction of recognition performance of some existing image feature recognition algorithm models (such as DeepFace and FaceNet). It is difficult for the above algorithm models to exert their performance and be widely used. Summary of the invention
[0003] Based on the above problems and defects of the prior art, the present application provides a student identification system, attendance clocking device and server based on federated learning. By adopting the present application, by integrating federated learning technology into the student identification system, the student identification accuracy and recognition performance can be improved, and the user experience is high.
[0004] In a first aspect, the present application provides a student identification system based on federated learning, the system comprising:
[0005] Server and multiple attendance punching devices; among them,
[0006] The server is used to send the first student identification model to the plurality of attendance punching devices respectively; wherein the model parameter of the first student identification model is the first model parameter;
[0007] The first attendance punching device is used to input the student image in the first attendance punching device into the first student recognition model for training after receiving the first recognition model, obtain a second student recognition model, the student image feature vector and a second model parameter of the second student recognition model, and obtain a model parameter update value according to the first model parameter and the second model parameter; wherein the student image includes: a student face image, a student fingerprint image or a student pupil image; the first attendance punching device is any one of the multiple attendance punching devices;
[0008] The first attendance punching device is used to send the model parameter update value or the student image feature vector to the server;
[0009] The server is used to process the model parameter update value or the student image feature vector received from each of the multiple attendance punching devices, obtain model adjustment parameters, and send the model adjustment parameters to the multiple attendance punching devices respectively; the multiple attendance punching devices include: multiple attendance punching devices distributed in different schools, multiple attendance punching devices distributed in different locations of the same school, or multiple attendance punching devices distributed in different regions;
[0010] The first attendance punching device is used to update the second student recognition model according to the received model adjustment parameters until the second student recognition model converges or reaches a preset iterative training round to obtain a trained target recognition model.
[0011] In combination with the first aspect, in some optional embodiments,
[0012] The server is specifically used to: send the generated secret key to the multiple attendance punching devices respectively, encrypt the first student identification model by the secret key, and then send the encrypted first student identification model to the multiple attendance punching devices respectively;
[0013] The secret key includes: a symmetric key or an asymmetric key.
[0014] In combination with the first aspect, in some optional embodiments,
[0015] The model adjustment parameters include: loss value;
[0016] The server is specifically used for:
[0017] Performing a difference operation between the image feature vector received from each of the plurality of attendance punching devices and the reference image feature vector of the student to determine the loss value, and sending the loss value to the plurality of attendance punching devices respectively;
[0018] The student's reference image feature vector is an image feature vector obtained after the student image is input into a converged student recognition model.
[0019] In combination with the first aspect, in some optional embodiments,
[0020] The model adjustment parameters include: model parameter update values;
[0021] The server is specifically used for:
[0022] In the (t+1)th iteration training round, the model parameter update value received from the attendance punching device k among the K attendance punching devices is Perform differential privacy processing to obtain model adjustment parameters And adjust the model parameters are sent to the K multiple attendance punching devices respectively; wherein,
[0023] The N(0,σ 2 ) represents Gaussian noise; k∈(1,K);
[0024] Said is the model parameter obtained by the attendance punching device k during the t-th iteration training round, are the model parameters obtained by the attendance punching device k during the (t+1)th iterative training round; the K attendance punching devices include: K attendance punching devices distributed in different schools, K attendance punching devices distributed in different locations of the same school, or K attendance punching devices distributed in different areas.
[0025] In combination with the first aspect, in some optional embodiments,
[0026] The student image is the student face image;
[0027] The first attendance punching device is also used for:
[0028] Before inputting the student face image in the first attendance punching device into the first student recognition model for training,
[0029] Acquire a preset student face image, and perform a cutting operation on the preset student face image to obtain the student face image;
[0030] Among them, the preset student face image is a face image of the student wearing a mask; the student face image is an image of the student's face above the bridge of the nose.
[0031] In combination with the first aspect, in some optional embodiments,
[0032] The first attendance punching device is also used for:
[0033] Receive a student identification request; wherein the student identification request includes: a face image of a user wearing a mask;
[0034] The facial image of the user wearing a mask is input into the trained target recognition model to obtain a recognition result, and the recognition result is used to determine whether the user is a target student.
[0035] In combination with the first aspect, in some optional embodiments,
[0036] The first attendance punching device is specifically used for:
[0037] directly sending the model parameter update value or the student image feature vector to the server; or,
[0038] The model parameter update value or the student image feature vector encrypted by the secret key is sent to the server.
[0039] In a second aspect, the present application provides an attendance punching device, the attendance punching device comprising:
[0040] A first receiving module, a first processing module, a sending module, a second receiving module and a second processing module; the first receiving module, the first processing module, the sending module, the second receiving module and the second processing module are connected through a circuit; wherein,
[0041] The first receiving module is used to receive a first student identification model sent by a server; wherein the model parameter of the first student identification model is a first model parameter;
[0042] The first processing module is used for, after receiving the first student recognition model, inputting the student image in the attendance punching device into the first student recognition model for training, obtaining a second student recognition model, the student image feature vector and a second model parameter of the second student recognition model, and obtaining a model parameter update value according to the first model parameter and the second model parameter;
[0043] Wherein, the student image includes: a student face image, a student fingerprint image or a student pupil image;
[0044] The sending module is used to send the model parameter update value or the student image feature vector to the server;
[0045] The second receiving module is used to receive the model adjustment parameters sent by the server;
[0046] The model adjustment parameters are parameters obtained by the server after processing the model parameter update values or the student image feature vectors received from the plurality of attendance punching devices;
[0047] The second processing module is used to update the second student identification model according to the model adjustment parameters until the second student identification model converges or reaches a preset iterative training round to obtain a trained target recognition model; the multiple attendance punching devices include: multiple attendance punching devices distributed in different schools, multiple attendance punching devices distributed in different locations of the same school, or multiple attendance punching devices distributed in different areas.
[0048] In conjunction with the second aspect, in some optional embodiments,
[0049] The student image is the student face image;
[0050] The attendance punching device is also used for:
[0051] Before inputting the student face image in the attendance punching device into the first student recognition model for training,
[0052] Acquire a preset student face image, and perform a cutting operation on the preset student face image to obtain the student face image;
[0053] Among them, the preset student face image is a face image of the student wearing a mask; the student face image is an image of the student's face above the bridge of the nose.
[0054] In conjunction with the second aspect, in some optional embodiments,
[0055] The attendance punching device is also used for:
[0056] Receive a student identification request; wherein the student identification request includes: a face image of a user wearing a mask;
[0057] The facial image of the user wearing a mask is input into the trained target recognition model to obtain a recognition result, and the recognition result is used to determine whether the user is a target student.
[0058] In a third aspect, the present application provides a server, the server comprising:
[0059] A sending module, a receiving module and a processing module; the sending module, the receiving module and the processing module are connected through a circuit; wherein,
[0060] The sending module is used to send the first student identification model to multiple attendance punching devices respectively; wherein the model parameter of the first student identification model is the first model parameter; wherein,
[0061] The first attendance punching device is used to input the student image in the first attendance punching device into the first student recognition model for training after receiving the first student recognition model, obtain a second student recognition model, the student image feature vector and a second model parameter of the second student recognition model, and obtain a model parameter update value according to the first model parameter and the second model parameter; the student image includes: a student face image, a student fingerprint image or a student pupil image; the first attendance punching device is any one of the multiple attendance punching devices;
[0062] The receiving module is used to receive the model parameter update value or the student image feature vector from each of the multiple attendance punching devices respectively;
[0063] The processing module is used to process the model parameter update value or the student image feature vector received from each of the multiple attendance punching devices, obtain model adjustment parameters, and send the model adjustment parameters to the multiple attendance punching devices respectively; the multiple attendance punching devices include: multiple attendance punching devices distributed in different schools, multiple attendance punching devices distributed in different locations of the same school, or multiple attendance punching devices distributed in different regions; wherein,
[0064] The first attendance punching device is used to update the second student recognition model according to the received model adjustment parameters until the second student recognition model converges or reaches a preset iterative training round to obtain a trained target recognition model.
[0065] The present application provides a student identification system, attendance punching device and server based on federated learning. The system includes: a server and multiple attendance punching devices; the server is used to send a first student identification model to multiple attendance punching devices respectively; the model parameters of the first student identification model are first model parameters; the first attendance punching device is used to input the student image in the first attendance punching device into the first student identification model for training after receiving the first identification model, and obtain a second student identification model, a student image feature vector and a second model parameter of the second student identification model, and obtain a model parameter update value according to the first model parameter and the second model parameter; the student image includes: a student face image, a student fingerprint image or a student pupil image; the first attendance punching device is any one of the multiple attendance punching devices; the first The attendance punching device is used to send the model parameter update value or the student image feature vector to the server; the server is used to process the model parameter update value or the student image feature vector received from each of the multiple attendance punching devices, obtain the model adjustment parameters, and send the model adjustment parameters to the multiple attendance punching devices respectively; the multiple attendance punching devices include: multiple attendance punching devices distributed in different schools, multiple attendance punching devices distributed in different locations of the same school, or multiple attendance punching devices distributed in different areas; the first attendance punching device is used to update the second student recognition model according to the received model adjustment parameters until the second student recognition model converges or reaches a preset iterative training round to obtain a trained target recognition model.
[0066] In summary, the recognition models in multiple attendance punching devices distributed in different schools are jointly learned, so the number of training samples used to train the recognition models in each attendance punching device is greatly increased, and the recognition accuracy and recognition efficiency of the trained recognition models in each attendance punching device are effectively improved. By adopting this application, by integrating federated learning technology into the student recognition system, the student recognition accuracy, device recognition performance, etc. are improved, and the user experience is high. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are 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.
[0068] Figure 1 is a schematic diagram of the structure of the student identification system based on federated learning provided by this application;
[0069] Figure 2It is a schematic diagram of data information of multiple students held by school 1 provided in this application;
[0070] Figure 3 It is a schematic diagram of data information of multiple students held by school 2 provided in this application;
[0071] Figure 4 It is a structural schematic diagram of an attendance punching device provided by the present application;
[0072] Figure 5 It is a structural diagram of a server provided by this application. DETAILED DESCRIPTION
[0073] The following will be combined with the drawings in this application to clearly and completely describe the technical solutions in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0074] See also Figure 1 , is a structural diagram of a student identification system based on federated learning provided by this application, such as Figure 1 As shown, the student identification system 10 based on federated learning includes: a server and K attendance punching devices, wherein the server can be connected to the K attendance punching devices respectively through a communication network; K can be a positive integer greater than or equal to 2.
[0075] The above communication network may include but is not limited to the following:
[0076] Method 1: Wired communication network (such as network cable or optical fiber);
[0077] Method 2: Wireless communication network (such as WIFI6 or 5G);
[0078] Method 3: A communication network that combines the above-mentioned wired method and wireless method.
[0079] The server is used to send the first student identification model to the K attendance punching devices respectively; wherein the model parameters of the first student identification model are the first model parameters;
[0080] The first attendance punching device is used to input the student image in the first attendance punching device into the first student recognition model for training after receiving the first recognition model, obtain a second student recognition model, a student image feature vector and a second model parameter of the second student recognition model, and obtain a model parameter update value according to the first model parameter and the second model parameter;
[0081] The student image may include but is not limited to: a student face image, a student fingerprint image or a student pupil image; the first attendance punching device is any one of the K attendance punching devices mentioned above;
[0082] The first student recognition model may include, but is not limited to: a Convolutional Neural Networks (CNN) model, a Deep Convolutional Neural Networks (DCNN) or a FaceNet recognition model.
[0083] The first attendance punch card device can be used for:
[0084] directly sending the above model parameter update value or student image feature vector to the above server; or,
[0085] The model parameter update value or student image feature vector encrypted by a secret key is sent to the server; wherein the secret key includes: a symmetric key or an asymmetric key.
[0086] Accordingly, the above server can be used for:
[0087] Directly process the model parameter update value or the student image feature vector received from each of the plurality of attendance punching devices to obtain the model adjustment parameter, and send the model adjustment parameter to the K attendance punching devices respectively; or,
[0088] Decrypting the model parameter update value or the student image feature vector received from each of the multiple attendance punching devices through a secret key, and processing the model adjustment parameter to obtain the model adjustment parameter, and sending the model adjustment parameter to the K attendance punching devices respectively;
[0089] The above-mentioned K attendance punching devices may include: K attendance punching devices distributed in different schools (such as: School 1, School 2 or School 3 and other different schools), K attendance punching devices distributed in different locations of the same school (such as: classroom 1, classroom 2, school gate, dormitory and other different locations in School 1), or K attendance punching devices distributed in different regional locations (such as: schools, hospitals, communities, supermarkets and other different regional locations).
[0090] The first attendance punching device is used to update the second student recognition model according to the received model adjustment parameters until the second student recognition model converges or reaches a preset iterative training round to obtain a trained target recognition model.
[0091] The server can be used to:
[0092] The generated secret key is sent to a plurality of attendance punching devices respectively, the first student identification model is encrypted by the secret key, and the encrypted first student identification model is sent to the plurality of attendance punching devices respectively;
[0093] The above-mentioned secret key includes: a symmetric secret key or an asymmetric secret key.
[0094] Specifically, if the above key is an asymmetric key including a pair of public key and private key, then
[0095] The server can be used to:
[0096] After the asymmetric key generated by the RSA algorithm is sent to the multiple attendance punching devices respectively, the first student identification model is encrypted by the public key, and the encrypted first student identification model is sent to the above-mentioned multiple attendance punching devices respectively.
[0097] The server can be used to:
[0098] After the symmetric keys generated by block cipher and stream cipher are sent to multiple attendance punching devices respectively, the first student identification model is encrypted by the symmetric key, and the encrypted first student identification model is sent to the above-mentioned multiple attendance punching devices respectively.
[0099] Specifically, the server can also be used to:
[0100] The unencrypted first student identification model is directly sent to multiple attendance punching devices respectively.
[0101] When the above model adjustment parameters are loss values;
[0102] The server is specifically used for:
[0103] Performing a difference operation between an image feature vector received from each of the plurality of attendance punching devices and a reference image feature vector of the student to determine a loss value, and sending the loss value to the plurality of attendance punching devices respectively;
[0104] The student's reference image feature vector may be an image feature vector obtained after the student image is input into a converged student recognition model.
[0105] Specifically, the server can be used to:
[0106] A difference operation is performed between the image feature vector received from each of the multiple attendance punching devices and the student's baseline image feature vector to obtain multiple loss function values, and the above multiple loss function values are weighted to determine the above loss values, and the loss values are sent to the multiple attendance punching devices respectively.
[0107] When the model adjustment parameters are model parameter update values;
[0108] The server can be used to:
[0109] In the (t+1)th iteration training round, the model parameter update value received from the attendance punching device k among the K attendance punching devices is Perform differential privacy processing to obtain model adjustment parameters And adjust the model parameters are sent to K attendance punching devices respectively; among them,
[0110] N(0,σ 2 ) represents Gaussian noise; k∈(1,K); is the model parameter obtained by attendance punching device k during the tth iteration training round, The model parameters obtained by the attendance punching device k during the (t+1)th iteration training round; the Gaussian noise here can be used to protect the above model adjustment parameters. The K attendance punching devices may include but are not limited to:
[0111] K attendance punching devices distributed in different schools, K attendance punching devices distributed in different locations of the same school, or K attendance punching devices distributed in different areas. Or,
[0112] The server can be used to:
[0113] Encrypt the model with the above key and adjust the parameters Sent to K attendance punching devices respectively.
[0114] Accordingly, the first attendance punching device can be specifically used for:
[0115] updating the second student recognition model according to the model adjustment parameters received from the server until the second student recognition model converges or reaches a preset iterative training round to obtain a trained target recognition model; or,
[0116] The encrypted model adjustment parameters received from the above-mentioned server are decrypted to obtain the above-mentioned model adjustment parameters, and the second student recognition model is updated according to the above-mentioned model adjustment parameters received from the above-mentioned server until the second student recognition model converges or reaches a preset iterative training round to obtain a trained target recognition model.
[0117] It should be noted that K in the embodiment of the present application is a positive integer greater than or equal to 2.
[0118] For example, when K is 2, the K attendance punching devices are: 2 attendance punching devices distributed in 2 different schools, that is, school 1 has attendance punching device 1, and school 2 has attendance punching device 2.
[0119] Combine the following Figure 2 , Figure 3 To briefly explain the student identification system based on federated learning in this application.
[0120] Figure 2 The data information of multiple students held by school 1 (data holder) is shown as an example. Figure 3 The data information of a plurality of students held by the school 2 (data holder) is exemplarily shown.
[0121] like Figure 2 As shown, Figure 2 After a student picture of each of the three students in the middle school 1 (such as a face picture, a pupil picture, a fingerprint picture or a face picture of a person wearing a mask) is input into the first student recognition model of the attendance punching device 1 in the school 1 for training, a second student recognition model, a student image feature vector and a second model parameter of the second student recognition model are obtained, and a model parameter update value is obtained according to the first model parameter and the second model parameter; then, the attendance punching device 1 in the school 1 sends the above model parameter update value or the above student image feature vector to the server;
[0122] like Figure 3 As shown, Figure 3 After a student picture of each of the four students in School 2 (such as a face picture, a pupil picture, a fingerprint picture, or a face picture wearing a mask) is input into the first student recognition model of the attendance punching device 2 in School 2 for training, a second student recognition model, a student image feature vector, and a second model parameter of the second student recognition model are obtained, and a model parameter update value is obtained based on the first model parameter and the second model parameter; then, the attendance punching device 2 in School 2 sends the above-mentioned model parameter update value or the above-mentioned student image feature vector to the server.
[0123] Combination Figure 2-3The server can be used to process the model parameter update value or the student image feature vector received from the attendance punching device 1 and the attendance punching device 2 respectively, obtain the model adjustment parameter, and send the model adjustment parameter to the attendance punching device 1 and the attendance punching device 2 respectively;
[0124] Finally, the attendance punching device 1 updates the second student recognition model in the attendance punching device according to the model adjustment parameters received from the server until the second student recognition model converges or reaches a preset iterative training round, and the attendance punching device 1 obtains a trained target recognition model; similarly,
[0125] The attendance punching device 2 updates the second student recognition model in the attendance punching device 2 according to the model adjustment parameters received from the server until the second student recognition model in the above attendance punching device converges or reaches the preset iterative training rounds, and the attendance punching device 1 obtains the trained target recognition model.
[0126] When the attendance punching device 1 receives a student identification request carrying a user image, the attendance punching device 1 can input the facial image of the user wearing a mask into the target recognition model trained in the attendance punching device 1 to obtain a recognition result, wherein the recognition result can be the similarity between the user image and the target student image; if the above similarity is greater than or equal to 95%, it can indicate that the user corresponding to the user image is the target student; conversely, if the above similarity is less than 95%, it indicates that the user corresponding to the user image is not the target student.
[0127] In summary, by jointly performing peer learning on the recognition models in two attendance punching devices distributed in different schools, the number of training samples used to train the recognition models in the two attendance punching devices is greatly increased, and the recognition accuracy and efficiency of the trained recognition models in the two attendance punching devices are effectively improved.
[0128] When the student image is a student face image;
[0129] The first attendance punch card device can also be used for:
[0130] Before inputting the student face image in the first attendance punching device into the first student recognition model for training,
[0131] Obtaining a preset student face image, and performing a cutting operation on the preset student face image to obtain a student face image;
[0132] Among them, the preset student face image can be a face image of the student wearing a mask; the student face image is an image of the student's face above the bridge of the nose.
[0133] The first attendance punch card device is also used for:
[0134] Receive a student identification request; wherein the student identification request includes: a facial image of a user wearing a mask; wherein the above-mentioned users may include but are not limited to: students, teachers, cleaning staff or other social personnel.
[0135] The facial image of the user wearing a mask is input into the trained target recognition model to obtain a recognition result, and the above recognition result is used to determine whether the above user is a target student.
[0136] Preferably, the above recognition result is taken as an example the similarity between the facial image of the user wearing a mask and the facial image of the target student wearing a mask. If the similarity is greater than or equal to 95%, it indicates that the user is the target student; otherwise, if the similarity is less than 95%, it indicates that the user is not the target student.
[0137] When the student image is a student face image;
[0138] The first attendance punch card device can also be used for:
[0139] Before inputting the student face image in the first attendance punching device into the first student recognition model for training,
[0140] Obtaining a preset student face image, and performing a cutting operation on the preset student face image to obtain a student face image;
[0141] Among them, the preset student face image can be a face image of the student wearing glasses; the student face image is an image of the student face with the eye position portion removed.
[0142] The first attendance punch card device is also used for:
[0143] Receive a student identification request; wherein the student identification request includes: a face image of a user wearing glasses; wherein the above-mentioned user may include but is not limited to: students, teachers, cleaning staff or other social personnel.
[0144] The facial image of the user wearing glasses is input into the trained target recognition model to obtain a recognition result, and the above recognition result is used to determine whether the above user is a target student.
[0145] It should be noted that Figure 2-3 It is only used to explain the present application and should not limit the protection scope of the present application.
[0146] Figure 4 An attendance punching device is shown as an example. Figure 4 As shown, the attendance punching device 40 can be Figure 1The attendance punching device 40 in the system embodiment may include but is not limited to: a first receiving module 401, a first processing module 402, a sending module 403, a second receiving module 404 and a second processing module 404; wherein the first receiving module 401, the first processing module 402, the sending module 403, the second receiving module 404 and the second processing module 404 are connected through a circuit. Specifically,
[0147] The first receiving module 401 may be used to receive a first student identification model sent by a server; wherein the model parameters of the first student identification model are first model parameters;
[0148] The first processing module 402 is used to, after receiving the first student recognition model, input the student image in the attendance punching device 40 to the first student recognition model for training, obtain the second student recognition model, the student image feature vector and the second model parameter of the second student recognition model, and obtain the model parameter update value from the first model parameter and the second model parameter;
[0149] The student image may include but is not limited to: a student face image, a student fingerprint image or a student pupil image;
[0150] The sending module 403 may be used to:
[0151] Send the model parameter update value or the student image feature vector to the server;
[0152] Alternatively, the model parameter update value or student image feature vector encrypted by a secret key is sent to the server; wherein the secret key includes: a symmetric key or an asymmetric key.
[0153] The second receiving module 404 may be used to receive the model adjustment parameters sent by the server;
[0154] The model adjustment parameters are parameters obtained by the server after processing the model parameter update values or student image feature vectors received from multiple attendance punching devices including the attendance punching device 40;
[0155] The second processing module 404 can be used to update the second student recognition model according to the model adjustment parameters until the second student recognition model converges or reaches a preset iterative training round to obtain a trained target recognition model; wherein the multiple attendance punching devices include: multiple attendance punching devices distributed in different schools, multiple attendance punching devices distributed in different locations of the same school, or multiple attendance punching devices distributed in different areas.
[0156] When the student image is a student face image,
[0157] The attendance punching device 40 can also be used for:
[0158] Before inputting the student face image in the attendance punching device into the first student recognition model for training,
[0159] Obtaining a preset student face image, and performing a cutting operation on the preset student face image to obtain a student face image;
[0160] Among them, the preset student face image is the face image of the student wearing a mask; the student face image is the image of the student's face above the bridge of the nose.
[0161] The attendance punching device 40 can also be used for:
[0162] Receive a student identification request; wherein the student identification request includes: a face image of a user wearing a mask;
[0163] The facial image of the user wearing a mask is input into the trained target recognition model to obtain the recognition result, which is used to determine whether the user is the target student.
[0164] When the student image is a student face image;
[0165] The first attendance punching device 40 can also be used for:
[0166] Before inputting the student face image in the first attendance punching device into the first student recognition model for training,
[0167] Obtaining a preset student face image, and performing a cutting operation on the preset student face image to obtain a student face image;
[0168] Among them, the preset student face image can be a face image of the student wearing glasses; the student face image is an image of the student face with the eye position portion removed.
[0169] The first attendance punching device 40 is also used for:
[0170] Receive a student identification request; wherein the student identification request includes: a face image of a user wearing glasses; wherein the above-mentioned user may include but is not limited to: students, teachers, cleaning staff or other social personnel.
[0171] The facial image of the user wearing glasses is input into the trained target recognition model to obtain a recognition result, and the above recognition result is used to determine whether the above user is a target student.
[0172] It should be noted that Figure 4 Definitions and explanations not elaborated in detail in the examples can be found in Figure 1 Example.
[0173] It should be understood that the attendance punching device 40 is only an example provided in the embodiment of the present application, and the attendance punching device 40 may have more or fewer components than those shown, may combine two or more components, or may have different configurations of components.
[0174] Understandable, about Figure 4 For specific implementations of the functional components included in the attendance punching device 40, please refer to Figure 1 The embodiments are not described in detail here.
[0175] Figure 5 An exemplary server is shown, such as Figure 5 As shown, the server 50 may be Figure 1 The server 50 in the system embodiment may include but is not limited to:
[0176] A sending module 501, a processing module 502 and a receiving module 503; wherein the sending module 501, the processing module 502 and the receiving module 503 are connected through a circuit; wherein,
[0177] The sending module 501 is used to send the first student identification model to multiple attendance punching devices including the first attendance punching device; wherein the model parameter of the first student identification model is the first model parameter; wherein,
[0178] The first attendance punching device is used to input the student image in the first attendance punching device into the first student recognition model for training after receiving the first student recognition model, obtain the second student recognition model, the student image feature vector and the second model parameter of the second student recognition model, and obtain the model parameter update value according to the first model parameter and the second model parameter; the above-mentioned student image may include but is not limited to: a student face image, a student fingerprint image or a student pupil image; the first attendance punching device is any one of the multiple attendance punching devices;
[0179] The receiving module 503 is used for:
[0180] Receiving a model parameter update value or a student image feature vector from each of the plurality of attendance punching devices; or,
[0181] Receiving an encrypted model parameter update value or a student image feature vector from each of the plurality of attendance punching devices;
[0182] The processing module 502 is used to:
[0183] Processing the model parameter update value or the student image feature vector received from each of the multiple attendance punching devices to obtain the model adjustment parameter, and sending the model adjustment parameter to the multiple attendance punching devices through the sending module 501; or,
[0184] The model parameter update value or student image feature vector received from each of the above-mentioned multiple attendance punching devices is processed after being decrypted by a secret key to obtain the model adjustment parameter, and the model adjustment parameter is sent to the multiple attendance punching devices respectively through the above-mentioned sending module 501.
[0185] The above-mentioned multiple attendance punching devices include: multiple attendance punching devices distributed in different schools, multiple attendance punching devices distributed in different locations of the same school, or multiple attendance punching devices distributed in different areas; wherein,
[0186] The first attendance punching device is used to update the second student recognition model according to the received model adjustment parameters until the second student recognition model converges or reaches a preset iterative training round to obtain a trained target recognition model.
[0187] The sending module 501 may be specifically used for:
[0188] After the generated secret key is sent to the multiple attendance punching devices respectively, the first student identification model is encrypted based on the secret key by the processing module 503, and the encrypted first student identification model is sent to the multiple attendance punching devices respectively;
[0189] Among them, the secret key includes: a symmetric key or an asymmetric key.
[0190] The sending module 501 may also be used for:
[0191] The unencrypted first student identification model is directly sent to multiple attendance punching devices respectively.
[0192] The processing module 502 may be specifically configured to:
[0193] When the model adjustment parameters include: loss value,
[0194] Performing a difference operation between the image feature vector received by the receiving module 503 from each of the multiple attendance punching devices and the reference image feature vector of the student to determine the loss value, and sending the loss value to the multiple attendance punching devices through the sending module 501;
[0195] The student's baseline image feature vector is an image feature vector obtained after the student image is input into a converged student recognition model.
[0196] The processing module 502 may be specifically configured to:
[0197] When the above model adjustment parameters include: model parameter update values,
[0198] In the (t+1)th iteration training round, the model parameter update value received from the attendance punching device k among the K attendance punching devices is Perform differential privacy processing to obtain model adjustment parameters
[0199] The sending module 501 may be used to:
[0200] Adjust the model parameters Send them to K attendance punching devices respectively; or,
[0201] Encrypt the model with the above key and adjust the parameters Sent to K attendance punching devices respectively.
[0202] in, N(0,σ 2 ) represents Gaussian noise; k∈(1,K); is the model parameter obtained by attendance punching device k during the tth iteration training round, are the model parameters obtained by the attendance punching device k during the (t+1)th iterative training round; the K attendance punching devices include: K attendance punching devices distributed in different schools, K attendance punching devices distributed in different locations of the same school, or K attendance punching devices distributed in different areas.
[0203] It should be noted that Figure 5 Definitions and explanations not elaborated in detail in the examples can be found in Figure 1 Example.
[0204] It should be understood that the server 50 is only an example provided in the embodiment of the present application, and the server 50 may have more or fewer components than those shown, may combine two or more components, or may have different configurations of components.
[0205] Understandable, about Figure 5 For specific implementations of the functional components included in the server 50, please refer to Figure 1 The embodiments are not described in detail here.
[0206] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this application can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. 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 this application.
[0207] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices, systems and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0208] In the several embodiments provided in this application, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the composition and steps of each example are described. 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 this application.
[0209] The embodiments of the devices and equipment described above are merely illustrative. For example, the division of the units is merely a logical function division. There may be other divisions in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices, devices or units, or may be an electrical, mechanical or other form of connection.
[0210] The units described as separate components may or may not be physically separated, and the components displayed 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 embodiments of the present application.
[0211] In addition, each functional unit in each embodiment of the present application 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.
[0212] If the integrated 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 memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0213] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A student identification system based on federated learning, characterized in that: include: Server and multiple attendance punching devices; among them, The server is used to send the first student identification model to the plurality of attendance punching devices respectively; wherein the model parameter of the first student identification model is the first model parameter; The first attendance punching device is used to input the student image in the first attendance punching device into the first student recognition model for training after receiving the first recognition model, obtain a second student recognition model, the student image feature vector and a second model parameter of the second student recognition model, and obtain a model parameter update value according to the first model parameter and the second model parameter; wherein the student image includes: a student face image, a student fingerprint image or a student pupil image; the first attendance punching device is any one of the multiple attendance punching devices; The first attendance punching device is used to send the model parameter update value or the student image feature vector to the server; The server is used to process the model parameter update value or the student image feature vector received from each of the multiple attendance punching devices, obtain model adjustment parameters, and send the model adjustment parameters to the multiple attendance punching devices respectively; wherein the multiple attendance punching devices include: multiple attendance punching devices distributed in different schools, multiple attendance punching devices distributed in different locations of the same school, or multiple attendance punching devices distributed in different regions and locations; The first attendance punching device is used to update the second student recognition model according to the received model adjustment parameters until the second student recognition model converges or reaches a preset iterative training round to obtain a trained target recognition model.
2. The student identification system based on federated learning as claimed in claim 1, characterized in that: The server is specifically used to: send the generated secret key to the multiple attendance punching devices respectively, encrypt the first student identification model by the secret key, and then send the encrypted first student identification model to the multiple attendance punching devices respectively; The secret key includes: a symmetric key or an asymmetric key.
3. The student identification system based on federated learning as claimed in claim 1, characterized in that: The model adjustment parameters include: loss value; The server is specifically used for: Performing a difference operation between the image feature vector received from each of the plurality of attendance punching devices and the reference image feature vector of the student to determine the loss value, and sending the loss value to the plurality of attendance punching devices respectively; The student's reference image feature vector is an image feature vector obtained after the student image is input into a converged student recognition model.
4. The student identification system based on federated learning as claimed in claim 1, characterized in that: The model adjustment parameters include: model parameter update values; The server is specifically used for: In the (t+1)th iteration training round, the model parameter update value received from the attendance punching device k among the K attendance punching devices is Perform differential privacy processing to obtain model adjustment parameters And adjust the model parameters are sent to the K attendance punching devices respectively; wherein, The N(0,σ 2 ) represents Gaussian noise; k∈(1,K); is the model parameter obtained by the attendance punching device k during the t-th iteration training round, are the model parameters obtained by the attendance punching device k during the (t+1)th iterative training round; the K attendance punching devices include: K attendance punching devices distributed in different schools, K attendance punching devices distributed in different locations of the same school, or K attendance punching devices distributed in different areas.
5. The student identification system based on federated learning as claimed in claim 1, characterized in that: The student image is the student face image; The first attendance punching device is also used for: Before inputting the student face image in the first attendance punching device into the first student recognition model for training, Acquire a preset student face image, and perform a cutting operation on the preset student face image to obtain the student face image; Among them, the preset student face image is a face image of the student wearing a mask; the student face image is an image of the student's face above the bridge of the nose.
6. The student identification system based on federated learning as claimed in claim 5, characterized in that: The first attendance punching device is also used for: Receive a student identification request; wherein the student identification request includes: a face image of a user wearing a mask; The facial image of the user wearing a mask is input into the trained target recognition model to obtain a recognition result, and the recognition result is used to determine whether the user is a target student.
7. The student identification system based on federated learning as claimed in claim 2, characterized in that: The first attendance punching device is specifically used for: directly sending the model parameter update value or the student image feature vector to the server; or, The model parameter update value or the student image feature vector encrypted by the secret key is sent to the server.
8. An attendance punching device, characterized in that: include: A first receiving module, a first processing module, a sending module, a second receiving module and a second processing module; The first receiving module, the first processing module, the sending module, the second receiving module and the second processing module are connected via a circuit; wherein, The first receiving module is used to receive a first student identification model sent by a server; wherein the model parameter of the first student identification model is a first model parameter; The first processing module is used for, after receiving the first student recognition model, inputting the student image in the attendance punching device into the first student recognition model for training, obtaining a second student recognition model, the student image feature vector and a second model parameter of the second student recognition model, and obtaining a model parameter update value according to the first model parameter and the second model parameter; Wherein, the student image includes: a student face image, a student fingerprint image or a student pupil image; The sending module is used to send the model parameter update value or the student image feature vector to the server; The second receiving module is used to receive the model adjustment parameters sent by the server; The model adjustment parameters are parameters obtained by the server after processing the model parameter update values or the student image feature vectors received from the plurality of attendance punching devices; The second processing module is used to update the second student identification model according to the model adjustment parameters until the second student identification model converges or reaches a preset iterative training round to obtain a trained target recognition model; wherein the multiple attendance punching devices include: multiple attendance punching devices distributed in different schools, multiple attendance punching devices distributed in different locations of the same school, or multiple attendance punching devices distributed in different areas.
9. The attendance punching device as claimed in claim 8, characterized in that: The student image is the student face image; The attendance punching device is also used for: Before inputting the student face image in the attendance punching device into the first student recognition model for training, Acquire a preset student face image, and perform a cutting operation on the preset student face image to obtain the student face image; Among them, the preset student face image is a face image of the student wearing a mask; the student face image is an image of the student's face above the bridge of the nose.
10. The attendance punching device as claimed in claim 9, characterized in that: The attendance punching device is also used for: Receive a student identification request; wherein the student identification request includes: a face image of a user wearing a mask; The facial image of the user wearing a mask is input into the trained target recognition model to obtain a recognition result, and the recognition result is used to determine whether the user is a target student.
11. A server, characterized in that: include: A sending module, a receiving module and a processing module; the sending module, the receiving module and the processing module are connected through a circuit; wherein, The sending module is used to send the first student recognition model to multiple attendance punching devices respectively; wherein the model parameters of the first student recognition model are first model parameters; wherein the first attendance punching device is used to input the student image in the first attendance punching device into the first student recognition model for training after receiving the first student recognition model, to obtain the second student recognition model, the student image feature vector and the second model parameter of the second student recognition model, and to obtain the model parameter update value according to the first model parameter and the second model parameter; the student image includes: a student face image, a student fingerprint image or a student pupil image; wherein the first attendance punching device is any one of the multiple attendance punching devices; The receiving module is used to receive the model parameter update value or the student image feature vector from each of the multiple attendance punching devices respectively; The processing module is used to process the model parameter update value or the student image feature vector received respectively from each of the multiple attendance punching devices, obtain model adjustment parameters, and send the model adjustment parameters to the multiple attendance punching devices respectively; the multiple attendance punching devices include: multiple attendance punching devices distributed in different schools, multiple attendance punching devices distributed in different locations of the same school, or multiple attendance punching devices distributed in different areas; wherein, the first attendance punching device is used to update the second student recognition model according to the received model adjustment parameters until the second student recognition model converges or reaches a preset iterative training round to obtain a trained target recognition model.
Citation Information
Patent Citations
Face recognition method and device based on federated learning, equipment and storage medium
CN112381000A
Federal learning-based neural network training method and device
CN113516227A
