KR20220007130A - Counterfeit face recognition method, device and non-transitory computer readable storage medium - Google Patents

Counterfeit face recognition method, device and non-transitory computer readable storage medium Download PDF

Info

Publication number
KR20220007130A
KR20220007130A KR1020217040310A KR20217040310A KR20220007130A KR 20220007130 A KR20220007130 A KR 20220007130A KR 1020217040310 A KR1020217040310 A KR 1020217040310A KR 20217040310 A KR20217040310 A KR 20217040310A KR 20220007130 A KR20220007130 A KR 20220007130A
Authority
KR
South Korea
Prior art keywords
model
counterfeiting
fake
face
face images
Prior art date
Application number
KR1020217040310A
Other languages
Korean (ko)
Inventor
첸수 자오
티안유 푸
하이린 쉬
Original Assignee
베이징 징동 샹커 인포메이션 테크놀로지 코., 엘티디.
베이징 징동 센츄리 트레이딩 씨오., 엘티디.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 베이징 징동 샹커 인포메이션 테크놀로지 코., 엘티디., 베이징 징동 센츄리 트레이딩 씨오., 엘티디. filed Critical 베이징 징동 샹커 인포메이션 테크놀로지 코., 엘티디.
Publication of KR20220007130A publication Critical patent/KR20220007130A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/40Spoof detection, e.g. liveness detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/172Classification, e.g. identification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/46Descriptors for shape, contour or point-related descriptors, e.g. scale invariant feature transform [SIFT] or bags of words [BoW]; Salient regional features
    • G06V10/469Contour-based spatial representations, e.g. vector-coding
    • G06V10/473Contour-based spatial representations, e.g. vector-coding using gradient analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/75Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
    • G06V10/754Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries involving a deformation of the sample pattern or of the reference pattern; Elastic matching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/766Arrangements for image or video recognition or understanding using pattern recognition or machine learning using regression, e.g. by projecting features on hyperplanes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/77Processing image or video features in feature spaces; using data integration or data reduction, e.g. principal component analysis [PCA] or independent component analysis [ICA] or self-organising maps [SOM]; Blind source separation
    • G06V10/774Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Medical Informatics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Molecular Biology (AREA)
  • Mathematical Physics (AREA)
  • Collating Specific Patterns (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

본 개시는 컴퓨터 기술 분야와 관련된 위조 얼굴 인식 방법, 장치 및 컴퓨터 판독 가능한 저장 매체에 관한 것이다. 본 개시의 방법은, 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트를 획득하는 단계; 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트를 사용하여 사전 훈련된 위조 얼굴 방지 모델의 매개변수를 업데이트하는 단계 - 사전 훈련된 위조 얼굴 방지 모델의 매개변수는 다수의 세트의 매개변수에 기초하여 결정되고, 다수의 세트의 매개변수는 다수의 태스크에 따라 결정된 다수의 세트의 위조 얼굴 방지 모델 매개변수이고, 각각의 태스크는 하나 이상의 기존 범주의 각각의 기존 범주의 위조 얼굴 이미지의 작은 샘플 세트 및 실제 얼굴 이미지의 작은 샘플 세트를 포함함 - ; 인식될 얼굴 이미지를 업데이트된 매개변수를 갖는 위조 얼굴 방지 모델 내로 입력하는 단계; 및 인식될 얼굴 이미지가 위조 얼굴 이미지인지 여부를 결정하는 단계를 포함한다.The present disclosure relates to a fake face recognition method, an apparatus, and a computer-readable storage medium related to the field of computer technology. The method of the present disclosure includes: acquiring a small sample set of fake face images of a new category; updating parameters of the pre-trained anti-spoofing face model using a small sample set of new categories of spoof face images, the parameters of the pre-trained anti-spoofing face model being determined based on a plurality of sets of parameters; , wherein the plurality of sets of parameters are a plurality of sets of anti-spoofing model parameters determined according to a plurality of tasks, each task comprising a small sample set of fake face images of each existing category of one or more existing categories and a real face Contains a small sample set of images - ; inputting a face image to be recognized into an anti-spoofing face model with updated parameters; and determining whether the face image to be recognized is a fake face image.

Figure pct00023
Figure pct00023

Description

위조 얼굴 인식 방법, 장치 및 컴퓨터 판독 가능한 저장 매체Counterfeit face recognition method, device and computer readable storage medium

관련 출원에 대한 상호 참조CROSS-REFERENCE TO RELATED APPLICATIONS

본 출원은, 2019년 5월 10일자로 출원되고 그 개시내용이 전체적으로 본 명세서에 참고로 포함되는 중국 특허 출원 제201910387689.0호에 기초하고, 이에 대한 우선권을 주장한다.This application is based on, and claims priority to, Chinese Patent Application No. 201910387689.0, filed on May 10, 2019, the disclosure of which is incorporated herein by reference in its entirety.

본 개시는 컴퓨터 기술 분야에 관한 것이며, 특히 위조 얼굴 인식 방법, 장치 및 컴퓨터 판독 가능한 저장 매체에 관한 것이다.TECHNICAL FIELD The present disclosure relates to the field of computer technology, and more particularly to a method, apparatus, and computer readable storage medium for spoofing face recognition.

얼굴 위조 방지 인식은 위조된 얼굴 특징을 효과적으로 식별하는 것을 말한다. 예를 들어, 얼굴 인식 시스템에 있어서, 일부 위조된 얼굴(예를 들어, 비디오, 사진 및 마스크)이 얼굴 인식 시스템을 공격하기 위해 제작될 수 있다. 얼굴 위조 방지 인식은 위조된 얼굴 특징의 식별에 관한 것이다. 일반적으로, 얼굴 인식 시스템에 있어서, 사용자는 생체 감지로 지칭될 수도 있는 얼굴 위조 방지 인식의 감지를 통과할 것이 요구된다.Facial anti-spoofing recognition refers to effectively identifying forged facial features. For example, in a facial recognition system, some forged faces (eg, videos, photos, and masks) can be crafted to attack the facial recognition system. Face anti-spoofing recognition relates to the identification of forged facial features. In general, in a facial recognition system, a user is required to pass detection of anti-counterfeiting face recognition, which may also be referred to as biometric detection.

본 발명자들에게 알려진 위조 얼굴 인식 방법은 알려진 범주(category)의 다수의 위조 얼굴 이미지에 기초하여, 분류 모델에 대한 딥 러닝 훈련을 수행하는 것이다. 훈련된 분류 모델은 훈련용 위조 얼굴 이미지의 동일 범주에 속하는 위조 얼굴을 인식할 수 있다.The fake face recognition method known to the present inventors is to perform deep learning training on a classification model based on a plurality of fake face images of a known category. The trained classification model can recognize fake faces belonging to the same category of fake face images for training.

본 발명자들은 기존의 위조 얼굴 인식 방법에서는, 훈련된 모델이 위조 얼굴을 정확하게 인식할 수 있도록 모델을 훈련하기 위해 다수의 샘플을 사용할 필요가 있다는 것을 알았다. 새로운 범주의 위조 얼굴 이미지가 출현할 때, 매우 적은 수의 위조 얼굴 이미지 샘플이 존재하는 경우에, 모델 훈련의 속행이 불가능하기 때문에, 모델은 새로운 범주의 위조 얼굴을 적시에 인식할 수 없게 되며, 새로운 범주의 위조 얼굴로부터의 공격을 적시에 효율적으로 방지하는 것이 불가능하게 된다.The present inventors found that in the existing fake face recognition method, it is necessary to use a large number of samples to train the model so that the trained model can accurately recognize the fake face. When a new category of fake face image emerges, when there are very few fake face image samples, the model training cannot continue, so that the model cannot recognize the fake face of the new category in a timely manner, It becomes impossible to effectively prevent attacks from a new category of fake faces in a timely manner.

본 개시에 의해 해결하고자 하는 하나의 기술적 과제는 새로운 범주의 위조 얼굴 이미지의 적시의 효율적인 인식을 실현하고, 적은 수의 새로운 범주의 위조 얼굴 이미지가 출현한 경우에 얼굴 인식 시스템의 안전성을 개선하는 방법이다.One technical problem to be solved by the present disclosure is a method for realizing timely and efficient recognition of fake face images of a new category, and improving the safety of a face recognition system when a small number of fake face images of a new category appear to be.

본 개시의 일부 실시예에 따라, 위조 얼굴 인식 방법이 제공된다. 상기 방법은, 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트를 획득하는 단계; 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트로 사전 훈련된 얼굴 위조 방지 모델의 매개변수를 업데이트하는 단계 - 상기 사전 훈련된 얼굴 위조 방지 모델의 매개변수는 각각 다수의 태스크에 기초하여 결정되는 다수의 세트의 매개변수에 기초하여 결정되고, 각각의 태스크는 하나 이상의 기존 범주 각각의 위조 얼굴 이미지의 작은 샘플 세트 및 하나 이상의 기존 범주 각각의 실제 얼굴 이미지의 작은 샘플 세트를 포함함 - ; 및 인식될 얼굴 이미지가 위조 얼굴 이미지인지 여부를 결정하기 위해, 인식될 얼굴 이미지를 매개변수 업데이트 후에 얼굴 위조 방지 모델 내로 입력하는 단계를 포함한다.According to some embodiments of the present disclosure, a fake face recognition method is provided. The method comprises: acquiring a small sample set of fake face images of a new category; updating parameters of the pre-trained anti-counterfeiting model with a small sample set of new categories of spoofed face images, wherein the parameters of the pre-trained anti-spoofing model are a plurality of sets each determined based on a plurality of tasks determined based on the parameters of , each task including a small sample set of fake face images in each of one or more existing categories and a small sample set of real face images in each of one or more existing categories; and inputting the to-be-recognized face image into the face anti-counterfeiting model after parameter update, to determine whether the to-be-recognized face image is a forged face image.

일부 실시예에 따라, 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트 내의 위조 얼굴 이미지 및 상기 위조 얼굴 이미지 각각에 대응하는 분류 라벨에 기초하여, 상기 얼굴 위조 방지 모델의 매개변수를 업데이트하는 단계이며, 상기 얼굴 위조 방지 모델이 분류 모델인 경우에, 분류 라벨은 분류 라벨에 대응하는 위조 얼굴 이미지의 범주를 라벨링하도록 구성되는 제1 분류 라벨이고, 상기 범주는 위조 방법 또는 모델 중 적어도 하나를 포함하며; 또는 상기 얼굴 위조 방지 모델이 회귀 모델인 경우에, 분류 라벨은 분류 라벨에 대응하는 위조 얼굴 이미지를 양성 샘플(positive sample) 또는 음성 샘플(negative sample)로서 라벨링하도록 구성되는 제2 분류 라벨이다.According to some embodiments, based on a fake face image in a small sample set of fake face images of a new category and a classification label corresponding to each of the fake face images, updating a parameter of the anti-counterfeiting model, the when the anti-counterfeiting face model is a classification model, the classification label is a first classification label, configured to label a category of a forged face image corresponding to the classification label, wherein the category includes at least one of a forgery method or a model; or when the anti-counterfeiting model is a regression model, the classification label is a second classification label, configured to label a fake face image corresponding to the classification label as a positive sample or a negative sample.

일부 실시예에 따라, 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트 내의 위조 얼굴 이미지 및 상기 위조 얼굴 이미지 각각에 대응하는 분류 라벨에 기초하여, 상기 얼굴 위조 방지 모델의 매개변수를 업데이트하는 단계는, 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트 내의 위조 얼굴 이미지를, 하나의 태스크에 대한 지원 샘플 이미지로서 상기 얼굴 위조 방지 모델에 입력하는 단계; 상기 위조 얼굴 이미지 각각에 대응하는 분류 라벨 및 상기 위조 얼굴 이미지 각각에 대한 얼굴 위조 방지 모델의 출력값에 기초하여, 상기 얼굴 위조 방지 모델의 매개변수의 경사도(gradient)를 결정하는 단계; 및 상기 얼굴 위조 방지 모델의 매개변수의 경사도에 기초하여, 상기 얼굴 위조 방지 모델의 매개변수를 업데이트하는 단계를 포함한다.According to some embodiments, on the basis of a fake face image in a small sample set of fake face images of a new category and a classification label corresponding to each of the fake face images, the step of updating the parameter of the anti-counterfeiting model comprises: inputting a fake face image in a small sample set of fake face images of a category into the anti-counterfeiting model as a supporting sample image for one task; determining a gradient of a parameter of the anti-counterfeiting model based on a classification label corresponding to each of the forged face images and an output value of the anti-counterfeiting model for each of the forged face images; and updating the parameter of the anti-counterfeiting model based on the gradient of the parameter of the anti-counterfeiting model.

일부 실시예에 따라, 상기 얼굴 위조 방지 모델이 분류 모델인 경우에, 상기 위조 얼굴 이미지 각각에 대한 얼굴 위조 방지 모델의 출력값은 각각의 상기 위조 얼굴 이미지가 각각 상이한 범주에 속할 확률이고, 상기 위조 얼굴 이미지 각각에 대응하는 분류 라벨 및 상기 위조 얼굴 이미지 각각에 대한 얼굴 위조 방지 모델의 출력값에 기초하여, 상기 얼굴 위조 방지 모델의 매개변수의 경사도를 결정하는 상기 단계는, 상기 위조 얼굴 이미지 각각에 대응하는 제1 분류 라벨 및 각각의 상기 위조 얼굴 이미지가 각각 상이한 범주에 속할 확률에 기초하여, 상기 얼굴 위조 방지 모델의 매개변수의 제1 경사도를 결정하는 단계를 포함하고; 또는, 상기 얼굴 위조 방지 모델이 회귀 모델인 경우에, 상기 위조 얼굴 이미지 각각에 대한 얼굴 위조 방지 모델의 출력값은 각각의 상기 위조 얼굴 이미지가 양성 샘플에 속할 확률이고, 상기 위조 얼굴 이미지 각각에 대응하는 분류 라벨 및 상기 위조 얼굴 이미지 각각에 대한 얼굴 위조 방지 모델의 출력값에 기초하여, 상기 얼굴 위조 방지 모델의 매개변수의 경사도를 결정하는 상기 단계는, 상기 위조 얼굴 이미지 각각에 대응하는 제2 분류 라벨 및 각각의 상기 위조 얼굴 이미지가 양성 샘플에 속할 확률에 기초하여, 상기 얼굴 위조 방지 모델의 매개변수의 제2 경사도를 결정하는 단계를 포함한다.According to some embodiments, when the anti-counterfeiting model is a classification model, the output value of the anti-counterfeiting model for each of the forged face images is a probability that each of the forged face images belongs to a different category, and the forged face Based on the classification label corresponding to each image and the output value of the anti-counterfeiting model for each of the forged face images, the step of determining the inclination of the parameter of the anti-counterfeiting model includes: determining a first inclination of a parameter of the anti-counterfeiting model, based on a first classification label and a probability that each of the fake facial images belongs to a different category; Alternatively, when the anti-counterfeiting model is a regression model, the output value of the anti-counterfeiting model for each of the forged face images is a probability that each of the forged face images belongs to a positive sample, and corresponding to each of the forged face images. Based on the classification label and the output value of the anti-counterfeiting model for each of the forged face images, the step of determining the inclination of the parameter of the anti-counterfeiting model includes: a second classification label corresponding to each of the forged face images; and determining a second gradient of a parameter of the anti-spoofing model, based on a probability that each of the fake facial images belongs to a positive sample.

일부 실시예에 따라, 상기 인식 방법은, 기존 범주의 위조 얼굴 이미지 및 기존 범주의 실제 얼굴 이미지를 다수의 태스크로 분할하는 단계 - 각각의 태스크는 다수의 방식을 포함하고, 각각의 방식은 하나의 모델의 다수의 실제 얼굴 이미지 또는 기존 범주의 다수의 위조 얼굴 이미지를 포함하고, 각각의 태스크는 제1 미리 설정된 수의 기존 범주를 포함하고, 각각의 방식은 지원 샘플 이미지로 구성되는 작은 샘플 세트로서 제2 미리 설정된 수의 실제 얼굴 이미지 또는 위조 얼굴 이미지, 및 쿼리 샘플 이미지로서 제3 미리 설정된 수의 실제 얼굴 이미지 또는 위조 얼굴 이미지를 포함함 - ; 및 상기 얼굴 위조 방지 모델의 다수의 세트의 매개변수가 배치(batch)의 다수의 태스크에 기초하여 각각 결정되고 상기 얼굴 위조 방지 모델의 매개변수가 다수의 세트의 매개변수에 기초하여 재결정되도록, 매번 배치를 형성하기 위해 제4 미리 설정된 수의 태스크를 선택하는 단계; 및 상기 얼굴 위조 방지 모델이 수렴(convergence) 상태에 도달할 때까지 상기 얼굴 위조 방지 모델의 사전 훈련을 완료하는 단계를 추가로 포함한다.According to some embodiments, the recognition method comprises: dividing a fake face image of an existing category and a real face image of an existing category into a plurality of tasks, each task including a plurality of methods, each method comprising one including a plurality of real face images of the model or a plurality of fake face images of an existing category, each task including a first preset number of existing categories, each scheme comprising a small sample set consisting of a supporting sample image a second preset number of real face images or fake face images, and a third preset number of real face images or fake face images as query sample images; and a plurality of sets of parameters of the anti-counterfeiting model are respectively determined based on a plurality of tasks in a batch and parameters of the anti-counterfeiting model are re-determined based on a plurality of sets of parameters, each time selecting a fourth preset number of tasks to form a batch; and completing pre-training of the anti-counterfeiting model until the anti-counterfeiting model reaches a convergence state.

일부 실시예에 따라, 상기 얼굴 위조 방지 모델의 다수의 세트의 매개변수가 상기 배치의 다수의 태스크에 기초하여 각각 결정되고, 상기 얼굴 위조 방지 모델의 매개변수가 다수의 세트의 매개변수에 기초하여 재결정되는 것은, 각각의 지원 샘플 이미지 및 각각의 지원 샘플 이미지에 대응하는 분류 라벨에 기초하여, 상기 태스크에 대응하는 제3 경사도를 결정하고, 상기 배치 내 각각의 태스크에 대한 제3 경사도에 기초하여, 상기 얼굴 위조 방지 모델의 하나의 세트의 매개변수를 결정하는 것; 상기 배치 내 다수의 태스크 각각, 다수의 태스크에 대응하는 쿼리 샘플 이미지 및 상기 쿼리 샘플 이미지 각각에 대응하는 분류 라벨에 의해 결정되는 매개변수 세트에 기초하여, 상기 배치에 대응하는 제4 경사도를 결정하는 것; 및 상기 배치에 대응하는 제4 경사도에 기초하여, 상기 얼굴 위조 방지 모델의 매개변수를 재결정하는 것을 포함한다.According to some embodiments, a plurality of sets of parameters of the anti-counterfeiting model are respectively determined based on a plurality of tasks of the batch, and the parameters of the anti-counterfeiting model are determined based on the plurality of sets of parameters. The re-determining is to determine, based on each support sample image and a classification label corresponding to each support sample image, a third gradient corresponding to the task, and based on the third gradient for each task in the batch, , determining a parameter of one set of the anti-counterfeiting model; determining a fourth slope corresponding to the batch based on a parameter set determined by each of a plurality of tasks in the batch, a query sample image corresponding to the plurality of tasks, and a classification label corresponding to each of the query sample images thing; and re-determining the parameter of the anti-counterfeiting model based on the fourth gradient corresponding to the arrangement.

일부 실시예에 따라, 상기 얼굴 위조 방지 모델이 분류 모델인 경우에, 상기 분류 모델의 각각은 상기 분류 모델에 대응하는 지원 샘플 이미지의 범주를 라벨링하도록 구성되는 제1 분류 라벨이고, 상기 범주는 위조 방법 또는 모델 중 적어도 하나를 포함한다. 대안적으로, 상기 얼굴 위조 방지 모델이 회귀 모델인 경우에, 분류 라벨 각각은 분류 라벨에 대응하는 지원 샘플 이미지를 양성 샘플 또는 음성 샘플로서 라벨링하도록 구성되는 제2 분류 라벨이다.According to some embodiments, when the face anti-spoofing prevention model is a classification model, each of the classification models is a first classification label, configured to label a category of a support sample image corresponding to the classification model, wherein the category is a forgery at least one of a method or a model. Alternatively, when the anti-counterfeiting model is a regression model, each of the classification labels is a second classification label, configured to label a supporting sample image corresponding to the classification label as a positive sample or a negative sample.

일부 실시예에 따라, 사전 훈련 전 상기 얼굴 위조 방지 모델의 초기 매개변수는 딥 러닝 훈련 방법에 따라 결정된다.According to some embodiments, the initial parameters of the anti-counterfeiting model before pre-training are determined according to a deep learning training method.

일부 실시예에 따라, 상이한 기존 범주의 위조 얼굴 이미지는 위조 방법 또는 모델 중 적어도 하나에 있어서 상이하고, 상기 위조 방법은 사진, 비디오 또는 마스크를 포함하고, 상기 모델은 깊이 모델(depth model), 근적외선 모델 또는 적색-녹색-청색(RGB) 모델을 포함하며; 상이한 태스크 내 실제 얼굴 이미지는 동일하거나 상이한 모델을 가지며; 새로운 범주의 위조 얼굴 이미지는 위조 방법 또는 모델 중 적어도 하나에 있어서 기존 이미지와는 상이하고, 상기 기존 이미지는 기존 범주의 위조 얼굴 이미지 및 기존 범주의 실제 얼굴 이미지를 포함한다.According to some embodiments, different pre-existing categories of fake face images are different in at least one of a forgery method or model, wherein the forged method includes a photo, a video or a mask, and wherein the model is a depth model, near-infrared model or red-green-blue (RGB) model; Real face images in different tasks have the same or different models; The fake face image of the new category is different from the existing image in at least one of a forgery method or a model, and the existing image includes a fake face image of the old category and a real face image of the old category.

본 개시의 다른 실시예에 따라, 위조 얼굴 인식 장치가 제공된다. 상기 장치는, 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트를 획득하도록 구성되는 적은 샘플 획득 모듈; 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트로 사전 훈련된 얼굴 위조 방지 모델의 매개변수를 업데이트하도록 구성되는 모델 조정 모듈 - 상기 사전 훈련된 얼굴 위조 방지 모델의 매개변수는 각각 다수의 태스크에 기초하여 결정되되는 다수의 세트의 매개변수에 기초하여 결정되고, 각각의 태스크는 하나 이상의 기존 범주 각각의 위조 얼굴 이미지의 작은 샘플 세트 및 하나 이상의 기존 범주 각각의 실제 얼굴 이미지의 작은 샘플 세트를 포함함 - ; 및 인식될 얼굴 이미지가 위조 얼굴 이미지인지 여부를 결정하기 위해, 인식될 얼굴 이미지를 매개변수 업데이트 후에 얼굴 위조 방지 모델 내로 입력하도록 구성되는 얼굴 인식 모듈을 포함한다.According to another embodiment of the present disclosure, a fake face recognition apparatus is provided. The apparatus includes: a small sample acquisition module, configured to acquire a small sample set of a new category of fake face images; a model tuning module, configured to update parameters of a pre-trained anti-counterfeiting model with a small sample set of new categories of spoofed face images, wherein parameters of the pre-trained anti-spoofing model are each determined based on a plurality of tasks determined based on a plurality of sets of parameters, each task including a small sample set of fake face images in each of one or more existing categories and a small sample set of real facial images in each of one or more existing categories; and a face recognition module, configured to input the to-be-recognized face image into the anti-spoofing face model after the parameter update, to determine whether the to-be-recognized face image is a forged face image.

일부 실시예에 따라, 상기 모델 조정 모듈은 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트 내의 위조 얼굴 이미지 및 상기 위조 얼굴 이미지 각각에 대응하는 분류 라벨에 기초하여, 상기 얼굴 위조 방지 모델의 매개변수를 업데이트하도록 구성되고, 상기 얼굴 위조 방지 모델이 분류 모델인 경우에, 분류 라벨은 분류 라벨에 대응하는 위조 얼굴 이미지의 범주를 라벨링하도록 구성되는 제1 분류 라벨이고, 상기 범주는 위조 방법 또는 모델 중 적어도 하나를 포함하고; 또는 상기 얼굴 위조 방지 모델이 회귀 모델인 경우에, 분류 라벨은 분류 라벨에 대응하는 위조 얼굴 이미지를 양성 샘플 또는 음성 샘플로서 라벨링하도록 구성되는 제2 분류 라벨이다.According to some embodiments, the model adjustment module updates the parameters of the anti-counterfeiting model, based on a fake face image in a small sample set of a new category of fake face images and a classification label corresponding to each of the fake face images wherein, when the anti-counterfeiting model is a classification model, the classification label is a first classification label, configured to label a category of a forged face image corresponding to the classification label, wherein the category is at least one of a forgery method or a model comprising; or when the anti-counterfeiting model is a regression model, the classification label is a second classification label, configured to label a fake face image corresponding to the classification label as a positive sample or a negative sample.

일부 실시예에 따라, 상기 모델 조정 모듈은 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트 내의 위조 얼굴 이미지를, 하나의 태스크에 대한 지원 샘플 이미지로서 상기 얼굴 위조 방지 모델에 입력하고, 상기 위조 얼굴 이미지 각각에 대응하는 분류 라벨 및 상기 위조 얼굴 이미지 각각에 대한 얼굴 위조 방지 모델의 출력값에 기초하여, 상기 얼굴 위조 방지 모델의 매개변수의 경사도를 결정하고, 상기 얼굴 위조 방지 모델의 매개변수의 경사도에 기초하여, 상기 얼굴 위조 방지 모델의 매개변수를 업데이트하도록 구성된다.According to some embodiments, the model adjustment module inputs a fake face image in a small sample set of a new category of fake face images into the face anti-counterfeiting model as a support sample image for one task, each of the fake face images Based on the classification label corresponding to and the output value of the anti-counterfeiting model for each of the forged face images, determine the slope of the parameter of the anti-counterfeiting model, and based on the slope of the parameter of the anti-counterfeiting model , and update parameters of the anti-counterfeiting model.

일부 실시예에 따라, 상기 얼굴 위조 방지 모델이 분류 모델인 경우에, 상기 위조 얼굴 이미지 각각에 대한 얼굴 위조 방지 모델의 출력값은 각각의 상기 위조 얼굴 이미지가 각각 상이한 범주에 속할 확률이고, 상기 모델 조정 모듈은 상기 위조 얼굴 이미지 각각에 대응하는 제1 분류 라벨 및 각각의 상기 위조 얼굴 이미지가 각각 상이한 범주에 속할 확률에 기초하여, 상기 얼굴 위조 방지 모델의 매개변수의 제1 경사도를 결정하도록 구성된다.According to some embodiments, when the anti-counterfeiting model is a classification model, the output value of the anti-counterfeiting model for each of the forged face images is a probability that each of the forged face images belongs to a different category, and the model adjustment The module is configured to determine a first gradient of a parameter of the anti-spoofing model, based on a first classification label corresponding to each of the forged facial images and a probability that each of the forged facial images belongs to a different category, respectively.

또는, 상기 얼굴 위조 방지 모델이 회귀 모델인 경우에, 상기 위조 얼굴 이미지 각각에 대한 얼굴 위조 방지 모델의 출력값은 각각의 상기 위조 얼굴 이미지가 양성 샘플에 속할 확률이고, 상기 모델 조정 모듈은 상기 위조 얼굴 이미지 각각에 대응하는 제2 분류 라벨 및 각각의 상기 위조 얼굴 이미지가 양성 샘플에 속할 확률에 기초하여, 상기 얼굴 위조 방지 모델의 매개변수의 제2 경사도를 결정하도록 구성된다.Alternatively, when the anti-counterfeiting model is a regression model, the output value of the anti-counterfeiting model for each of the forged face images is a probability that each of the forged face images belongs to a positive sample, and the model adjustment module is configured to: and determine a second gradient of a parameter of the anti-spoofing model, based on a second classification label corresponding to each image and a probability that each of the forged facial images belongs to a positive sample.

일부 실시예에 따라, 상기 인식 장치는, 사전 훈련 모듈을 추가로 포함하고, 상기 사전 훈련 모듈은, 기존 범주의 위조 얼굴 이미지 및 기존 범주의 실제 얼굴 이미지를 다수의 태스크로 분할하고 - 각각의 태스크는 다수의 방식을 포함하고, 각각의 방식은 하나의 모델의 다수의 실제 얼굴 이미지 또는 기존 범주의 다수의 위조 얼굴 이미지를 포함하고, 각각의 태스크는 제1 미리 설정된 수의 기존 범주를 포함하고, 각각의 방식은 지원 샘플 이미지로 구성되는 작은 샘플 세트로서 제2 미리 설정된 수의 실제 얼굴 이미지 또는 위조 얼굴 이미지, 및 쿼리 샘플 이미지로서 제3 미리 설정된 수의 실제 얼굴 이미지 또는 위조 얼굴 이미지를 포함함 - ; 상기 얼굴 위조 방지 모델의 다수의 세트의 매개변수가 상기 배치의 다수의 태스크에 기초하여 각각 결정되고 상기 얼굴 위조 방지 모델의 매개변수가 다수의 세트의 매개변수에 기초하여 재결정되도록, 매번 배치를 형성하기 위해 제4 미리 설정된 수의 태스크를 선택하고; 상기 얼굴 위조 방지 모델이 수렴 상태에 도달할 때까지 상기 얼굴 위조 방지 모델의 사전 훈련을 완료하도록 구성된다.According to some embodiments, the recognition device further comprises a pre-training module, wherein the pre-training module is configured to divide a fake face image of an existing category and a real face image of an existing category into a plurality of tasks - each task includes a plurality of schemes, each scheme includes a plurality of real face images of one model or a plurality of fake face images of an existing category, each task includes a first preset number of existing categories, Each manner includes a second preset number of real face images or fake face images as a small sample set consisting of support sample images, and a third preset number of real face images or fake face images as query sample images; ; forming a batch each time, such that a plurality of sets of parameters of the anti-counterfeiting model of the face are respectively determined based on a plurality of tasks of the batch and parameters of the anti-counterfeiting model are re-determined based on a plurality of sets of parameters. select a fourth preset number of tasks to do; and complete the pre-training of the anti-counterfeiting model until the anti-counterfeiting model reaches a convergence state.

일부 실시예에 따라, 상기 사전 훈련 모듈은, 각각의 지원 샘플 이미지 및 각각의 지원 샘플 이미지에 대응하는 분류 라벨에 기초하여 상기 태스크에 대응하는 제3 경사도를 결정하고, 상기 배치 내 각각의 태스크에 대한 제3 경사도에 기초하여 상기 얼굴 위조 방지 모델의 하나의 세트의 매개변수를 결정하고, 상기 배치 내 다수의 태스크 각각, 다수의 태스크에 대응하는 쿼리 샘플 이미지 및 상기 쿼리 샘플 이미지 각각에 대응하는 분류 라벨에 의해 결정되는 매개변수 세트에 기초하여 상기 배치에 대응하는 제4 경사도를 결정하고, 상기 배치에 대응하는 제4 경사도에 기초하여 상기 얼굴 위조 방지 모델의 매개변수를 재결정하도록 구성된다.According to some embodiments, the pre-training module is configured to: determine a third gradient corresponding to the task based on each support sample image and a classification label corresponding to each support sample image; determine a parameter of one set of the face forgery prevention model based on a third gradient for determine a fourth gradient corresponding to the placement based on a parameter set determined by a label, and re-determining the parameter of the anti-counterfeiting model based on the fourth gradient corresponding to the placement.

일부 실시예에 따라, 상기 얼굴 위조 방지 모델이 분류 모델인 경우에, 상기 분류 모델의 각각은 상기 분류 모델에 대응하는 지원 샘플 이미지의 범주를 라벨링하도록 구성되는 제1 분류 라벨이고, 상기 범주는 위조 방법 또는 모델 중 적어도 하나를 포함하고; 또는 상기 얼굴 위조 방지 모델이 회귀 모델인 경우에, 분류 라벨의 각각은 분류 라벨에 대응하는 지원 샘플 이미지를 양성 샘플 또는 음성 샘플로서 라벨링하도록 구성되는 제2 분류 라벨이다.According to some embodiments, when the face anti-spoofing prevention model is a classification model, each of the classification models is a first classification label, configured to label a category of a support sample image corresponding to the classification model, wherein the category is a forgery at least one of a method or a model; or when the anti-counterfeiting face model is a regression model, each of the classification labels is a second classification label, configured to label a support sample image corresponding to the classification label as a positive sample or a negative sample.

일부 실시예에 따라, 사전 훈련 전 상기 얼굴 위조 방지 모델의 초기 매개변수는 딥 러닝 훈련 방법에 따라 결정된다.According to some embodiments, the initial parameters of the anti-counterfeiting model before pre-training are determined according to a deep learning training method.

일부 실시예에 따라, 상이한 기존 범주의 위조 얼굴 이미지는 위조 방법 또는 모델 중 적어도 하나에 있어서 상이하고, 상기 위조 방법은 사진, 비디오 또는 마스크를 포함하고, 상기 모델은 깊이 모델, 근적외선 모델 또는 적색-녹색-청색(RGB) 모델을 포함하며; 상이한 태스크 내 실제 얼굴 이미지는 동일하거나 상이한 모델을 가지며; 새로운 범주의 위조 얼굴 이미지는 위조 방법 또는 모델 중 적어도 하나에 있어서 기존 이미지와는 상이하고, 상기 기존 이미지는 기존 범주의 위조 얼굴 이미지 및 기존 범주의 실제 얼굴 이미지를 포함한다.According to some embodiments, different pre-existing categories of fake face images differ in at least one of a forgery method or model, wherein the forged method includes a photograph, a video or a mask, and wherein the model is a depth model, a near-infrared model or a red- green-blue (RGB) models; Real face images in different tasks have the same or different models; The fake face image of the new category is different from the existing image in at least one of a forgery method or a model, and the existing image includes a fake face image of the old category and a real face image of the old category.

본 개시의 또 다른 실시예에 따라, 위조 얼굴 인식 장치가 제공된다. 상기 장치는 메모리; 및 상기 메모리에 결합되는 프로세서를 포함하고, 상기 프로세서는 상기 메모리에 저장된 명령에 기초하여, 앞선 실시예들 중 어느 하나의 실시예에 따른 위조 얼굴 인식 방법을 구현하도록 구성된다.According to another embodiment of the present disclosure, a fake face recognition apparatus is provided. The device includes a memory; and a processor coupled to the memory, wherein the processor is configured to implement the fake face recognition method according to any one of the preceding embodiments based on the instruction stored in the memory.

본 개시의 추가적인 또 다른 실시예에 따라, 컴퓨터 판독 가능한 저장 매체가 제공된다. 상기 저장 매체는 프로세서에 의해 수행될 때, 앞선 실시예들 중 어느 하나의 실시예에 따른 방법의 단계들을 구현하는 컴퓨터 프로그램을 저장한다.According to yet another embodiment of the present disclosure, a computer-readable storage medium is provided. The storage medium stores a computer program that, when executed by a processor, implements the steps of the method according to any one of the preceding embodiments.

본 개시에 있어서, 사전 훈련된 얼굴 위조 방지 모델의 매개변수는 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트로 직접 업데이트되어, 업데이트된 얼굴 위조 방지 모델이 새로운 범주 및 기존 범주의 다양한 위조 얼굴 이미지를 인식할 수 있다. 이는 사전 훈련된 얼굴 위조 방지 모델이 기존 범주의 위조 얼굴 이미지의 작은 샘플 세트 및 실제 얼굴 이미지의 작은 샘플 세트로 훈련되고, 얼굴 위조 방지 모델의 다수의 세트의 매개변수가 각각 다수의 태스크에 의해 결정되고, 그 후 얼굴 위조 방지 모델의 매개변수가 훈련 프로세스 동안 다수의 세트의 매개변수에 기초하여 재결정되기 때문이다. 이러한 훈련 프로세스는 2 단계: 상기 모델이 작은 샘플 세트의 특징을 학습하는 단계 또는 위조 얼굴과 실제 얼굴을 구별하도록 학습하는 단계인, 기존 범주의 위조 얼굴 이미지 및 기존 범주의 실제 얼굴 이미지의 다수의 작은 샘플 세트로 각각 얼굴 위조 방지 모델을 훈련하는 제1 단계; 및 상기 모델이 작은 샘플 세트의 특징을 학습하는 방법을 학습하거나 또는 위조 얼굴과 실제 얼굴을 구별하는 방법을 학습하는 단계인, 다수의 훈련 결과에 기초하여 집계(aggregation)를 수행하고 얼굴 위조 방지 모델의 매개변수를 재업데이트하는 제2 단계를 포함한다.In the present disclosure, the parameters of the pre-trained anti-counterfeiting model are directly updated with a small sample set of fake face images of new categories, so that the updated anti-counterfeiting model recognizes various forged face images of new and existing categories. can do. This means that the pre-trained anti-counterfeiting model is trained with a small sample set of fake face images and a small sample set of real face images in the existing category, and the parameters of multiple sets of anti-counterfeiting models are each determined by multiple tasks. This is because the parameters of the anti-counterfeiting model are then re-determined based on the multiple sets of parameters during the training process. This training process consists of two steps: the model learns features from a small set of samples, or learns to distinguish fake faces from real faces. a first step of training each face anti-counterfeiting model with a set of samples; and learning how the model learns features of a small sample set or learning how to distinguish a fake face from a real face. and a second step of re-updating the parameters of .

따라서, 기존 범주의 위조 얼굴 이미지 및 기존 범주의 실제 얼굴 이미지의 작은 샘플 세트를 포함하는 다수의 태스크를 학습한 후에, 얼굴 위조 방지 모델은 작은 샘플 세트를 학습하는 방법을 숙달하거나, 위조 얼굴과 실제 얼굴을 구별하는 것을 학습하는 방법 또는 위조의 단서를 찾아내고 유리한 초기화 매개변수를 얻는 것을 학습하는 방법을 숙달하였다. 새로운 범주의 위조 얼굴 이미지가 작은 샘플 세트의 상태에 관한 것일 때, 상기 얼굴 위조 방지 모델이 업데이트된다. 이전에 학습한 빠른 학습 능력의 혜택을 받은 얼굴 위조 방지 모델은 또한 새로운 범주의 위조 얼굴 특징의 빠른 수렴과 빠른 학습, 그리고 새로운 범주의 위조 얼굴 이미지를 적시에 효과적으로 인식하고, 새로운 범주의 위조 얼굴로부터의 공격을 적시에 효과적으로 방어하도록, 얼굴 위조 방지 모델의 적시의 효과적인 업데이트를 수행할 수 있다.Therefore, after training a number of tasks involving a small sample set of fake face images from an existing category and real face images from an existing category, the anti-counterfeiting model can master how to train a small sample set, or You have mastered how to learn to distinguish faces or learn to spot spoof clues and obtain favorable initialization parameters. When a new category of fake face images relates to the state of a small sample set, the face anti-counterfeiting model is updated. The face anti-counterfeiting model, which has benefited from the previously learned fast learning ability, also has fast convergence and fast learning of new categories of fake facial features, and timely and effective recognition of new categories of fake face images, and from new categories of fake faces. Timely and effective update of the anti-counterfeiting model can be performed to effectively and timely defend against the attacks of

본 개시의 다른 특징 및 이점들은 첨부 도면을 참고하여 본 개시의 예시적인 실시예에 대한 이하의 상세 설명으로부터 명백해질 것이다.Other features and advantages of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings.

본 개시의 추가적인 이해를 제공하고자 본 명세서에 기술된 첨부 도면은 본 출원의 일부를 구성한다. 본 개시를 설명하고자 본 개시의 도면뿐만 아니라 본 개시의 예시적인 실시예는 본 개시에 대한 부적절한 정의를 성립하지 않는다.
첨부 도면에 있어서,
도 1은 본 개시의 일부 실시예에 따른 위조 얼굴 인식 방법의 개략적인 흐름도를 도시한다.
도 2는 본 개시의 다른 실시예에 따른 위조 얼굴 인식 방법의 개략적인 흐름도를 도시한다.
도 3은 본 개시의 일부 실시예에 따른 위조 얼굴 인식 장치의 개략적인 구조도를 도시한다.
도 4는 본 개시의 다른 일부 실시예에 따른 위조 얼굴 인식 장치의 개략적인 구조도를 도시한다.
도 5는 본 개시의 또 다른 일부 실시예에 따른 위조 얼굴 인식 장치의 개략적인 구조도를 도시한다.
BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, described herein to provide a further understanding of the present disclosure, form a part of this application. The drawings of the present disclosure as well as the exemplary embodiments of the present disclosure to explain the present disclosure do not constitute an improper definition of the present disclosure.
In the accompanying drawings,
1 illustrates a schematic flowchart of a method for forged face recognition according to some embodiments of the present disclosure;
2 is a schematic flowchart of a fake face recognition method according to another embodiment of the present disclosure.
3 is a schematic structural diagram of a forged face recognition apparatus according to some embodiments of the present disclosure.
4 is a schematic structural diagram of a forged face recognition apparatus according to some other exemplary embodiments of the present disclosure.
5 is a schematic structural diagram of a forged face recognition apparatus according to another exemplary embodiment of the present disclosure.

본 개시의 실시예의 기술적 해결책이 본 개시의 실시예의 첨부 도면과 함께 이하에서 명확하고 완벽하게 설명될 것이다. 설명되는 실시예는 모든 실시예가 아니라 단지 본 개시의 실시예들 중 일부에 지나지 않는다는 점은 분명하다. 사실상 단지 예시적인 적어도 하나의 예시적 실시예에 대한 이하의 설명은 본 개시의 적용이나 사용뿐만 아니라 본 개시에 대한 어떠한 제한으로도 작용해서는 안 된다. 본 개시의 실시예에 기초하여, 진보적인 노력이 개입되지 않는다는 전제하에, 이 기술이 속하는 분야의 통상의 지식을 가진 자가 획득한 다른 모든 실시예들은 본 개시의 보호 범위에 해당할 것이다.The technical solutions of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present disclosure. It is clear that the described embodiments are not all but only some of the embodiments of the present disclosure. The following description of at least one exemplary embodiment, merely illustrative in nature, should not serve as any limitation to the disclosure, as well as the application or use of the disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those of ordinary skill in the art to which this technology pertains, on the premise that progressive efforts are not involved, will fall within the protection scope of the present disclosure.

상기 모델이 새로운 범주의 위조 얼굴을 적시에 효과적으로 인식할 수 없고, 새로운 범주의 위조 얼굴 이미지가 등장하고 매우 적은 수의 샘플이 있는 경우에 새로운 범주의 위조 얼굴로부터의 공격을 적시에 효과적으로 방어할 수 없는 문제를 해결하기 위해, 본 해결책이 제공된다. 본 개시발명의 일부 실시예에 따른 위조 얼굴 인식 방법이 도 1과 함께 후술된다.When the above model cannot timely and effectively recognize a new category of fake face, when a new category of fake face image emerges and there is a very small number of samples, it can effectively defend against an attack from a new category of fake face in a timely manner. To solve the missing problem, the present solution is provided. A fake face recognition method according to some embodiments of the present disclosure will be described below with reference to FIG. 1 .

도 1은 본 개시의 일부 실시예에 따른 위조 얼굴 인식 방법의 개략적인 흐름도를 도시한다. 도 1에 도시된 바와 같이, 이 실시예의 방법은 단계(S102) 내지 단계(S106)를 포함한다.1 illustrates a schematic flowchart of a method for forged face recognition according to some embodiments of the present disclosure; As shown in Fig. 1, the method of this embodiment includes steps S102 to S106.

단계(S102)에서, 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트가 획득된다.In step S102, a small sample set of fake face images of a new category is acquired.

본 개시에 있어서, 작은 샘플 세트 내 이미지의 개수는 임계값보다 적다. 임계값은 얼굴 위조 방지 모델이 딥 러닝 훈련 방법에 따라 작은 샘플 세트로 업데이트되어, 상기 모델이 수렴할 수 없도록 한다. 임계값은 예를 들어, 10 내지 30이나, 나열된 예로 한정되지 않는다. 새로운 범주의 위조 얼굴 이미지는 얼굴 위조 방지 모델의 사전 훈련 시 사용된 위조 얼굴 이미지와 상이한 범주에 속하고, 얼굴 위조 방지 모델의 사전 훈련 시 사용된 위조 얼굴 이미지의 범주는 기존 범주로 지칭될 수 있다.In the present disclosure, the number of images in a small sample set is less than a threshold. The threshold is such that the face anti-spoofing model is updated with a small sample set according to the deep learning training method, so that the model cannot converge. The threshold is, for example, 10 to 30, but is not limited to the examples listed. The new category of fake face images belongs to a different category from the fake face images used during the pre-training of the anti-counterfeiting model, and the category of the fake face images used during the pre-training of the anti-counterfeiting model can be referred to as an existing category. .

상이한 기존 범주의 위조 얼굴 이미지는 위조 방법 또는 모델 중 적어도 하나에 있어서 상이하다. 위조 방법은, 예를 들어, 사진, 비디오 및 마스크를 포함하고, 모델은 예를 들어, 깊이(Depth) 모델, 근적외선(NIR) 모델 및 적색-녹색-청색(RGB) 모델을 포함한다. 예를 들어, 위조 방법으로 사진을, 그리고 모델로 깊이 모델을 갖는 위조 얼굴 이미지는 위조 방법으로 사진을, 그리고 모델로 RGB 모델을 갖는 위조 얼굴 이미지와는 상이한 범주에 속하고, 위조 방법으로 사진을, 그리고 모델로 깊이 모델을 갖는 위조 얼굴 이미지 또한 위조 방법으로 비디오를, 그리고 모델로 RGB 모델을 갖는 위조 얼굴 이미지와는 상이한 범주에 속한다. 다수의 모델(multi-model) 이미지란 동일한 객체의 상이한 속성을 설명하기 위해 상이한 기술 수단에 의해 수집된 이미지를 지칭한다. 예를 들어, 특정 객체에 대해, 카메라에 의해 포착된 컬러 이미지 및 레이저 레이더에 의해 스캐닝된 깊이 이미지는 객체의 2개의 모델 이미지로 언급된다. 새로운 범주의 위조 얼굴 이미지는 위조 방법 또는 모델 중 적어도 하나에 있어서 기존 이미지와는 상이하고, 기존 이미지는 기존 범주의 위조 얼굴 이미지 및 실제 얼굴 이미지를 포함한다.The different existing categories of fake face images differ in at least one of the fake methods or models. Counterfeiting methods include, for example, photographs, videos and masks, and models include, for example, Depth models, Near Infrared (NIR) models and Red-Green-Blue (RGB) models. For example, a fake face image with a photo as a forgery method and a depth model as a model falls into a different category than a fake face image with a photo as a forgery method and an RGB model as a model, and a photo with a forgery method. , and a fake face image with a depth model as a model also belongs to a different category from a fake face image with a video as a fake method and an RGB model as a model. A multi-model image refers to an image collected by different descriptive means to describe different properties of the same object. For example, for a particular object, a color image captured by a camera and a depth image scanned by a laser radar are referred to as two model images of the object. The fake face image of the new category is different from the existing image in at least one of a forgery method or a model, and the existing image includes a fake face image and a real face image of the old category.

단계(S104)에서, 사전 훈련된 얼굴 위조 방지 모델의 매개변수는 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트로 업데이트된다. 사전 훈련된 얼굴 위조 방지 모델의 매개변수는 다수의 세트의 매개변수에 기초하여 결정되고, 얼굴 위조 방지 모델의 다수의 세트의 매개변수는 각각 다수의 태스크에 기초하여 결정되고; 각각의 태스크는 하나 이상의 기존 범주 각각의 위조 얼굴 이미지의 작은 샘플 세트 및 실제 얼굴 이미지의 작은 샘플 세트를 포함한다.In step S104, the parameters of the pre-trained anti-counterfeiting model are updated with a small sample set of a new category of fake face images. parameters of the pretrained anti-spoofing model are determined based on a plurality of sets of parameters, and parameters of the plurality of sets of anti-spoofing models are respectively determined based on a plurality of tasks; Each task includes a small sample set of fake face images and a small sample set of real face images in each of one or more existing categories.

일부 실시예에서, 얼굴 위조 방지 모델의 매개변수는 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트의 내의 다수의 위조 얼굴 이미지 및 위조 얼굴 이미지 각각에 대응하는 분류 라벨에 기초하여 업데이트된다. 얼굴 위조 방지 모델은 분류 모델 또는 회귀 모델일 수 있다. 얼굴 위조 방지 모델이 분류 모델인 경우에, 각각의 분류 라벨은 분류 라벨에 대응하는 위조 얼굴 이미지의 범주를 라벨링하도록 구성되는 제1 분류 라벨이고, 상기 범주는 위조 방법 또는 모델 중 적어도 하나를 포함한다. 대안적으로, 얼굴 위조 방지 모델이 회귀 모델인 경우에, 각각의 분류 라벨은 분류 라벨에 대응하는 위조 얼굴 이미지를 양성 샘플 또는 음성 샘플로서 라벨링하도록 구성되는 제2 분류 라벨이다. 제1 분류 라벨은 위조 얼굴 이미지의 모델 또는 위조 방법 중 적어도 하나를 라벨링할 수 있다. 상이한 위조 방법 및 상이한 모델의 이미지의 특징을 학습하는 것이 필요하다면, 위조 방법 및 모델 모두가 라벨링된다.In some embodiments, the parameters of the anti-spoofing model are updated based on a plurality of fake face images within a small sample set of fake face images of a new category and a classification label corresponding to each of the fake face images. The face anti-counterfeiting model may be a classification model or a regression model. When the anti-counterfeiting face model is a classification model, each classification label is a first classification label, configured to label a category of a fake face image corresponding to the classification label, wherein the category includes at least one of a forgery method or a model. . Alternatively, when the anti-spoofing face model is a regression model, each classification label is a second classification label, configured to label a fake face image corresponding to the classification label as a positive sample or a negative sample. The first classification label may label at least one of a model of the fake face image or a method of forgery. If it is necessary to learn features of images of different spoof methods and different models, both spoof methods and models are labeled.

새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트 내의 위조 얼굴 이미지 각각은 사전 훈련된 얼굴 위조 방지 모델 내로 입력되어, 얼굴 위조 방지 모델의 매개변수의 경사도가 출력값, 위조 얼굴 이미지 각각에 대응하는 분류 라벨 및 미리 설정된 손실 함수에 기초하여 결정되고, 사전 훈련된 얼굴 위조 방지 모델의 매개변수는 상기 경사도에 기초하여 업데이트된다. 얼굴 위조 방지 모델이 분류 모델인 경우에, 상기 미리 설정된 손실 함수는 MSE(mean square error) 손실 함수일 수 있다. 얼굴 위조 방지 모델이 회귀 모델인 경우에, 미리 설정된 손실 함수는 교차 엔트로피 손실 함수(cross entropy loss function)일 수 있으나, 이는 나열된 예로 한정되지 않는다. 사전 훈련된 얼굴 위조 방지 모델의 매개변수를 경사도에 기초하여 업데이트하는 방법은 요구에 따라 기존의 경사도 하강법일 수 있으며, 본 명세서에서는 상세하게 설명되지 않는다.Each of the fake face images in a small sample set of fake face images of a new category is input into a pre-trained anti-counterfeiting model, so that the slope of the parameters of the anti-counterfeiting model can be calculated using the output value, the classification label corresponding to each of the fake face images, and the pre-trained anti-counterfeiting model. It is determined based on the set loss function, and the parameters of the pre-trained anti-counterfeiting model are updated based on the gradient. When the face forgery prevention model is a classification model, the preset loss function may be a mean square error (MSE) loss function. When the face forgery prevention model is a regression model, the preset loss function may be a cross entropy loss function, but this is not limited to the listed examples. A method for updating the parameters of the pre-trained anti-counterfeiting model based on the gradient may be an existing gradient descent method if required, which is not described in detail herein.

일부 실시예에서, 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트 내의 다수의 위조 얼굴 이미지는 하나의 태스크에 대한 지원 샘플 이미지로서 얼굴 위조 방지 모델에 입력되고; 얼굴 위조 방지 모델의 매개변수의 경사도는 위조 얼굴 이미지 각각에 대응하는 분류 라벨 및 위조 얼굴 이미지 각각에 대한 얼굴 위조 방지 모델의 출력값에 기초하여 결정되며; 얼굴 위조 방지 모델의 매개변수는 얼굴 위조 방지 모델의 매개변수의 경사도에 기초하여 업데이트된다.In some embodiments, a plurality of fake face images in a small sample set of a new category of fake face images are input to the face anti-counterfeiting model as support sample images for one task; the gradient of the parameter of the anti-counterfeiting model is determined based on a classification label corresponding to each of the forged face images and an output value of the anti-counterfeiting model for each of the forged face images; The parameter of the anti-counterfeiting model is updated based on the gradient of the parameter of the anti-counterfeiting model.

태스크는 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트에 기초하여 구성될 수 있다. 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트 내의 위조 얼굴 이미지는 태스크의 지원 샘플 이미지일 수 있다. 이는 후술되는 위조 얼굴 모델의 사전 훈련법에 있어서 태스크를 설정하는 형태와 유사하다. 구성된 태스크는 하나 이상의 상이한 새로운 범주를 포함할 수 있고, 각각의 새로운 범주는 대응하는 작은 샘플 세트를 갖는다. 태스크는 또한, 실제 얼굴 이미지의 작은 샘플 세트 등을 포함할 수 있다.A task may be constructed based on a small sample set of a new category of fake face images. The fake face images in the small sample set of the new category of fake face images may be the supporting sample images of the task. This is similar to the form of setting the task in the pre-training method of the fake face model, which will be described later. A constructed task may include one or more different new categories, each new category having a corresponding small set of samples. Tasks may also include small sample sets of real face images, and the like.

일부 실시예에서, 얼굴 위조 방지 모델은 얼굴 위조 방지 모델의 매개변수가 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트 내 각각의 위조 얼굴 이미지 및 위조 얼굴 이미지 각각에 대응하는 제1 분류 라벨에 기초하여 업데이트되도록 분류 모델일 수 있다. 예를 들어, 모델이 깊이 모델인 실제 얼굴 이미지의 제1 분류 라벨은 0이고, 위조 방법이 마스크이고, 모델이 깊이 모델인 위조 얼굴 이미지의 제1 분류 라벨은 1이며, 새로운 범주의 제1 분류 라벨은 2이다.In some embodiments, the anti-counterfeiting model is updated based on a first classification label in which a parameter of the anti-counterfeiting model corresponds to each fake face image and each of the fake face images in a small sample set of a new category of fake face images. It may be a classification model as much as possible. For example, the first classification label of a real face image whose model is a depth model is 0, the fake method is a mask, the first classification label of a fake face image whose model is a depth model is 1, and the first classification label of the new category is 1 The label is 2.

위조 얼굴 이미지 및 실제 얼굴 이미지는 적용 시나리오에 따라 제1 분류 라벨 또는 제2 분류 라벨로 라벨링될 수 있다. 예를 들어, 얼굴 위조 방지 모델의 매개변수를 업데이트하는 프로세스 동안, 제1 분류 라벨은 손실 함수값, 경사도 값 등을 계산하는데 사용될 수 있으며, 이는 모델의 정확도를 개선할 수 있다. 얼굴 위조 방지 모델이 이미지를 분류하고, 결과를 출력할 때, 이미지들을 2개의 범주: 실제 얼굴 이미지 및 위조 얼굴 이미지로 구별하기만 하면 된다. 얼굴 위조 방지 모델이 사전 훈련된 후의 테스트 프로세스 동안, 이미지가 위조인지 실제인지를 인식함에 있어서 얼굴 위조 방지 모델의 정확성을 테스트하기 위해 제2 분류 라벨이 사용될 수 있다. 예를 들어, 위조 얼굴 이미지를 나타내는 제2 분류 라벨은 0이고, 실제 얼굴 이미지를 나타내는 제2 분류 라벨은 1이다.The fake face image and the real face image may be labeled with a first classification label or a second classification label according to an application scenario. For example, during the process of updating the parameters of the face anti-counterfeiting model, the first classification label may be used to calculate a loss function value, a gradient value, etc., which may improve the accuracy of the model. When the anti-counterfeiting model classifies images and outputs the results, it only needs to classify the images into two categories: real face images and fake face images. During the testing process after the anti-spoofing model is pre-trained, the second classification label may be used to test the accuracy of the anti-spoofing model in recognizing whether an image is fake or real. For example, the second classification label representing the fake face image is 0, and the second classification label representing the real face image is 1.

또한, 얼굴 위조 방지 모델이 분류 모델인 경우에, 위조 얼굴 이미지 각각에 대한 얼굴 위조 방지 모델의 출력값은 각각의 위조 얼굴 이미지가 각각 상이한 범주에 속할 확률이고, 이에 따라 얼굴 위조 방지 모델의 매개변수의 제1 경사도는 위조 얼굴 이미지 각각에 대응하는 제1 분류 라벨 및 각각의 위조 얼굴 이미지가 각각 상이한 범주에 속할 확률에 기초하여 결정된다.In addition, when the anti-counterfeiting model is a classification model, the output value of the anti-counterfeiting model for each forged face image is the probability that each forged face image belongs to a different category, and accordingly, the parameter of the anti-counterfeiting model is The first gradient is determined based on a first classification label corresponding to each of the fake face images and a probability that each of the fake face images belongs to a different category, respectively.

일부 실시예에서, 얼굴 위조 방지 모델은 얼굴 위조 방지 모델의 매개변수가 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트 내의 각각의 위조 얼굴 이미지 및 위조 얼굴 이미지 각각에 대응하는 제2 분류 라벨에 기초하여 업데이트되도록, 회귀 모델일 수 있다. 회귀 모델은 최종적으로 입력 이미지에 대한 값을 출력하고, 값에 대응하는 임계값이 설정될 수 있다. 값이 임계값보다 크면, 이는 이미지가 실제 얼굴 이미지임을 의미하고, 값이 임계값보다 작으면, 이는 이미지가 위조 얼굴 이미지임을 의미한다. 따라서, 회귀 모델은 이미지의 제2 분류 라벨을 적용할 수 있다.In some embodiments, the anti-counterfeiting model is updated based on a second classification label in which the parameter of the anti-counterfeiting model corresponds to each forged face image and each of the forged face images in a small sample set of a new category of forged face images. Preferably, it may be a regression model. The regression model may finally output a value for the input image, and a threshold value corresponding to the value may be set. If the value is greater than the threshold, it means that the image is a real face image, and if the value is less than the threshold, it means that the image is a fake face image. Thus, the regression model can apply a second classification label of the image.

또한, 얼굴 위조 방지 모델이 회귀 모델인 경우에, 위조 얼굴 이미지 각각에 대한 얼굴 위조 방지 모델의 출력값은 각각의 위조 얼굴 이미지가 양성 샘플에 속할 확률이고, 이에 따라 위조 얼굴 이미지 각각에 대응하는 제2 분류 라벨 및 각각의 위조 얼굴 이미지가 양성 샘플에 속할 확률에 기초하여 제2 경사도가 결정되고, 얼굴 위조 방지 모델의 매개변수는 제2 경사도에 기초하여 업데이트된다.In addition, when the anti-counterfeiting model is a regression model, the output value of the anti-counterfeiting model for each of the forged face images is the probability that each forged face image belongs to the positive sample, and accordingly, the second corresponding to each of the forged face images A second gradient is determined based on the classification label and the probability that each fake face image belongs to a positive sample, and a parameter of the face anti-counterfeiting model is updated based on the second gradient.

사전 훈련된 얼굴 위조 방지 모델의 매개변수는 이하의 방법에 의해 훈련된다: 얼굴 위조 방지 모델의 다수의 세트의 매개변수가 다수의 태스크에 기초하여 각각 결정되고, 그 후 얼굴 위조 방지 모델의 매개변수가 다수의 세트의 매개변수에 기초하여 재결정된다. 각각의 태스크는, 하나 이상의 기존 범주 각각의 위조 얼굴 이미지의 작은 샘플 세트 및 하나 이상의 기존 범주 각각의 실제 얼굴 이미지의 작은 샘플 세트를 포함한다. 실제 얼굴 이미지는 상이한 모델의 실제 얼굴 이미지로 분할될 수도 있다. 각각의 태스크는 하나 이상의 모델 각각의 실제 얼굴 이미지의 작은 샘플 세트를 포함할 수 있다. 상이한 태스크 내 실제 얼굴 이미지는 동일하거나 상이한 모델을 갖는다. 즉, 기존 범주의 위조 얼굴 이미지 및 기존 범주의 실제 얼굴 이미지로 구성되는 작은 샘플 세트가 다수의 태스크에 할당된다. 비록, 상이한 작은 샘플 세트가 얼굴 위조 방지 모델을 훈련시키는 데 사용될 수 있지만, 훈련 후 다수의 훈련 결과에 기초하여 얼굴 위조 방지 모델의 매개변수를 재결정할 필요가 있다. 상이한 작은 샘플 세트로 얼굴 위조 방지 모델을 훈련하는 프로세스는 모델 학습의 프로세스이고, 다수의 훈련 결과에 기초하여 매개변수를 재결정하는 프로세스는 모델 "학습하는 방법을 학습하는" 프로세스이다.The parameters of the pre-trained anti-counterfeiting model are trained by the following method: parameters of multiple sets of anti-counterfeiting models are respectively determined based on multiple tasks, and then parameters of the anti-counterfeiting model is re-determined based on the plurality of sets of parameters. Each task includes a small sample set of fake facial images in each of one or more existing categories and a small sample set of real facial images in each of one or more existing categories. The real face image may be divided into real face images of different models. Each task may include a small sample set of real face images of each of one or more models. Real face images in different tasks have the same or different models. That is, a small sample set consisting of a fake face image of an existing category and a real face image of an existing category is assigned to multiple tasks. Although, different small sample sets can be used to train the anti-counterfeiting model, it is necessary to recrystallize the parameters of the anti-counterfeiting model after training based on a large number of training results. The process of training a face anti-spoofing model with different small sample sets is a process of model learning, and the process of recrystallizing parameters based on multiple training results is a process of "learning how to learn" the model.

위의 2개의 프로세스 후에, 모델은 작은 샘플 세트의 특징을 학습했을 뿐만 아니라, 작은 샘플 세트의 특징을 학습하는 방법을 학습했거나, 또는 얼굴 위조 방지 모델은 최종적으로, 단순히 위조 얼굴과 실제 얼굴을 식별하는 방법을 학습하거나 단순히 위조 단서를 학습하는 대신 "위조 얼굴과 실제 얼굴을 식별하는 것을 학습하는 방법" 및 "위조 단서를 찾는 것을 학습하는 방법"을 학습하였다. 따라서, 새로운 범주의 위조 얼굴 이미지가 작은 샘플 세트에 속할 때, 얼굴 위조 방지 모델은 또한 새로운 범주의 위조 얼굴의 특징의 빠른 수렴 및 빠른 학습을 수행할 수 있어, 효과적이고 적시에 방어할 수 있다.After the above two processes, the model not only learned the features of a small sample set, but also learned how to learn the features of a small sample set, or the face anti-counterfeiting model finally, simply identifies fake faces and real faces Instead of learning how to do it or simply learning fake clues, we learned "how to learn to identify fake faces and real faces" and "how to learn to find fake clues". Therefore, when the fake face image of a new category belongs to a small sample set, the face anti-counterfeiting model can also perform fast convergence and fast learning of the features of the fake face of the new category, making effective and timely defense.

단계(S106)에서, 인식될 얼굴 이미지는 인식될 얼굴 이미지가 위조 얼굴 이미지인지 여부가 결정되도록, 매개변수가 업데이트된 후에 얼굴 위조 방지 모델 내로 입력된다.In step S106, the face image to be recognized is input into the face anti-counterfeiting model after the parameter is updated, so that it is determined whether the face image to be recognized is a forgery face image.

인식될 얼굴 이미지는, 둘 모두 얼굴 위조 방지 모델에 의해 인식될 수 있는 새로운 범주 또는 기존 범주에 속하는 위조 얼굴 이미지일 수 있다.The face image to be recognized may be a fake face image belonging to a new category or an existing category, both of which can be recognized by the face forgery prevention model.

전술한 실시예의 방법에서, 사전 훈련된 얼굴 위조 방지 모델의 매개변수는 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트로 직접 업데이트되어, 업데이트된 얼굴 위조 방지 모델이 기존 범주 및 새로운 범주의 다양한 위조 얼굴 이미지를 인식할 수 있다. 이는 사전 훈련된 얼굴 위조 방지 모델이 기존 범주의 위조 얼굴 이미지의 작은 샘플 세트 및 실제 얼굴 이미지의 작은 샘플 세트로 훈련되고, 얼굴 위조 방지 모델의 다수의 세트의 매개변수가 각각 다수의 태스크에 의해 결정되고, 그 후 얼굴 위조 방지 모델의 매개변수가 훈련 프로세스 동안 다수의 세트의 매개변수에 기초하여 재결정되기 때문이다. 이러한 훈련 프로세스는 2 단계: 각각 기존 범주의 위조 얼굴 이미지 및 기존 범주의 실제 얼굴 이미지의 다수의 작은 샘플 세트로 얼굴 위조 방지 모델을 훈련하는 제1 단계 - 이는 모델이 작은 샘플 세트의 특징을 학습하는 단계 또는 위조 얼굴과 실제 얼굴을 식별하기 위해 학습하는 단계임 - ; 및 집계를 수행하고 다수의 훈련 결과에 기초하여 얼굴 위조 방지 모델의 매개변수를 재업데이트하는 제2 단계 - 이는 모델이 작은 샘플 세트의 특징을 학습하는 방법을 학습하거나, 위조 얼굴과 실제 얼굴을 식별하는 것을 학습하는 방법을 학습하는 단계임 - 를 포함한다.In the method of the above-described embodiment, the parameters of the pre-trained anti-counterfeiting model are directly updated with a small sample set of spoof face images of a new category, so that the updated anti-counterfeiting model is configured with a variety of spoof face images of the old category and the new category. can recognize This means that the pre-trained anti-counterfeiting model is trained with a small sample set of fake face images and a small sample set of real face images in the existing category, and the parameters of multiple sets of anti-counterfeiting models are each determined by multiple tasks. This is because the parameters of the anti-counterfeiting model are then re-determined based on the multiple sets of parameters during the training process. This training process consists of two steps: the first step of training the anti-spoofing model on a large number of small sample sets of fake face images from an existing category and real face images from an existing category, respectively - this is where the model learns features from a small set of samples. Stage or stage - learning to identify fake and real faces; and a second step of performing aggregation and re-updating the parameters of the anti-counterfeiting model based on the plurality of training results, wherein the model learns how to learn features from a small sample set, or identifies fake and real faces. It is the stage of learning how to learn to do - including.

따라서, 기존 범주의 위조 얼굴 이미지 및 기존 범주의 실제 얼굴 이미지의 작은 샘플 세트를 포함하는 다수의 태스크를 학습한 후에, 얼굴 위조 방지 모델은 작은 샘플 세트를 학습하는 방법을 숙달하거나, 위조 얼굴과 실제 얼굴을 식별하는 것을 학습하는 방법 또는 위조의 단서를 찾아내고 유리한 초기화 매개변수를 얻는 것을 학습하는 방법을 숙달하였다. 새로운 범주의 위조 얼굴 이미지가 작은 샘플 세트의 상태에 관한 것일 때, 얼굴 위조 방지 모델이 업데이트된다. 이전에 학습한 빠른 학습 능력의 혜택을 받은 얼굴 위조 방지 모델은 또한 새로운 범주의 위조 얼굴 특징의 빠른 수렴과 빠른 학습, 그리고 새로운 범주의 위조 얼굴 이미지를 적시에 효과적으로 인식하고, 새로운 범주의 위조 얼굴로부터의 공격을 적시에 효과적으로 방어하도록, 얼굴 위조 방지 모델의 적시의 효과적인 업데이트를 수행할 수 있다.Therefore, after training a number of tasks involving a small sample set of fake face images from an existing category and real face images from an existing category, the anti-counterfeiting model can master how to train a small sample set, or You have mastered how to learn to identify faces or learn to spot spoofing cues and obtain favorable initialization parameters. When a new category of fake face images relates to the state of a small sample set, the face anti-counterfeiting model is updated. The face anti-counterfeiting model, which has benefited from the previously learned fast learning ability, also has fast convergence and fast learning of new categories of fake facial features, and timely and effective recognition of new categories of fake face images, and from new categories of fake faces. Timely and effective update of the anti-counterfeiting model can be performed to effectively and timely defend against the attacks of

본 개시의 다른 실시예에 따른 위조 얼굴 인식 방법은 도 2와 함께 후술될 것이다. 이러한 실시예는 얼굴 위조 방지 모델의 사전 훈련 방법 및 작동 방법을 포함한다.A fake face recognition method according to another embodiment of the present disclosure will be described later with reference to FIG. 2 . This embodiment includes a pre-training method and a working method of a face anti-counterfeiting model.

도 2는 본 개시의 다른 실시예에 따른 위조 얼굴 인식 방법의 개략적인 흐름도를 도시한다. 도 2에 도시된 바와 같이, 이 실시예의 방법은 단계(S202) 내지 단계(S214)를 포함한다.2 is a schematic flowchart of a fake face recognition method according to another embodiment of the present disclosure. As shown in Fig. 2, the method of this embodiment includes steps S202 to S214.

단계(S202)에서, 얼굴 위조 방지 모델은 사전 훈련 전 얼굴 위조 방지 모델의 초기 매개변수가 결정되도록, 딥 러닝 훈련 방법에 따라 기존 범주의 위조 얼굴 이미지 및 기존 범주의 실제 얼굴 이미지로 초기에 훈련된다.In step S202, the anti-counterfeiting face model is initially trained with a fake face image of an existing category and a real face image of an existing category according to the deep learning training method, so that the initial parameters of the anti-counterfeiting model are determined before pre-training. .

먼저, 얼굴 위조 방지 모델은 기존의 딥 러닝 훈련 방법을 사용하여 훈련되고, 그 후 후속하는 사전 훈련 프로세스로 진행하며, 이에 따라 이중 훈련 후 얼굴 위조 방지 모델은 유리한 식별 및 일반화를 나타낸다. 딥 러닝 훈련 방법으로 인해 얼굴 위조 방지 모델이 이미지를 더욱 정확하게 식별할 수 있고, 본 개시의 사전 훈련 방법에 따라 모델이 상이한 범주의 위조 얼굴 이미지를 일반화할 수 있기 때문에, 이중 훈련 후 얼굴 위조 방지 모델은 새로운 태스크에 대한 신속한 적응성뿐만 아니라, 공지된 태스크 또는 유사한 태스크에 대한 유리한 식별을 나타낼 수 있다.First, the anti-counterfeiting face model is trained using the existing deep learning training method, and then proceeds to the subsequent pre-training process, so that the face anti-spoofing model after double training shows favorable identification and generalization. Because the anti-counterfeiting face model can more accurately identify images due to the deep learning training method, and the model can generalize different categories of fake face images according to the pre-training method of the present disclosure, the face anti-counterfeiting model after double training may indicate favorable identification for known or similar tasks, as well as rapid adaptability to new tasks.

단계(S204)에서, 기존 범주의 위조 얼굴 이미지 및 기존 범주의 실제 얼굴 이미지는 다수의 태스크로 분할된다. 각각의 태스크는 다수의 방식을 포함하고, 각각의 방식은 하나의 모델의 다수의 실제 얼굴 이미지 또는 기존 범주의 다수의 위조 얼굴 이미지를 포함하고, 각각의 방식은 지원 샘플 이미지로 구성되는 작은 샘플 세트로서 제2 미리 설정된 수의 실제 얼굴 이미지 또는 위조 얼굴 이미지 및 쿼리 샘플 이미지로서 제3 미리 설정된 수의 실제 얼굴 이미지 또는 위조 얼굴 이미지를 포함한다. 각각의 태스크는 제1 미리 설정된 수의 기존 범주를 포함한다. 각각의 기존 범주는 위조 방법 및/또는 모델을 나타낸다. 얼굴 위조 방지 모델이 상이한 위조 방법으로 위조 얼굴 이미지를 인식하도록만 구성된다면, 기존 범주는 위조 방법을 나타내도록만 구성되고, 모든 위조 얼굴 이미지 및 실제 얼굴 이미지는 동일한 모델에 속한다. 얼굴 위조 방지 모델이 상이한 위조 방법 및 상이한 모델의 위조 얼굴 이미지를 인식하도록 구성된다면, 각각의 기존 범주는 위조 방법 또는 모델을 나타낸다.In step S204, the fake face image of the existing category and the real face image of the existing category are divided into a plurality of tasks. Each task includes multiple schemes, each scheme includes multiple real face images of one model or multiple fake face images of an existing category, each scheme comprising a small set of samples consisting of supporting sample images a second preset number of real face images or fake face images and a third preset number of real face images or fake face images as query sample images. Each task includes a first preset number of existing categories. Each existing category represents a counterfeiting method and/or model. If the anti-counterfeiting face model is only configured to recognize the fake face image with different forgery methods, the existing category is only configured to indicate the forgery method, and all the fake face images and real face images belong to the same model. If the anti-spoofing face model is configured to recognize the fake face images of different forgery methods and different models, then each existing category represents a forgery method or model.

태스크는 다수의 방식을 포함한다. 각각의 방식은 제2 미리 설정된 수의 지원 샘플 이미지 및 제3 미리 설정된 수의 쿼리 샘플 이미지를 포함한다. 각각의 방식의 지원 샘플 이미지는 작은 샘플 세트를 형성한다. 즉, 각 태스크 내 각각의 방식의 지원 샘플 이미지는 예를 들어, 10 내지 30인 임계치보다 작다. 사전 훈련 프로세스 동안, 지원 샘플 이미지에 의해 형성되는 작은 샘플 세트 내 이미지의 개수는 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트 내 이미지의 개수와 동일하거나 상이할 수 있다. 지원 샘플 이미지에 의해 형성되는 작은 샘플 세트 내 이미지의 개수가 새로운 범주의 작은 샘플 세트의 위조 얼굴 이미지 내 이미지의 개수보다 적거나 동일한 경우에, 얼굴 위조 방지 모델이 사전 훈련 프로세스에서 새로운 범주의 작은 샘플 세트에 기초하여 후속하여 업데이트된 후에, 얼굴 위조 방지 모델은 보다 우수한 인식 효과를 나타낼 수 있다. 이는 얼굴 위조 방지 모델이 사전 훈련 프로세스 동안 보다 적은 개수의 샘플을 학습하는 방법을 학습하고, 업데이트 시 새로운 범주의 다수의 이미지가 있어서, 모델의 매개변수의 업데이트가 보다 우수하게 수행될 수 있기 때문이다.A task includes a number of ways. Each manner includes a second preset number of support sample images and a third preset number of query sample images. The supporting sample images of each scheme form a small sample set. That is, the supported sample image of each manner within each task is less than a threshold, which is, for example, 10 to 30. During the pre-training process, the number of images in the small sample set formed by the supporting sample images may be the same as or different from the number of images in the small sample set of the new category of fake face images. If the number of images in the small sample set formed by the supporting sample images is less than or equal to the number of images in the fake face images of the small sample set of the new category, the face anti-counterfeiting model is tested in the pre-training process for the small sample of the new category. After being subsequently updated on the basis of the set, the anti-counterfeiting model may exhibit a better recognition effect. This is because the face anti-counterfeiting model learns how to learn a smaller number of samples during the pre-training process, and there are a large number of images of new categories at the time of update, so that the update of the parameters of the model can perform better. .

매번, 기존 범주의 제1 미리 설정된 수는 임의로 선택될 수 있으며, 그 후 지원 샘플 이미지의 제2 미리 설정된 수 및 쿼리 샘플 이미지의 제3 미리 설정된 수가 기존 범주의 선택된 위조 얼굴 이미지로부터 임의로 선택될 수 있다. 하나 이상의 모델의 실제 얼굴 이미지는 임의로 선택될 수 있고, 그 후 지원 샘플 이미지의 제2 미리 설정된 수 및 쿼리 샘플 이미지의 제3 미리 설정된 수가 선택된 실제 얼굴 이미지로부터 임의로 선택되어 태스크를 생성할 수 있다. 상이한 태스크 내 이미지는 정확하게 동일할 수는 없다.Each time, a first preset number of existing categories can be randomly selected, and then a second preset number of support sample images and a third preset number of query sample images can be randomly selected from the selected fake face images of existing categories. have. Real face images of one or more models may be randomly selected, and then a second preset number of support sample images and a third preset number of query sample images may be randomly selected from the selected real face images to create a task. Images in different tasks cannot be exactly the same.

단계(S206)에서, 태스크의 제4 미리 설정된 수가 배치(batch)를 형성하기 위해 선택되어, 얼굴 위조 방지 모델의 다수의 세트의 매개변수가 배치의 다수의 태스크에 기초하여 각각 결정되고, 얼굴 위조 방지 모델의 매개변수가 다수의 세트의 매개변수에 기초하여 재결정된다.In step S206, a fourth preset number of tasks is selected to form a batch, so that parameters of a plurality of sets of anti-counterfeiting models are respectively determined based on the plurality of tasks of the batch, The parameters of the prevention model are re-determined based on the plurality of sets of parameters.

태스크의 제4 미리 설정된 수는 배치를 형성하기 위해 임의로 선택될 수 있다. 예를 들어, 5개의 태스크가 배치로서 선택된다. 각각의 배치에 대해, 얼굴 위조 방지 모델의 매개변수는 두 번 업데이트될 수 있다. 제1 업데이트는 각각의 태스크 내 지원 샘플 이미지로 얼굴 위조 방지 모델의 매개변수를 업데이트하는 것이다. 제2 업데이트는 각각의 태스크 내 쿼리 샘플 이미지로 얼굴 위조 방지 모델의 매개변수를 업데이트하는 것이다. 즉, 업데이트는 학습 프로세스 및 앞서 언급된 "학습 방법을 학습하는" 프로세스로 구성된다. 이는 각각의 배치가 매개변수를 일회 업데이트하기 위해 모델에 직접 입력되는 기존의 딥 러닝 방법과는 상이하다.A fourth preset number of tasks may be arbitrarily selected to form a batch. For example, 5 tasks are selected as batches. For each batch, the parameters of the anti-counterfeiting model can be updated twice. The first update is to update the parameters of the anti-counterfeiting model of the face with the supported sample images in each task. The second update is to update the parameters of the anti-counterfeiting model with the query sample image in each task. That is, the update consists of a learning process and the aforementioned "learning method of learning" process. This is different from traditional deep learning methods, where each batch is directly input into the model to update the parameters once.

일부 실시예에서, 배치 내 각각의 태스크에 대해, 태스크에 대응하는 (제1 경사도로부터 업데이트된) 제3 경사도가 각각의 지원 샘플 이미지 및 각각의 지원 샘플 이미지에 대응하는 분류 라벨에 기초하여 결정되고, 얼굴 위조 방지 모델의 매개변수 세트는 제3 경사도에 기초하여 결정된다. 중간 매개변수에 속하고, 실제로 얼굴 위조 방지 모델의 매개변수를 업데이트하지 않는 다수의 태스크에 의해 결정되는 다수의 세트의 매개변수가 다음 업데이트를 위해 저장될 수 있다. 또한, 배치에 대응하는 (제2 경사도로부터 업데이트된) 제4 경사도가 배치 내 다수의 태스크 각각에 대해 결정된 매개변수 세트, 다수의 태스크에 대응하는 쿼리 샘플 이미지 및 쿼리 샘플 이미지 각각에 대응하는 분류 라벨에 기초하여 결정된다. 얼굴 위조 방지 모델의 매개변수는 배치에 대응하는 제4 경사도에 기초하여 재결정된다. 제2 시간에 대해 결정된 얼굴 위조 방지 모델의 매개변수는 얼굴 위조 방지 모델의 매개변수를 업데이트하는데 사용된다.In some embodiments, for each task in the batch, a third gradient (updated from the first gradient) corresponding to the task is determined based on each support sample image and a classification label corresponding to each support sample image; , a parameter set of the face anti-counterfeiting model is determined based on the third gradient. A plurality of sets of parameters belonging to the intermediate parameters and determined by a plurality of tasks that do not actually update the parameters of the anti-counterfeiting model may be stored for the next update. Further, a parameter set for which a fourth gradient (updated from the second gradient) corresponding to the batch is determined for each of a plurality of tasks in the batch, a query sample image corresponding to the plurality of tasks, and a classification label corresponding to each of the query sample images is determined based on The parameters of the anti-counterfeiting model are re-determined based on the fourth inclination corresponding to the arrangement. The parameters of the anti-counterfeiting model determined for the second time are used to update the parameters of the anti-counterfeiting model.

예를 들어, 배치 내 각각의 태스크(

Figure pct00001
)에 대해, i는 태스크의 일련번호(serial number)를 나타내는 양의 정수이고, T는 배치의 태스크 세트이다. 각각의 태스크(
Figure pct00002
)에 대해, 태스크에 대응하는 얼굴 위조 방지 모델의 매개변수의 제3 경사도(
Figure pct00003
)가 계산되며, 여기서 θ는 얼굴 위조 방지 모델의 현재 매개변수를 나타내고,
Figure pct00004
는 태스크(
Figure pct00005
)에 대한 지원 샘플 이미지를 사용하여 현재 매개변수(θ)에 대해 계산된 손실 함수(
Figure pct00006
)의 경사도를 나타낸다. 태스크(
Figure pct00007
)에 대해 결정된 얼굴 위조 방지 모델의 매개변수는
Figure pct00008
로 표현될 수 있으며, 여기서 α는 제1 스텝값을 나타낸다. 배치 내 다수의 태스크는 (가중치 매개변수 행렬일 수 있는) 다수의
Figure pct00009
를 결정할 수 있으며, 이는 저장된다.For example, for each task in the batch (
Figure pct00001
), i is a positive integer representing the serial number of the task, and T is the set of tasks in the batch. Each task (
Figure pct00002
), the third slope (
Figure pct00003
) is calculated, where θ represents the current parameters of the face anti-spoofing model,
Figure pct00004
is the task (
Figure pct00005
) computed loss function for the current parameter (θ) using the supporting sample images for
Figure pct00006
) is the slope of the task(
Figure pct00007
), the parameters of the anti-counterfeiting model determined for
Figure pct00008
It can be expressed as , where α represents the first step value. Multiple tasks in a batch (which may be weight parameter matrices)
Figure pct00009
can be determined, which is stored.

또한, 배치에 대해, 배치에 대응하는 제4 경사도는

Figure pct00010
로 표현될 수 있으며, 이는 배치 내 다수의 태스크의 손실이 먼저 합해지고, 그 후 경사도가 계산됨을 나타낸다. 손실 및 제4 경사도는 태스크(
Figure pct00011
)의 쿼리 샘플 이미지 및 대응하는
Figure pct00012
에 기초하여 계산된다. 이러한 배치에 대해 업데이트된 얼굴 위조 방지 모델의 매개변수는
Figure pct00013
이다. β는 제2 스텝값이다.
Figure pct00014
가 제4 경사도를 계산하기 위한 중간 변수이고, 모델의 매개변수가 배치의 시작 시 θ에 기초하여 각각의 배치에 대해 업데이트되는 것으로 볼 수 있다. 얼굴 위조 방지 모델이 쿼리 샘플 이미지로 업데이트되어, 태스크 상의 모델의 일반화 능력이 향상되고, 지원 샘플 이미지의 오버피팅을 방지하는 것이 가능하다.Also, for the arrangement, the fourth slope corresponding to the arrangement is
Figure pct00010
It can be expressed as , which indicates that the loss of multiple tasks in the batch is first summed, and then the gradient is calculated. The loss and the fourth slope are the tasks (
Figure pct00011
) query sample images and their corresponding
Figure pct00012
is calculated based on The parameters of the face anti-counterfeiting model updated for these deployments are:
Figure pct00013
to be. β is the second step value.
Figure pct00014
It can be seen that is an intermediate variable for calculating the fourth slope, and the parameters of the model are updated for each batch based on θ at the start of the batch. It is possible that the anti-forgery face model is updated with the query sample image, so that the generalization ability of the model on the task is improved, and overfitting of the supporting sample image is prevented.

얼굴 위조 방지 모델이 분류 모델인 경우에, 분류 라벨의 각각은 분류 라벨에 대응하는 지원 샘플 이미지의 범주를 라벨링하도록 구성되는 제1 분류 라벨이고, 범주는 위조 방법 또는 모델 중 적어도 하나를 포함한다. 대안적으로, 얼굴 위조 방지 모델이 회귀 모델인 경우에, 분류 라벨 각각은 분류 라벨에 대응하는 지원 샘플 이미지를 양성 샘플 또는 음성 샘플로서 라벨링하도록 구성되는 제2 분류 라벨이다. 실제 얼굴 이미지에 대해, 미리 설정된 값은 위조 방법을 사용하여 라벨링이 수행될 때 라벨링될 수 있다. 즉, 얼굴 위조 방지 모델이 분류 모델인 경우에, 이러한 배치 내 각각의 태스크에 대해, 이러한 태스크에 대응하는 제3 경사도는 각각의 지원 샘플 이미지 및 각각의 지원 샘플 이미지에 대응하는 제1 분류 라벨에 기초하여 결정된다. 대안적으로, 얼굴 위조 방지 모델이 회귀 모델인 경우에, 이러한 배치 내 각각의 태스크에 대해, 이러한 태스크에 대응하는 제3 경사도는 각각의 지원 샘플 이미지 및 각각의 지원 샘플 이미지에 대응하는 제2 분류 라벨에 기초하여 결정된다.When the anti-counterfeiting face model is a classification model, each of the classification labels is a first classification label, configured to label a category of the supporting sample image corresponding to the classification label, and the category includes at least one of a forgery method or a model. Alternatively, when the anti-counterfeiting model is a regression model, each of the classification labels is a second classification label, configured to label a supporting sample image corresponding to the classification label as a positive sample or a negative sample. For a real face image, a preset value may be labeled when labeling is performed using a forgery method. That is, when the anti-counterfeiting model is a classification model, for each task in this batch, the third gradient corresponding to this task is in each support sample image and a first classification label corresponding to each support sample image. is determined based on Alternatively, when the face anti-spoofing model is a regression model, for each task in this batch, the third gradient corresponding to this task is a second classification corresponding to each support sample image and each support sample image. It is determined based on the label.

단계(S208)에서, 얼굴 위조 방지 모델이 수렴 상태에 도달하였는지 여부가 판단되고, '예'인 경우에, 얼굴 위조 방지 모델의 사전 훈련은 완료되며, '아니오'인 경우에, 재시작을 위해 단계(S206)로 복귀한다.In step S208, it is determined whether or not the anti-counterfeiting model has reached a convergence state. If yes, the pre-training of the anti-counterfeiting model is completed, and in the case of no, the step for restarting. It returns to (S206).

수렴 상태는 예를 들어, 손실 함수 값이 최소의 또는 미리 설정된 손실 함수 값에 도달하는 것으로 구성된다. 손실 함수 값이 수렴 상태를 만족하지 않는다면, 얼굴 위조 방지 모델을 훈련하기 위해 다른 배치를 선택하도록, 단계(S206)로 복귀하는 것이 가능하다.The convergence state consists, for example, that the loss function value reaches a minimum or preset loss function value. If the loss function value does not satisfy the convergence state, it is possible to return to step S206 to select another batch for training the face anti-counterfeiting model.

전술한 단계들은 얼굴 위조 방지 모델의 사전 훈련 프로세스에 속한다. 비록, 각각의 태스크 내 각각의 범주의 지원 샘플 이미지가 매우 적은 수이어서 작은 샘플 세트에 속하지만, 전체 사전 훈련 프로세스 동안 (기존 범주 및 실제 얼굴 범주의 다수의 샘플 이미지를 포함하는) 다수의 샘플이 사용된다는 점을 인식해야 한다. 또한, 샘플의 수가 많을수록 좋을 것이다. 유일하게 다른 점이라면, 많은 태스크 및 많은 작은 샘플 세트가 분할되어, 모델이 사전 훈련 프로세스 동안 "학습하는 방법을 학습하는" 것이 가능하고, 모델의 정확도가 개선될 수 있다는 것이다.The steps described above belong to the pre-training process of the anti-counterfeiting model. Although the number of supporting sample images of each category within each task is very small and therefore belongs to a small sample set, during the whole pre-training process a large number of samples (including many sample images of the existing categories and real face categories) It should be recognized that the use Also, the larger the number of samples, the better. The only difference is that many tasks and many small sample sets are partitioned, allowing the model to "learn how to learn" during the pre-training process, and the accuracy of the model can be improved.

단계(S210)에서, 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트가 획득된다.In step S210, a small sample set of fake face images of a new category is acquired.

새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트는 태스크 내 지원 샘플 이미지로서 쓰일 수 있다. 태스크는 하나 이상의 새로운 범주를 포함할 수 있으며, 각각의 새로운 범주는 작은 샘플 세트에 대응한다.A small sample set of a new category of fake face images can be used as supporting sample images in the task. A task may contain one or more new categories, each new category corresponding to a small set of samples.

단계(S212)에서, 사전 훈련된 얼굴 위조 방지 모델의 매개변수는 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트로 업데이트된다.In step S212, the parameters of the pre-trained anti-spoofing model are updated with a small sample set of a new category of fake face images.

새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트로 사전 훈련된 얼굴 위조 방지 모델의 매개변수를 업데이트하는 방법은 단계(S206)에서 태스크(

Figure pct00015
)의 지원 샘플 이미지를 사용함으로써 얼굴 위조 방지 모델의 매개변수(
Figure pct00016
)를 결정하는 프로세스와 유사하다. 예를 들어, 태스크(
Figure pct00017
)의 지원 샘플 이미지로서 하나 이상의 새로운 범주의 작은 샘플 세트 내 위조 얼굴 이미지의 경우에, 이러한 태스크(
Figure pct00018
)에 대응하는 얼굴 위조 방지 모델의 매개변수의 제3 경사도(
Figure pct00019
)가 계산되고, 이러한 태스크(
Figure pct00020
)에 대해 결정된 얼굴 위조 방지 모델의 매개변수는
Figure pct00021
으로 표현될 수 있으며, 여기서 α는 제1 스텝값을 나타낸다. 즉, 업데이트된 얼굴 위조 방지 모델의 매개변수는
Figure pct00022
이다. 쿼리 샘플 이미지를 사용하는 업데이트 프로세스는 더 이상 수행되지 않는다.Method (
Figure pct00015
) parameters of the anti-counterfeiting model (
Figure pct00016
) is similar to the process of determining For example, task(
Figure pct00017
), in the case of fake face images within a small sample set of one or more new categories as supporting sample images of
Figure pct00018
), the third slope of the parameter of the anti-counterfeiting model (
Figure pct00019
) is calculated, and these tasks (
Figure pct00020
), the parameters of the anti-counterfeiting model determined for
Figure pct00021
It can be expressed as , where α represents the first step value. That is, the parameters of the updated anti-counterfeiting model are
Figure pct00022
to be. The update process using the query sample image is no longer performed.

단계(S214)에서, 인식될 얼굴 이미지는 인식될 얼굴 이미지가 위조 얼굴 이미지인지 여부가 결정되도록, 매개변수 업데이트 후에, 얼굴 위조 방지 모델 내로 입력된다.In step S214, the face image to be recognized is input into the face anti-counterfeiting model, after parameter update, so that it is determined whether the face image to be recognized is a fake face image.

본 개시의 해결책은 새로운 위조 방법의 위조 얼굴 이미지를 인식하는 데 적용될 수 있을 뿐만 아니라, 새로운 모델의 위조 얼굴 이미지를 인식하는 데 적용될 수도 있다. 예를 들어, 새로운 위조 방법의 위조 얼굴 이미지를 인식하는 것만이 필요한 경우라면, 기존 위조 방법의 위조 얼굴 이미지 및 실제 얼굴 이미지가 사전 훈련 동안 훈련 샘플로서 쓰일 수 있으며, 훈련 샘플은 동일한 모델일 수 있고, 새로운 위조 방법의 위조 얼굴 이미지는 또한 이러한 모델에 속한다. 다른 예를 들면, 새로운 모델의 위조 얼굴 이미지를 인식하는 것만이 필요한 경우라면, 기존 모델의 위조 얼굴 이미지 및 실제 얼굴 이미지가 사전 훈련 동안 훈련 샘플로서 쓰일 수 있으며, 기존 모델의 이들 위조 얼굴 이미지는 동일한 위조 방법에 의해 위조될 수 있고, 새로운 모델의 위조 얼굴 이미지도 이러한 위조 방법에 속할 수 있다. 훈련 샘플이 사전 훈련 동안, 상이한 위조 방법 및 상이한 모델 둘 모두의 위조 얼굴 이미지 및 하나 이상의 모델의 실제 얼굴 이미지를 포함한다면, 새로운 위조 얼굴 이미지는 훈련 샘플 내 임의의 위조 방법 또는 임의의 모델과는 상이할 수 있다.The solution of the present disclosure may not only be applied to recognizing a fake face image of a new forgery method, but may also be applied to recognize a fake face image of a new model. For example, if it is only necessary to recognize the fake face image of the new spoofing method, the fake face image and the real face image of the existing spoofing method can be used as training samples during pre-training, and the training sample can be the same model, , the fake face image of the new forgery method also belongs to these models. For another example, if it is only necessary to recognize a fake face image of a new model, the fake face image and the real face image of the old model can be used as training samples during pre-training, and these fake face images of the old model are identical It may be forged by a forgery method, and a fake face image of a new model may also belong to this forgery method. If the training sample contains, during pre-training, fake face images of both different fake methods and different models, and real face images of one or more models, then the new fake face image is different from any fake method or any model in the training sample. can do.

예를 들어, 일부 실시예에서, 새로운 위조 방법의 위조 얼굴 이미지에 대해, 새로운 위조 방법의 위조 얼굴 이미지의 작은 샘플 세트가 획득되고; 얼굴 위조 방지 모델의 매개변수는 새로운 위조 방법의 위조 얼굴 이미지의 작은 샘플 세트로 업데이트되며; 사전 훈련된 얼굴 위조 방지 모델의 매개변수는 각각 다수의 태스크에 기초하여 결정되는 얼굴 위조 방지 모델의 다수의 세트의 매개변수인 다수의 세트의 매개변수에 기초하여 결정되며; 각각의 태스크는 실제 얼굴 이미지의 작은 샘플 세트 및 하나 이상의 기존 위조 방법 각각의 위조 얼굴 이미지의 작은 샘플 세트를 포함하고; 인식될 얼굴 이미지는 인식될 얼굴 이미지가 위조 얼굴 이미지인지 여부가 결정되도록, 매개변수 업데이트 후, 얼굴 위조 방지 모델 내로 입력된다.For example, in some embodiments, for the fake face image of the new forgery method, a small sample set of the fake face image of the new forgery method is obtained; The parameters of the anti-counterfeiting model are updated with a small sample set of fake face images of the new forgery method; parameters of the pre-trained anti-spoofing model are determined based on a plurality of sets of parameters, each of which is a parameter of a plurality of sets of anti-spoofing models of the face determined based on a plurality of tasks; each task includes a small sample set of real face images and a small sample set of fake face images in each of one or more existing spoofing methods; The face image to be recognized is input into the anti-counterfeiting model after parameter update so that it is determined whether the face image to be recognized is a forgery face image.

예를 들어, 일부 실시예에서, 새로운 모델의 위조 얼굴 이미지에 대해, 새로운 모델의 위조 얼굴 이미지의 작은 샘플 세트가 획득되고; 얼굴 위조 방지 모델의 매개변수가 새로운 모델의 위조 얼굴 이미지의 작은 샘플 세트로 업데이트되며; 사전 훈련된 얼굴 위조 방지 모델의 매개변수는 각각 다수의 태스크에 기초하여 결정된 얼굴 위조 방지 모델의 다수의 세트의 매개변수인 다수의 세트의 매개변수에 기초하여 결정되며; 각각의 태스크는, 하나 이상의 기존 모델 각각의 위조 얼굴 이미지의 작은 샘플 세트 및 하나 이상의 기존 모델 각각의 실제 얼굴 이미지의 작은 샘플 세트를 포함하며; 인식될 얼굴 이미지는 인식될 얼굴 이미지가 위조 얼굴 이미지인지 여부가 결정되도록, 매개변수 업데이트 후, 얼굴 위조 방지 모델 내로 입력된다.For example, in some embodiments, for the fake face image of the new model, a small sample set of the fake face image of the new model is obtained; The parameters of the anti-counterfeiting face model are updated with a small sample set of fake face images of the new model; parameters of the pre-trained anti-spoofing model are determined based on a plurality of sets of parameters, each of which is a parameter of a plurality of sets of anti-spoofing models of the face determined based on a plurality of tasks; each task includes a small sample set of a fake face image of each of the one or more existing models and a small sample set of a real face image of each of the one or more existing models; The face image to be recognized is input into the anti-counterfeiting model after parameter update so that it is determined whether the face image to be recognized is a forgery face image.

사전 훈련 프로세스는 앞선 실시예에서의 것과 유사하다. 훈련 샘플이 상이한 위조 방법 및 상이한 모델의 위조 얼굴 이미지를 포함하는 환경에 대해, 예를 들어, 3개의 공지된 모델 및 3개의 공지된 위조 방법이 있다면, 최대 9개의 상이한 기존 범주의 위조 얼굴 이미지가 있을 수 있다. 또한, 3개 모델의 실제 얼굴 이미지도 있다면, 생성된 태스크는 최대 12개의 작은 샘플 세트를 포함할 수 있다.The pre-training process is similar to that in the previous embodiment. For an environment where the training sample contains different spoof methods and fake face images of different models, for example, if there are 3 known models and 3 known spoofing methods, up to 9 different existing categories of fake face images there may be Also, if there are also real face images of 3 models, the generated task can contain up to 12 small sample sets.

전술한 실시예에서, 사전 훈련된 얼굴 위조 방지 모델은 하나 이상의 기존 모델 또는 하나 이상의 기존 위조 방법의 위조 얼굴 이미지 또는 다수의 기존 모델의 실제 얼굴 이미지로 구성되는 다수의 작은 샘플 세트로 훈련되고, 얼굴 위조 방지 모델의 다수의 그룹의 매개변수는 각각 다수의 태스크에 의해 결정되고, 그 후 얼굴 위조 방지 모델의 매개변수는 훈련 프로세스 동안 다수의 세트의 매개변수에 기초하여 재결정된다. 이러한 훈련 프로세스는 2 단계: 각각 기존 범주의 위조 얼굴 이미지 및 기존 범주의 실제 얼굴 이미지의 다수의 작은 샘플 세트로 얼굴 위조 방지 모델을 훈련하는 제1 단계이며, 상기 모델이 작은 샘플 세트의 특징을 학습하는 단계 또는 상이한 모델의 위조 얼굴과 실제 얼굴을 식별하기 위해 학습하는 단계인, 상기 제1 단계; 및 집계를 수행하고, 다수의 훈련 결과에 기초하여 얼굴 위조 방지 모델의 매개변수를 재업데이트하는 제2 단계이며, 상기 모델이 작은 샘플 세트의 특징을 학습하는 방법을 학습하거나, 상이한 모델의 위조 얼굴과 실제 얼굴을 식별하는 것을 학습하는 방법을 학습하는 단계인, 상기 제2 단계를 포함한다.In the embodiment described above, the pre-trained anti-spoofing face model is trained on a large number of small sample sets consisting of one or more existing models or fake face images of one or more existing spoofing methods or real face images of multiple existing models, The parameters of the multiple groups of the anti-spoofing model are each determined by multiple tasks, and then the parameters of the face anti-spoofing model are re-determined based on the multiple sets of parameters during the training process. This training process consists of two steps: the first step of training a face anti-spoofing model with a large number of small sample sets of fake face images from an existing category and real face images from an existing category, respectively, where the model learns the features of the small sample set. the first step, which is a step of learning to identify a fake face and a real face of different models; and a second step of performing aggregation and re-updating the parameters of the anti-counterfeiting model based on a plurality of training results, wherein the model learns how to learn features of a small sample set, or counterfeit faces of different models and the second step, which is a step of learning how to learn to identify a real face.

따라서, 사전 훈련을 받은 얼굴 위조 방지 모델은 작은 샘플 세트를 학습하는 방법을 숙달하거나, 상이한 모델의 위조 얼굴과 실제 얼굴을 식별하고 유리한 초기화 매개변수를 얻는 것을 학습하는 방법을 숙달한다. 새로운 모델의 위조 얼굴 이미지가 작은 샘플 세트의 상태에 속할 때, 상기 얼굴 위조 방지 모델이 업데이트된다. 이전에 학습한 빠른 학습 능력의 혜택을 받은 얼굴 위조 방지 모델은 또한 새로운 모델 또는 새로운 위조 방법의 위조 얼굴 특징의 빠른 수렴과 빠른 학습, 그리고 얼굴 위조 방지 모델의 적시의 효과적인 업데이트를 수행할 수 있어, 새로운 모델 또는 새로운 위조 방법의 위조 얼굴 이미지를 적시에 효과적으로 인식할 수 있고, 새로운 모델의 위조 이미지로부터의 공격을 적시에 효과적으로 방어할 수 있다.Thus, a pre-trained anti-counterfeiting model masters how to learn a small sample set, or how to learn to identify fake and real faces of different models and obtain favorable initialization parameters. When the fake face image of the new model belongs to the state of the small sample set, the face anti-counterfeiting model is updated. The face anti-counterfeiting model, which has benefited from the previously learned fast learning ability, can also perform fast convergence and fast learning of fake facial features of a new model or new forgery method, and timely and effective update of the face anti-counterfeiting model, A fake face image of a new model or a new forgery method can be recognized effectively in a timely manner, and an attack from a forged image of a new model can be effectively defended in a timely manner.

본 개시는 또한 도 3과 함께 후술되는 위조 얼굴 인식 장치를 제공한다.The present disclosure also provides a fake face recognition device, which will be described later in conjunction with FIG. 3 .

도 3은 본 개시의 일부 실시예에 따른 위조 얼굴 인식 장치의 개략적인 구조도를 도시한다. 도 3에 도시된 바와 같이, 이 실시예의 장치(30)는 작은 샘플 획득 모듈(302), 모델 조정 모듈(304) 및 얼굴 인식 모듈(306)을 포함한다.3 is a schematic structural diagram of a forged face recognition apparatus according to some embodiments of the present disclosure. As shown in FIG. 3 , the apparatus 30 of this embodiment includes a small sample acquisition module 302 , a model adjustment module 304 , and a face recognition module 306 .

작은 샘플 획득 모듈(302)은 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트를 획득하도록 구성된다.The small sample acquisition module 302 is configured to acquire a small sample set of a new category of fake face images.

모델 조정 모델(304)은 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트로 사전 훈련된 얼굴 위조 방지 모델의 매개변수를 업데이트하도록 구성되며; 상기 사전 훈련된 얼굴 위조 방지 모델의 매개변수는 다수의 세트의 매개변수에 기초하여 결정되고, 다수의 세트의 매개변수는 각각 다수의 태스크에 기초하여 결정된 얼굴 위조 방지 모델의 다수의 세트의 매개변수이고; 각각의 태스크는 하나 이상의 기존 범주들 각각의 위조 얼굴 이미지의 작은 샘플 세트 및 실제 얼굴 이미지의 작은 샘플 세트를 포함한다.The model adjustment model 304 is configured to update the parameters of the pre-trained anti-spoofing model of the face with a small sample set of a new category of fake face images; The parameters of the pre-trained anti-counterfeiting model are determined based on a plurality of sets of parameters, wherein the plurality of sets of parameters are respectively determined based on a plurality of tasks. ego; Each task includes a small sample set of fake face images and a small sample set of real face images in each of one or more existing categories.

일부 실시예에서, 모델 조정 모델(304)은 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트 내 다수의 위조 얼굴 이미지 및 위조 얼굴 이미지 각각에 대응하는 분류 라벨에 기초하여, 얼굴 위조 방지 모델의 매개변수를 업데이트하도록 구성되며; 얼굴 위조 방지 모델이 분류 모델인 경우에, 각각의 분류 라벨은 분류 라벨에 대응하는 위조 얼굴 이미지의 범주를 라벨링하도록 구성되는 제1 분류 라벨이며, 상기 범주는 위조 방법 또는 모델 중 적어도 하나를 포함한다. 대안적으로, 얼굴 위조 방지 모델이 회귀 모델인 경우에, 각각의 분류 라벨은 분류 라벨에 대응하는 위조 얼굴 이미지를 양성 샘플 또는 음성 샘플로서 라벨링하도록 구성되는 제2 분류 라벨이다.In some embodiments, the model adjustment model 304 determines the parameters of the anti-counterfeiting model based on a plurality of fake face images in a small sample set of fake face images of a new category and a classification label corresponding to each of the fake face images. configured to update; When the anti-counterfeiting face model is a classification model, each classification label is a first classification label, configured to label a category of a forged face image corresponding to the classification label, wherein the category includes at least one of a forgery method or a model. . Alternatively, when the anti-spoofing face model is a regression model, each classification label is a second classification label, configured to label a fake face image corresponding to the classification label as a positive sample or a negative sample.

일부 실시예에서, 모델 조정 모델(304)은 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트 내 다수의 위조 얼굴 이미지를 하나의 태스크에 대한 지원 샘플 이미지로서 얼굴 위조 방지 모델에 입력하고; 위조 얼굴 이미지 각각에 대응하는 분류 라벨 및 위조 얼굴 이미지 각각에 대한 얼굴 위조 방지 모델의 출력값에 기초하여, 얼굴 위조 방지 모델의 매개변수의 경사도를 결정하고; 얼굴 위조 방지 모델의 매개변수의 경사도에 기초하여, 얼굴 위조 방지 모델의 매개변수를 업데이트하도록 구성된다.In some embodiments, the model adjustment model 304 inputs a plurality of fake face images in a small sample set of a new category of fake face images into the face anti-counterfeiting model as support sample images for one task; determine a gradient of a parameter of the anti-counterfeiting model, based on the classification label corresponding to each of the forged face images and the output value of the anti-counterfeiting model for each of the forged face images; and update the parameter of the anti-counterfeiting model according to the gradient of the parameter of the anti-counterfeiting model.

일부 실시예에서, 얼굴 위조 방지 모델이 분류 모델인 경우에, 위조 얼굴 이미지 각각에 대한 얼굴 위조 방지 모델의 출력값은 각각의 위조 얼굴 이미지가 각각 상이한 범주에 속할 확률이고, 모델 조정 모델(304)은 위조 얼굴 이미지 각각에 대응하는 제1 분류 라벨 및 각각의 위조 얼굴 이미지가 각각 상이한 범주에 속할 확률에 기초하여, 얼굴 위조 방지 모델의 매개변수의 제1 경사도를 결정하도록 구성되고; 얼굴 위조 방지 모델이 회귀 모델인 경우에, 위조 얼굴 이미지 각각에 대한 얼굴 위조 방지 모델의 출력값은 각각의 위조 얼굴 이미지가 양성 샘플에 속할 확률이고, 모델 조정 모델(304)은 위조 얼굴 이미지 각각에 대응하는 제2 분류 라벨 및 각각의 위조 얼굴 이미지가 양성 샘플에 속할 확률에 기초하여, 얼굴 위조 방지 모델의 매개변수의 제2 경사도를 결정하도록 구성된다.In some embodiments, when the anti-counterfeiting face model is a classification model, the output value of the anti-counterfeiting model for each forged face image is the probability that each forged face image belongs to a different category, and the model adjustment model 304 is determine a first inclination of a parameter of the anti-counterfeiting model, based on the first classification label corresponding to each of the forged face images and the probability that each of the forged face images belong to different categories, respectively; When the anti-counterfeiting model is a regression model, the output value of the anti-counterfeiting model for each forged face image is the probability that each forged face image belongs to a positive sample, and the model adjustment model 304 corresponds to each of the forged face images. and determine a second gradient of the parameter of the anti-spoofing model, based on the second classification label and the probability that each fake face image belongs to the positive sample.

얼굴 인식 모듈(306)은 인식될 얼굴 이미지가 위조 얼굴 이미지인지 여부가 결정되도록, 인식될 얼굴 이미지를 매개변수 업데이트 후에 얼굴 위조 방지 모델 내로 입력하도록 구성된다.The face recognition module 306 is configured to input the face image to be recognized into the anti-counterfeiting face model after parameter update, so that it is determined whether the face image to be recognized is a fake face image.

일부 실시예에서, 장치(30)는 사전 훈련 모듈(308)를 추가로 포함한다. 사전 훈련 모듈(308)은 기존 범주의 위조 얼굴 이미지 및 실제 얼굴 이미지를 다수의 태스크로 분할하도록 구성되고, 각각의 태스크는 다수의 방식을 포함하고, 각각의 방식은 하나의 모델의 다수의 실제 얼굴 이미지 또는 기존 범주의 다수의 위조 얼굴 이미지를 포함하고, 각각의 태스크는 제1 미리 설정된 수의 기존 범주를 포함하고, 각각의 방식은 지원 샘플 이미지로 구성되는 작은 샘플 세트로서 제2 미리 설정된 수의 실제 얼굴 이미지 또는 위조 얼굴 이미지 및 쿼리 샘플 이미지로서 제3 미리 설정된 수의 실제 얼굴 이미지 또는 위조 얼굴 이미지를 포함하고, 매번 배치를 형성하기 위해 제4 미리 설정된 수의 태스크가 선택됨으로써, 얼굴 위조 방지 모델의 다수의 세트의 매개변수가 배치의 다수의 태스크에 기초하여 각각 결정되고, 얼굴 위조 방지 모델의 매개변수가, 얼굴 위조 방지 모델이 얼굴 위조 방지 모델의 사전 훈련을 완료하기 위해 수렴 상태에 도달할 때까지 다수의 세트의 매개변수에 기초하여 재결정된다.In some embodiments, apparatus 30 further includes a pre-training module 308 . The pre-training module 308 is configured to divide the fake face image and the real face image of an existing category into a plurality of tasks, each task including a plurality of schemes, each scheme being a plurality of real faces of one model image or a plurality of fake face images of an existing category, each task including a first preset number of existing categories, each manner comprising a second preset number of a small sample set consisting of supporting sample images a third preset number of real face images or fake face images as real face images or fake face images and query sample images, and a fourth preset number of tasks are selected to form a batch each time, whereby the anti-counterfeiting face model a plurality of sets of parameters are respectively determined based on a plurality of tasks of the batch, the parameters of the face anti-counterfeiting model, the face anti-counterfeiting model reaches a convergence state to complete the pre-training of the face anti-counterfeiting model. It is re-determined based on multiple sets of parameters until

일부 실시예에서, 사전 훈련 모듈(308)은 배치 내 각각의 태스크에 대해, 태스크에 대응하는 제3 경사도가 각각의 지원 샘플 이미지 및 각각의 지원 샘플 이미지에 대응하는 분류 라벨에 기초하여 결정되고, 얼굴 위조 방지 모델의 매개변수 세트가 제3 경사도에 기초하여 결정되고; 배치에 대응하는 제4 경사도가 배치 내 다수의 태스크 각각, 다수의 태스크에 대응하는 쿼리 샘플 이미지 및 쿼리 샘플 이미지 각각에 대응하는 분류 라벨에 기초하여 결정되며; 얼굴 위조 방지 모델의 매개변수는 배치에 대응하는 제4 경사도에 기초하여 재결정된다.In some embodiments, the pre-training module 308 is configured to determine, for each task in the batch, a third gradient corresponding to the task based on each support sample image and a classification label corresponding to each support sample image; a parameter set of the anti-counterfeiting model is determined based on the third gradient; a fourth gradient corresponding to the batch is determined based on each of the plurality of tasks in the batch, a query sample image corresponding to the plurality of tasks and a classification label corresponding to each of the query sample images; The parameters of the anti-counterfeiting model are re-determined based on the fourth gradient corresponding to the arrangement.

일부 실시예에서, 얼굴 위조 방지 모델이 분류 모델인 경우에, 분류 라벨의 각각은 분류 라벨에 대응하는 지원 샘플 이미지의 범주를 라벨링하도록 구성되는 제1 분류 라벨이고, 범주는 위조 방법 또는 모델 중 적어도 하나를 포함한다. 대안적으로, 얼굴 위조 방지 모델이 회귀 모델인 경우에, 분류 라벨 각각은 분류 라벨에 대응하는 지원 샘플 이미지를 양성 샘플 또는 음성 샘플로서 라벨링하도록 구성되는 제2 분류 라벨이다.In some embodiments, when the anti-counterfeiting face model is a classification model, each of the classification labels is a first classification label configured to label a category of a supporting sample image corresponding to the classification label, wherein the category is at least one of a forgery method or model includes one Alternatively, when the anti-counterfeiting model is a regression model, each of the classification labels is a second classification label, configured to label a supporting sample image corresponding to the classification label as a positive sample or a negative sample.

일부 실시예에서, 사전 훈련 전 얼굴 위조 방지 모델의 초기 매개변수는 딥 러닝 학습 훈련 방법에 따라 결정된다.In some embodiments, the initial parameters of the anti-spoofing model before pre-training are determined according to a deep learning learning training method.

일부 실시예에서, 상이한 기존 범주의 위조 얼굴 이미지는 위조 방법 또는 모델 중 적어도 하나에 있어서 상이하고, 위조 방법은 사진, 비디오 또는 마스크를 포함하고, 모델은 깊이 모델, 근적외선 모델 또는 적색-녹색-청색(RGB) 모델을 포함하며; 상이한 태스크 내 실제 얼굴 이미지는 동일하거나 상이한 모델을 가지며; 새로운 범주의 위조 얼굴 이미지는 위조 방법 및 모델 중 적어도 하나 내 기존 이미지와는 상이하고, 기존 이미지는 기존 범주의 위조 얼굴 이미지 및 실제 얼굴 이미지를 포함한다.In some embodiments, the different pre-existing categories of spoofed face images differ in at least one of a spoof method or model, wherein the spoofing method comprises a photograph, a video or a mask, and the model is a depth model, a near-infrared model, or a red-green-blue (RGB) models; Real face images in different tasks have the same or different models; The new category of fake face images is different from the existing images in at least one of the forgery methods and models, and the existing images include fake face images and real face images of the old categories.

본 개시의 실시예의 위조 얼굴 인식 장치는 도 4 및 도 5와 함께 후술되는 다양한 컴퓨팅 장치 또는 컴퓨터 시스템에 의해 수행될 수 있다.The fake face recognition apparatus according to the embodiment of the present disclosure may be performed by various computing devices or computer systems to be described later in conjunction with FIGS. 4 and 5 .

도 4는 본 개시의 일부 실시예에 따른 위조 얼굴 인식 장치의 개략적인 구조도를 도시한다. 도 4에 도시된 바와 같이, 실시예의 장치(40)는 메모리(410); 및 메모리(410)에 결합되는 프로세서(420)를 포함하고, 프로세서(420)는 메모리(410)에 저장된 명령에 기초하여 본 개시의 임의의 실시예에 따른 위조 얼굴 인식 방법을 구현하도록 구성된다.4 is a schematic structural diagram of a forged face recognition apparatus according to some embodiments of the present disclosure. As shown in FIG. 4 , the device 40 of the embodiment includes a memory 410 ; and a processor 420 coupled to the memory 410 , wherein the processor 420 is configured to implement a fake face recognition method according to any embodiment of the present disclosure based on instructions stored in the memory 410 .

여기에서, 메모리(410)는 예를 들어, 시스템 메모리, 고정형 비-휘발성 저장 매체 등을 포함할 수 있다. 시스템 메모리는 예를 들어, 작동 시스템, 어플리케이션, 부트 로더(boot loader), 데이터베이스 및 다른 프로그램을 저장한다.Here, the memory 410 may include, for example, a system memory, a fixed non-volatile storage medium, or the like. System memory stores, for example, operating systems, applications, boot loaders, databases and other programs.

도 5는 본 개시의 다른 실시예에 따른 위조 얼굴 인식 장치의 개략적인 구조도를 도시한다. 도 5에 도시된 바와 같이, 본 실시예의 장치(50)는 메모리(510) 및 프로세서(520)를 포함하고, 이들은 각각 메모리(410) 및 프로세서(420)와 유사하다. I/O 인터페이스(530), 네트워크 인터페이스(540), 저장 인터페이스(550) 등을 추가로 포함할 수 있다. 메모리(510) 및 프로세서(520)뿐만 아니라, 이들 인터페이스(530, 540, 550)는 이들 사이에서 예를 들어, 버스(560)를 통해 연결될 수 있다. 여기에서, I/O 인터페이스(530)는 디스플레이, 마우스, 키보드 및 터치 식별과 같은 입력 및 출력 장치를 위한 연결 인터페이스를 제공한다. 네트워크 인터페이스(540)는 다양한 네트워크식 장치에 대한 연결 인터페이스를 제공한다. 예를 들어, 데이터베이스 서버 또는 클라우드 저장 서버에 연결될 수 있다. 저장 인터페이스(550)는 SD 카드 또는 USB 플래시 디스크와 같은 외부 저장 장치를 위한 연결 인터페이스를 제공한다.5 is a schematic structural diagram of a fake face recognition apparatus according to another embodiment of the present disclosure. As shown in FIG. 5 , the device 50 of this embodiment includes a memory 510 and a processor 520 , which are similar to a memory 410 and a processor 420 , respectively. It may further include an I/O interface 530 , a network interface 540 , a storage interface 550 , and the like. Memory 510 and processor 520 , as well as these interfaces 530 , 540 , 550 may be coupled between them, for example, via bus 560 . Here, I/O interface 530 provides a connection interface for input and output devices such as display, mouse, keyboard, and touch identification. The network interface 540 provides a connection interface for various networked devices. For example, it may be connected to a database server or a cloud storage server. The storage interface 550 provides a connection interface for an external storage device such as an SD card or a USB flash disk.

이 기술이 속하는 분야의 통상의 지식을 가진 자는 본 개시의 실시예들이 방법, 시스템 또는 컴퓨터 프로그램 제품으로서 제공될 수 있다는 것을 인식할 것이다. 따라서, 본 개시는 완전 하드웨어 실시예, 완전 소프트웨어 실시예 또는 소프트웨어와 하드웨어 양태의 조합의 형태를 취할 수 있다. 또한, 본 개시는 컴퓨터 사용 가능한 프로그램 코드를 내장하는 (디스크 메모리, CD-ROM, 광학 메모리 등을 포함하지만 이로 한정되지 않는) 하나 이상의 컴퓨터 사용 가능한 비-일시적 저장 매체에 포함되는 컴퓨터 프로그램 제품의 형태를 취할 수 있다.One of ordinary skill in the art will recognize that embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an all hardware embodiment, an all software embodiment, or a combination of software and hardware aspects. The present disclosure also relates to a form of a computer program product embodied in one or more computer usable non-transitory storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) embodied therein computer usable program code. can take

본 개시는 본 개시의 실시예에 따른 방법, 장치(시스템) 및 컴퓨터 프로그램 제품의 흐름도 및/또는 블록도와 함께 설명된다. 흐름도 및/또는 블록도의 단계 및/또는 블록의 조합뿐만 아니라, 흐름도 및/또는 블록도의 각각의 단계 및/또는 블록은 컴퓨터 프로그램 명령에 의해 실행될 수 있다는 것이 이해될 것이다. 이들 컴퓨터 프로그램 명령은 범용 컴퓨터, 특수 목적 컴퓨터, 내장형 처리 기계 또는 기계를 생산하기 위한 다른 프로그램 가능한 데이터 처리 장치의 프로세서에 제공되어, 컴퓨터 또는 다른 프로그램 가능한 데이터 처리 장치의 프로세서에 의해 수행되는 명령은 흐름도의 하나 이상의 단계 및/또는 블록도 내 하나 이상의 블록에서 지정된 기능을 실현하기 위한 장치를 생산할 수 있다.The present disclosure is described in conjunction with flowcharts and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the present disclosure. It will be understood that each step and/or block of the flowcharts and/or block diagrams, as well as combinations of steps and/or blocks in the flowcharts and/or block diagrams, may be executed by computer program instructions. These computer program instructions are provided to a processor of a general purpose computer, special purpose computer, embedded processing machine, or other programmable data processing device for producing the machine, such that the instructions to be executed by the processor of the computer or other programmable data processing device are flow diagrams. One or more steps of and/or one or more blocks in the block diagram may produce a device for realizing a specified function.

또한, 이들 컴퓨터 프로그램 명령은 컴퓨터 또는 다른 프로그램 가능한 데이터 처리 장치가 특정 방식으로 작동하도록 안내할 수 있는 컴퓨터 판독 가능한 메모리에 저장될 수 있어, 컴퓨터 판독 가능한 메모리에 저장된 명령이 명령 장치를 포함하는 상품을 생산하게 된다. 명령 장치는 흐름도 내 하나 이상의 단계 또는 블록도 내 하나 이상의 블록에 지정된 기능을 실현한다.Additionally, these computer program instructions may be stored in a computer readable memory that may direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory create a product comprising the instruction device. will produce The instruction device implements functions specified in one or more steps in the flowchart or one or more blocks in the block diagram.

또한, 이들 컴퓨터 프로그램 명령은 컴퓨터 또는 다른 프로그램 가능한 데이터 처리 장치에 로딩될 수 있어, 일련의 작업 단계가 컴퓨터 또는 다른 프로그램 가능한 장치에서 수행되어 컴퓨터-실행 처리를 생성하며, 이에 따라 컴퓨터 또는 다른 프로그램 가능한 장치 상에서 수행된 명령은 흐름도의 하나 이상의 단계 및/또는 블록도 내 하나 이상의 블록에서 지정된 기능을 실현하기 위한 단계를 제공한다.In addition, these computer program instructions may be loaded into a computer or other programmable data processing device, such that a series of operational steps are performed on the computer or other programmable device to produce computer-executed processing, such that the computer or other programmable device The instructions executed on the device provide steps for implementing the specified functions in one or more steps of the flowchart and/or one or more blocks in the block diagrams.

앞선 설명은 단지 본 개시의 바람직한 실시예이지, 본 개시를 제한하고자 하는 것은 아니다. 본 개시의 사상 및 원리 내에서 이루어진 임의의 보정, 등가 대체, 개선 등은 모두 본 개시의 보호 범위 내에 포함되어야 한다.The foregoing description is merely a preferred embodiment of the present disclosure, and is not intended to limit the present disclosure. Any correction, equivalent substitution, improvement, etc. made within the spirit and principle of the present disclosure should all fall within the protection scope of the present disclosure.

Claims (20)

위조 얼굴 인식 방법으로서,
새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트를 획득하는 단계;
새로운 범주의 위조 얼굴 이미지의 상기 작은 샘플 세트로 사전 훈련된 얼굴 위조 방지 모델의 매개변수를 업데이트하는 단계 - 상기 사전 훈련된 얼굴 위조 방지 모델의 상기 매개변수는 다수의 세트의 매개변수에 기초하여 결정되고, 다수의 세트의 사전 훈련된 매개변수는 각각 다수의 태스크(task)에 기초하여 결정되고, 각각의 태스크는 하나 이상의 기존 범주 각각의 위조 얼굴 이미지의 작은 샘플 세트 및 하나 이상의 기존 범주 각각의 실제 얼굴 이미지의 작은 샘플 세트를 포함함 - ; 및
인식될 얼굴 이미지가 위조 얼굴 이미지인지 여부를 결정하기 위해, 인식될 상기 얼굴 이미지를 매개변수 업데이트 후에 상기 얼굴 위조 방지 모델 내로 입력하는 단계
를 포함하는, 위조 얼굴 인식 방법.
A fake face recognition method comprising:
acquiring a small sample set of fake face images of a new category;
updating parameters of a pre-trained anti-counterfeiting model with the small sample set of new categories of spoofed face images, the parameters of the pre-trained anti-spoofing model being determined based on a plurality of sets of parameters and a plurality of sets of pre-trained parameters are each determined based on a plurality of tasks, each task comprising a small sample set of fake face images in each of one or more existing categories and an actual set of each of one or more existing categories. Contains a small sample set of face images - ; and
inputting the face image to be recognized into the anti-counterfeiting model after parameter update to determine whether the face image to be recognized is a fake face image;
A fake face recognition method comprising:
제1항에 있어서,
새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트로 사전 훈련된 상기 얼굴 위조 방지 모델의 매개변수를 업데이트하는 상기 단계는,
상기 새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트 내의 위조 얼굴 이미지 및 상기 위조 얼굴 이미지 각각에 대응하는 분류 라벨에 기초하여, 상기 얼굴 위조 방지 모델의 상기 매개변수를 업데이트하는 단계를 포함하고,
상기 얼굴 위조 방지 모델이 분류 모델인 경우에, 분류 라벨은 상기 분류 라벨에 대응하는 위조 얼굴 이미지의 범주를 라벨링하도록 구성되는 제1 분류 라벨이고, 상기 범주는 위조 방법 또는 모델 중 적어도 하나를 포함하고; 또는
상기 얼굴 위조 방지 모델이 회귀 모델인 경우에, 분류 라벨은 상기 분류 라벨에 대응하는 위조 얼굴 이미지를 양성 샘플 또는 음성 샘플로서 라벨링하도록 구성되는 제2 분류 라벨인, 위조 얼굴 인식 방법.
According to claim 1,
The step of updating the parameters of the anti-counterfeiting model pre-trained with a small sample set of a new category of fake face images comprises:
updating the parameter of the anti-counterfeiting model, based on a fake face image in a small sample set of fake face images of the new category and a classification label corresponding to each of the fake face images;
when the anti-counterfeiting model is a classification model, the classification label is a first classification label, configured to label a category of a forged face image corresponding to the classification label, the category comprising at least one of a forgery method or a model; ; or
and when the anti-spoofing face model is a regression model, the classification label is a second classification label, configured to label a fake face image corresponding to the classification label as a positive sample or a negative sample.
제2항에 있어서,
상기 새로운 범주의 위조 얼굴 이미지의 상기 작은 샘플 세트 내의 위조 얼굴 이미지 및 상기 위조 얼굴 이미지 각각에 대응하는 분류 라벨에 기초하여, 상기 얼굴 위조 방지 모델의 상기 매개변수를 업데이트하는 상기 단계는,
상기 새로운 범주의 위조 얼굴 이미지의 상기 작은 샘플 세트 내의 위조 얼굴 이미지를 하나의 태스크에 대한 지원 샘플 이미지로서 상기 얼굴 위조 방지 모델에 입력하는 단계;
상기 위조 얼굴 이미지 각각에 대응하는 분류 라벨 및 상기 위조 얼굴 이미지 각각에 대한 상기 얼굴 위조 방지 모델의 출력값에 기초하여, 상기 얼굴 위조 방지 모델의 상기 매개변수의 경사도(gradient)를 결정하는 단계; 및
상기 얼굴 위조 방지 모델의 상기 매개변수의 경사도에 기초하여, 상기 얼굴 위조 방지 모델의 상기 매개변수를 업데이트하는 단계
를 포함하는, 위조 얼굴 인식 방법.
3. The method of claim 2,
Based on a fake face image in the small sample set of the new category of fake face images and a classification label corresponding to each of the fake face images, the step of updating the parameter of the anti-counterfeiting model comprises:
inputting a fake face image in the small sample set of the new category of fake face images into the face anti-counterfeiting model as a supporting sample image for one task;
determining a gradient of the parameter of the anti-counterfeiting model based on a classification label corresponding to each of the forged face images and an output value of the anti-counterfeiting model for each of the forged face images; and
updating the parameter of the anti-counterfeiting model according to the gradient of the parameter of the anti-counterfeiting model
A fake face recognition method comprising:
제3항에 있어서,
상기 얼굴 위조 방지 모델이 분류 모델인 경우에, 상기 위조 얼굴 이미지 각각에 대한 상기 얼굴 위조 방지 모델의 상기 출력값은 각각의 상기 위조 얼굴 이미지가 각각 상이한 범주에 속할 확률이고,
상기 위조 얼굴 이미지 각각에 대응하는 분류 라벨 및 상기 위조 얼굴 이미지 각각에 대한 상기 얼굴 위조 방지 모델의 출력값에 기초하여, 상기 얼굴 위조 방지 모델의 상기 매개변수의 경사도를 결정하는 상기 단계는,
상기 위조 얼굴 이미지 각각에 대응하는 상기 제1 분류 라벨 및 각각의 상기 위조 얼굴 이미지가 각각 상이한 범주에 속할 확률에 기초하여, 상기 얼굴 위조 방지 모델의 상기 매개변수의 제1 경사도를 결정하는 단계를 포함하고;
또는, 상기 얼굴 위조 방지 모델이 회귀 모델인 경우에, 상기 위조 얼굴 이미지 각각에 대한 상기 얼굴 위조 방지 모델의 상기 출력값은 각각의 상기 위조 얼굴 이미지가 양성 샘플에 속할 확률이고,
상기 위조 얼굴 이미지 각각에 대응하는 분류 라벨 및 상기 위조 얼굴 이미지 각각에 대한 상기 얼굴 위조 방지 모델의 출력값에 기초하여, 상기 얼굴 위조 방지 모델의 상기 매개변수의 경사도를 결정하는 상기 단계는,
상기 위조 얼굴 이미지 각각에 대응하는 상기 제2 분류 라벨 및 각각의 상기 위조 얼굴 이미지가 양성 샘플에 속할 확률에 기초하여, 상기 얼굴 위조 방지 모델의 상기 매개변수의 제2 경사도를 결정하는 단계를 포함하는, 위조 얼굴 인식 방법.
4. The method of claim 3,
When the anti-counterfeiting model is a classification model, the output value of the anti-counterfeiting model for each of the forged face images is a probability that each of the forged face images belongs to a different category,
The step of determining a gradient of the parameter of the anti-counterfeiting model on the basis of a classification label corresponding to each of the forged face images and an output value of the anti-counterfeiting model for each of the forged face images,
determining a first inclination of the parameter of the anti-counterfeiting model based on the first classification label corresponding to each of the forged face images and the probability that each of the forged face images belong to different categories, respectively; do;
or, when the anti-counterfeiting model is a regression model, the output value of the anti-counterfeiting model for each of the forged face images is a probability that each of the forged face images belongs to a positive sample,
The step of determining a gradient of the parameter of the anti-counterfeiting model on the basis of a classification label corresponding to each of the forged face images and an output value of the anti-counterfeiting model for each of the forged face images,
determining a second slope of the parameter of the anti-counterfeiting model based on the second classification label corresponding to each of the fake face images and the probability that each of the fake face images belongs to a positive sample , a fake face recognition method.
제1항에 있어서,
상기 기존 범주의 위조 얼굴 이미지 및 상기 기존 범주의 실제 얼굴 이미지를 다수의 태스크로 분할하는 단계 -
각각의 태스크는 다수의 방식을 포함하고, 각각의 방식은 하나의 모델의 다수의 실제 얼굴 이미지 또는 기존 범주의 다수의 위조 얼굴 이미지를 포함하고, 각각의 태스크는 제1 미리 설정된 수의 기존 범주를 포함하고,
각각의 방식은 지원 샘플 이미지로 구성되는 작은 샘플 세트로서 제2 미리 설정된 수의 실제 얼굴 이미지 또는 위조 얼굴 이미지, 및 쿼리 샘플 이미지로서 제3 미리 설정된 수의 실제 얼굴 이미지 또는 위조 얼굴 이미지를 포함함 - ;
상기 얼굴 위조 방지 모델의 상기 다수의 세트의 매개변수가 배치(batch)의 상기 다수의 태스크에 기초하여 각각 결정되고 상기 얼굴 위조 방지 모델의 상기 매개변수가 상기 다수의 세트의 매개변수에 기초하여 재결정되도록, 매번 상기 배치를 형성하기 위해 제4 미리 설정된 수의 태스크를 선택하는 단계; 및
상기 얼굴 위조 방지 모델이 수렴(convergence) 상태에 도달할 때까지 상기 얼굴 위조 방지 모델의 사전 훈련을 완료하는 단계
를 추가로 포함하는, 위조 얼굴 인식 방법.
According to claim 1,
dividing the fake face image of the existing category and the real face image of the existing category into a plurality of tasks -
Each task includes a plurality of manners, each manner includes a plurality of real face images of one model or a plurality of fake face images of an existing category, and each task includes a first preset number of existing categories including,
Each manner includes a second preset number of real face images or fake face images as a small sample set consisting of support sample images, and a third preset number of real face images or fake face images as query sample images; ;
the plurality of sets of parameters of the anti-counterfeiting model are respectively determined based on the plurality of tasks in a batch and the parameters of the anti-counterfeiting model are re-determined based on the plurality of sets of parameters preferably selecting a fourth preset number of tasks to form the batch each time; and
Completing the pre-training of the anti-counterfeiting model until the anti-counterfeiting model reaches a convergence state.
Further comprising, a fake face recognition method.
제5항에 있어서,
상기 얼굴 위조 방지 모델의 상기 다수의 세트의 매개변수가 상기 배치의 상기 다수의 태스크에 기초하여 각각 결정되고, 상기 얼굴 위조 방지 모델의 상기 매개변수가 상기 다수의 세트의 매개변수에 기초하여 재결정되는 것은,
각각의 지원 샘플 이미지 및 각각의 지원 샘플 이미지에 대응하는 분류 라벨에 기초하여, 상기 태스크에 대응하는 제3 경사도를 결정하고, 상기 배치 내 각각의 태스크에 대한 상기 제3 경사도에 기초하여, 상기 얼굴 위조 방지 모델의 하나의 세트의 매개변수를 결정하는 것;
상기 배치 내의 상기 다수의 태스크 각각, 상기 다수의 태스크에 대응하는 상기 쿼리 샘플 이미지 및 상기 쿼리 샘플 이미지 각각에 대응하는 분류 라벨에 의해 결정되는 매개변수 세트에 기초하여, 상기 배치에 대응하는 제4 경사도를 결정하는 것; 및
상기 배치에 대응하는 상기 제4 경사도에 기초하여, 상기 얼굴 위조 방지 모델의 상기 매개변수를 재결정하는 것
을 포함하는, 위조 얼굴 인식 방법.
6. The method of claim 5,
wherein the plurality of sets of parameters of the anti-counterfeiting model are respectively determined based on the plurality of tasks of the batch, and the parameters of the anti-counterfeiting model are re-determined based on the plurality of sets of parameters. thing is,
determine a third gradient corresponding to the task based on each support sample image and a classification label corresponding to each support sample image, and based on the third gradient for each task in the batch, the face determining one set of parameters of the anti-counterfeiting model;
a fourth gradient corresponding to the batch, based on a parameter set determined by each of the plurality of tasks in the batch, the query sample image corresponding to the plurality of tasks, and a classification label corresponding to each of the query sample images to determine; and
re-determining the parameter of the anti-counterfeiting model based on the fourth gradient corresponding to the arrangement;
A fake face recognition method comprising:
제6항에 있어서,
상기 얼굴 위조 방지 모델이 분류 모델인 경우에, 상기 분류 라벨의 각각은 상기 분류 라벨에 대응하는 상기 지원 샘플 이미지의 범주를 라벨링하도록 구성되는 제1 분류 라벨이고, 상기 범주는 위조 방법 또는 모델 중 적어도 하나를 포함하고; 또는
상기 얼굴 위조 방지 모델이 회귀 모델인 경우에, 상기 분류 라벨의 각각은 상기 분류 라벨에 대응하는 상기 지원 샘플 이미지를 양성 샘플 또는 음성 샘플로서 라벨링하도록 구성되는 제2 분류 라벨인, 위조 얼굴 인식 방법.
7. The method of claim 6,
when the face anti-counterfeiting model is a classification model, each of the classification labels is a first classification label, configured to label a category of the supported sample image corresponding to the classification label, wherein the category is at least one of a forgery method or model including one; or
when the anti-counterfeiting model is a regression model, each of the classification labels is a second classification label, configured to label the supporting sample image corresponding to the classification label as a positive sample or a negative sample.
제1항에 있어서,
사전 훈련 전의 상기 얼굴 위조 방지 모델의 초기 매개변수는 딥 러닝 훈련 방법에 따라 결정되는, 위조 얼굴 인식 방법.
According to claim 1,
An initial parameter of the anti-spoofing model before pre-training is determined according to a deep learning training method.
제1항 내지 제8항 중 어느 한 항에 있어서,
상이한 기존 범주의 위조 얼굴 이미지는 위조 방법 또는 모델 중 적어도 하나에 있어서 상이하고, 상기 위조 방법은 사진, 비디오 또는 마스크를 포함하고, 상기 모델은 깊이 모델(depth model), 근적외선 모델 또는 적색-녹색-청색(RGB) 모델을 포함하며;
상이한 태스크 내 실제 얼굴 이미지는 동일하거나 상이한 모델을 가지며;
상기 새로운 범주의 위조 얼굴 이미지는 위조 방법 또는 모델 중 적어도 하나에 있어서 기존 이미지와 상이하고, 상기 기존 이미지는 상기 기존 범주의 위조 얼굴 이미지 및 상기 기존 범주의 실제 얼굴 이미지를 포함하는, 위조 얼굴 인식 방법.
9. The method according to any one of claims 1 to 8,
Different existing categories of fake face images differ in at least one of a forgery method or model, wherein the forged method includes a photograph, a video or a mask, the model being a depth model, a near infrared model or a red-green- blue (RGB) models;
Real face images in different tasks have the same or different models;
The fake face image of the new category is different from an existing image in at least one of a forgery method or a model, and the existing image includes a fake face image of the old category and a real face image of the existing category. .
위조 얼굴 인식 장치로서,
새로운 범주의 위조 얼굴 이미지의 작은 샘플 세트를 획득하도록 구성되는 작은 샘플 획득 모듈;
새로운 범주의 위조 얼굴 이미지의 상기 작은 샘플 세트로 사전 훈련된 얼굴 위조 방지 모델의 매개변수를 업데이트하도록 구성되는 모델 조정 모듈 - 상기 사전 훈련된 얼굴 위조 방지 모델의 상기 매개변수는 다수의 세트의 매개변수에 기초하여 결정되고, 다수의 세트의 사전 훈련된 매개변수는 각각 다수의 태스크에 기초하여 결정되고, 각각의 태스크는 하나 이상의 기존 범주 각각의 위조 얼굴 이미지의 작은 샘플 세트 및 하나 이상의 기존 범주 각각의 실제 얼굴 이미지의 작은 샘플 세트를 포함함 - ; 및
인식될 얼굴 이미지가 위조 얼굴 이미지인지 여부를 결정하기 위해, 인식될 상기 얼굴 이미지를 매개변수 업데이트 후에 상기 얼굴 위조 방지 모델 내로 입력하도록 구성되는 얼굴 인식 모듈
을 포함하는, 위조 얼굴 인식 장치.
A counterfeit facial recognition device, comprising:
a small sample acquisition module, configured to acquire a small sample set of a new category of fake face images;
a model tuning module, configured to update parameters of a pre-trained anti-counterfeiting model with the small sample set of a new category of spoof face images, wherein the parameters of the pre-trained anti-spoofing model are a plurality of sets of parameters and a plurality of sets of pre-trained parameters are each determined based on a plurality of tasks, each task comprising a small sample set of fake face images in each of one or more existing categories and each of one or more existing categories. Contains a small sample set of real face images - ; and
a face recognition module, configured to input the face image to be recognized into the anti-counterfeiting model after parameter update, to determine whether the face image to be recognized is a forged face image
A counterfeit facial recognition device, comprising:
제10항에 있어서,
상기 모델 조정 모듈은 상기 새로운 범주의 위조 얼굴 이미지의 상기 작은 샘플 내의 위조 얼굴 이미지 및 상기 위조 얼굴 이미지의 각각에 대응하는 분류 라벨에 기초하여, 상기 얼굴 위조 방지 모델의 상기 매개변수를 업데이트하도록 구성되고,
상기 얼굴 위조 방지 모델이 분류 모델인 경우에, 분류 라벨은 상기 분류 라벨에 대응하는 위조 얼굴 이미지의 범주를 라벨링하도록 구성되는 제1 분류 라벨이고, 상기 범주는 위조 방법 또는 모델 중 적어도 하나를 포함하고; 또는
상기 얼굴 위조 방지 모델이 회귀 모델인 경우에, 분류 라벨은 상기 분류 라벨에 대응하는 위조 얼굴 이미지를 양성 샘플 또는 음성 샘플로서 라벨링하도록 구성되는 제2 분류 라벨인, 위조 얼굴 인식 장치.
11. The method of claim 10,
the model adjustment module is configured to update the parameter of the anti-counterfeiting model according to a classification label corresponding to each of the fake face image and the fake face image in the small sample of the fake face image of the new category; ,
when the anti-counterfeiting model is a classification model, the classification label is a first classification label, configured to label a category of a forged face image corresponding to the classification label, the category comprising at least one of a forgery method or a model; ; or
when the anti-spoofing face model is a regression model, the classification label is a second classification label, configured to label a fake face image corresponding to the classification label as a positive sample or a negative sample.
제11항에 있어서,
상기 모델 조정 모듈은, 상기 새로운 범주의 위조 얼굴 이미지의 상기 작은 샘플 세트 내의 위조 얼굴 이미지를 하나의 태스크에 대한 지원 샘플 이미지로서 상기 얼굴 위조 방지 모델에 입력하고, 상기 위조 얼굴 이미지 각각에 대응하는 분류 라벨 및 상기 위조 얼굴 이미지 각각에 대한 상기 얼굴 위조 방지 모델의 출력값에 기초하여, 상기 얼굴 위조 방지 모델의 상기 매개변수의 경사도를 결정하고, 상기 얼굴 위조 방지 모델의 상기 매개변수의 경사도에 기초하여, 상기 얼굴 위조 방지 모델의 상기 매개변수를 업데이트하도록 구성되는, 위조 얼굴 인식 장치.
12. The method of claim 11,
The model adjustment module is configured to input a fake face image in the small sample set of the new category of fake face image into the face anti-counterfeiting model as a support sample image for one task, and a classification corresponding to each of the fake face images determine a gradient of the parameter of the anti-counterfeiting model according to the output value of the anti-counterfeiting model for each of the label and the face image, and based on the gradient of the parameter of the anti-counterfeiting model, and update the parameter of the face anti-spoofing model.
제12항에 있어서,
상기 얼굴 위조 방지 모델이 분류 모델인 경우에, 상기 위조 얼굴 이미지 각각에 대한 상기 얼굴 위조 방지 모델의 상기 출력값은 각각의 상기 위조 얼굴 이미지가 각각 상이한 범주에 속할 확률이고, 상기 모델 조정 모듈은 상기 위조 얼굴 이미지 각각에 대응하는 상기 제1 분류 라벨 및 각각의 상기 위조 얼굴 이미지가 각각 상이한 범주에 속할 확률에 기초하여, 상기 얼굴 위조 방지 모델의 상기 매개변수의 제1 경사도를 결정하도록 구성되고;
또는, 상기 얼굴 위조 방지 모델이 회귀 모델인 경우에, 상기 위조 얼굴 이미지 각각에 대한 상기 얼굴 위조 방지 모델의 상기 출력값은 각각의 상기 위조 얼굴 이미지가 양성 샘플에 속할 확률이고, 상기 모델 조정 모듈은 상기 위조 얼굴 이미지 각각에 대응하는 상기 제2 분류 라벨 및 각각의 상기 위조 얼굴 이미지가 양성 샘플에 속할 확률에 기초하여, 상기 얼굴 위조 방지 모델의 상기 매개변수의 제2 경사도를 결정하도록 구성되는, 위조 얼굴 인식 장치.
13. The method of claim 12,
When the anti-counterfeiting model is a classification model, the output value of the anti-counterfeiting model for each of the forged face images is a probability that each of the forged face images belongs to a different category, and the model adjustment module is configured to: determine a first inclination of the parameter of the anti-spoofing model, based on the first classification label corresponding to each of the face images and the probability that each of the forged face images respectively belong to different categories;
or, when the anti-counterfeiting model is a regression model, the output value of the anti-counterfeiting model for each of the forged face images is a probability that each of the forged face images belongs to a positive sample, and the model adjustment module is configured to: and determine a second slope of the parameter of the anti-spoofing model, based on the second classification label corresponding to each of the fake face images and the probability that each of the fake face images belongs to a positive sample. recognition device.
제10항에 있어서,
사전 훈련 모듈을 추가로 포함하고,
상기 사전 훈련 모듈은,
상기 기존 범주의 위조 얼굴 이미지 및 상기 기존 범주의 실제 얼굴 이미지를 다수의 태스크로 분할하고 -
각각의 태스크는 다수의 방식을 포함하고, 각각의 방식은 하나의 모델의 다수의 실제 얼굴 이미지 또는 기존 범주의 다수의 위조 얼굴 이미지를 포함하고, 각각의 태스크는 제1 미리 설정된 수의 기존 범주를 포함하고,
각각의 방식은 지원 샘플 이미지로 구성되는 작은 샘플 세트로서 제2 미리 설정된 수의 실제 얼굴 이미지 또는 위조 얼굴 이미지, 및 쿼리 샘플 이미지로서 제3 미리 설정된 수의 실제 얼굴 이미지 또는 위조 얼굴 이미지를 포함함 - ;
상기 얼굴 위조 방지 모델의 상기 다수의 세트의 매개변수가 배치의 상기 다수의 태스크에 기초하여 각각 결정되고 상기 얼굴 위조 방지 모델의 상기 매개변수가 상기 다수의 세트의 매개변수에 기초하여 재결정되도록, 매번 상기 배치를 형성하기 위해 제4 미리 설정된 수의 태스크를 선택하고;
상기 얼굴 위조 방지 모델이 수렴 상태에 도달할 때까지 상기 얼굴 위조 방지 모델의 사전 훈련을 완료하도록 구성되는, 위조 얼굴 인식 장치.
11. The method of claim 10,
additionally including a pre-training module,
The pre-training module is
Splitting the fake face image of the existing category and the real face image of the existing category into multiple tasks;
Each task includes a plurality of manners, each manner includes a plurality of real face images of one model or a plurality of fake face images of an existing category, and each task includes a first preset number of existing categories including,
Each manner includes a second preset number of real face images or fake face images as a small sample set consisting of support sample images, and a third preset number of real face images or fake face images as query sample images; ;
so that the plurality of sets of parameters of the anti-counterfeiting model are respectively determined based on the plurality of tasks of a batch and the parameters of the anti-counterfeiting model are re-determined based on the plurality of sets of parameters, each time select a fourth preset number of tasks to form the batch;
and complete the pre-training of the anti-counterfeiting model until the anti-counterfeiting model reaches a convergence state.
제14항에 있어서,
상기 사전 훈련 모듈은, 각각의 지원 샘플 이미지 및 각각의 지원 샘플 이미지에 대응하는 분류 라벨에 기초하여 상기 태스크에 대응하는 제3 경사도를 결정하고, 상기 배치 내 각각의 태스크에 대한 상기 제3 경사도에 기초하여 상기 얼굴 위조 방지 모델의 하나의 세트의 매개변수를 결정하고, 상기 배치 내의 상기 다수의 태스크 각각, 상기 다수의 태스크에 대응하는 상기 쿼리 샘플 이미지 및 상기 쿼리 샘플 이미지 각각에 대응하는 분류 라벨에 의해 결정되는 매개변수 세트에 기초하여 상기 배치에 대응하는 제4 경사도를 결정하고, 상기 배치에 대응하는 상기 제4 경사도에 기초하여 상기 얼굴 위조 방지 모델의 상기 매개변수를 재결정하도록 구성되는, 위조 얼굴 인식 장치.
15. The method of claim 14,
The pre-training module is configured to determine a third gradient corresponding to the task based on each support sample image and a classification label corresponding to each support sample image, and to determine the third gradient for each task in the batch. determine one set of parameters of the anti-counterfeiting model based on each of the plurality of tasks in the batch, the query sample image corresponding to the plurality of tasks, and a classification label corresponding to each of the query sample images determine a fourth gradient corresponding to the arrangement based on a parameter set determined by recognition device.
제15항에 있어서,
상기 얼굴 위조 방지 모델이 분류 모델인 경우에, 상기 분류 라벨의 각각은 상기 분류 라벨에 대응하는 상기 지원 샘플 이미지의 범주를 라벨링하도록 구성되는 제1 분류 라벨이고, 상기 범주는 위조 방법 또는 모델 중 적어도 하나를 포함하고; 또는 상기 얼굴 위조 방지 모델이 회귀 모델인 경우에, 상기 분류 라벨의 각각은 상기 분류 라벨에 대응하는 상기 지원 샘플 이미지를 양성 샘플 또는 음성 샘플로서 라벨링하도록 구성되는 제2 분류 라벨인, 위조 얼굴 인식 장치.
16. The method of claim 15,
when the face anti-counterfeiting model is a classification model, each of the classification labels is a first classification label, configured to label a category of the supported sample image corresponding to the classification label, wherein the category is at least one of a forgery method or model including one; or when the anti-counterfeiting model is a regression model, each of the classification labels is a second classification label, configured to label the support sample image corresponding to the classification label as a positive sample or a negative sample. .
제10항에 있어서,
사전 훈련 전의 상기 얼굴 위조 방지 모델의 초기 매개변수는 딥 러닝 훈련 방법에 따라 결정되는, 위조 얼굴 인식 장치.
11. The method of claim 10,
The initial parameters of the anti-counterfeiting model before pre-training are determined according to a deep learning training method.
제10항 내지 제17항 중 어느 한 항에 있어서,
상이한 기존 범주의 위조 얼굴 이미지는 위조 방법 또는 모델 중 적어도 하나에 있어서 상이하고, 상기 위조 방법은 사진, 비디오 또는 마스크를 포함하고, 상기 모델은 깊이 모델, 근적외선 모델 또는 적색-녹색-청색(RGB) 모델을 포함하며;
상이한 태스크 내 실제 얼굴 이미지는 동일하거나 상이한 모델을 가지며;
상기 새로운 범주의 위조 얼굴 이미지는 위조 방법 또는 모델 중 적어도 하나에 있어서 기존 이미지와 상이하고, 상기 기존 이미지는 상기 기존 범주의 위조 얼굴 이미지 및 상기 기존 범주의 실제 얼굴 이미지를 포함하는, 위조 얼굴 인식 장치.
18. The method according to any one of claims 10 to 17,
Different existing categories of fake face images differ in at least one of a forgery method or model, wherein the forged method comprises a photograph, a video or a mask, the model being a depth model, a near infrared model or a red-green-blue (RGB) model. includes a model;
Real face images in different tasks have the same or different models;
The fake face image of the new category is different from an existing image in at least one of a forgery method or a model, and the existing image includes a fake face image of the old category and a real face image of the existing category. .
위조 얼굴 인식 장치로서,
메모리; 및
상기 메모리에 결합되는 프로세서
를 포함하고,
상기 프로세서는 상기 메모리에 저장된 명령에 기초하여, 제1항 내지 제9항 중 어느 한 항에 따른 위조 얼굴 인식 방법을 구현하도록 구성되는, 위조 얼굴 인식 장치.
A counterfeit facial recognition device, comprising:
Memory; and
a processor coupled to the memory
including,
and the processor is configured to implement the fake face recognition method according to any one of claims 1 to 9, based on the instructions stored in the memory.
프로세서에 의해 실행될 때, 제1항 내지 제9항 중 어느 한 항에 따른 방법의 단계들을 구현하는 컴퓨터 프로그램이 저장된 컴퓨터 판독 가능한 저장 매체.A computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of the method according to any one of claims 1 to 9.
KR1020217040310A 2019-05-10 2020-04-26 Counterfeit face recognition method, device and non-transitory computer readable storage medium KR20220007130A (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201910387689.0 2019-05-10
CN201910387689.0A CN111783505A (en) 2019-05-10 2019-05-10 Method and device for identifying forged faces and computer-readable storage medium
PCT/CN2020/086952 WO2020228515A1 (en) 2019-05-10 2020-04-26 Fake face recognition method, apparatus and computer-readable storage medium

Publications (1)

Publication Number Publication Date
KR20220007130A true KR20220007130A (en) 2022-01-18

Family

ID=72755586

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020217040310A KR20220007130A (en) 2019-05-10 2020-04-26 Counterfeit face recognition method, device and non-transitory computer readable storage medium

Country Status (4)

Country Link
JP (1) JP2022532177A (en)
KR (1) KR20220007130A (en)
CN (1) CN111783505A (en)
WO (1) WO2020228515A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112329745A (en) * 2021-01-04 2021-02-05 北京沃东天骏信息技术有限公司 Training method, face anti-counterfeiting detection method, related equipment and storage medium
CN113014914B (en) * 2021-01-27 2022-11-01 北京市博汇科技股份有限公司 Neural network-based single face-changing short video identification method and system
CN112784790B (en) * 2021-01-29 2022-05-10 厦门大学 Generalization false face detection method based on meta-learning
CN113205044B (en) * 2021-04-30 2022-09-30 湖南大学 Deep fake video detection method based on characterization contrast prediction learning
CN113221786A (en) * 2021-05-21 2021-08-06 深圳市商汤科技有限公司 Data classification method and device, electronic equipment and storage medium
CN113723295B (en) * 2021-08-31 2023-11-07 浙江大学 Face counterfeiting detection method based on image domain frequency domain double-flow network
CN113807281B (en) * 2021-09-23 2024-03-29 深圳信息职业技术学院 Image detection model generation method, detection method, terminal and storage medium
CN114925748B (en) * 2022-04-20 2024-05-24 北京市商汤科技开发有限公司 Model training and modal information prediction method, related device, equipment and medium
CN114821825B (en) * 2022-06-30 2022-12-06 广州中平智能科技有限公司 Multi-granularity face forgery detection method, system, equipment and medium
CN117496118B (en) * 2023-10-23 2024-06-04 浙江大学 Method and system for analyzing steal vulnerability of target detection model
CN117611923A (en) * 2024-01-08 2024-02-27 北京锐融天下科技股份有限公司 Identification method and system for identity document authenticity

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101464950B (en) * 2009-01-16 2011-05-04 北京航空航天大学 Video human face identification and retrieval method based on on-line learning and Bayesian inference
US9104908B1 (en) * 2012-05-22 2015-08-11 Image Metrics Limited Building systems for adaptive tracking of facial features across individuals and groups
KR102462818B1 (en) * 2015-07-08 2022-11-04 주식회사 케이티 Method of motion vector and feature vector based fake face detection and apparatus for the same
CN107871100B (en) * 2016-09-23 2021-07-06 北京眼神科技有限公司 Training method and device of face model, and face authentication method and device
CN108229325A (en) * 2017-03-16 2018-06-29 北京市商汤科技开发有限公司 Method for detecting human face and system, electronic equipment, program and medium
CN107506717B (en) * 2017-08-17 2020-11-27 南京东方网信网络科技有限公司 Face recognition method based on depth transformation learning in unconstrained scene
CN108776786A (en) * 2018-06-04 2018-11-09 北京京东金融科技控股有限公司 Method and apparatus for generating user's truth identification model
CN109214414B (en) * 2018-07-18 2022-02-22 广东工业大学 Multi-task positive and semi-definite constraint metric learning method facing face recognition
CN109359541A (en) * 2018-09-17 2019-02-19 南京邮电大学 A kind of sketch face identification method based on depth migration study
CN109522798A (en) * 2018-10-16 2019-03-26 平安科技(深圳)有限公司 Video anticounterfeiting method, system, device based on vivo identification and can storage medium
CN109697469A (en) * 2018-12-26 2019-04-30 西北工业大学 A kind of self study small sample Classifying Method in Remote Sensing Image based on consistency constraint
CN109670491A (en) * 2019-02-25 2019-04-23 百度在线网络技术(北京)有限公司 Identify method, apparatus, equipment and the storage medium of facial image

Also Published As

Publication number Publication date
WO2020228515A1 (en) 2020-11-19
CN111783505A (en) 2020-10-16
JP2022532177A (en) 2022-07-13

Similar Documents

Publication Publication Date Title
KR20220007130A (en) Counterfeit face recognition method, device and non-transitory computer readable storage medium
WO2019169532A1 (en) License plate recognition method and cloud system
CN108446700B (en) License plate attack generation method based on anti-attack
KR101993266B1 (en) method for designing and learning varying model and method for detecting video forgeries therewith
AU2018292176B2 (en) Detection of manipulated images
EP3888001B1 (en) Anti-spoofing
WO2018166116A1 (en) Car damage recognition method, electronic apparatus and computer-readable storage medium
CA3152812A1 (en) Facial recognition method and apparatus
CN111160102B (en) Training method of face anti-counterfeiting recognition model, face anti-counterfeiting recognition method and device
WO2019136960A1 (en) Method and device for crawling website data, storage medium and server
WO2019232850A1 (en) Method and apparatus for recognizing handwritten chinese character image, computer device, and storage medium
CN111191535B (en) Pedestrian detection model construction method based on deep learning and pedestrian detection method
WO2020093303A1 (en) Processing method and apparatus based on facial recognition, and device and readable storage medium
WO2021051553A1 (en) Certificate information classification and positioning method and apparatus
CN109389105A (en) A kind of iris detection and viewpoint classification method based on multitask
CN111275051A (en) Character recognition method, character recognition device, computer equipment and computer-readable storage medium
CN112232336A (en) Certificate identification method, device, equipment and storage medium
CN110942067A (en) Text recognition method and device, computer equipment and storage medium
CN111652242B (en) Image processing method, device, electronic equipment and storage medium
TWI603268B (en) Image processing system and method for license plate recognition
CN110298377A (en) Firework detecting method in digital picture based on deep layer artificial neural network
CN111832364B (en) Face recognition method and device
CN113409278A (en) Image quality detection method, apparatus, device, and medium
CN117253262B (en) Fake fingerprint detection method and device based on commonality feature learning
CN113792683B (en) Training method, training device, training equipment and training storage medium for text recognition model