Face recognition system and method based on cloud platform four-layer architecture AFC system
Through the face recognition system based on the four-layer architecture of the cloud platform, deep learning and computer vision technology are used to extract facial features, which solves the problem of insufficient recognition speed and accuracy of existing technologies under large-scale and high-frequency recognition requirements, and achieves More efficient and safe identification results.
Patent Information
- Application Number
- CN202411022043.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-29
AI Technical Summary
Existing face recognition technology cannot meet the needs of large-scale, high-frequency, high-speed, and safe recognition. The degree of intelligence needs to be improved, and it is limited by local computing resources and storage capabilities, which affects the recognition speed and accuracy.
A face recognition system based on a four-layer cloud platform architecture, including data collection layer, data processing layer, application service layer and interface layer, through source domain data enhancement, statistical feature extraction, high-dimensional semantic significant feature extraction and feature dynamic interactive fusion The module combines deep learning algorithms and computer vision technology to extract facial features and perform pattern recognition, and uses classifiers to build face recognizers to achieve intelligent recognition.
It improves the speed, accuracy and security of face recognition, can handle large-scale and high-frequency recognition tasks more effectively, and improves the intelligence of the system.
Smart Images

Figure CN118553002B
Abstract
Description
Technical Field
[0001] The present application relates to the field of face recognition, and in particular to a face recognition system and method based on a cloud platform four-layer architecture AFC system. Background Art
[0002] Face recognition is a biometric technology that identifies people based on their facial features. Generally, images or video streams containing faces are collected through image acquisition devices, such as cameras and camcorders, and then the features in the collected face images are analyzed and compared to confirm the identity of the collected object.
[0003] With the development and maturity of image processing technology, face recognition identity authentication technology has been widely used in many industries and fields. For example, at the entrance gates of subways and railways, the use of face recognition technology to control the opening and closing of the gates can bring a lot of convenience to passengers. In the traditional way of buying tickets and voting to enter and exit the gate, passengers not only have to buy tickets with cash, but are also prone to problems such as ticket loss and voting queues, which reduces the efficiency of passengers entering and exiting the station; for example, the method of using mobile phone scanning to control the opening and closing of the gate is often affected by the strength of the mobile phone signal and the speed of the mobile phone response, which will also reduce the efficiency of passengers entering and exiting the station. The method of controlling the opening and closing of the gate by face recognition does not need to consider the influence of the above factors, which can greatly improve the efficiency and convenience of passengers entering and exiting the station.
[0004] However, when face recognition is applied in the field of gate opening and closing control, it is necessary to ensure the speed and accuracy of face recognition, to ensure the speed of gate opening and closing control, to prevent passengers from being blocked at the gate, and to reduce the passenger passing rate and convenience. However, the speed and accuracy of face recognition are often limited by local computing resources and storage capacity. At present, many face recognition technologies are difficult to cope with large-scale, high-frequency, high-speed, and safe recognition needs, and the degree of intelligence needs to be improved.
[0005] Therefore, an optimized face recognition system and method are expected to solve the above problems. Summary of the invention
[0006] This application is made in consideration of the above problems. One purpose of this application is to provide a face recognition system and method based on a four-layer AFC system of a cloud platform.
[0007] The embodiment of the present application provides a face recognition system based on a four-layer AFC system of a cloud platform, which includes: a data acquisition layer, a data processing layer, an application service layer and an interface layer;
[0008] The data acquisition layer is used to receive the face image to be recognized acquired by the camera;
[0009] The data processing layer is used to extract facial features from the facial image to be identified, and determine a facial recognition result based on the facial features, wherein the facial recognition result is used to indicate whether the user object to be identified is an authorized object;
[0010] The application service layer is used to determine whether to open access control permissions based on the face recognition result;
[0011] The interface layer is used to provide a data interface for system interaction.
[0012] For example, according to the face recognition system based on the cloud platform four-layer architecture AFC system of the embodiment of the present application, the data processing layer includes:
[0013] A source domain data enhancement module, used for performing contrast normalization on the face image to be identified to obtain a detail-enhanced face image to be identified;
[0014] A statistical feature extraction module, used to extract the HOG features of the detail-enhanced face image to be identified to obtain a face HOG feature vector;
[0015] A high-dimensional semantically significant feature extraction module, used to extract the high-dimensional semantically significant features of the detail-enhanced face image to be identified to obtain a spatially significant face structure feature vector;
[0016] A feature dynamic interactive fusion module, used for inputting the face HOG feature vector and the spatially significant face structure feature vector into a feature vector dynamic interactive fusion module based on gated response to obtain a face low-level-high-level feature fusion feature vector;
[0017] A face recognition module is used to determine the face recognition result based on the low-level and high-level feature fusion feature vector of the face.
[0018] For example, according to the face recognition system based on the cloud platform four-layer architecture AFC system of the embodiment of the present application, the source domain data enhancement module is used to:
[0019] Divide the to-be-recognized face image into blocks to obtain a sequence of to-be-recognized face local image blocks;
[0020] Calculate the mean and standard deviation of pixel values in each local image block of the face to be identified to obtain a set of local means and a set of local standard deviations;
[0021] After subtracting the corresponding local mean from each pixel value in the to-be-recognized face image, the pixel value is divided by the corresponding local standard deviation to obtain each pixel value in the detail-enhanced to-be-recognized face image.
[0022] For example, according to the face recognition system based on the cloud platform four-layer architecture AFC system of the embodiment of the present application, the statistical feature extraction module is used to:
[0023] grayscale processing is performed on the detail-enhanced face image to be identified to obtain a detail-enhanced face grayscale image to be identified;
[0024] Performing a color space-based standardization process on the detail-enhanced grayscale image of the face to be identified to obtain a standardized grayscale image of the face to be identified;
[0025] Evenly dividing the standardized grayscale image of the face to be identified to obtain a plurality of cell spaces;
[0026] Calculating the gradient of each pixel point in each cell space of the plurality of cell spaces, and generating a plurality of cell direction gradient histograms according to the gradient distribution;
[0027] A plurality of the cell directional gradient histograms are expanded and connected in series to obtain the face HOG feature vector.
[0028] For example, according to the face recognition system based on the cloud platform four-layer architecture AFC system of the embodiment of the present application, the high-dimensional semantic salient feature extraction module includes:
[0029] A facial structure feature extraction unit, used for inputting the detail-enhanced face image to be recognized into a facial structure feature extractor based on a dilated convolutional neural network model to obtain a facial structure feature map;
[0030] A spatial information saliency unit, used for inputting the facial structure feature map into an attention module that fuses spatial mask information to obtain a spatially salient facial structure feature map;
[0031] The shape reshaping unit is used to input the spatially significant human face structure feature map into a feature shape reshaping function to obtain the spatially significant human face structure feature vector.
[0032] For example, according to the face recognition system based on the cloud platform four-layer architecture AFC system of the embodiment of the present application, the spatial information saliency unit includes:
[0033] A weight information acquisition subunit, used for performing convolution coding and nonlinear activation processing on the face structure feature map to obtain a face structure space weight information feature map;
[0034] A weight information representation subunit, used to calculate the cross-channel global mean of each pixel position in the face structure space weight information feature map along the channel dimension of the face structure space weight information feature map to obtain a face structure space weight information representation matrix;
[0035] A masking subunit, configured to perform masking processing on the face structure space weight information representation matrix based on a predetermined threshold to obtain a masked face structure space weight information representation matrix;
[0036] A dimension alignment subunit, used for upsampling the masked face structure spatial weight information representation matrix to obtain a dimension aligned face structure spatial weight information representation matrix;
[0037] The weight application and information manifestation subunit is used to use the dimensionally aligned face structure space weight information representation matrix as the weight matrix, and respectively calculate the product between it and each feature matrix along the channel dimension of the face structure feature map to obtain the spatially significant face structure feature map.
[0038] For example, according to the face recognition system based on the cloud platform four-layer architecture AFC system of the embodiment of the present application, the weight information acquisition subunit uses a convolution kernel with a scale of 3×3 for convolution encoding and uses a Relu function for nonlinear activation processing.
[0039] For example, according to the face recognition system based on the cloud platform four-layer architecture AFC system of the embodiment of the present application, the feature dynamic interaction fusion module is used to:
[0040] Inputting the face HOG feature vector and the spatially significant face structure feature vector into a feature combination module to obtain a face HOG feature-face structure significant feature combination feature vector;
[0041] Inputting the face HOG feature-face structure salient feature joint feature vector into the gated response function to obtain an information fusion response gate;
[0042] The response gate of the information fusion is used as a weight to calculate the position-weighted sum of the face HOG feature vector and the spatially significant face structure feature vector to obtain the face low-level-high-level feature fusion feature vector.
[0043] For example, according to the face recognition system based on the cloud platform four-layer architecture AFC system of the embodiment of the present application, the face recognition module is used to:
[0044] The low-level and high-level facial feature fusion feature vector is input into a classifier-based face recognizer to obtain the face recognition result.
[0045] The embodiment of the present application also provides a face recognition method based on a cloud platform four-layer architecture AFC system, which includes:
[0046] Receiving a face image to be recognized collected by a camera;
[0047] Extracting facial features from the face image to be identified, and determining a face recognition result based on the facial features, wherein the face recognition result is used to indicate whether the user object to be identified is an authorized object;
[0048] Based on the face recognition result, determine whether to grant access control authority.
[0049] The present application has at least the following technical effects: Compared with the prior art, the face recognition system and method based on the cloud platform four-layer architecture AFC system according to the embodiment of the present application utilizes deep learning algorithms based on artificial intelligence and computer vision technology to perform in-depth feature extraction and pattern recognition on the face image to be identified, and further combines statistical features with the parallel extraction method of semantically significant features of the high-dimensional local structure of the face to characterize the user's comprehensive face feature representation, and uses a classifier to construct a face recognizer to realize intelligent identification of user objects, further determine whether they can be authorized for access control, and improve the speed, accuracy and security of face recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings of the embodiments of the present application are briefly introduced below. Obviously, the drawings described below only relate to some embodiments of the present application, and are not intended to limit the present application.
[0051] Figure 1 A schematic diagram of the application architecture of a face recognition system based on a four-layer AFC system of a cloud platform in an embodiment of the present application is shown;
[0052] Figure 2 A schematic diagram of the structure of a face recognition system based on a four-layer AFC system of a cloud platform in an embodiment of the present application is shown;
[0053] Figure 3 A schematic diagram showing the structure of the data processing layer of the face recognition system based on the cloud platform four-layer architecture AFC system in an embodiment of the present application is shown;
[0054] Figure 4 A flowchart of a face recognition method based on a four-layer AFC system of a cloud platform in an embodiment of the present application is shown;
[0055] Figure 5 An application scenario diagram of a face recognition system based on a four-layer AFC system of a cloud platform in an embodiment of the present application is shown; and
[0056] Figure 6 A schematic diagram of a storage medium according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0057] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work also fall within the scope of protection of the present application.
[0058] The terms used in this specification are those common terms currently widely used in the art in consideration of the functions of the present application, but these terms may vary according to the intention of a person of ordinary skill in the art, precedents, or new technologies in the art. In addition, specific terms may be selected by the applicant, and in this case, their detailed meanings will be described in the detailed description of the present application. Therefore, the terms used in the specification should not be understood as simple names, but rather as a general description based on the meaning of the terms and the present application.
[0059] Although the present application makes various references to certain modules in the system according to the embodiments of the present application, any number of different modules can be used and run on the user terminal and / or server. The modules are only illustrative, and different aspects of the system and method can use different modules.
[0060] Flowcharts are used in the present application to illustrate the operations performed by the system according to the embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed accurately in order. On the contrary, various steps may be processed in reverse order or simultaneously as required. At the same time, other operations may also be added to these processes, or a certain step or several steps of operations may be removed from these processes.
[0061] Figure 1 A schematic diagram of the application architecture of a face recognition system based on a cloud platform four-layer architecture AFC system in an embodiment of the present application is shown, including a server 100 and a terminal device 200.
[0062] The terminal device 200 and the server 100 can be connected via the Internet to achieve mutual communication. Optionally, the above-mentioned Internet uses standard communication technology and / or protocol. The Internet is usually the Internet, but it can also be any network, including but not limited to any combination of a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a private network or a virtual private network. In some embodiments, the data exchanged through the network can be represented by technologies and / or formats including Hyper Text Markup Language (HTML), Extensible Markup Language (XML), etc. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec), etc. can be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can also be used to replace or supplement the above-mentioned data communication technologies.
[0063] The server 100 can provide various network services for the terminal device 200, wherein the server 100 can be a single server, a server cluster consisting of several servers, or a cloud computing center. Specifically, the server 100 may include a processor 110 (Center Processing Unit, CPU), a memory 120, an input device 130, and an output device 140, etc. The input device 130 may include a keyboard, a mouse, a touch screen, etc., and the output device 140 may include a display device, such as a liquid crystal display (Liquid Crystal Display, LCD), a cathode ray tube (Cathode Ray Tube, CRT), etc.
[0064] The memory 120 may include a read-only memory (ROM) and a random access memory (RAM), and provides the processor 110 with program instructions and data stored in the memory 120. In the embodiment of the present application, the memory 120 may be used to store the corresponding method of the face recognition system based on the cloud platform four-layer architecture AFC system in the embodiment of the present application.
[0065] The processor 110 calls the program instructions stored in the memory 120, and the processor 110 is used to execute the steps of any face recognition method based on the cloud platform four-layer architecture AFC system in the embodiments of the present application according to the obtained program instructions.
[0066] In addition, the application architecture diagram in the embodiment of the present application is intended to more clearly illustrate the technical solution in the embodiment of the present application, and does not constitute a limitation on the technical solution provided in the embodiment of the present application. Of course, for other application architectures and business applications, the technical solution provided in the embodiment of the present application is also applicable to similar problems.
[0067] The following is a non-restrictive description of the face recognition system based on the cloud platform four-layer architecture AFC system provided according to at least one embodiment of the present application through several examples or embodiments. As described below, different features in these specific examples or embodiments can be combined with each other without conflicting with each other to obtain new examples or embodiments, and these new examples or embodiments also fall within the scope of protection of the present application.
[0068] This application provides a face recognition system based on a four-layer AFC system on a cloud platform, such as Figure 2 As shown, it specifically includes: a data acquisition layer 810, a data processing layer 820, an application service layer 830 and an interface layer 840. The data acquisition layer 810 is used to receive the face image to be identified collected by the camera. That is, the data acquisition layer, as the front end of the system, is responsible for receiving the face image data collected from the camera and other devices in real time, and providing the original input for subsequent processing. In addition, the data processing layer 820 is used to extract facial features from the face image to be identified, and determine the face recognition result based on the facial features, and the face recognition result is used to indicate whether the user object to be identified is an authorized object. That is, the facial features in the image are analyzed and identified using advanced algorithms to generate face recognition results. Secondly, the application service layer 830 is used to determine whether to open access control permissions based on the face recognition results; and the interface layer 840 is used to provide a data interface for system interaction. That is, the application service layer can combine the user's identity identification results and the predetermined security policy to decide whether to open the user's access to specific resources or services; and the interface layer provides a standardized data interface, which allows the system to interact with other applications or services to achieve system integration and function expansion.
[0069] It should be understood that the functional realization of the face recognition system based on the four-layer AFC system of the cloud platform is based on the data processing layer being able to accurately identify the user's facial features and determine whether the user is an authorized object. In other words, the data processing layer is the core part of the face recognition system based on the four-layer AFC system of the cloud platform. In order to ensure that the data processing layer can accurately identify the user's authorization, in the technical concept of this application, it is expected to use deep learning algorithms based on artificial intelligence and computer vision technology to perform in-depth feature extraction and pattern recognition on the face images to be identified, which combines statistical features with parallel extraction of semantically significant features of high-dimensional local structures of the face to characterize the user's comprehensive facial feature representation, and uses classifiers to build a face recognizer to realize intelligent identification of user objects, and further determine whether they can be authorized for access control.
[0070] Based on this, Figure 3 As shown, the data processing layer 820 includes: a source domain data enhancement module 821, which is used to perform contrast normalization on the face image to be identified to obtain a detail-enhanced face image to be identified; a statistical feature extraction module 822, which is used to extract the HOG features of the detail-enhanced face image to be identified to obtain a face HOG feature vector; a high-dimensional semantically significant feature extraction module 823, which is used to extract the high-dimensional semantically significant features of the detail-enhanced face image to be identified to obtain a spatially significant face structure feature vector; a feature dynamic interactive fusion module 824, which is used to input the face HOG feature vector and the spatially significant face structure feature vector into a feature vector dynamic interactive fusion module based on gated response to obtain a face low-level-high-level feature fusion feature vector; a face recognition module 825, which is used to determine the face recognition result based on the face low-level-high-level feature fusion feature vector.
[0071] Specifically, in the technical solution of the present application, the specific implementation process of the data processing layer includes: first, performing contrast normalization on the face image to be identified to obtain a detail-enhanced face image to be identified. Contrast normalization can enhance the contrast of the image, making the details in the image more clearly visible, thereby improving the overall quality of the image. Specifically, contrast normalization achieves contrast normalization by subtracting the local mean of each pixel value in the image and dividing it by the local standard deviation. This can reduce the global contrast changes in the image and highlight the details and texture information of the image.
[0072] Correspondingly, the source domain data enhancement module 821 is used to: divide the face image to be identified into blocks to obtain a sequence of local image blocks of the face to be identified; calculate the mean and standard deviation of the pixel values in each local image block of the face to be identified to obtain a set of local means and a set of local standard deviations; subtract the corresponding local mean from each pixel value in the face image to be identified, and divide the result by the corresponding local standard deviation to obtain each pixel value in the detail-enhanced face image to be identified.
[0073] Then, the HOG features of the detail-enhanced face image to be identified are extracted to obtain the face HOG feature vector; at the same time, the detail-enhanced face image to be identified is input into a face structure feature extractor based on a dilated convolutional neural network model to obtain a face structure feature map. That is, the statistical information of the detail-enhanced face image to be identified is described by extracting HOG features to characterize the geometric features, texture features, edge features and gradient features of the user's face. It is worth mentioning that the HOG feature is very sensitive to the directional changes of the edges in the image, which enables it to effectively express the contour and structure information in the detail-enhanced face image to be identified. On the other hand, using a dilated convolutional neural network model to construct a face structure feature extractor can utilize the powerful receptive field expansion capability of dilated convolution to capture the abstract face structure features in the detail-enhanced face image to be identified.
[0074] Since in actual application scenarios, there may be a large amount of background in the face image to be identified, the presence of this background information may have an adverse effect on the capture and recognition of facial features. Therefore, in the technical solution of the present application, it is expected to learn the foreground information in the face image to be identified, and suppress and filter out other unimportant background information. More specifically, the face structure feature map is input into the attention module that integrates the spatial mask information to obtain a spatially significant face structure feature map. In particular, the attention module that integrates the spatial mask information extracts the representative features of each pixel position in the face structure feature map through further convolutional coding, nonlinear activation processing and global mean calculation, and then highlights the important information therein through masking processing (setting the weight to one), while suppressing the influence of unimportant information in the feature recognition and learning process (setting the weight to zero). In this way, the spatial weight information representation of the face structure is fused with the original face structure feature map to achieve adaptive spatial saliency information enhancement.
[0075] Furthermore, the spatially significant facial structure feature map is input into a feature shape reshaping function to obtain a spatially significant facial structure feature vector. The feature shape reshaping function can transform the multi-dimensional spatially significant facial structure feature map into a one-dimensional vector representation, thereby reducing the feature dimension, simplifying the subsequent processing flow, and retaining key facial feature information.
[0076] Correspondingly, the statistical feature extraction module 822 is used to: grayscale the detail-enhanced face image to be identified to obtain a detail-enhanced face grayscale image to be identified; standardize the detail-enhanced face grayscale image to be identified based on the color space to obtain a standardized face grayscale image to be identified; evenly divide the standardized face grayscale image to be identified to obtain multiple cell spaces; calculate the gradient of each pixel point in each cell space in the multiple cell spaces, and generate multiple cell directional gradient histograms according to the gradient distribution; expand and connect the multiple cell directional gradient histograms in series to obtain the face HOG feature vector.
[0077] The high-dimensional semantically significant feature extraction module 823 includes: a facial structure feature extraction unit, which is used to input the detail-enhanced face image to be identified into a facial structure feature extractor based on a hole convolutional neural network model to obtain a facial structure feature map; a spatial information saliency unit, which is used to input the facial structure feature map into an attention module that integrates spatial mask information to obtain a spatially significant facial structure feature map; and a shape reshaping unit, which is used to input the spatially significant facial structure feature map into a feature shape reshaping function to obtain the spatially significant facial structure feature vector.
[0078] Among them, the spatial information saliency unit includes: a weight information acquisition subunit, which is used to perform convolution encoding and nonlinear activation processing on the facial structure feature map to obtain a facial structure spatial weight information feature map; a weight information representation subunit, which is used to calculate the cross-channel global mean of each pixel position in the facial structure spatial weight information feature map along the channel dimension of the facial structure spatial weight information feature map to obtain a facial structure spatial weight information representation matrix; a mask subunit, which is used to perform masking processing on the facial structure spatial weight information representation matrix based on a predetermined threshold to obtain a masked facial structure spatial weight information representation matrix; a dimension alignment subunit, which is used to upsample the masked facial structure spatial weight information representation matrix to obtain a dimension-aligned facial structure spatial weight information representation matrix; a weight application and information manifestation subunit, which is used to use the dimension-aligned facial structure spatial weight information representation matrix as a weight matrix, and respectively calculate the product between it and each feature matrix along the channel dimension of the facial structure feature map to obtain the spatially saliency facial structure feature map. Specifically, the weight information acquisition subunit uses a convolution kernel with a scale of 3×3 for convolution encoding and uses a ReLU function for nonlinear activation processing.
[0079] In a specific example, the spatial information saliency unit is used to: input the facial structure feature map into the attention module of the fused spatial mask information to process it with the following attention formula to obtain the spatially salient facial structure feature map; wherein the attention formula is:
[0080]
[0081]
[0082]
[0083]
[0084]
[0085] in, is the facial structure feature map, is the face structure spatial weight information feature map, is located in the face structure space weight information feature map All eigenvalues at the position, The value of is the number of channels of the face structure spatial weight information feature map, is the face structure spatial weight information representation matrix, is the face structure space weight information representation matrix The eigenvalue at position, is the dimensionally aligned face structure spatial weight information representation matrix, is the predetermined threshold, represents the masking function, is the input value of the masking function, is the spatially salient facial structure feature map, Indicates a convolution process with a scale of 3×3. represents the Relu function, represents upsampling processing, Represents the product of the calculation matrix and each feature matrix along the channel dimension of the feature map.
[0086] Subsequently, the face HOG feature vector and the spatially significant face structure feature vector are input into the feature vector dynamic interaction fusion module based on gated response to obtain the face low-level-high-level feature fusion feature vector. That is, the face feature information with different focuses represented by the face HOG feature vector and the spatially significant face structure feature vector can be integrated and interacted through the feature vector dynamic interaction fusion module based on gated response.
[0087] Among them, during the process of feature interactive fusion, the feature vector dynamic interactive fusion module based on gated response adaptively balances the importance of the fused information between the face HOG feature vector and the spatially significant face structure feature vector through a gated response function, and condenses this importance into the information fusion response gate so that the model can flexibly adjust the importance between the two, thereby optimizing the fusion and interaction process between the statistical features of the face and the high-dimensional local structure semantically significant features.
[0088] Correspondingly, the feature dynamic interactive fusion module 824 is used to: input the face HOG feature vector and the spatially significant face structure feature vector into the feature combination module to obtain the face HOG feature-face structure significant feature joint feature vector; input the face HOG feature-face structure significant feature joint feature vector into the gated response function to obtain the response gate of information fusion; use the information fusion response gate as a weight to calculate the position-weighted sum of the face HOG feature vector and the spatially significant face structure feature vector to obtain the face low-level-high-level feature fusion feature vector.
[0089] In a specific example, the feature dynamic interaction fusion module 824 is used to: input the face HOG feature vector and the spatially significant face structure feature vector into the feature vector dynamic interaction fusion module based on gated response and process them with the following dynamic interaction fusion formula to obtain the face low-level-high-level feature fusion feature vector; wherein the dynamic interaction fusion formula is:
[0090]
[0091]
[0092] in, and are respectively the face HOG feature vector and the spatially significant face structure feature vector, and are the weight parameter vector and the bias term, respectively. is the sigmoid function, is the response gate of information fusion, represents dot product, It means adding by position. It is the fusion feature vector of the low-level and high-level features of the face.
[0093] Then, the low-level and high-level features fusion feature vector of the face is input into the face recognizer based on the classifier to obtain the face recognition result. Accordingly, the face recognition module 825 is used to: input the low-level and high-level features fusion feature vector of the face into the face recognizer based on the classifier to obtain the face recognition result.
[0094] It should be understood that the role of the classifier is to use the given categories and known training data to learn classification rules and classifiers, and then classify (or predict) unknown data. Logistic regression, SVM, etc. are often used to solve binary classification problems. For multi-class classification problems, logistic regression or SVM can also be used, but multiple binary classifications are required to form a multi-classification, but this is prone to errors and inefficient. Commonly used multi-classification methods include the Softmax classification function.
[0095] In the technical solution of the present application, the face HOG feature vector is used to represent the statistical feature representation of the face image to be identified, including face geometry features, texture features, edge features and gradient features. The spatially significant face structure feature vector is used to represent the semantically significant features of the face high-dimensional local structure determined based on dilated convolutional coding of the face image to be identified. Considering the differences in feature order and depth between the face HOG feature vector and the spatially significant face structure feature vector, there is local structural heterogeneity in the feature manifolds of the two in the high-dimensional feature space, which will cause the face low-level-high-level feature fusion feature vector obtained by inputting the face HOG feature vector and the spatially significant face structure feature vector into the feature vector dynamic interactive fusion module based on gated response to have a technical problem of feature distribution discretization.
[0096] Preferably, in a preferred example of the present application, the face recognition module 825 is used to: perform clustering operations on the low-level and high-level feature fusion feature vector of the face, such as performing clustering operations based on the distance between eigenvalues, and determining the number of in-class features and the number of out-of-class features; dividing the total number of eigenvalues of the low-level and high-level feature fusion feature vector of the face by the number of in-class features and the number of out-of-class features respectively to obtain a class importance value and an out-of-class proportion value, and calculating the inverse of the class importance value to obtain a class constraint value; calculating a power function of each eigenvalue of the low-level and high-level feature fusion feature vector of the face with the class importance value as an exponent, and comparing it with a natural function. After adding the exponential values with the number as the base and the class constraint value as the exponent, the exponent is multiplied by the out-of-class proportion value to obtain a face low-level-high-level feature fusion modulation vector; the face low-level-high-level feature fusion feature vector is point multiplied with the class importance value to obtain a face low-level-high-level feature fusion ontology vector; the weighted sum of the face low-level-high-level feature fusion modulation vector and the face low-level-high-level feature fusion ontology vector is calculated with a weight hyperparameter to obtain an optimized face low-level-high-level feature fusion feature vector; the optimized face low-level-high-level feature fusion feature vector is input into the classifier-based face recognizer to obtain the face recognition result.
[0097] That is, in the technical solution of the present application, the face recognition module 825 is used to: perform cluster optimization on the face low-level-high-level feature fusion feature vector to obtain the optimized face low-level-high-level feature fusion feature vector, and the process is expressed by the optimization formula:
[0098]
[0099] in, Represents the total number of eigenvalues of the low-level and high-level feature fusion feature vector of the face, represents the number of features within a class, Represents the low-level and high-level feature fusion feature vector of the face, represents the weight hyperparameter, It means point multiplication by position. It means adding by position. represents the power function value of calculating each eigenvalue of the low-level and high-level feature fusion eigenvector of the face with the class importance value as the exponent, is the optimized low-level and high-level face feature fusion feature vector, represents an exponential function with a natural constant as the base; inputting the optimized low-level and high-level facial feature fusion feature vector into the classifier-based face recognizer to obtain the face recognition result.
[0100] Accordingly, in this preferred embodiment, the applicant of the present application, while performing a clustering operation on the low-level-high-level face feature fusion feature vector, further responsively modulates the out-of-class proportional factor by combining the clustering importance measure of the eigenvalue of the low-level-high-level face feature fusion feature vector with the class constraint measure of the clustering operation, and establishes the simplicity and effectiveness of feature purification of the feature set of the low-level-high-level face feature fusion feature vector as a whole based on the clustering scaling of the feature ontology representation of the low-level-high-level face feature fusion feature vector, and suppresses the inconsistency of the convergence logic of the probability density distribution caused by the clustering operation, so as to improve the classification iteration effect of the feature set of the low-level-high-level face feature fusion feature vector input into the classifier-based face recognizer, that is, to improve the speed of classification training and the accuracy of classification results.
[0101] Based on the above embodiments, see Figure 4 As shown in FIG. 1 , a flow chart of a face recognition method based on a cloud platform four-layer architecture AFC system in an embodiment of the present application is shown. For example, the face recognition method based on a cloud platform four-layer architecture AFC system can be executed by a server, which can be Figure 1 The server 100 shown in FIG. Figure 4 As shown, according to the face recognition method based on the cloud platform four-layer architecture AFC system according to the embodiment of the present application, the method includes the following steps: S510, receiving a face image to be recognized collected by a camera; S520, extracting face features from the face image to be recognized, and determining a face recognition result based on the face features, wherein the face recognition result is used to indicate whether the user object to be recognized is an authorized object; S530, determining whether to open access control permissions based on the face recognition result.
[0102] Here, those skilled in the art can understand that the specific operations of each step in the above-mentioned face recognition method based on the four-layer architecture AFC system of the cloud platform have been referred to above. Figure 2 to Figure 3 The face recognition system 800 based on the cloud platform four-layer architecture AFC system has been introduced in detail, and therefore, its repeated description will be omitted.
[0103] Figure 5 FIG. 1 is an application scenario diagram of a face recognition system based on a cloud platform four-layer architecture AFC system according to an embodiment of the present application. Figure 5 As shown, in this application scenario, first, a facial image to be identified that is captured by a camera is received, and then the facial image to be identified is input into a server that is deployed with a facial recognition algorithm based on a cloud platform four-layer architecture AFC system, wherein the server can use the facial recognition algorithm based on the cloud platform four-layer architecture AFC system to process the facial image to be identified to determine whether to open access control permissions.
[0104] Based on the above embodiment, another exemplary embodiment of an electronic device is also provided in the embodiment of the present application. In some possible implementations, the electronic device in the embodiment of the present application may include a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor can implement the steps of the face recognition method based on the cloud platform four-layer architecture AFC system in the above embodiment when executing the program.
[0105] For example, in the case of electronic equipment Figure 1 Taking the server 100 in the example as an example, the processor in the electronic device is the processor 110 in the server 100, and the memory in the electronic device is the memory 120 in the server 100.
[0106] An embodiment of the present application also provides a computer-readable storage medium. Figure 6 1 shows a schematic diagram of a computer-readable storage medium 1000 according to an embodiment of the present application. Figure 6 As shown, the computer-readable storage medium 1000 stores computer-executable instructions 1001. When the computer-executable instructions 1001 are executed by the processor, the face recognition method based on the cloud platform four-layer architecture AFC system according to the embodiment of the present application described with reference to the above figures can be executed. The computer-readable storage medium includes, but is not limited to, for example, volatile memory and / or non-volatile memory. The volatile memory may, for example, include a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may, for example, include a read-only memory (ROM), a hard disk, a flash memory, etc.
[0107] The embodiment of the present application also provides a computer program product or a computer program, which includes computer executable instructions, and the computer executable instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer executable instructions from the computer-readable storage medium, and the processor executes the computer executable instructions, so that the computer device executes the face recognition method based on the cloud platform four-layer architecture AFC system according to the embodiment of the present application.
[0108] Those skilled in the art will appreciate that the contents disclosed in this application may be subject to various variations and improvements. For example, the various devices or components described above may be implemented by hardware, or by software, firmware, or a combination of some or all of the three.
[0109] In addition, although the present application makes various references to certain units in the system according to embodiments of the present application, any number of different units can be used and run on the client and / or server. The units are only illustrative, and different aspects of the system and method can use different units.
[0110] Those skilled in the art will appreciate that all or part of the steps in the above method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk. Optionally, all or part of the steps in the above embodiment can also be implemented using one or more integrated circuits. Accordingly, each module / unit in the above embodiment can be implemented in the form of hardware or in the form of software function modules. The present application is not limited to any particular form of combination of hardware and software.
[0111] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art to which this application belongs. It should also be understood that terms such as those defined in common dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant technology, and should not be interpreted in an idealized or extremely formal sense, unless explicitly defined as such herein.
[0112] The above is an explanation of the present application and should not be considered as a limitation thereof. Although several exemplary embodiments of the present application have been described, it will be readily understood by those skilled in the art that many modifications may be made to the exemplary embodiments without departing from the novel teachings and advantages of the present application. Therefore, all of these modifications are intended to be included within the scope of the present application as defined by the claims. It should be understood that the above is an explanation of the present application and should not be considered to be limited to the specific embodiments disclosed, and modifications to the disclosed embodiments and other embodiments are intended to be included within the scope of the appended claims. The present application is defined by the claims and their equivalents.
Claims
1. The face recognition system based on the four-layer AFC system of the cloud platform is characterized by: include: Data collection layer, data processing layer, application service layer and interface layer; The data acquisition layer is used to receive the face image to be recognized acquired by the camera; The data processing layer is used to extract facial features from the facial image to be identified, and determine a facial recognition result based on the facial features, wherein the facial recognition result is used to indicate whether the user object to be identified is an authorized object; The application service layer is used to determine whether to open access control permissions based on the face recognition result; The interface layer is used to provide a data interface for system interaction; The data processing layer includes: A source domain data enhancement module, used for performing contrast normalization on the face image to be identified to obtain a detail-enhanced face image to be identified; A statistical feature extraction module, used to extract the HOG features of the detail-enhanced face image to be identified to obtain a face HOG feature vector; A high-dimensional semantically significant feature extraction module is used to extract the high-dimensional semantically significant features of the detail-enhanced face image to be identified to obtain a spatially significant face structure feature vector, which includes: A facial structure feature extraction unit, used for inputting the detail-enhanced face image to be recognized into a facial structure feature extractor based on a dilated convolutional neural network model to obtain a facial structure feature map; A spatial information saliency unit, used for inputting the facial structure feature map into an attention module that fuses spatial mask information to obtain a spatially salient facial structure feature map; A shape reshaping unit, used for inputting the spatially significant human face structure feature map into a feature shape reshaping function to obtain the spatially significant human face structure feature vector; A feature dynamic interactive fusion module, used for inputting the face HOG feature vector and the spatially significant face structure feature vector into a feature vector dynamic interactive fusion module based on gated response to obtain a face low-level-high-level feature fusion feature vector; A face recognition module is used to determine the face recognition result based on the low-level and high-level feature fusion feature vector of the face.
2. The face recognition system based on the cloud platform four-layer architecture AFC system according to claim 1 is characterized in that: The source domain data enhancement module is used to: Divide the to-be-recognized face image into blocks to obtain a sequence of to-be-recognized face local image blocks; Calculate the mean and standard deviation of pixel values in each local image block of the face to be identified to obtain a set of local means and a set of local standard deviations; After subtracting the corresponding local mean from each pixel value in the to-be-recognized face image, the pixel value is divided by the corresponding local standard deviation to obtain each pixel value in the detail-enhanced to-be-recognized face image.
3. The face recognition system based on the cloud platform four-layer architecture AFC system according to claim 2 is characterized in that: The statistical feature extraction module is used to: grayscale processing is performed on the detail-enhanced face image to be identified to obtain a detail-enhanced face grayscale image to be identified; Performing a color space-based standardization process on the detail-enhanced grayscale image of the face to be identified to obtain a standardized grayscale image of the face to be identified; Evenly dividing the standardized grayscale image of the face to be identified to obtain a plurality of cell spaces; Calculating the gradient of each pixel point in each cell space of the plurality of cell spaces, and generating a plurality of cell direction gradient histograms according to the gradient distribution; A plurality of the cell directional gradient histograms are expanded and connected in series to obtain the face HOG feature vector.
4. The face recognition system based on the cloud platform four-layer architecture AFC system according to claim 3 is characterized in that: The spatial information saliency unit comprises: A weight information acquisition subunit, used for performing convolution coding and nonlinear activation processing on the face structure feature map to obtain a face structure space weight information feature map; A weight information representation subunit, used to calculate the cross-channel global mean of each pixel position in the face structure space weight information feature map along the channel dimension of the face structure space weight information feature map to obtain a face structure space weight information representation matrix; A masking subunit, configured to perform masking processing on the face structure space weight information representation matrix based on a predetermined threshold to obtain a masked face structure space weight information representation matrix; A dimension alignment subunit, used for upsampling the masked face structure spatial weight information representation matrix to obtain a dimension aligned face structure spatial weight information representation matrix; The weight application and information manifestation subunit is used to use the dimensionally aligned face structure space weight information representation matrix as the weight matrix, and respectively calculate the product between it and each feature matrix along the channel dimension of the face structure feature map to obtain the spatially significant face structure feature map.
5. The face recognition system based on the cloud platform four-layer architecture AFC system according to claim 4 is characterized in that: The weight information acquisition subunit uses a convolution kernel with a scale of 3×3 for convolution coding and uses a ReLU function for nonlinear activation processing.
6. The face recognition system based on the cloud platform four-layer architecture AFC system according to claim 5 is characterized in that: The feature dynamic interactive fusion module is used to: Inputting the face HOG feature vector and the spatially significant face structure feature vector into a feature combination module to obtain a face HOG feature-face structure significant feature combination feature vector; Inputting the face HOG feature-face structure salient feature joint feature vector into the gated response function to obtain an information fusion response gate; The response gate of the information fusion is used as a weight to calculate the position-weighted sum of the face HOG feature vector and the spatially significant face structure feature vector to obtain the face low-level-high-level feature fusion feature vector.
7. The face recognition system based on the cloud platform four-layer architecture AFC system according to claim 6 is characterized in that: The face recognition module is used to: The low-level and high-level facial feature fusion feature vector is input into a classifier-based face recognizer to obtain the face recognition result.
8. A face recognition method based on a cloud platform four-layer architecture AFC system, the face recognition method being applied to the face recognition system as claimed in claim 1, characterized in that: include: Receiving a face image to be recognized collected by a camera; Extracting facial features from the face image to be identified, and determining a face recognition result based on the facial features, wherein the face recognition result is used to indicate whether the user object to be identified is an authorized object; Among them, determining the face recognition result includes: Normalizing the contrast of the face image to be identified to obtain a detail-enhanced face image to be identified; Extracting the HOG features of the detail-enhanced face image to be identified to obtain a face HOG feature vector; Extracting the high-dimensional semantically significant features of the detail-enhanced face image to be identified to obtain a spatially significant face structure feature vector; Inputting the face HOG feature vector and the spatially significant face structure feature vector into a feature vector dynamic interactive fusion module based on gated response to obtain a face low-level-high-level feature fusion feature vector; Determine the face recognition result based on the face low-level-high-level feature fusion feature vector; Based on the face recognition result, determine whether to grant access control authority.
Citation Information
Cited By
Dynamic portrait verification and inspection result generation system based on machine learning
CN119445629A
