Multi-modal face attack detection method and device, electronic equipment and storage medium

By combining cloud network behavior data and face image data on mobile terminals, deep networks are used for multi-modal face attack detection, which solves the problem of insufficient data collection and accuracy in mobile scenarios and achieves efficient and credible attacks. detection.

CN118797600AActive Publication Date: 2024-10-18CHINA MOBILE FINANCIAL TECHNOLOGY CO LTD +1

Patent Information

Application Number
CN202310947254.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-28
Publication Date
2024-10-18
Estimated Expiration
2043-07-28

AI Technical Summary

Technical Problem

In mobile scenarios, multi-modal face attack detection technology is difficult to effectively collect multi-dimensional data, and existing technology has deficiencies in accuracy and cost, making it difficult to adapt to the needs of mobile terminals.

Method used

By combining the cloud network behavior data of mobile Internet users with face image data, the anomaly perception matrix is ​​used to generate a deep network and a multi-modal anomaly risk measurement deep network, and a multi-modal anomaly perception data matrix and risk measurement vector are generated, and based on The dynamic threshold selects multiple face attack detection models for detection to achieve face attack detection.

Benefits of technology

It solves the problem of difficulty in multi-dimensional data collection in mobile scenarios, improves the accuracy and credibility of face attack detection, reduces detection complexity and cost, and is suitable for mobile terminal applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118797600A_ABST
    Figure CN118797600A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-mode face attack detection method and device, electronic equipment and a storage medium, and relates to the technical field of face recognition. The multi-modal face attack detection method comprises the following steps: inputting an initial matrix corresponding to multi-modal data combined by cloud network end behavior data and face image data of a mobile internet user into an anomaly perception matrix to generate a deep network, and obtaining a multi-modal anomaly perception data matrix; inputting the multi-modal anomaly perception data matrix into a multi-modal anomaly risk measurement deep network to generate a risk measurement vector; determining a dynamic threshold according to a fuzzy calculation rule, the risk metric vector and a reference threshold; selecting a plurality of face attack detection models for detection according to the dynamic threshold, and obtaining the attack probability of each face attack detection model; and determining an attack detection result based on each attack probability and the dynamic threshold. According to the invention, the technical problem of difficulty in multi-dimensional data acquisition in multi-modal face attack detection in a mobile scene is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of face recognition technology, and in particular to a multimodal face attack detection method, device, electronic device and storage medium. Background Art

[0002] Facial attack detection technology is a core key technology in the field of trusted face authentication. It is mainly used to defend against face recognition. Criminals use photos, reshot videos, masks, etc. of the attacked person to carry out fake face attacks, or use tools such as face-changing software to carry out deep video forgery attacks, or add disturbance noise to guide the system to misrecognize face images. Deep adversarial attacks have created major risks to public safety, economic security, information security, personal privacy and even national political security.

[0003] Current facial attack detection technologies can be divided into visible light, near infrared, short-wave infrared and other anti-attack technologies. On the other hand, according to different data types, existing facial attack detection models can be divided into two technical routes: single-modal and multi-modal. Single-modal data and multi-modal data are used for facial attack detection respectively. Among them, multi-modal data facial attack detection technology has higher precision and accuracy. However, facial attack detection through multi-modal data in mobile scenarios also requires specific sensors, such as depth, near-infrared, and light field cameras to capture data. These devices are relatively expensive, and many users do not have such sensors on their mobile devices. The above-mentioned technical means of multi-modal data facial attack detection are also difficult to be effectively implemented in mobile scenarios. Summary of the invention

[0004] The main purpose of this application is to provide a multimodal face attack detection method, device, electronic device and storage medium, aiming to solve the technical problem of difficulty in multi-dimensional data collection of multimodal face attack detection solutions in mobile scenarios.

[0005] To achieve the above objectives, the present application provides a multimodal face attack detection method, the multimodal face attack detection method comprising: Input the initial matrices corresponding to the multi-modal data of the cloud-network-end behavior data and the face image data of the mobile Internet user into the preset abnormal perception matrix generation deep network to obtain the multi-modal abnormal perception data matrix; Inputting the multimodal anomaly perception data matrix into a preset multimodal anomaly risk measurement deep network to generate a risk measurement vector; Determining a dynamic threshold value according to a preset fuzzy calculation rule, the risk measurement vector and a preset reference threshold value; Selecting multiple face attack detection models according to the dynamic threshold to detect the face image data, and obtaining attack probabilities corresponding to the face attack detection models; An attack detection result is determined based on the attack probabilities respectively corresponding to the face attack detection models and the dynamic threshold.

[0006] Optionally, the multimodal data includes at least terminal data, location data, communication data, network data and face image data, the abnormality perception matrix generation deep network includes at least a first sub-network, a second sub-network, a third sub-network, a fourth sub-network and a fifth sub-network, and the multimodal abnormality perception data matrix includes at least a terminal abnormality perception vector, a location abnormality perception vector, a communication abnormality perception vector, a network abnormality perception vector and a face abnormality perception vector; The step of inputting the initial matrices corresponding to the multimodal data of the cloud network terminal behavior data and the face image data of the mobile Internet user into the preset abnormal perception matrix generation deep network to obtain the multimodal abnormal perception data matrix includes: Preprocessing the collected multimodal data to generate initial matrices corresponding to each modality data, wherein the initial matrices include at least a first initial matrix, a second initial matrix, a third initial matrix, a fourth initial matrix, and a fifth initial matrix; Compare the historical state and the current state of the first initial matrix corresponding to the terminal data and the second initial matrix corresponding to the position data respectively through the first sub-network and the second sub-network to obtain the terminal anomaly perception vector and the position anomaly perception vector corresponding to the terminal data and the position data respectively; Calculating the correlation between the time series and the absolute value in the third initial matrix corresponding to the communication data and the abnormal behavior through the third sub-network to obtain a communication anomaly perception vector corresponding to the communication data; Calculating the correlation between each application and the number of accesses and abnormal behavior in the fourth initial matrix corresponding to the network data through the fourth sub-network to obtain a network anomaly perception vector of the network data pair; The image features in the fifth initial matrix corresponding to the facial image data are extracted through the fifth sub-network and the image features are calculated to obtain the facial anomaly perception vector corresponding to the facial image data.

[0007] Optionally, the step of comparing the historical state and the current state of the first initial matrix corresponding to the terminal data and the second initial matrix corresponding to the position data respectively through the first sub-network and the second sub-network to obtain the terminal anomaly perception vector and the position anomaly perception vector corresponding to the terminal data and the position data respectively includes: Perform word vectorization on the first initial matrix and the second initial matrix respectively to obtain corresponding two-dimensional matrices; Inputting each of the two-dimensional matrices into a preset low-level feature calculation network to obtain a plurality of feature maps corresponding to the first initial matrix and the second initial matrix respectively; Each of the feature maps is input into a preset fully connected network to obtain a terminal anomaly perception vector and a position anomaly perception vector.

[0008] Optionally, the multimodal abnormal risk measurement deep network includes at least a forward discriminant network, a reverse discriminant network and a forward and reverse competitive decision network, and the risk measurement vector includes at least a forward discriminant score, a reverse discriminant score and an abnormal risk probability, wherein the forward discriminant network and the reverse discriminant network are trained by samples consisting of normal users and samples consisting of abnormal users, respectively; The step of inputting the multimodal anomaly perception data matrix into a preset multimodal anomaly risk measurement deep network to generate a risk measurement vector comprises: Inputting the multimodal abnormality perception data matrix into a forward discriminant network and a reverse discriminant network respectively to obtain a forward feature map, a reverse feature map, a forward discriminant score, and a reverse discriminant score; Inputting the forward feature graph and the reverse feature graph into a forward and reverse competitive decision network to obtain an abnormal risk probability; A risk measurement vector is constructed according to the positive discriminant score, the negative discriminant score, and the abnormal risk probability.

[0009] Optionally, before the step of inputting the multimodal abnormality perception data matrix into a forward discriminant network and a reverse discriminant network respectively to obtain a forward feature map, a reverse feature map, a forward discriminant score, and a reverse discriminant score, the method further includes: The multimodal anomaly perception data matrix corresponding to the training sample set is processed into blocks and converted into a corresponding linear embedding sequence; Inputting the linear embedding sequence into three preset linear transformation matrices respectively to obtain corresponding target matrices; Calculating a representation vector of the multimodal abnormality perception data matrix according to each of the target matrices; Optimizing the classification loss of the representation vector according to a preset target optimization network to obtain parameters corresponding to the forward discriminant network and the reverse discriminant network respectively; Based on the parameters corresponding to the forward discriminant network and the reverse discriminant network, a forward discriminant network, a reverse discriminant network and a forward and reverse competitive decision network are constructed.

[0010] Optionally, the step of determining the dynamic threshold according to a preset fuzzy calculation rule, the risk measurement vector and a preset reference threshold comprises: Performing grade quantification calculation on the risk measurement vector to obtain the risk grades corresponding to the positive discriminant score, the reverse discriminant score and the abnormal risk probability in the risk measurement vector; Calculating a fuzzy function calculation result of the risk measurement vector according to a preset fuzzy calculation rule; Determine the risk level score according to the risk measurement vector and the corresponding fuzzy function calculation result; A dynamic threshold is calculated based on the risk level score and a preset benchmark threshold.

[0011] Optionally, the face attack detection model includes at least a visible light silent biopsy model, a dazzling color biopsy model, a dazzling pupil biopsy model, a moiré detection model, a screen border detection model, and a photo detection model; The step of selecting a plurality of face attack detection models according to the dynamic threshold to detect the face image data and obtaining the attack probability corresponding to each face attack detection model comprises: Determine a risk level according to the dynamic threshold and the preset threshold, wherein the risk level includes at least a first risk level, a second risk level and a third risk level, and the second risk level is higher than the first risk level and lower than the third risk level; If the risk level is the first risk level, a first preset number of face attack detection models are selected to detect the face image data in the multimodal data to obtain the attack probability corresponding to each of the face attack detection models; If the risk level is the second risk level, selecting a second preset number of face attack detection models to detect the face image data in the multimodal data, and obtaining the attack probability corresponding to each of the face attack detection models; If the risk level is the third risk level, a third preset number of face attack detection models are selected to detect the face image data in the multimodal data to obtain the attack probability corresponding to each of the face attack detection models, wherein the second preset number is greater than the first preset number and less than the third preset number.

[0012] Optionally, the step of determining the attack detection result based on the attack probability and the dynamic threshold respectively corresponding to each of the face attack detection models includes: If the attack probabilities respectively corresponding to the face attack detection models are all lower than the dynamic threshold, the attack detection result is determined to be normal; Otherwise, the attack detection result is determined to be abnormal.

[0013] The present application also provides a multimodal face attack detection device, which is applied to a multimodal face attack detection device, and the multimodal face attack detection device includes: The abnormal perception matrix generation module is used to input the initial matrices corresponding to the multi-modal data of the cloud network terminal behavior data and the face image data of the mobile Internet user into the preset abnormal perception matrix generation deep network to obtain the multi-modal abnormal perception data matrix; A risk measurement vector determination module, used for inputting the multimodal anomaly perception data matrix into a preset multimodal anomaly risk measurement deep network to generate a risk measurement vector; A dynamic threshold determination module, used to determine a dynamic threshold according to a preset fuzzy calculation rule, the risk measurement vector and a preset reference threshold; A multi-model detection module, used to select multiple face attack detection models according to the dynamic threshold to detect the face image data, and obtain the attack probability corresponding to each face attack detection model; The detection result determination module is used to determine the attack detection result based on the attack probability corresponding to each of the face attack detection models and the dynamic threshold.

[0014] The present application also provides an electronic device, which is a physical device, and includes: a memory, a processor, and a program of the multimodal face attack detection method stored in the memory and executable on the processor. When the program of the multimodal face attack detection method is executed by the processor, the steps of the multimodal face attack detection method as described above can be implemented.

[0015] The present application also provides a computer-readable storage medium, on which is stored a program for implementing a multimodal face attack detection method. When the program of the multimodal face attack detection method is executed by a processor, the steps of the multimodal face attack detection method as described above are implemented.

[0016] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the multimodal face attack detection method as described above.

[0017] The present application provides a multimodal face attack detection method, device, electronic device and storage medium. First, the initial matrices corresponding to the multimodal data of the cloud network terminal behavior data and face image data of the mobile Internet user are respectively input into the preset abnormal perception matrix generation deep network to obtain the multimodal abnormal perception data matrix. The technical solution of the present application combines the cloud network terminal behavior data of the user and the face image data collected by the image sensor to form multimodal data as a new data discrimination dimension, thereby realizing that the corresponding cloud network terminal behavior data in the mobile scene is used as a broader data field outside the existing biometric dimension, and becomes a superimposed new data discrimination dimension, overcoming the technical defect that it is difficult to collect multi-dimensional data due to insufficient sensors on mobile devices. Then, the multimodal abnormal perception data matrix is ​​input into the preset multimodal abnormal risk measurement deep network to generate a risk measurement vector, which is used to characterize the risk factors corresponding to each modal data, and then the dynamic threshold is determined according to the preset fuzzy calculation rule, the risk measurement vector and the preset reference threshold, and then a plurality of face attack detection models are selected according to the dynamic threshold to detect the face attack. The face image data is detected to obtain the attack probability corresponding to each of the face attack detection models. The technical solution of the present application can flexibly select different numbers of face attack detection models according to different dynamic thresholds to detect the face image data, which can ensure accurate detection under different risk levels and ensure calculation efficiency. Finally, based on the attack probability corresponding to each of the face attack detection models and the dynamic threshold, the attack detection result is determined. In summary, the technical solution of the present application solves the technical problem of multi-dimensional data collection difficulties in multimodal face attack detection schemes in mobile scenarios by taking the cloud network behavior data of mobile Internet users as a component of multimodal data, and overcomes the defect of insufficient single information of visual features, realizes the creation of a complete chain of evidence for face attack detection, and combines the dynamic threshold adaptive calculation method to improve the credibility of face attack detection. At the same time, due to the proposed strategy adaptive adjustment scheme for selecting different numbers of face attack models for face attack detection based on multimodal fusion dynamic thresholds, a balance is achieved between the accuracy and complexity of face attack detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0020] Figure 1 This is a flowchart of the first embodiment of the multimodal face attack detection method of the present application; Figure 2 This is a schematic diagram of the process of constructing a multimodal abnormal perception feature matrix in the multimodal face attack detection method of this application; Figure 3 This is a schematic diagram of a multimodal abnormal perception feature matrix deep network in the multimodal face attack detection method of this application; Figure 4 A neural network diagram of the first sub-network and the second sub-network in the multimodal face attack detection method of the present application; Figure 5 This is a schematic diagram of a multimodal anomaly risk measurement deep network in the multimodal face attack detection method of this application; Figure 6 This is a schematic diagram of fuzzy calculation rules in the multimodal face attack detection method of this application; Figure 7 Schematic diagram of the composition structure of a multimodal face attack detection device in an embodiment of the present application; Figure 8 Schematic diagram of the device structure of the hardware operating environment involved in the multimodal face attack detection method in the embodiment of the present application.

[0021] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0022] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of this application.

[0023] Embodiment 1 In the face of face attacks by criminals during face recognition, the current face attack detection methods and technical means are relatively rich, but with the emergence and continuous upgrading of new attack methods, especially in mobile scenarios, the attacks are more complex, diverse, unpredictable, and more difficult to defend. Cases of existing attack detection technologies being broken are not uncommon. Take a virtual mobile Internet user as an example. In recent years, with the development of AI technology, the attack methods of the black industry have become more sophisticated. Virtual mobile Internet users have become the hardest hit area for video forgery attacks, seriously endangering the property safety and even personal safety of users. At present, the face recognition industry has reached a consensus that relying solely on face and other image data for face attack detection has many shortcomings, such as limited information and representation dimensions, insufficient generalization, and large differences in background environment, lighting conditions, and recording terminal equipment. It is also limited by the accumulation of new types of attack data and model training time, and it is difficult to meet the needs of the industry for trusted face recognition. To this end, multimodal biometric authentication technologies that integrate face, iris, fingerprint, voiceprint, etc. have emerged in recent years, but they also have certain defects, such as the high cost and difficulty of collecting multiple biometric images in mobile scenarios, expensive collection hardware equipment, lack of mobile devices, and high requirements for the collection environment. In addition, these multimodal image fusion technologies require some specific sensors, such as depth, near-infrared, and light field cameras to capture data, and these devices are relatively expensive. Many users do not have such sensors on their mobile devices, and such technical means are difficult to apply to mobile scenarios. In summary, whether from the perspective of high equipment cost, difficult collection conditions, or limited improvement in credibility and accuracy, the above-mentioned traditional multimodal fusion detection technologies are not suitable for face attack detection and face identity authentication on mobile terminals. To sum up, in the face of the rapid offensive of the black industry, the industry pain points and difficult problems that are difficult to resist and easy to break, there is an urgent need to explore the expansion of existing data dimensions in mobile scenarios to a broader data field beyond the above-mentioned biometric features, thereby superimposing new data discrimination dimensions associated with identity for collaborative defense, and realizing the ability of trusted face authentication in mobile scenarios. The technical solution of the embodiment of the present application introduces a new data discrimination dimension through the cloud network terminal, and it is low-cost and easy to obtain multimodal data. By fusing multimodal data with visual features, a complete chain of evidence is provided to realize the trusted face authentication capability of the multimodal cross-domain fusion model based on the new data dimension. Among them, based on the rich cloud network terminal multimodal user behavior data resources of mobile Internet users, including: network data, communication data, location data, and terminal data, it can support the integration of existing visual modalities Trusted face authentication technology can be supported.

[0024] The present application embodiment provides a multimodal face attack detection method. In the first embodiment of the multimodal face attack detection method of the present application, referring to Figure 1 , the multimodal face attack detection method comprises: Step S10, inputting the initial matrices corresponding to the multimodal data of the cloud network terminal behavior data and the face image data of the mobile Internet user into the preset abnormal perception matrix generation deep network to obtain the multimodal abnormal perception data matrix; Step S20, inputting the multimodal anomaly perception data matrix into a preset multimodal anomaly risk measurement deep network to generate a risk measurement vector; Step S30, determining a dynamic threshold according to a preset fuzzy calculation rule, the risk measurement vector and a preset reference threshold; Step S40, selecting multiple face attack detection models according to the dynamic threshold to detect the face image data, and obtaining attack probabilities corresponding to the face attack detection models respectively; Step S50: determining an attack detection result based on the attack probabilities corresponding to each of the face attack detection models and the dynamic threshold.

[0025] In the embodiment of the present application, it should be noted that the embodiment of the present application is a face attack detection method involving cloud-network-end collaboration, face recognition, face attack detection, and multimodal information fusion, which can be applied to face attack detection in mobile scenarios to deal with various counterfeit face attack methods and provide attack detection results with accuracy that meets the requirements. Among them, the mobile device is equipped with an image sensor, such as a mobile phone, a camera on a laptop, etc. In the face authentication scenario, when these mobile devices need to perform face attack detection, the user's cloud-network-end behavior data and face image data can be obtained, wherein the cloud-network-end behavior data can include terminal data, location data, communication data, and network data, etc., which are modal data that are easier to obtain from the cloud-network end corresponding to the mobile device.

[0026] In addition, the initial matrix is ​​used to characterize the characteristics of cloud network terminal behavior data and face image data, and the abnormal perception matrix generates a deep network for converting the five dimensional data modalities of face, terminal, network, communication and location from complex heterogeneous, ultra-high dimensional, discrete, sparse, weakly correlated and semantically misaligned data states to generate low-dimensional dense and semantically aligned multi-modal abnormal perception vectors. Each of the modal abnormal perception vectors has the ability to quantify and perceive user risks in real time, which specifically includes source data preprocessing, vector extraction neural network, target optimization loss function design, etc., and further constructs a multi-modal abnormal perception matrix as the input matrix of the subsequent abnormal risk perception model to calculate the abnormal risk probability of the current user, so as to solve the problem of deep fusion of multiple heterogeneous and semantically misaligned data. The multi-modal abnormal perception data matrix includes multiple modal abnormal perception vectors.

[0027] Among them, the multimodal abnormal risk measurement deep network is used to calculate the abnormal risk probability of the current customer based on the input multimodal abnormal perception data matrix, and construct an abnormal risk measurement vector by combining the forward discriminant score and reverse discriminant score calculated simultaneously by the network to enhance the reliability of risk grading discrimination in the next step.

[0028] The preset fuzzy calculation rules, the risk measurement vector and the preset reference threshold in the embodiment of the present application are used to adaptively calculate the appropriate dynamic threshold according to the quantified risk status corresponding to each user, that is, high risk corresponds to a strict threshold to increase the attack threshold, while general users correspond to a normal threshold to ensure the pass rate, thereby solving the problem of the difficult balance between the pass rate and the interception rate, and achieving reliable and accurate attack judgments. In addition, the multiple face attack detection models can include various forms of face attack detection models that are currently mature. The higher the dynamic threshold, the more face attack detection models can be selected for detection, and the lower the dynamic threshold, the fewer face attack models can be selected for detection. In this way, the face attack detection strategy for users with different dynamic thresholds is dynamically adjusted, which saves detection time for low-risk users and improves detection accuracy for high-risk users. The technical effect. Finally, the attack probability corresponding to the collected face image data is compared with the dynamic threshold according to each selected face attack model to determine the attack detection result.

[0029] As an example, steps S10 to S50 include: when a face attack detection instruction is triggered, facial image data of the target user is collected through an image sensor (such as a camera) on a mobile device, and cloud network behavior data of the mobile Internet user is obtained; the multimodal data of the facial image data and the cloud network behavior data are preprocessed to obtain initial matrices corresponding to the multimodal data; the initial matrix is ​​input into a pre-trained abnormal perception matrix generation deep network, and sub-models corresponding to the various modal data in the abnormal perception matrix generation deep network are used to extract features and perceive abnormalities on each of the initial matrices to obtain a multimodal abnormal perception data matrix corresponding to the multimodal data and the facial image data; the multimodal abnormal perception data matrix is ​​input into a preset multimodal abnormal risk measurement deep network, and the multimodal abnormal perception data matrix is ​​calculated by the forward discriminant network, the reverse discriminant network, and the forward and reverse competitive decision network in the multimodal abnormal risk measurement deep network, and the forward discriminant score, the reverse discriminant score, and the forward discriminant score are output. The method comprises the steps of: calculating a risk level score and an abnormal risk probability based on the forward discrimination score, the reverse discrimination score and the abnormal risk probability; constructing a risk measurement vector based on the forward discrimination score, the reverse discrimination score and the abnormal risk probability; processing the forward discrimination score, the reverse discrimination score and the abnormal risk probability in the risk measurement vector by a preset fuzzy calculation rule to obtain a fuzzy function calculation result; calculating a risk level score according to the fuzzy function calculation result and a preset dynamic threshold calculation formula; taking the risk level score as a weight, and calculating the product of the risk level score and the preset reference threshold to obtain a dynamic threshold of the current target user; selecting a corresponding number of face attack models to detect the collected face image data according to a size relationship between the dynamic threshold and a preset first preset threshold and a second preset threshold to obtain the attack probability corresponding to each of the face attack detection models; if the attack probabilities corresponding to each of the face attack detection models are lower than the dynamic threshold, the attack detection result is determined to be normal; if there is an attack highlight detected by a face attack detection model that is higher than the dynamic threshold, the attack detection result is determined to be abnormal.

[0030] Since the prior art only uses the detection technology of facial visual features, there is a problem of insufficient information required for attack discrimination, or uses multimodal detection technology such as multiple biometrics, there are problems such as high collection cost, difficult collection, and lack of collection equipment, which are not suitable for mobile terminals. The above two situations will lead to the lack of credibility, generalization, and accuracy of the prior art for mobile terminal face attack detection. The beneficial effects of the embodiments of the present application include: Compared with the prior art, the face attack detection method of the cloud network terminal multimodal fusion of face-terminal-network-communication-location proposed in the embodiments of the present application, they are all data highly related to the normal / abnormal state of the user, and deep fusion can provide sufficient and complete evidence chain for attack discrimination, and the collection cost is low, the collection is easy to implement, and no special collection equipment is required. It is very suitable for mobile terminal scenarios to achieve credibility, generalization, and accuracy of face attack detection. Furthermore, the step of inputting the initial matrices corresponding to the multimodal data of the cloud network terminal behavior data and the face image data of the mobile Internet user into the preset abnormal perception matrix generation deep network to obtain the multimodal abnormal perception data matrix includes: Step S11, preprocessing the collected multimodal data to generate initial matrices corresponding to each modal data, wherein the initial matrices include at least a first initial matrix, a second initial matrix, a third initial matrix, a fourth initial matrix and a fifth initial matrix; Step S12, comparing the historical state and the current state of the first initial matrix corresponding to the terminal data and the second initial matrix corresponding to the position data respectively through the first sub-network and the second sub-network, to obtain the terminal abnormality perception vector and the position abnormality perception vector corresponding to the terminal data and the position data respectively; Step S13, calculating the correlation between the time series and the absolute value in the third initial matrix corresponding to the communication data and the abnormal behavior through the third sub-network to obtain a communication anomaly perception vector corresponding to the communication data; Step S14, calculating the correlation between each application and the number of accesses and abnormal behavior in the fourth initial matrix corresponding to the network data through the fourth sub-network to obtain a network anomaly perception vector of the network data pair; Step S15, extracting image features in a fifth initial matrix corresponding to the facial image data through a fifth sub-network and calculating the image features to obtain a facial anomaly perception vector corresponding to the facial image data.

[0031] In the embodiment of the present application, it should be noted that the multimodal data includes at least terminal data, position data, communication data, network data and face image data, the abnormality perception matrix generation deep network includes at least a first sub-network, a second sub-network, a third sub-network, a fourth sub-network and a fifth sub-network, and the multimodal abnormality perception data matrix includes at least a terminal abnormality perception vector, a position abnormality perception vector, a communication abnormality perception vector, a network abnormality perception vector and a face abnormality perception vector.

[0032] Reference Figure 2 The embodiment of the present application provides a method for constructing a multimodal abnormal perception feature matrix, which mainly aims at the problems of heterogeneity, semantic misalignment, ultra-high dimension, sparseness, discreteness, lack of association, different modalities, etc. of the five kinds of original data of face, terminal, location, network, and communication. The embodiment of the present application proposes an abnormal perception matrix generation network for multimodal information of face-terminal-network-communication-location, as follows Figure 2 As shown, a technical schematic diagram of a method for constructing a multimodal anomaly perception feature matrix is ​​given. In the feature matrix construction principle part, the embodiment of the present application first inputs the multimodal original information, pre-processes the disordered source data, and then generates low-dimensional, dense and semantically aligned 5 modal anomaly perception vectors through an anomaly perception neural network composed of 5 sub-networks (terminal vector sub-model, position vector sub-model, communication vector sub-model, network vector sub-model and face vector sub-model). In the network, a target optimization loss function for normal / abnormal classification is designed to realize iterative training and learning of each sub-network, and then a multimodal anomaly perception matrix is ​​further constructed based on the 5 anomaly perception vectors obtained through training, which is used as the input matrix of the subsequent multimodal anomaly risk perception model to calculate the abnormal risk probability of the current user.

[0033] In a feasible embodiment, the collected multimodal data are preprocessed to generate initial matrices corresponding to each modal data, wherein the initial matrices include at least a first initial matrix, a second initial matrix, a third initial matrix, a fourth initial matrix, and a fifth initial matrix, the step includes: Input stage. Multimodal information mainly comes from the terminal data, location data, communication data, network data of telecommunications users, and face image data collected when users handle services. Before entering the model, the above data are first processed before entering the model, as shown in the following ①, ②, ③, ④, and ⑤, which are the data processing of each source data before entering the model.

[0034] ① For user terminal data, it is mainly divided into user historical data and current user real-time data. Historical data: device model, operating system, APP version, camera parameters, various sensor data, etc.; current user real-time data includes two categories: one is the current device model, current operating system, current network status, current various sensor data, current APP version, root risk, hook risk, simulator risk, etc.; the second category is APP behavior data, such as page browsing, clicks and other data. The principle of neural network design for user terminal data feature extraction is to achieve consistency or correlation comparison between historical state and current state. The corresponding input data is designed and organized into a 2×m-dimensional matrix, denoted as: T, ; The first line is the historical data, and the second line is the current status.

[0035] ② For user location data, it is the same as terminal data, and is also divided into historical data and current data. Taking location data as an example, it can also be divided into user historical data and current user real-time data. Historical data includes: historical trajectory, permanent residence, active place, special venue residence, number ownership; current data includes: current IP location, current GPS location, etc. The principle of neural network design for feature extraction of user location data is also to achieve consistency or correlation comparison between historical status and current status, and the corresponding input data is also designed as a 2×m-dimensional matrix.

[0036] Denoted as P, ; The first row is the historical location data, and the second row is the current location status. Location data is a data type with time attributes. Therefore, before constructing the input matrix, it is necessary to use algorithms to calculate the user's historical trajectory, permanent location, active location, and special venues in advance. ③ For user communication data, such as call circle, number of calls (calling), number of calls (called), call duration, industry SMS reception and other dimensions, they belong to the s data type with time attribute characteristics. The principle of the neural network design for feature extraction is to realize the calculation of the correlation between each communication data dimension and abnormal behavior in terms of time series and absolute value. The corresponding input data is designed as an n×12-dimensional matrix, denoted as C. ; Among them, each line is a communication dimension corresponding to 12 months of data, and n communication data dimensions are designed. ④ For user network data, such as various negative list websites, gambling websites, etc., the principle of the neural network design for feature extraction is to realize the calculation of the correlation between each APP and the number of visits in the abnormal APP list and abnormal behavior. The corresponding input data is designed as a 2×k-dimensional matrix, denoted as W ; The first row is for each abnormal APP, and the second row is for the cumulative number of visits within a specified time period corresponding to each APP. For example, the time period can be defined as 1 year or half a year.

[0037] ⑤ For the visual data of the face image, the three-channel color matrix itself is directly used as the input to the model, denoted as Face ; like Figure 3 As shown, for ①, ②, ③, ④, and ⑤, several different types of input matrices before each source data enters the model, as well as neural network designs for different targets, the overall model can be subdivided into 4 types of sub-models. The first sub-network and the second sub-network are the same type of neural networks, which are mainly used to achieve consistency or correlation comparison between historical states and current states; sub-model 3 belongs to the second type of neural network, and calculates the correlation between each communication data dimension and abnormal behavior in terms of time series and absolute value; sub-model 4 belongs to the third type of neural network, and calculates the correlation between each APP and the number of visits and abnormal behavior; sub-model 5 belongs to the fourth type of neural network, which is a network used for facial visual feature extraction, such as a convolutional neural network.

[0038] Specifically, refer to Figure 3 Each sub-model includes a low-level feature calculation network, a high-level feature extraction network and a target optimization network, which are respectively used to calculate the low-level features in the initial matrix and extract the high-level features in the initial matrix, that is, output the perception vector. The target optimization network also includes a target loss function, which is used to train and construct each sub-model before use and iteratively optimize during use.

[0039] As an example, steps S11 to S15 include: organizing the collected original data of five modes, namely, face, terminal, location, network, and communication, in the form of a matrix to obtain the initial matrix corresponding to each modal data; calculating the low-level features of the historical state and the current state in the first initial matrix corresponding to the terminal data through the low-level feature calculation module in the first subnetwork to obtain the corresponding first feature map; calculating the first feature map through the high-level feature extraction module in the first subnetwork to obtain the terminal abnormality perception vector; calculating the low-level features of the historical state and the current state in the second initial matrix corresponding to the location data through the low-level feature calculation module in the second subnetwork to obtain the corresponding second feature map; calculating the second feature map through the high-level feature extraction module in the second subnetwork to obtain the location abnormality perception vector; calculating the low-level features of the historical state and the current state in the second initial matrix corresponding to the location data through the low-level feature calculation module in the second subnetwork to obtain the location abnormality perception vector; calculating the low-level feature calculation module in the third subnetwork to obtain the location abnormality perception vector; calculating the low-level feature calculation module in the third subnetwork to obtain the location abnormality perception vector. The block calculates the correlation between the time series and the absolute value in the third initial matrix corresponding to the communication data and the abnormal behavior to obtain the third feature map corresponding to the communication data; the high-level feature extraction module in the third sub-network calculates the third feature map to obtain a communication anomaly perception vector; the low-level feature calculation module in the fourth sub-network calculates the correlation between each application and the number of accesses and the abnormal behavior in the fourth initial matrix corresponding to the network data to obtain the corresponding fourth feature map; the high-level feature extraction module in the fourth sub-network calculates the fourth feature map to obtain a network anomaly perception vector; the low-level feature calculation module in the fifth sub-network extracts the image features in the fifth initial matrix corresponding to the face image data; the high-level feature extraction module in the fifth sub-network calculates the image features to obtain a face anomaly perception vector.

[0040] Further, the step of comparing the historical state and the current state of the first initial matrix corresponding to the terminal data and the second initial matrix corresponding to the position data by using the first sub-network and the second sub-network respectively, and obtaining the terminal anomaly perception vector and the position anomaly perception vector corresponding to the terminal data and the position data respectively includes: Step S121, respectively performing word vectorization on the first initial matrix and the second initial matrix to obtain corresponding two-dimensional matrices; Step S122, inputting each of the two-dimensional matrices into a preset low-level feature calculation network to obtain a plurality of feature maps corresponding to the first initial matrix and the second initial matrix respectively; Step S123: input each of the feature maps into a preset fully connected network to obtain a terminal anomaly perception vector and a position anomaly perception vector.

[0041] In the embodiment of the present application, it should be noted that before step S12, the step of pre-processing the terminal data and the position data respectively includes: performing data processing before inputting into the model on the original data to obtain the input data matrix, which is recorded as: ; in represents the historical data of the terminal's i-th dimension, and Represents the current data of the terminal's i-th dimension.

[0042] As an example, see Figure 5 , steps S121 to S123 include: constructing two two-dimensional matrices by respectively performing word vectorization on the first initial matrix and the second initial matrix, that is, two two-dimensional matrices T1 and T2 constructed by two vectors [t11, t12, ⋯, t1m] and [t21, t22, ⋯, t2m] through word vectorization; Figure 4 As shown in the figure, d represents the dimension of the word vector, and m represents the dimension of the terminal data or location data. For the two two-dimensional matrices T1 and T2 designed above as input, the corresponding neural network is designed to represent the correlation between the two. The first is the low-level feature calculation network, such as Figure 5 As shown in the figure, it is composed of a 64-channel 7×7 convolutional layer combined with 4 residual blocks; and the feature map output by the low-level feature calculation network, for example: 512 7×7 feature maps, are then calculated through the fully connected networks FC1 and FC2 to obtain high-level dense features, and the high-level dense features are used as the extracted terminal anomaly perception vector and the position anomaly perception vector.

[0043] In addition, for the design of the target optimization network in each sub-model, the embodiment of the present application uses two types of user labels, normal users and abnormal users, to construct the loss function calculation of the optimization target. The five sub-models all use the same loss function calculation method. Taking the terminal class feature vector as an example, the high-level feature extraction network output feature vector is: , as the input of the target optimization network, where the loss function calculation formula for target optimization is, where: ; After the training, the neural network generates five corresponding abnormal perception vectors for the five modal input data. , …, Further construct a multimodal anomaly perception matrix: ; Compared with the existing technical means, the face-terminal-network-communication-position multimodal anomaly perception matrix generation method proposed in the technical solution of the embodiment of the present application not only cleverly designs the overall fusion idea and framework, but also subdivides and designs 4 different types of neural network sub-models according to the characteristics of each modal data. Combined with the target optimization network design, it successfully realizes the generation of low-dimensional, dense and semantically aligned 5 modal anomaly perception vectors from complex heterogeneous, ultra-high dimensional, discrete, sparse, weakly correlated, and semantically misaligned multi-data, and then constructs a multimodal matrix of anomaly perception.

[0044] In addition, in step S20, the multimodal abnormal risk measurement deep network includes at least a forward discriminant network, a reverse discriminant network and a forward and reverse competitive decision network, and the risk measurement vector includes at least a forward discriminant score, a reverse discriminant score and an abnormal risk probability, wherein the forward discriminant network and the reverse discriminant network are trained by samples consisting of normal users and samples consisting of abnormal users, respectively; The step of inputting the multimodal anomaly perception data matrix into a preset multimodal anomaly risk measurement deep network to generate a risk measurement vector comprises: Step S21, inputting the multimodal abnormality perception data matrix into a forward discriminant network and a reverse discriminant network respectively to obtain a forward feature map, a reverse feature map, a forward discriminant score, and a reverse discriminant score; Step S22, inputting the forward feature graph and the reverse feature graph into a forward and reverse competitive decision network to obtain an abnormal risk probability; Step S23: constructing a risk measurement vector according to the positive discriminant score, the negative discriminant score and the abnormal risk probability.

[0045] In the embodiment of the present application, it should be noted that the multimodal abnormal risk measurement deep network in the embodiment of the present application is subdivided into two parts: the first part includes two independent discriminant networks, namely, forward and reverse, which are trained in advance; the second part jointly designs a forward and reverse competitive decision network and a target optimization function for the two discriminant networks trained in the first part, thereby constructing an abnormal risk measurement deep network to generate a risk measurement vector, wherein the risk measurement vector includes: abnormal risk probability, forward discriminant score, and reverse discriminant score.

[0046] Reference Figure 5The multimodal abnormal risk measurement deep network in the embodiment of the present application is composed of four sub-networks, namely, a forward discriminant network, a reverse discriminant network, a forward and reverse competitive decision network, and a target optimization network. In the above multimodal abnormal risk measurement deep network, the forward discriminant network C1, the reverse discriminant network C2, and the forward and reverse competitive decision network C3 are jointly constructed to build an abnormal risk measurement network. The multimodal abnormal perception feature matrix is ​​the initial input. The function of the forward discriminant network C1 is to calculate and output the forward feature map of the current sample. The function of the reverse discriminant network C2 is to calculate and output the reverse feature map of the current sample. The forward and reverse feature maps are used as inputs of the network C3. The feature map after the forward and reverse competitive decision is calculated by the network C3. Finally, after the target optimization network, the estimated result and the actual real result are calculated by the loss function by adopting the classification loss. The target is defined as {normal user: 0; abnormal user: 1}. Through the target optimization gradient calculation, the parameters of the forward discriminant network and the reverse discriminant network are continuously adjusted on the one hand, and the parameters of the C3 network are trained on the other hand. The target optimization network can train each network in advance, or optimize in real time according to the actual results during the process of risk measurement vector. Finally, the output forward feature map and reverse feature map are processed by the forward and reverse competitive decision network in the multimodal abnormal risk measurement network to calculate the abnormal risk probability of the current sample, which is recorded as , in addition, the network also outputs a positive discriminant score , reverse discriminant score To enhance the reliability of risk classification, the risk measurement vector is composed of three parts, namely, abnormal risk probability , positive discriminant score and the reverse discriminant score ,Right now: ; Among them, Vec is the risk measurement vector.

[0047] As an example, steps S21 to S23 include: inputting the multimodal abnormal perception data matrix into a forward discriminant network, calculating and predicting the multimodal abnormal perception data matrix through the forward discriminant network, and obtaining a corresponding forward feature map and a forward discriminant score, wherein the forward discriminant score is used to characterize the degree of matching between the target user corresponding to the multimodal abnormal perception data matrix and the normal user in face attack detection; inputting the multimodal abnormal perception data matrix into a reverse discriminant network, calculating and predicting the multimodal abnormal perception data through the reverse discriminant network, and obtaining a corresponding reverse feature map and a reverse discriminant score, wherein the reverse discriminant score is used to characterize the degree of matching between the target user corresponding to the multimodal abnormal perception data matrix and the abnormal user in face attack detection; inputting the forward feature map and the reverse feature map into a forward and reverse competitive decision network, predicting the forward feature map and the reverse feature map through the forward and reverse decision network, and obtaining an abnormal risk probability; aggregating the forward discriminant score, the reverse discriminant score, and the abnormal risk probability to obtain a risk measurement vector.

[0048] In addition, it should be noted that before the step of inputting the multimodal abnormality perception data matrix into the forward discriminant network and the reverse discriminant network respectively to obtain the forward feature map, the reverse feature map, the forward discriminant score and the reverse discriminant score, the method further includes: Step A10, performing matrix element block processing on the multimodal anomaly perception data matrix corresponding to the training sample set, and converting it into a corresponding linear embedding sequence; Step A20, inputting the linear embedding sequence into three preset linear transformation matrices respectively to obtain corresponding target matrices; Step A30, calculating a representation vector of the multimodal abnormality perception data matrix according to each of the target matrices; Step A40, performing classification loss optimization on the representation vector according to a preset target optimization network to obtain parameters corresponding to a forward discriminant network and a reverse discriminant network respectively; Step A50, based on the parameters corresponding to the forward discriminant network and the reverse discriminant network, respectively, construct a forward discriminant network, a reverse discriminant network, and a forward and reverse competitive decision network.

[0049] In the embodiment of the present application, it should be noted that the embodiment of the present application provides a method for training and optimizing a multimodal anomaly risk measurement deep network based on a multimodal anomaly perception data matrix. Specifically, the target loss function in the target optimization network is used to calculate the corresponding function loss based on the predicted value (forward discriminant score, reverse discriminant score, and abnormal risk probability) and the actual true value each time a risk measurement vector is generated, so as to train and optimize the parameters of the forward discriminant network, the reverse discriminant network, and the forward and reverse competitive decision network in the multimodal anomaly risk measurement deep network. It should be noted that the training and optimization can be performed both when the multimodal anomaly risk measurement deep network is constructed and when the risk measurement vector is generated using the multimodal anomaly risk measurement deep network.

[0050] For the multimodal anomaly risk measurement deep network, the embodiment of the present application proposes to construct two discriminant sub-networks, namely, a forward discriminant network and a reverse discriminant network, and correspondingly design two training sample sets, namely, sample set 1 and sample set 2. Sample set 1 is composed entirely of samples of normal users, and sample set 2 is composed entirely of samples of abnormal users.

[0051] As an example, step A10 to step A50: performing matrix element block processing on the multimodal anomaly perception matrix corresponding to the training sample set, and converting it into a linear embedding sequence, wherein the training sample set includes a normal sample set and an abnormal sample set, and the classification label includes a normal label and an abnormal label. Specifically, the linear embedding sequence is: in, Indicates user classification label, represents the i-th patch, and E represents the mapping vectorization; three linear transformation matrices are used to act on the input linear embedding sequence, namely Q=X*WQ, K=X*WK, L=X*WL, where W is a preset coefficient; according to the target matrices Q, K and L, the representation vector y corresponding to the multimodal anomaly perception matrix corresponding to the training sample set is calculated. Specifically, the formula for calculating the representation vector is as follows: ; Among them, MLP is a multi-layer perceptron. is a preset coefficient, and the softmax classification loss optimization is performed on the representation vector y to train the network, and the forward discriminant network parameters and the reverse discriminant network parameters are obtained respectively; then, the forward and reverse discriminant networks are obtained by training according to the forward discriminant network parameters and the reverse discriminant network parameters, wherein the representation vector is used to characterize the characteristics of the multimodal abnormal perception matrix, which is a fusion feature vector; wherein, the forward discriminant network is trained according to the normal sample set to obtain the network parameter set 1, which is recorded as The reverse discriminant network is trained according to the abnormal sample set to obtain a network parameter set 2, denoted as , embed the above two network parameter sets into the abnormal risk measurement deep network, and construct a forward and reverse competitive decision network based on the parameters of the forward discriminant network and the reverse discriminant network, and finally jointly perform model training and optimization with the forward and reverse competitive decision network and the target optimization network in the embodiment of the present application.

[0052] Furthermore, the step of determining the dynamic threshold according to the preset fuzzy calculation rule, the risk measurement vector and the preset reference threshold comprises: Step S31, performing grade quantification calculation on the risk measurement vector to obtain the risk grades corresponding to the positive discriminant score, the reverse discriminant score and the abnormal risk probability in the risk measurement vector; Step S32, calculating the fuzzy function calculation result of the risk measurement vector according to a preset fuzzy calculation rule; Step S33, determining a risk degree score according to the risk measurement vector and the corresponding fuzzy function calculation result; Step S34, calculating a dynamic threshold value according to the risk level score and a preset reference threshold value.

[0053] In the embodiment of the present application, it should be noted that the forward discriminant score, reverse discriminant score and abnormal risk probability in the risk measurement vector need to be graded first, so as to determine the corresponding fuzzy calculation result according to the fuzzy calculation rule. As a feasible embodiment, the forward discriminant score, reverse discriminant score and abnormal risk probability in the risk measurement vector can be graded by presetting a trigonometric function or other function; as another feasible embodiment, a first risk threshold can be preset, and if the parameter in the risk measurement vector is lower than the first risk threshold, its grade can be quantified as low risk, and the risk measurement vector includes a forward discriminant score, a reverse discriminant score and an abnormal risk probability; if the parameter in the risk measurement vector is higher than the first risk threshold, its grade can be quantified as high risk. The grade quantification method in the embodiment of the present application can select a feasible grade quantification method in the prior art, and there is no restriction on the specific grade quantification calculation method.

[0054] The technical solution of the embodiment of the present application dynamically calculates the attack detection threshold through abnormal risk measurement, so as to adaptively calculate a relatively suitable dynamic threshold for each user according to the quantified risk level, thereby solving the problem of the difficulty in balancing the pass rate and the interception rate.

[0055] As a feasible embodiment, the fuzzy calculation rule is as follows: Figure 6Said, step S31 to step S34 include: quantifying the level of the forward discriminant score, reverse discriminant score and abnormal risk probability in the risk measurement vector, respectively, to obtain the risk levels corresponding to the forward discriminant score, reverse discriminant score and abnormal risk probability in the risk measurement vector; after determining the risk levels of each parameter in the risk measurement vector, determining the risk level corresponding to the overall risk measurement vector, and then outputting the risk level score according to the risk level corresponding to the overall risk measurement vector. Specifically, according to the above three input features: forward discriminant score SP, reverse discriminant score SN, abnormal probability RS, N pre-designed fuzzy calculation rules, through the calculation formula, the risk level score is finally calculated jointly, recorded as SCORE, which is used as the weight coefficient for calculating the dynamic threshold of biopsy: ; in, represents the jth input, Represents the corresponding fuzzy function calculation result. First, calculate the sum of the products of each input and the corresponding fuzzy function calculation result, and then divide it by the fuzzy function calculation result of each input to get the risk score; calculate the actual dynamic threshold corresponding to the current user's risk status. The risk score SCORE is used as a weight and multiplied by the uniformly set benchmark threshold T to calculate the dynamic threshold of the current user under the current risk status. ,Right now: ; Therefore, based on the risk measurement vector as input, the joint calculation algorithm is used to calculate the dynamic threshold according to the actual risk situation , which is used as the dynamic threshold for the subsequent face attack detection model to determine and the quantitative basis for the adaptive adjustment of the dynamic strategy.

[0056] Compared with the prior art, the attack detection model based on facial visual features is used as the basis for distinguishing facial attacks in the technical solution of the embodiment of the present application, while the multimodal data of the cloud network terminal provides an important chain of evidence to complete the chain of evidence of facial feature clues. By designing an abnormal risk measurement deep network, taking the multimodal abnormal perception matrix of the cloud network terminal as input, the network outputs an abnormal risk measurement vector, and through the risk degree score fuzzy algorithm involved in the design, the dynamic threshold that meets the current user risk status is finally calculated, which is used for the judgment of the facial attack detection model, and at the same time serves as a quantitative basis for the adaptive adjustment of the dynamic strategy of attack detection. The multimodal fusion method in the embodiment of the present application can not only give play to the advantages of facial visual features, but also make up for the problem of insufficient information for attack detection based on a single facial feature by introducing multimodal data of the cloud network terminal. Moreover, the dynamic threshold calculation method for face attack detection based on abnormal risk measurement in the technical solution of the embodiment of the present application dynamically calculates the actual threshold that can correctly reflect the current risk situation according to the calculation method with the risk measurement vector as input, that is, high-risk users are automatically adjusted to a more stringent high threshold to increase the threshold for risky users to pass, while general users use a normal threshold to ensure the pass rate of normal users, and for each user, a suitable dynamic threshold is adaptively calculated based on the quantified risk situation, thereby solving the problem of the difficult balance between the pass rate and the interception rate, and realizing reliable and accurate face attack detection.

[0057] Furthermore, the step of selecting a plurality of face attack detection models according to the dynamic threshold to detect the face image data and obtaining the attack probability corresponding to each of the face attack detection models comprises: Step S41, determining a risk level according to the dynamic threshold and the preset threshold, wherein the risk level includes at least a first risk level, a second risk level and a third risk level, and the second risk level is higher than the first risk level and lower than the third risk level; Step S42: if the risk level is the first risk level, a first preset number of face attack detection models are selected to detect the face image data in the multimodal data to obtain the attack probability corresponding to each of the face attack detection models; Step S43: if the risk level is the second risk level, a second preset number of face attack detection models are selected to detect the face image data in the multimodal data to obtain the attack probability corresponding to each of the face attack detection models; Step S44: if the risk level is the third risk level, a third preset number of face attack detection models are selected to detect the face image data in the multimodal data to obtain the attack probability corresponding to each of the face attack detection models, wherein the second preset number is greater than the first preset number and less than the third preset number.

[0058] In the embodiment of the present application, it should be noted that the multiple face attack models to be selected may include visible light silent biopsy model, colorful biopsy model, dazzling pupil biopsy model, moiré detection model, screen border detection model and photo detection model and other technically mature face attack detection models, which can be detected based on the collected face image data to determine the corresponding attack probability. The embodiment of the present application proposes dynamic strategy adaptive adjustment, that is, according to the dynamic threshold and risk level score calculated in the previous step, dynamically adjust the attack detection strategy and complexity of multiple factors. Among them, the preset threshold includes a first preset threshold and a second preset threshold The first risk level is general risk, the second risk level is relatively high risk, and the third risk level is high risk.

[0059] As an example, steps S41 to S44 include: when the dynamic threshold is less than the first preset threshold, it is a general risk, and 1 to 2 face attack detection models are used to perform face attack detection on the collected face image data to obtain a corresponding attack probability, wherein the response time of the face attack detection is short; when the dynamic threshold is higher than the first preset threshold and lower than the second preset threshold, it is a higher risk, and 2 to 3 face attack detection models are used to perform face attack detection on the face image data to obtain a corresponding attack probability, wherein the response time of the face attack detection is longer; when the dynamic threshold is higher than the second preset threshold, it is a high risk, and more than 3 face attack detection models are used to perform face attack detection on the face image data to obtain a corresponding attack probability.

[0060] In the embodiments of the present application, experiments show that the accuracy and time response corresponding to "visual feature attack detection only" and "cloud-network-end multimodal fusion feature attack detection" in the embodiments of the present application are shown in the following table.

[0061] Specifically, when only visual features are used for face attack detection, there is a risk of missed detection due to the single information. For closed scenes of simple attacks, the accuracy is less than or equal to 95%. However, for complex attacks in open environments, especially in mobile scenes, the attack forms are more complex and diverse, and the detection accuracy is lower. The detection accuracy of the existing technology will be less than 90%. For scenarios with high security requirements, such as payment, finance, and important business processing, the accuracy of face attack detection is very high, reaching more than 99.9%. After adopting the method of the embodiment of the present application, the problem of insufficient single information of visual features is supplemented by cloud network information, and the creation of a complete chain of evidence for face attack detection is realized. The dynamic threshold adaptive calculation method is combined to improve the effect to a reliable and high-accuracy attack detection capability, and the accuracy can reach 99.9% or more; at the same time, due to the proposed dynamic strategy adaptive adjustment technology based on multimodal fusion, the detection accuracy and complexity are balanced, so the time response is basically the same as before the visual feature attack detection, slightly higher than its time response, but still can be maintained at about 1s. Since the scenario in which the technical solution of the embodiment of the present application is located requires a very low fault tolerance rate, the test data shows that this method has a significant improvement in the technical effect of face attack detection.

[0062] Since the methods of multimodal image fusion and multi-biometric modal fusion are costly and have high requirements for equipment, mobile terminals such as mobile phones currently do not have the acquisition conditions required for the above two types of multimodal fusion. Some customized machines have them, but the high cost and threshold make their application cases rare. At present, the vast majority of application scenarios for face authentication are mobile terminals, and the attacks on mobile terminal scenarios are complex, and the cases of breaking through are endless, which is extremely challenging. Therefore, the analysis and comparison of application effects are mainly for the two technologies in the table. Unlike the situation where traditional multimodality is not suitable for mobile terminals, the technical solution of the embodiment of the present application is fully suitable for the face authentication scenario of mobile terminals.

[0063] Compared with the prior art, the adaptive adjustment method of the dynamic strategy for liveness detection in the technical solution of the embodiment of the present application realizes the risk level score and dynamic threshold calculated according to the multimodal abnormal perception matrix of the cloud network end, objectively reflects the risk status of the current user, and dynamically adjusts the strategy and detection complexity of multiple factors. That is, high-risk status corresponds to a complex multi-factor fusion detection strategy, the detection is more stringent, and the attack threshold is increased; while general risks adopt a relatively lightweight mode to reduce detection complexity, improve detection efficiency, and overall ensure that the average detection efficiency is maintained at a reasonable response time of the production line.

[0064] Furthermore, the step of determining the attack detection result based on the attack probability and the dynamic threshold respectively corresponding to each of the face attack detection models includes: Step S51: if the attack probabilities corresponding to the face attack detection models are all lower than the dynamic threshold, the attack detection result is determined to be normal; Step S52: otherwise, determine that the attack detection result is abnormal.

[0065] In the embodiment of the present application, the attack probabilities detected by each face attack detection model participating in the face attack detection are compared with the dynamic threshold to determine whether the attack detection result is normal, and the attack detection result is determined to be normal only when the attack probabilities detected by all face attack detection models participating in the face attack detection are all lower than the dynamic threshold, thereby ensuring the accuracy of the attack detection result, avoiding the risk of malicious attacks in face recognition scenarios due to missed detections, and further improving the security of face recognition scenarios in mobile scenarios.

[0066] The embodiment of the present application provides a multimodal face attack detection method. First, the initial matrices corresponding to the multimodal data of the cloud-network-end behavior data and the face image data of the mobile Internet user are respectively input into the preset abnormal perception matrix generation deep network to obtain the multimodal abnormal perception data matrix. The technical solution of the embodiment of the present application combines the cloud-network-end behavior data of the user and the face image data collected by the image sensor to form multimodal data as a new data discrimination dimension, thereby realizing that the corresponding cloud-network-end behavior data in the mobile scene is used as a broader data field outside the existing biometric dimension, which becomes a superimposed new data discrimination dimension, and overcomes the technical defect that it is difficult to collect multi-dimensional data due to insufficient sensors on mobile devices. Then, the multimodal abnormal perception data matrix is ​​input into the preset multimodal abnormal risk measurement deep network to generate a risk measurement vector, which is used to characterize the risk factors corresponding to each modal data, and then the dynamic threshold is determined according to the preset fuzzy calculation rule, the risk measurement vector and the preset reference threshold, and then a plurality of face attack detection models are selected according to the dynamic threshold to perform face attack detection on the face image data. Detection, obtain the attack probability corresponding to each of the face attack detection models. The technical solution of the embodiment of the present application can flexibly select different numbers of face attack detection models according to different dynamic thresholds to detect the face image data, which can ensure accurate detection under different risk levels and ensure calculation efficiency. Finally, based on the attack probability corresponding to each of the face attack detection models and the dynamic threshold, the attack detection result is determined. In summary, the technical solution of the embodiment of the present application solves the technical problem of multi-dimensional data collection difficulties in multimodal face attack detection schemes in mobile scenarios by taking the cloud network behavior data of mobile Internet users as a component of multimodal data. At the same time, it overcomes the defect of insufficient single information of visual features, realizes the creation of a complete chain of evidence for face attack detection, and combines the dynamic threshold adaptive calculation method to improve the credibility of face attack detection. At the same time, due to the proposed strategy adaptive adjustment scheme for selecting different numbers of face attack models for face attack detection based on multimodal fusion dynamic thresholds, a balance is achieved between the accuracy and complexity of face attack detection.

[0067] Embodiment 2 The embodiment of the present application also provides a multimodal face attack detection device, which is applied to a multimodal face attack detection device, referring to Figure 7 , the multimodal face attack detection device comprises: The abnormal perception matrix generation module 101 is used to input the initial matrices corresponding to the multi-modal data of the cloud network terminal behavior data and the face image data of the mobile Internet user into the preset abnormal perception matrix generation deep network to obtain the multi-modal abnormal perception data matrix; The risk measurement vector determination module 102 is used to input the multimodal anomaly perception data matrix into a preset multimodal anomaly risk measurement deep network to generate a risk measurement vector; A dynamic threshold determination module 103, used to determine a dynamic threshold according to a preset fuzzy calculation rule, the risk measurement vector and a preset reference threshold; A multi-model detection module 104 is used to select multiple face attack detection models according to the dynamic threshold to detect the face image data, and obtain attack probabilities corresponding to each of the face attack detection models; The detection result determination module 105 is used to determine the attack detection result based on the attack probability corresponding to each of the face attack detection models and the dynamic threshold.

[0068] Optionally, the multimodal data includes at least terminal data, location data, communication data, network data and face image data, the abnormality perception matrix generation deep network includes at least a first sub-network, a second sub-network, a third sub-network, a fourth sub-network and a fifth sub-network, and the multimodal abnormality perception data matrix includes at least a terminal abnormality perception vector, a location abnormality perception vector, a communication abnormality perception vector, a network abnormality perception vector and a face abnormality perception vector; The abnormal perception matrix generation module 101 is also used for: Preprocessing the collected multimodal data to generate initial matrices corresponding to each modality data, wherein the initial matrices include at least a first initial matrix, a second initial matrix, a third initial matrix, a fourth initial matrix, and a fifth initial matrix; Compare the historical state and the current state of the first initial matrix corresponding to the terminal data and the second initial matrix corresponding to the position data respectively through the first sub-network and the second sub-network to obtain the terminal anomaly perception vector and the position anomaly perception vector corresponding to the terminal data and the position data respectively; Calculating the correlation between the time series and the absolute value in the third initial matrix corresponding to the communication data and the abnormal behavior through the third sub-network to obtain a communication anomaly perception vector corresponding to the communication data; Calculating the correlation between each application and the number of accesses and abnormal behavior in the fourth initial matrix corresponding to the network data through the fourth sub-network to obtain a network anomaly perception vector of the network data pair; The image features in the fifth initial matrix corresponding to the facial image data are extracted through the fifth sub-network and the image features are calculated to obtain the facial anomaly perception vector corresponding to the facial image data.

[0069] Optionally, the abnormal perception matrix generating module 101 is further used for: Perform word vectorization on the first initial matrix and the second initial matrix respectively to obtain corresponding two-dimensional matrices; Inputting each of the two-dimensional matrices into a preset low-level feature calculation network to obtain a plurality of feature maps corresponding to the first initial matrix and the second initial matrix respectively; Each of the feature maps is input into a preset fully connected network to obtain a terminal anomaly perception vector and a position anomaly perception vector.

[0070] Optionally, the multimodal abnormal risk measurement deep network includes at least a forward discriminant network, a reverse discriminant network and a forward and reverse competitive decision network, and the risk measurement vector includes at least a forward discriminant score, a reverse discriminant score and an abnormal risk probability, wherein the forward discriminant network and the reverse discriminant network are trained by samples consisting of normal users and samples consisting of abnormal users, respectively; The risk metric vector determination module 102 is further used for: Inputting the multimodal abnormality perception data matrix into a forward discriminant network and a reverse discriminant network respectively to obtain a forward feature map, a reverse feature map, a forward discriminant score, and a reverse discriminant score; Inputting the forward feature graph and the reverse feature graph into a forward and reverse competitive decision network to obtain an abnormal risk probability; A risk measurement vector is constructed according to the positive discriminant score, the negative discriminant score, and the abnormal risk probability.

[0071] Optionally, the risk metric vector determination module 102 is further configured to: The multimodal anomaly perception data matrix corresponding to the training sample set is processed into blocks and converted into a corresponding linear embedding sequence; Inputting the linear embedding sequence into three preset linear transformation matrices respectively to obtain corresponding target matrices; Calculating a representation vector of the multimodal abnormality perception data matrix according to each of the target matrices; Optimizing the classification loss of the representation vector according to a preset target optimization network to obtain parameters corresponding to the forward discriminant network and the reverse discriminant network respectively; Based on the parameters corresponding to the forward discriminant network and the reverse discriminant network, a forward discriminant network, a reverse discriminant network and a forward and reverse competitive decision network are constructed.

[0072] Optionally, the dynamic threshold determination module 103 is further used to: Performing grade quantification calculation on the risk measurement vector to obtain the risk grades corresponding to the positive discriminant score, the negative discriminant score and the abnormal risk probability in the risk measurement vector; Calculating a fuzzy function calculation result of the risk measurement vector according to a preset fuzzy calculation rule; Determine the risk level score according to the risk measurement vector and the corresponding fuzzy function calculation result; A dynamic threshold is calculated based on the risk level score and a preset benchmark threshold.

[0073] Optionally, the multi-model detection module 104 is further configured to: The step of selecting a plurality of face attack detection models according to the dynamic threshold to detect the face image data and obtaining the attack probability corresponding to each face attack detection model comprises: Determine a risk level according to the dynamic threshold and the preset threshold, wherein the risk level includes at least a first risk level, a second risk level and a third risk level, and the second risk level is higher than the first risk level and lower than the third risk level; If the risk level is the first risk level, a first preset number of face attack detection models are selected to detect the face image data in the multimodal data to obtain the attack probability corresponding to each of the face attack detection models; If the risk level is the second risk level, selecting a second preset number of face attack detection models to detect the face image data in the multimodal data, and obtaining the attack probability corresponding to each of the face attack detection models; If the risk level is the third risk level, a third preset number of face attack detection models are selected to detect the face image data in the multimodal data to obtain the attack probability corresponding to each of the face attack detection models, wherein the second preset number is greater than the first preset number and less than the third preset number.

[0074] Optionally, the detection result determination module 105 is further used to: If the attack probabilities respectively corresponding to the face attack detection models are all lower than the dynamic threshold, the attack detection result is determined to be normal; Otherwise, the attack detection result is determined to be abnormal.

[0075] The multimodal face attack detection device provided by the present application adopts the multimodal face attack detection method in the above embodiment to solve the technical problem of the difficulty of multi-dimensional data collection in the multimodal face attack detection scheme in mobile scenarios. Compared with the prior art, the beneficial effects of the multimodal face attack detection device provided by the embodiment of the present application are the same as the beneficial effects of the multimodal face attack detection method provided by the above embodiment, and the other technical features in the multimodal face attack detection device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0076] Embodiment 3 An embodiment of the present application provides an electronic device, comprising: at least one processor; and a memory communicatively linked to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the multimodal face attack detection method in the above-mentioned embodiment 1.

[0077] Reference below Figure 8 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include but are not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable media players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0078] like Figure 8 As shown, the electronic device may include a processing device (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage device to a random access memory (RAM). Various programs and data required for the operation of the electronic device are also stored in the RAM. The processing device, ROM, and RAM are connected to each other through a bus. The input / output (I / O) interface is also linked to the bus.

[0079] Typically, the following systems can be linked to the I / O interface: input devices including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices including, for example, a magnetic tape, a hard disk, etc.; and communication devices. The communication device can allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.

[0080] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0081] The electronic device provided by the present application adopts the multimodal face attack detection method in the above embodiment to solve the technical problem of the difficulty of multi-dimensional data collection in the multimodal face attack detection scheme in mobile scenarios. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present application are the same as the beneficial effects of the multimodal face attack detection method provided by the above embodiment 1, and the other technical features in the electronic device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0082] It should be understood that the various parts of the present disclosure can be implemented with hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0083] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0084] Embodiment 4 This embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon, and the computer-readable program instructions are used to execute the method for multimodal face attack detection in the above-mentioned embodiment 1.

[0085] The computer-readable storage medium provided in the embodiment of the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical link with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM, Erasable Programmable Read-Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0086] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0087] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by an electronic device, the electronic device: inputs the initial matrices corresponding to the multimodal data of the cloud-network-end behavior data and the face image data of the mobile Internet user into a preset abnormal perception matrix generation deep network to obtain a multimodal abnormal perception data matrix; inputs the multimodal abnormal perception data matrix into a preset multimodal abnormal risk measurement deep network to generate a risk measurement vector; determines a dynamic threshold according to a preset fuzzy calculation rule, the risk measurement vector and a preset reference threshold; selects multiple face attack detection models according to the dynamic threshold to detect the face image data, and obtains the attack probability corresponding to each of the face attack detection models; determines the attack detection result based on the attack probability corresponding to each of the face attack detection models and the dynamic threshold.

[0088] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be linked to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be linked to an external computer (e.g., via the Internet using an Internet service provider).

[0089] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0090] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of the module does not limit the unit itself in some cases.

[0091] The computer-readable storage medium provided by the present application stores computer-readable program instructions for executing the above-mentioned multimodal face attack detection method, which solves the technical problem of the difficulty in multi-dimensional data collection of the multimodal face attack detection scheme in mobile scenarios. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the embodiment of the present application are the same as the beneficial effects of the multimodal face attack detection method provided in the above-mentioned embodiment, and will not be repeated here.

[0092] Embodiment 5 The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the multimodal face attack detection method as described above.

[0093] The computer program product provided by the present application solves the technical problem of the difficulty of multi-dimensional data collection in the multi-modal face attack detection scheme in mobile scenarios. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as the beneficial effects of the multi-modal face attack detection method provided by the above embodiment, which will not be repeated here.

[0094] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.

Claims

1. A multimodal face attack detection method, It is characterized in that The multimodal face attack detection method comprises: Input the initial matrices corresponding to the multi-modal data of the cloud-network-end behavior data and the face image data of the mobile Internet user into the preset abnormal perception matrix generation deep network to obtain the multi-modal abnormal perception data matrix; Inputting the multimodal anomaly perception data matrix into a preset multimodal anomaly risk measurement deep network to generate a risk measurement vector; Determining a dynamic threshold value according to a preset fuzzy calculation rule, the risk measurement vector and a preset reference threshold value; Selecting multiple face attack detection models according to the dynamic threshold to detect the face image data, and obtaining attack probabilities corresponding to the face attack detection models; An attack detection result is determined based on the attack probabilities respectively corresponding to the face attack detection models and the dynamic threshold.

2. The multimodal face attack detection method according to claim 1, It is characterized in that The multimodal data includes at least terminal data, location data, communication data, network data and face image data, the abnormal perception matrix generation deep network includes at least a first sub-network, a second sub-network, a third sub-network, a fourth sub-network and a fifth sub-network, and the multimodal abnormal perception data matrix includes at least a terminal abnormality perception vector, a location abnormality perception vector, a communication abnormality perception vector, a network abnormality perception vector and a face abnormality perception vector; The step of inputting the initial matrices corresponding to the multimodal data of the cloud network terminal behavior data and the face image data of the mobile Internet user into the preset abnormal perception matrix generation deep network to obtain the multimodal abnormal perception data matrix includes: Preprocessing the collected multimodal data to generate initial matrices corresponding to each modality data, wherein the initial matrices include at least a first initial matrix, a second initial matrix, a third initial matrix, a fourth initial matrix, and a fifth initial matrix; Compare the historical state and the current state of the first initial matrix corresponding to the terminal data and the second initial matrix corresponding to the position data respectively through the first sub-network and the second sub-network to obtain the terminal anomaly perception vector and the position anomaly perception vector corresponding to the terminal data and the position data respectively; Calculating the correlation between the time series and the absolute value in the third initial matrix corresponding to the communication data and the abnormal behavior through the third sub-network to obtain a communication anomaly perception vector corresponding to the communication data; Calculating the correlation between each application and the number of accesses and abnormal behavior in the fourth initial matrix corresponding to the network data through the fourth sub-network to obtain a network anomaly perception vector of the network data pair; The image features in the fifth initial matrix corresponding to the facial image data are extracted through the fifth sub-network and the image features are calculated to obtain the facial anomaly perception vector corresponding to the facial image data.

3. The multimodal face attack detection method according to claim 2, It is characterized in that The step of comparing the historical state and the current state of the first initial matrix corresponding to the terminal data and the second initial matrix corresponding to the position data respectively through the first sub-network and the second sub-network to obtain the terminal anomaly perception vector and the position anomaly perception vector corresponding to the terminal data and the position data respectively comprises: Perform word vectorization on the first initial matrix and the second initial matrix respectively to obtain corresponding two-dimensional matrices; Inputting each of the two-dimensional matrices into a preset low-level feature calculation network to obtain a plurality of feature maps corresponding to the first initial matrix and the second initial matrix respectively; Each of the feature maps is input into a preset fully connected network to obtain a terminal anomaly perception vector and a position anomaly perception vector.

4. The multimodal face attack detection method according to claim 1, It is characterized in that The multimodal abnormal risk measurement deep network at least includes a forward discriminant network, a reverse discriminant network and a forward and reverse competitive decision network, and the risk measurement vector at least includes a forward discriminant score, a reverse discriminant score and an abnormal risk probability, wherein the forward discriminant network and the reverse discriminant network are trained by samples consisting of normal users and samples consisting of abnormal users, respectively; The step of inputting the multimodal anomaly perception data matrix into a preset multimodal anomaly risk measurement deep network to generate a risk measurement vector comprises: Inputting the multimodal abnormality perception data matrix into a forward discriminant network and a reverse discriminant network respectively to obtain a forward feature map, a reverse feature map, a forward discriminant score, and a reverse discriminant score; Inputting the forward feature graph and the reverse feature graph into a forward and reverse competitive decision network to obtain an abnormal risk probability; A risk measurement vector is constructed according to the positive discriminant score, the negative discriminant score, and the abnormal risk probability.

5. The multimodal face attack detection method according to claim 1, It is characterized in that Before the step of inputting the multimodal abnormality perception data matrix into the forward discriminant network and the reverse discriminant network respectively to obtain the forward feature map, the reverse feature map, the forward discriminant score and the reverse discriminant score, the method further includes: The multimodal anomaly perception data matrix corresponding to the training sample set is processed into blocks and converted into a corresponding linear embedding sequence; Inputting the linear embedding sequence into three preset linear transformation matrices respectively to obtain corresponding target matrices; Calculating a representation vector of the multimodal abnormality perception data matrix according to each of the target matrices; Optimizing the classification loss of the representation vector according to a preset target optimization network to obtain parameters corresponding to the forward discriminant network and the reverse discriminant network respectively; Based on the parameters corresponding to the forward discriminant network and the reverse discriminant network, a forward discriminant network, a reverse discriminant network and a forward and reverse competitive decision network are constructed.

6. The multimodal face attack detection method according to claim 4, It is characterized in that The step of determining the dynamic threshold according to the preset fuzzy calculation rule, the risk measurement vector and the preset reference threshold comprises: Performing grade quantification calculation on the risk measurement vector to obtain the risk grades corresponding to the positive discriminant score, the negative discriminant score and the abnormal risk probability in the risk measurement vector; Calculating a fuzzy function calculation result of the risk measurement vector according to a preset fuzzy calculation rule; Determine a risk degree score according to the risk measurement vector and the corresponding fuzzy function calculation result; A dynamic threshold is calculated based on the risk level score and a preset benchmark threshold.

7. The multimodal face attack detection method according to any one of claims 1 to 6, It is characterized in that The face attack detection model includes at least a visible light silent biopsy model, a colorful biopsy model, a dazzling pupil biopsy model, a moiré detection model, a screen border detection model, and a photo detection model; The step of selecting a plurality of face attack detection models according to the dynamic threshold to detect the face image data and obtaining the attack probability corresponding to each face attack detection model comprises: Determine a risk level according to the dynamic threshold and the preset threshold, wherein the risk level includes at least a first risk level, a second risk level and a third risk level, and the second risk level is higher than the first risk level and lower than the third risk level; If the risk level is the first risk level, a first preset number of face attack detection models are selected to detect the face image data in the multimodal data to obtain the attack probability corresponding to each of the face attack detection models; If the risk level is the second risk level, selecting a second preset number of face attack detection models to detect the face image data in the multimodal data, and obtaining the attack probability corresponding to each of the face attack detection models; If the risk level is the third risk level, a third preset number of face attack detection models are selected to detect the face image data in the multimodal data to obtain the attack probability corresponding to each of the face attack detection models, wherein the second preset number is greater than the first preset number and less than the third preset number.

8. The multimodal face attack detection method according to any one of claims 1 to 6, It is characterized in that The step of determining the attack detection result based on the attack probability and the dynamic threshold respectively corresponding to each of the face attack detection models comprises: If the attack probabilities respectively corresponding to the face attack detection models are all lower than the dynamic threshold, the attack detection result is determined to be normal; Otherwise, the attack detection result is determined to be abnormal.

9. A multimodal face attack detection device, It is characterized in that The multimodal face attack detection device comprises: The abnormal perception matrix generation module is used to input the initial matrices corresponding to the multi-modal data of the cloud network terminal behavior data and the face image data of the mobile Internet user into the preset abnormal perception matrix generation deep network to obtain the multi-modal abnormal perception data matrix; A risk measurement vector determination module, used for inputting the multimodal anomaly perception data matrix into a preset multimodal anomaly risk measurement deep network to generate a risk measurement vector; A dynamic threshold determination module, used to determine a dynamic threshold according to a preset fuzzy calculation rule, the risk measurement vector and a preset reference threshold; A multi-model detection module, used to select multiple face attack detection models according to the dynamic threshold to detect the face image data, and obtain the attack probability corresponding to each face attack detection model; The detection result determination module is used to determine the attack detection result based on the attack probability corresponding to each of the face attack detection models and the dynamic threshold.

10. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and, a memory communicatively linked to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps of the multimodal face attack detection method described in any one of claims 1 to 8.

11. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a program for implementing a multimodal face attack detection method, and the program for implementing a multimodal face attack detection method is executed by a processor to implement the steps of the multimodal face attack detection method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method for analyzing emotional polarity of heterogeneous migration images based on multimodal depth potential correlation

    CN107679580A

  • User attack detection method and device and electronic equipment

    CN111062019A

  • Training method and device and detection method and device for human face living body detection model, and electronic equipment

    CN111597918A

  • Face recognition method based on dynamic adjustment threshold

    CN113963392A

  • Face attack detection model training method, face attack detection method and device

    CN115622730A

Cited By

  • Implicit video attack method

    CN119484849A

  • Internet enterprise multi-mode identity verification method and system

    CN121125206A

  • Selfie behavior identification method, equipment, storage medium and device

    CN121561528A

  • User property safety risk early warning method and device, medium and product

    CN121786758A

  • Intelligent Multimodal Data-Based Active Risk Inference System and Method

    KR103035998B1