Reliability verification method of face recognition neural network and related equipment
By combining fMRI data with the face recognition neural network, the voxel values and features of the cerebral cortex are extracted, which verifies the reliability of the face recognition neural network, solves its uninterpretability problem, and improves the credibility of the prediction results.
Patent Information
- Application Number
- CN202410624457.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-09-03
AI Technical Summary
In the existing technology, it is difficult to verify the reliability of the prediction results of the face recognition neural network, making its decision-making process unexplainable.
By determining the voxel positions of the V1, V2, V4 and IT areas of the cerebral cortex based on fMRI data, extracting the corresponding voxel values, and using the face recognition neural network and decoding model to extract real and predicted face features, and calculate the features similarity to verify the reliability of the neural network.
It realizes the reliability verification of the face recognition neural network, improves its interpretability and ensures the credibility of the prediction results.
Smart Images

Figure CN118587535A
Abstract
Description
Technical Field
[0001] The present application relates to the field of model verification technology, and in particular to a reliability verification method and related equipment for a face recognition neural network. Background Art
[0002] Functional magnetic resonance imaging (fMRI) is a non-invasive neuroimaging technique that indirectly measures neural activity in different brain regions by measuring changes in blood oxygenation levels. When a brain region is active, its metabolic activity increases, and the surrounding blood flow also increases, leading to an increase in local blood oxygen levels. By performing fMRI scans on subjects when they are stimulated by faces, the activity of various brain regions when processing face information can be recorded. In recent years, fMRI technology has been widely used in the field of cognitive neuroscience, especially in understanding the human brain's processing of visual stimuli. Face recognition is also an important topic in today's artificial intelligence field, which involves knowledge in multiple fields such as deep learning, computer vision, and information security. Deep learning technology plays an important role in face recognition. Through the layer-by-layer abstraction of deep neural networks, feature information in face images can be effectively extracted, thereby realizing face recognition.
[0003] However, deep neural networks (i.e., deep learning-based face recognition neural networks) also face many challenges in the face recognition process. The application of deep learning in face recognition has brought great progress, but it has also triggered a series of challenges. One of them is the "black box" nature of deep neural networks, that is, the complexity and unexplainability within deep neural networks. Although these deep neural networks perform well on face recognition tasks, it is often difficult to understand their decision-making process or infer their internal operating mechanisms. This opacity may lead to difficult-to-explain prediction results, so verifying the reliability of face recognition neural networks has become an important challenge. However, there is currently a lack of methods to verify the reliability of the prediction results of face recognition neural networks. Summary of the invention
[0004] The present application provides a reliability verification method and related equipment for a face recognition neural network, the purpose of which is to solve the problem that the reliability of the prediction results of the face recognition neural network cannot be verified.
[0005] In a first aspect, an embodiment of the present application provides a reliability verification method for a face recognition neural network, the reliability verification method comprising:
[0006] The voxel locations of the cerebral cortex V1, V2, V4, and IT areas were determined based on fMRI data;
[0007] According to the determined voxel positions, the voxel values of the V1 area corresponding to the V1 area, the voxel values of the V2 area corresponding to the V2 area, the voxel values of the V4 area corresponding to the V4 area, and the voxel values of the IT area corresponding to the IT area are extracted from the fMRI data;
[0008] The facial features of the target facial image are extracted by using a facial recognition neural network; the target facial image is the facial image used when collecting fMRI data, and the facial features include the real facial features of the V1 area corresponding to the V1 area, the real facial features of the V2 area corresponding to the V2 area, the real facial features of the V4 area corresponding to the V4 area, and the real facial features of the IT area corresponding to the IT area;
[0009] The decoding model is used to extract features from the voxel values of the V1 area, the voxel values of the V2 area, the voxel values of the V4 area, and the voxel values of the IT area, respectively, to obtain the predicted face features of the V1 area corresponding to the voxel values of the V1 area, the predicted face features of the V2 area corresponding to the voxel values of the V2 area, the predicted face features of the V4 area corresponding to the voxel values of the V4 area, and the predicted face features of the IT area corresponding to the voxel values of the IT area;
[0010] According to the real face features of V1 area, the real face features of V2 area, the real face features of V4 area, the real face features of IT area, the predicted face features of V1 area, the predicted face features of V2 area, the predicted face features of V4 area and the predicted face features of IT area, the reliability of the face recognition neural network was verified and the reliability verification results were obtained.
[0011] Optionally, the voxel values of the V1 region, the voxel values of the V2 region, the voxel values of the V4 region, and the voxel values of the IT region are all a voxel feature matrix; the decoding model is used to extract features of the voxel values of the V1 region, the voxel values of the V2 region, the voxel values of the V4 region, and the voxel values of the IT region, respectively, to obtain the predicted face features of the V1 region corresponding to the voxel values of the V1 region, the predicted face features of the V2 region corresponding to the voxel values of the V2 region, the predicted face features of the V4 region corresponding to the voxel values of the V4 region, and the predicted face features of the IT region corresponding to the voxel values of the IT region, including:
[0012] The voxel values of the V1 region, the V2 region, the V4 region, and the IT region are respectively used as a target voxel feature matrix, and the following steps are performed for each target voxel feature matrix:
[0013] Calculate the mean and standard deviation of each column of data in the target voxel feature matrix;
[0014] For each column of data in the target voxel feature matrix, each data in the column of data is standardized according to the mean and standard deviation of the column of data to obtain the target voxel feature matrix after the standardized processing;
[0015] The standardized target voxel feature matrix is input into the decoding model for eigenvalue prediction to obtain the predicted facial features corresponding to the target voxel feature matrix.
[0016] Optionally, calculate the mean and standard deviation of each column of the target voxel feature matrix, including:
[0017] By formula Calculate the mean x of the jth column of the target voxel feature matrix meanj ;
[0018] By formula Calculate the standard deviation x of the jth column of the target voxel feature matrix normj ;
[0019] Among them, x ij Represents the data in the i-th row and j-th column of the target voxel feature matrix, i=1, 2, ..., m, m represents the number of rows of the target voxel feature matrix, j=1, 2, ..., n, n represents the number of columns of the target voxel feature matrix.
[0020] Optionally, each data in the column of data is standardized according to the mean and standard deviation of the column of data, including:
[0021] By formula The data of the jth column and the ith row in the target voxel feature matrix are standardized to obtain the data x of the jth column and the ith row in the target voxel feature matrix after the standardized processing. Zij .
[0022] Optionally, the reliability verification result includes a reliability verification result of facial feature extraction by the face recognition neural network on the V1 area, the V2 area, the V4 area and the IT area.
[0023] Optionally, reliability verification is performed on the face recognition neural network based on the real face features of the V1 area, the real face features of the V2 area, the real face features of the V4 area, the real face features of the IT area, the predicted face features of the V1 area, the predicted face features of the V2 area, the predicted face features of the V4 area, and the predicted face features of the IT area, to obtain reliability verification results, including:
[0024] The real face features of the V1 area and the predicted face features of the V1 area, the real face features of the V2 area and the predicted face features of the V2 area, the real face features of the V4 area and the predicted face features of the V4 area, and the real face features of the IT area and the predicted face features of the IT area are respectively used as a group of verification data, and the following steps are performed for each group of verification data:
[0025] Calculate the similarity between the real face features and the predicted face features in the set of verification data;
[0026] If the similarity is within the preset similarity range, the reliability verification result of the face recognition neural network extracting facial features from the area corresponding to the group of verification data is determined to be reliable; otherwise, the reliability verification result of the face recognition neural network extracting facial features from the area corresponding to the group of verification data is determined to be unreliable.
[0027] Optionally, the similarity between the real face features and the predicted face features in the set of verification data is calculated, including:
[0028] The Pearson coefficient is used to calculate the similarity between the real face features and the predicted face features in this set of verification data.
[0029] In a second aspect, an embodiment of the present application provides a reliability verification device for a face recognition neural network, comprising:
[0030] A determination module is used to determine the voxel locations of the V1 area, the V2 area, the V4 area and the IT area of the cerebral cortex according to the fMRI data;
[0031] A first extraction module is used to extract, from the fMRI data, a V1 region voxel value corresponding to the V1 region, a V2 region voxel value corresponding to the V2 region, a V4 region voxel value corresponding to the V4 region, and an IT region voxel value corresponding to the IT region according to the determined voxel position;
[0032] The second extraction module is used to extract facial features of a target facial image using a facial recognition neural network; the target facial image is a facial image used when collecting fMRI data, and the facial features include real facial features of the V1 area corresponding to the V1 area, real facial features of the V2 area corresponding to the V2 area, real facial features of the V4 area corresponding to the V4 area, and real facial features of the IT area corresponding to the IT area;
[0033] The third extraction module is used to use the decoding model to perform feature extraction on the voxel values of the V1 area, the voxel values of the V2 area, the voxel values of the V4 area, and the voxel values of the IT area, respectively, to obtain the predicted face features of the V1 area corresponding to the voxel values of the V1 area, the predicted face features of the V2 area corresponding to the voxel values of the V2 area, the predicted face features of the V4 area corresponding to the voxel values of the V4 area, and the predicted face features of the IT area corresponding to the voxel values of the IT area;
[0034] The verification module is used to verify the reliability of the face recognition neural network based on the real face features of the V1 area, the real face features of the V2 area, the real face features of the V4 area, the real face features of the IT area, the predicted face features of the V1 area, the predicted face features of the V2 area, the predicted face features of the V4 area and the predicted face features of the IT area, and obtain the reliability verification result.
[0035] In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned reliability verification method when executing the computer program.
[0036] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program implements the above-mentioned reliability verification method when executed by a processor.
[0037] The above solution of the present application has the following beneficial effects:
[0038] In an embodiment of the present application, the voxel positions of the V1 area, V2 area, V4 area and IT area of the cerebral cortex are determined according to the fMRI data, and then the V1 area voxel value corresponding to the V1 area, the V2 area voxel value corresponding to the V2 area, the V4 area voxel value corresponding to the V4 area and the IT area voxel value corresponding to the IT area are extracted from the fMRI data according to the determined voxel positions. Then, a face recognition neural network is used to perform feature extraction on the face image used to collect the fMRI data to obtain real face features corresponding to the V1 area, V2 area, V4 area and IT area. At the same time, a decoding model is used to perform feature extraction on the voxel values of the V1 area, V2 area, V4 area and IT area to obtain predicted face features of the V1 area, V2 area, V4 area and IT area. Finally, the real face features and predicted face features of the V1 area, V2 area, V4 area and IT area are analyzed, so as to realize the reliability verification of the face recognition neural network.
[0039] In addition, the analysis of real facial features and predicted facial features based on areas V1, V2, V4, and IT can also improve the interpretability of face recognition neural networks.
[0040] Other beneficial effects of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0042] Figure 1 A flowchart of a method for verifying the reliability of a face recognition neural network provided in one embodiment of the present application;
[0043] Figure 2 A schematic diagram of a sagittal image of voxel positions provided in an embodiment of the present application;
[0044] Figure 3 A schematic diagram of a coronal image of voxel positions provided in an embodiment of the present application;
[0045] Figure 4 A schematic diagram of a transverse image of a voxel position provided in an embodiment of the present application;
[0046] Figure 5 A schematic diagram of the structure of a reliability verification device for a face recognition neural network provided in one embodiment of the present application;
[0047] Figure 6 A schematic diagram of the structure of a terminal device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0048] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0049] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0050] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0051] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0052] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0053] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0054] In view of the problem that the reliability of the prediction results of the existing face recognition neural network cannot be verified, an embodiment of the present application provides a reliability verification method for a face recognition neural network. The verification method determines the voxel positions of the V1 area, V2 area, V4 area and IT area of the cerebral cortex according to the fMRI data, and then extracts the V1 area voxel value corresponding to the V1 area, the V2 area voxel value corresponding to the V2 area, the V4 area voxel value corresponding to the V4 area and the IT area voxel value corresponding to the IT area from the fMRI data according to the determined voxel position, and then uses the face recognition neural network to extract features of the face image used to collect the fMRI data to obtain the real face features corresponding to the V1 area, V2 area, V4 area and IT area, and at the same time uses the decoding model to extract features of the voxel values of the V1 area, V2 area, V4 area and IT area to obtain the predicted face features of the V1 area, V2 area, V4 area and IT area, and finally analyzes the real face features and predicted face features of the V1 area, V2 area, V4 area and IT area, so as to realize the reliability verification of the face recognition neural network.
[0055] In addition, the analysis of real facial features and predicted facial features based on areas V1, V2, V4, and IT can also improve the interpretability of face recognition neural networks.
[0056] The reliability verification method of the face recognition neural network provided in the embodiment of the present application is exemplarily described below in conjunction with specific embodiments.
[0057] like Figure 1 As shown, the reliability verification method of the face recognition neural network provided in the embodiment of the present application includes the following steps:
[0058] Step 11, determining the voxel locations of the V1 area, V2 area, V4 area and IT area of the cerebral cortex based on the fMRI data.
[0059] The above fMRI data are obtained by performing fMRI scans on subjects when face images are used to stimulate the subjects, including the activities of various brain regions when processing face information.
[0060] The steps of determining the voxel locations of the cerebral cortex V1 area, V2 area, V4 area and IT area according to fMRI data specifically include:
[0061] The first step is to preprocess the fMRI data: Specifically, the original fMRI data can be time-corrected by the Slice timing function in the spm12 tool; the fMRI data that has been time-corrected can be corrected for head motion by using the Realign function in the spm12 tool; the fMRI data that has been corrected for head motion can be spatially registered by using the Coregister function in the spm12 tool, and the preprocessing operation can be completed. Among them, when performing time correction, it is necessary to select the corresponding data file, set the number of slices on the whole brain (Number of Slices), the repetition time (TR)-the time interval between each complete fMRI scan, the acquisition time (TA)-the actual acquisition time of each slice in each fMRI data scanning process, the specific calculation formula is: TA=TR-(TR / Number of Slices), the scanning order (Slice order), select the reference slice (Reference Slice) to be used as the reference for correction, and then start time correction. When performing head motion correction, it is necessary to set the selection to align to the average image, and then perform head motion correction. When performing spatial registration, set the reference image to a high-quality structural image, select the source image to be the average functional image calculated by head motion correction, select other images to be the face fMRI data after head motion correction, and then perform spatial registration.
[0062] The second step is to determine the voxel positions of the cerebral cortex V1, V2, V4 and IT areas based on the preprocessed fMRI data. Specifically, the first-order level analysis of the preprocessed fMRI data is performed through the Specify lst-level function in the spm12 tool to obtain the voxel positions of the brain that are significantly activated to the face, and according to the distribution positions of the V1, V2, V4 and IT areas in the prior knowledge, these voxel positions are divided into the corresponding V1, V2, V4 and IT areas, and the voxel positions of the cerebral cortex V1, V2, V4 and IT areas are obtained.
[0063] Exemplarily, in order to avoid too many voxels, the 500 most relevant voxels with the largest activation values are selected for each brain region (ie, V1, V2, V4, and IT).
[0064] It should be noted that when conducting first-order level analysis, the model is first defined: select the preprocessed data as the analysis data, set the repetition time (TR), set the calculation in seconds, select the scanning interval, set the condition name, timestamp and duration, and set the basis function (Basis Function) to CanonicalHRF function, and then run to get the mat file of the defined model; then perform conditional calculation: use the Model estimation function in the spm12 tool to perform conditional calculation on the defined model; then perform conditional comparison and result display: use the Results function in the spm12 tool to perform conditional comparison and result display, select the mat file of the defined model, choose to use t-test for statistical test, fill in the conditional weight, and finally select multiple correction and then perform conditional analysis. The result display of voxel position is as shown in the figure Figures 2 to 4 As shown; finally, the voxels with obvious activation were divided into the corresponding V1, V2, V4 and IT brain areas according to their locations.
[0065] Step 12, based on the determined voxel positions, extracting from the fMRI data the V1 region voxel value corresponding to the V1 region, the V2 region voxel value corresponding to the V2 region, the V4 region voxel value corresponding to the V4 region, and the IT region voxel value corresponding to the IT region.
[0066] In some embodiments of the present application, in order to facilitate the accuracy of data processing and analysis, after the voxel values of each brain area (i.e., V1 area, V2 area, V4 area and IT area) are extracted, each voxel value needs to be standardized so that the standardized voxel values can be used for subsequent verification and analysis.
[0067] Specifically, the voxel values corresponding to the V1 area, V2 area, V4 area and IT area are standardized:
[0068] By formula:
[0069]
[0070] Calculate the standardized data x * ; where μ is the mean value of the data, σ is the standard deviation of the data, x is the original data, x *is the data after x is standardized. Specifically, when the voxel value corresponding to the V1 area is standardized, x is a voxel value among all the voxel values corresponding to the V1 area, μ is the average value of all the voxel values corresponding to the V1 area, and σ is the standard deviation of all the voxel values corresponding to the V1 area; when the voxel value corresponding to the V2 area is standardized, x is a voxel value among all the voxel values corresponding to the V2 area, μ is the average value of all the voxel values corresponding to the V2 area, and σ is the standard deviation of all the voxel values corresponding to the V2 area; when the voxel value corresponding to the V4 area is standardized, x is a voxel value among all the voxel values corresponding to the V4 area, μ is the average value of all the voxel values corresponding to the V4 area, and σ is the standard deviation of all the voxel values corresponding to the V4 area; when the voxel value corresponding to the IT area is standardized, x is a voxel value among all the voxel values corresponding to the IT area, μ is the average value of all the voxel values corresponding to the IT area, and σ is the standard deviation of all the voxel values corresponding to the IT area.
[0071] Step 13, using a face recognition neural network to extract facial features of the target face image.
[0072] The above-mentioned target face image is the face image used when collecting fMRI data, and the face features include the real face features of the V1 area corresponding to the V1 area, the real face features of the V2 area corresponding to the V2 area, the real face features of the V4 area corresponding to the V4 area, and the real face features of the IT area corresponding to the IT area.
[0073] In some embodiments of the present application, the above-mentioned face recognition neural network can be any deep learning model for face recognition, such as using the deep neural network CORnet-S to extract real facial features of the target face image.
[0074] For example, the deep neural network CORnet-S consists of four regions, which are pre-mapped to the ventral stream of the cerebral cortex V1, V2, V4 and IT areas, simulating the ventral visual pathway of the brain, extracting feature values from the V1, V2, V4 and IT areas, and obtaining the V1 area corresponding to the real face feature V1 COR , V2 area corresponding to the real face feature V2 COR , V4 area corresponding to the real face feature V4 COR And the IT area corresponding to the IT area real face features IT COR It should be noted that since the number of features extracted from each region is too large, the principal component analysis method (PCA) can be used to reduce the dimension of the real face features in the V1 area, the real face features in the V2 area, the real face features in the V4 area, and the real face features in the IT area, and 1000 features are retained in each area.
[0075] It is understandable that in practical applications, the real face features in area V1 COR , V2 area real face features V2 COR , V4 area real face features V4 COR And the real face features of IT area COR The expression form of can be a matrix.
[0076] Step 14, using the decoding model to extract features of the V1 area voxel values, the V2 area voxel values, the V4 area voxel values and the IT area voxel values, to obtain the V1 area predicted facial features corresponding to the V1 area voxel values, the V2 area predicted facial features corresponding to the V2 area voxel values, the V4 area predicted facial features corresponding to the V4 area voxel values and the IT area predicted facial features corresponding to the IT area voxel values.
[0077] Among them, the voxel values of the V1 area, the voxel values of the V2 area, the voxel values of the V4 area, and the voxel values of the IT area are all a voxel feature matrix.
[0078] In some embodiments of the present application, the predicted face features of the V1 region corresponding to the voxel values of the V1 region, the predicted face features of the V2 region corresponding to the voxel values of the V2 region, the predicted face features of the V4 region corresponding to the voxel values of the V4 region, and the predicted face features of the IT region corresponding to the voxel values of the IT region can be obtained by the following steps:
[0079] The voxel values of the V1 region, the V2 region, the V4 region, and the IT region are respectively used as a target voxel feature matrix, and the following steps are performed for each target voxel feature matrix:
[0080] In the first step, the mean and standard deviation of each column of data in the target voxel feature matrix are calculated.
[0081] Specifically, through the formula Calculate the mean x of the jth column of the target voxel feature matrix meanj ;
[0082] By formula Calculate the standard deviation x of the jth column of the target voxel feature matrix normj ;
[0083] Among them, x ij Represents the data in the i-th row and j-th column of the target voxel feature matrix, i=1, 2, ..., m, m represents the number of rows of the target voxel feature matrix, j=1, 2, ..., n, n represents the number of columns of the target voxel feature matrix.
[0084] In the second step, for each column of data in the target voxel feature matrix, each data in the column of data is standardized according to the mean and standard deviation of the column of data to obtain the standardized target voxel feature matrix.
[0085] Specifically, the formula The data of the jth column and the ith row in the target voxel feature matrix are normalized to obtain the data x of the jth column and the ith row in the target voxel feature matrix after normalization. Zij .
[0086] The third step is to input the standardized target voxel feature matrix into the decoding model for eigenvalue prediction to obtain the predicted facial features corresponding to the target voxel feature matrix.
[0087] The above decoding model may be a sparse estimation function linear_map_sparse_cov in the SLR tool. The sparse estimation function is a function in the SLR tool for decoding an image. Since it is a commonly used function in the SLR tool, it will not be described in detail here.
[0088] For example, the standardized target voxel feature matrix T test Input into the trained decoding model to obtain the standardized target voxel feature matrix T test The corresponding predicted face feature matrix T pred (i.e. predicting facial features), Where a represents the number of rows in the predicted face feature matrix, b represents the number of rows in the predicted face feature matrix, T P11 Indicates T pred The data in row 1 and column 1, T P1b Indicates T pred The data in row 1 and column b in T Pa1 Indicates T pred The data in row a and column 1, T Pab Indicates T pred The data in row a and column b.
[0089] It should be noted that before using the decoding model to predict eigenvalues, the above decoding model is trained. The purpose of the training is to enable the decoding model to establish a relationship between the voxel feature matrix and the real face feature matrix extracted by the face recognition neural network, so that it can predict eigenvalues based on the voxel feature matrix and obtain the corresponding predicted face features.
[0090] In some embodiments of the present application, the training process of the above decoding model is as follows:
[0091] Step 1: Use the methods of steps 11 and 12 above to extract the voxel feature matrix X of a certain brain area (here, V1 area is taken as an example), and use the methods of the first and second steps in step 14 above to obtain the mean vector X mean , standard deviation vector X norm, the voxel feature matrix X after normalization train .
[0092] X mean =[x mean1 ,…,x meann ], X norm =[x norm1 ,…,x normn ],
[0093] X mn is the data in the mth row and nth column of X, where m is the number of rows in X, n is the number of columns in X, and x meann is the mean of the nth column of data in X, x normn is the standard deviation of the nth column of data in X, X Zmn is the data in the mth row and nth column of X after standardized processing.
[0094] Step 2: Using the method of step 13 above, a face recognition neural network is used to extract the corresponding real face features of the V1 area (in practical applications, the representation of the real face features is an eigenvalue matrix Y), and the matrix Y is processed using the processing method of X in step 1 above to obtain the corresponding mean vector Y mean , standard deviation vector Y norm , the eigenvalue matrix Y after standardization train .
[0095]
[0096]
[0097] Y ij is the data in the i-th row and j-th column of Y, i is the number of rows in Y, j is the number of columns in Y, and Y Zij is the data in the i-th row and j-th column of Y after standardized processing.
[0098] Step 3: Convert the voxel feature matrix X train The eigenvalue matrix Ytrain is transposed as the training data input of the decoding model, and the number of training times, the number of voxels in the brain area, and X mean , X norm , Y mean , and Y normAs the model parameter input, the weight matrix W, weight variance SW, noise variance SY and the hyperparameter A of the updated auto-correlation prior (ARD) are continuously updated and adjusted during the model calculation process. When the number of training times is reached, the training will be stopped, and the model's weight matrix W, weight variance SW, noise variance SY and the hyperparameter A of the updated auto-correlation prior (ARD) will be saved as the output of the decoding model, and the trained decoding model will be updated based on the values of these outputs.
[0099] Step 15, based on the real face features of the V1 area, the real face features of the V2 area, the real face features of the V4 area, the real face features of the IT area, the predicted face features of the V1 area, the predicted face features of the V2 area, the predicted face features of the V4 area and the predicted face features of the IT area, the reliability of the face recognition neural network is verified to obtain a reliability verification result.
[0100] The above reliability verification results include the reliability verification results of the face recognition neural network extracting facial features from the V1 area, V2 area, V4 area and IT area.
[0101] It should be noted that since the decoding model is pre-trained using sample data, it can output predicted facial features that are consistent with the brain's visual information processing process. Therefore, the reliability of the face recognition neural network can be verified by comparing the similarity between the output of the decoding model and the output of the face recognition neural network.
[0102] In some embodiments of the present application, the face recognition neural network is verified for reliability based on the real face features of the V1 area, the real face features of the V2 area, the real face features of the V4 area, the real face features of the IT area, the predicted face features of the V1 area, the predicted face features of the V2 area, the predicted face features of the V4 area, and the predicted face features of the IT area. The specific implementation method for obtaining the reliability verification result includes the following steps:
[0103] The real face features of the V1 area and the predicted face features of the V1 area, the real face features of the V2 area and the predicted face features of the V2 area, the real face features of the V4 area and the predicted face features of the V4 area, and the real face features of the IT area and the predicted face features of the IT area are respectively used as a group of verification data, and the following steps are performed for each group of verification data:
[0104] The first step is to calculate the similarity between the real face features and the predicted face features in the set of verification data.
[0105] The real facial features and predicted facial features in the above-mentioned group of verification data may be: the real facial features of the V1 area and the predicted facial features of the V1 area, or the real facial features of the V2 area and the predicted facial features of the V2 area, or the real facial features of the V4 area and the predicted facial features of the V4 area, or the real facial features of the IT area and the predicted facial features of the IT area.
[0106] In some embodiments of the present application, the Pearson coefficient may be used to calculate the similarity between the real facial features and the predicted facial features in the set of verification data.
[0107] Here, the similarity calculation process of the first row of data of the real face features and the predicted face features is taken as an example to illustrate the similarity between the real face features and the predicted face features. Specifically, the formula:
[0108]
[0109] Calculate the Pearson correlation coefficient R1 (i.e. the similarity between the first row of data of the real face features and the predicted face features), T P1i Represents the i-th feature vector of the first row in the predicted face feature, T R1i Represents the i-th feature vector of the first row in the real face feature, and They represent the average value of the first row of data in the predicted face features and the average value of the first row of data in the real face features, Σ represents the sum of all values, and b represents the number of the first row of data of the real face features and the predicted face features.
[0110] After calculating the similarity of the first row of data using the above method to calculate the similarity of other rows of data, the mean value R of all the similarities calculated can be mean As the similarity between the real face features and the predicted face features in this group of verification data.
[0111] In the second step, if the similarity is within the preset similarity range, the reliability verification result of the face recognition neural network extracting face features for the area corresponding to the group of verification data is determined to be reliable; otherwise, the reliability verification result of the face recognition neural network extracting face features for the area corresponding to the group of verification data is determined to be unreliable.
[0112] In some embodiments of the present application, the calculated similarity R mean The value range is between -1 and 1. mean When it is close to 1, it means that the two variables (i.e., the real face features and the predicted face features in a set of verification data) are positively correlated; when R mean When it is close to -1, it means that the two variables are negatively correlated; when R mean When it is close to 0, it means there is no linear relationship between the two variables. mean The size of the face recognition neural network is used to determine the similarity between the real face features and the predicted face features, thereby verifying the performance of the face recognition neural network and whether it is reliable.
[0113] In some embodiments of the present application, the preset similarity range may be greater than 0.6 and less than or equal to 1. Correspondingly, when the similarity R between the real face features and the predicted face features in a set of verification data is calculated, mean When the value is greater than 0.6, it means that the brain area has a strong correlation with the features of this layer, and the modeling of the neural network of this layer is reasonable and in line with the brain's visual information processing process. COR The similarity between mean >0.6, it is considered that V1 COR There is a strong correlation between the face recognition neural network and the V1 brain area. The modeling of the visual information process of the brain area V1 by the face recognition neural network is reasonable. The modeling of the brain area V1 by the face recognition neural network is reliable and in line with the processing flow of the human visual area. That is, the reliability verification result of the face recognition neural network for extracting face features from the V1 area is reliable. On the contrary, if R mean <0.6, then the reliability verification result of the face recognition neural network extracting face features from the V1 area is determined to be unreliable.
[0114] In summary, the reliability verification method of the present application utilizes the facial fMRI voxel information of the brain's visual ventral pathway and combines it with a deep neural network (i.e., the above-mentioned face recognition neural network) to extract real facial image features. The constructed decoding model is trained using these two sets of data, and finally the real eigenvalues of the facial fMRI voxel information are predicted by the trained decoding model. The correlation between the predicted eigenvalues and the real eigenvalues is calculated to judge the reliability of the deep neural network construction and improve its interpretability.
[0115] The following is an exemplary description of the face recognition neural network reliability verification device provided in this application.
[0116] like Figure 5 As shown, the embodiment of the present application provides a face recognition neural network reliability verification device, and the face recognition neural network reliability verification device 500 includes:
[0117] A determination module 501 is used to determine the voxel positions of the cerebral cortex V1 area, V2 area, V4 area and IT area according to the fMRI data;
[0118] A first extraction module 502 is used to extract, from the fMRI data, a V1 region voxel value corresponding to the V1 region, a V2 region voxel value corresponding to the V2 region, a V4 region voxel value corresponding to the V4 region, and an IT region voxel value corresponding to the IT region according to the determined voxel position;
[0119] The second extraction module 503 is used to extract facial features of a target facial image using a facial recognition neural network; the target facial image is a facial image used when collecting fMRI data, and the facial features include real facial features of the V1 area corresponding to the V1 area, real facial features of the V2 area corresponding to the V2 area, real facial features of the V4 area corresponding to the V4 area, and real facial features of the IT area corresponding to the IT area;
[0120] The third extraction module 504 is used to extract features from the voxel values of the V1 region, the voxel values of the V2 region, the voxel values of the V4 region, and the voxel values of the IT region respectively using the decoding model to obtain the predicted face features of the V1 region corresponding to the voxel values of the V1 region, the predicted face features of the V2 region corresponding to the voxel values of the V2 region, the predicted face features of the V4 region corresponding to the voxel values of the V4 region, and the predicted face features of the IT region corresponding to the voxel values of the IT region;
[0121] The verification module 505 is used to verify the reliability of the face recognition neural network based on the real face features of the V1 area, the real face features of the V2 area, the real face features of the V4 area, the real face features of the IT area, the predicted face features of the V1 area, the predicted face features of the V2 area, the predicted face features of the V4 area and the predicted face features of the IT area to obtain a reliability verification result.
[0122] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0123] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0124] like Figure 6 As shown, an embodiment of the present application provides a terminal device. The terminal device D10 of this embodiment includes: at least one processor D100 ( Figure 6Only one processor is shown in the figure), a memory D101, and a computer program D102 stored in the memory D101 and executable on the at least one processor D100, wherein the processor D100 implements the steps of any of the above-mentioned method embodiments when executing the computer program D102.
[0125] Specifically, when the processor D100 executes the computer program D102, the voxel positions of the V1 area, V2 area, V4 area and IT area of the cerebral cortex are determined according to the fMRI data, and then the voxel value of the V1 area corresponding to the V1 area, the voxel value of the V2 area corresponding to the V2 area, the voxel value of the V4 area corresponding to the V4 area and the voxel value of the IT area corresponding to the IT area are extracted from the fMRI data according to the determined voxel positions. Then, a face recognition neural network is used to perform feature extraction on the face image used to collect the fMRI data to obtain real face features corresponding to the V1 area, V2 area, V4 area and IT area. At the same time, a decoding model is used to perform feature extraction on the voxel values of the V1 area, V2 area, V4 area and IT area to obtain predicted face features of the V1 area, V2 area, V4 area and IT area. Finally, the real face features and predicted face features of the V1 area, V2 area, V4 area and IT area are analyzed to realize the reliability verification of the face recognition neural network.
[0126] The processor D100 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0127] In some embodiments, the memory D101 may be an internal storage unit of the terminal device D10, such as a hard disk or memory of the terminal device D10. In other embodiments, the memory D101 may also be an external storage device of the terminal device D10, such as a plug-in hard disk, a smart memory card (SMC, SmartMedia Card), a secure digital (SD, Secure Digital) card, a flash card (Flash Card), etc. equipped on the terminal device D10. Further, the memory D101 may also include both an internal storage unit of the terminal device D10 and an external storage device. The memory D101 is used to store an operating system, an application program, a boot loader (BootLoader), data and other programs, such as the program code of the computer program, etc. The memory D101 may also be used to temporarily store data that has been output or is to be output.
[0128] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0129] An embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0130] 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 storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium that can carry the computer program code to the reliability verification method device / terminal device of the face recognition neural network. For example, a USB flash drive, a mobile hard disk, a disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0131] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0132] 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 herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0133] The above is a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles described in the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A reliability verification method for a face recognition neural network, characterized in that: include: The voxel locations of the cerebral cortex V1, V2, V4, and IT areas were determined based on fMRI data; According to the determined voxel positions, extracting from the fMRI data a V1 region voxel value corresponding to the V1 region, a V2 region voxel value corresponding to the V2 region, a V4 region voxel value corresponding to the V4 region, and an IT region voxel value corresponding to the IT region; Extracting facial features of a target facial image using a facial recognition neural network; the target facial image is a facial image used when collecting the fMRI data, and the facial features include real facial features of the V1 area corresponding to the V1 area, real facial features of the V2 area corresponding to the V2 area, real facial features of the V4 area corresponding to the V4 area, and real facial features of the IT area corresponding to the IT area; Using the decoding model, feature extraction is performed on the voxel values of the V1 area, the voxel values of the V2 area, the voxel values of the V4 area, and the voxel values of the IT area, respectively, to obtain the predicted face features of the V1 area corresponding to the voxel values of the V1 area, the predicted face features of the V2 area corresponding to the voxel values of the V2 area, the predicted face features of the V4 area corresponding to the voxel values of the V4 area, and the predicted face features of the IT area corresponding to the voxel values of the IT area; According to the real facial features of the V1 area, the real facial features of the V2 area, the real facial features of the V4 area, the real facial features of the IT area, the predicted facial features of the V1 area, the predicted facial features of the V2 area, the predicted facial features of the V4 area and the predicted facial features of the IT area, the reliability of the face recognition neural network is verified to obtain a reliability verification result.
2. The reliability verification method according to claim 1, characterized in that: The V1 region voxel values, the V2 region voxel values, the V4 region voxel values, and the IT region voxel values are all a voxel feature matrix; the decoding model is used to extract features of the V1 region voxel values, the V2 region voxel values, the V4 region voxel values, and the IT region voxel values, respectively, to obtain the V1 region predicted face features corresponding to the V1 region voxel values, the V2 region predicted face features corresponding to the V2 region voxel values, the V4 region predicted face features corresponding to the V4 region voxel values, and the IT region predicted face features corresponding to the IT region voxel values, including: The voxel value of the V1 region, the voxel value of the V2 region, the voxel value of the V4 region, and the voxel value of the IT region are respectively used as a target voxel feature matrix, and the following steps are performed for each target voxel feature matrix: Calculate the mean and standard deviation of each column of data in the target voxel feature matrix; For each column of data in the target voxel feature matrix, standardize each data in the column of data according to the mean and standard deviation of the column of data to obtain a target voxel feature matrix after standardization; The standardized target voxel feature matrix is input into the decoding model for eigenvalue prediction to obtain the predicted facial features corresponding to the target voxel feature matrix.
3. The reliability verification method according to claim 2, characterized in that: The calculating the mean and standard deviation of each column of data in the target voxel feature matrix includes: By formula Calculate the mean x of the jth column of the target voxel feature matrix meanj ; By formula Calculate the standard deviation x of the jth column of the target voxel feature matrix normj ; Among them, x ij Represents the data in the i-th row and j-th column of the target voxel feature matrix, i=1, 2, ..., m, m represents the number of rows of the target voxel feature matrix, j=1, 2, ..., n, n represents the number of columns of the target voxel feature matrix.
4. The reliability verification method according to claim 2, characterized in that: The step of performing standardization processing on each data in the column of data according to the mean and standard deviation of the column of data includes: By formula The data of the jth column and the ith row in the target voxel feature matrix are normalized to obtain the data x of the jth column and the ith row in the target voxel feature matrix after normalization. Zij .
5. The reliability verification method according to claim 1, characterized in that: The reliability verification result includes the reliability verification result of the face recognition neural network performing face feature extraction on the V1 area, the V2 area, the V4 area and the IT area.
6. The reliability verification method according to claim 1, characterized in that: The reliability verification of the face recognition neural network is performed based on the real face features of the V1 area, the real face features of the V2 area, the real face features of the V4 area, the real face features of the IT area, the predicted face features of the V1 area, the predicted face features of the V2 area, the predicted face features of the V4 area and the predicted face features of the IT area to obtain a reliability verification result, including: The real face features of the V1 area and the predicted face features of the V1 area, the real face features of the V2 area and the predicted face features of the V2 area, the real face features of the V4 area and the predicted face features of the V4 area, and the real face features of the IT area and the predicted face features of the IT area are respectively used as a group of verification data, and the following steps are performed for each group of verification data: Calculate the similarity between the real face features and the predicted face features in the set of verification data; If the similarity is within a preset similarity range, the reliability verification result of the face recognition neural network extracting face features from the area corresponding to the group of verification data is determined to be reliable; otherwise, the reliability verification result of the face recognition neural network extracting face features from the area corresponding to the group of verification data is determined to be unreliable.
7. The reliability verification method according to claim 6, characterized in that: The calculating the similarity between the real face features and the predicted face features in the set of verification data includes: The Pearson coefficient is used to calculate the similarity between the real face features and the predicted face features in this set of verification data.
8. A reliability verification device for a face recognition neural network, characterized in that: include: A determination module is used to determine the voxel locations of the V1 area, the V2 area, the V4 area and the IT area of the cerebral cortex according to the fMRI data; A first extraction module is used to extract, from the fMRI data, a V1 region voxel value corresponding to the V1 region, a V2 region voxel value corresponding to the V2 region, a V4 region voxel value corresponding to the V4 region, and an IT region voxel value corresponding to the IT region according to the determined voxel position; A second extraction module is used to extract facial features of a target facial image using a facial recognition neural network; the target facial image is a facial image used when collecting the fMRI data, and the facial features include real facial features of the V1 area corresponding to the V1 area, real facial features of the V2 area corresponding to the V2 area, real facial features of the V4 area corresponding to the V4 area, and real facial features of the IT area corresponding to the IT area; A third extraction module is used to perform feature extraction on the V1 region voxel value, the V2 region voxel value, the V4 region voxel value and the IT region voxel value respectively using a decoding model to obtain the V1 region predicted face feature corresponding to the V1 region voxel value, the V2 region predicted face feature corresponding to the V2 region voxel value, the V4 region predicted face feature corresponding to the V4 region voxel value and the IT region predicted face feature corresponding to the IT region voxel value; The verification module is used to verify the reliability of the face recognition neural network according to the real face features of the V1 area, the real face features of the V2 area, the real face features of the V4 area, the real face features of the IT area, the predicted face features of the V1 area, the predicted face features of the V2 area, the predicted face features of the V4 area and the predicted face features of the IT area, and obtain a reliability verification result.
9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the reliability verification method of the face recognition neural network as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the reliability verification method of the face recognition neural network as described in any one of claims 1 to 7 is implemented.
