{"id":874,"date":"2026-09-23T09:00:00","date_gmt":"2026-09-23T08:00:00","guid":{"rendered":"https:\/\/research.reading.ac.uk\/einstein\/?p=874"},"modified":"2026-09-23T09:00:00","modified_gmt":"2026-09-23T08:00:00","slug":"teaching-ai-to-recognise-documents-it-has-never-seen-few-shot-learning-in-identity-verification","status":"publish","type":"post","link":"https:\/\/research.reading.ac.uk\/einstein\/teaching-ai-to-recognise-documents-it-has-never-seen-few-shot-learning-in-identity-verification\/","title":{"rendered":"Teaching AI to Recognise Documents It Has Never Seen: Few-Shot Learning in Identity Verification"},"content":{"rendered":"\n<figure class=\"wp-block-image alignwide size-full\">\n  <img decoding=\"async\" src=\"https:\/\/research.reading.ac.uk\/einstein\/wp-content\/uploads\/sites\/327\/2026\/05\/img_art21-1.png\" alt=\"Illustration for: Teaching AI to Recognise Documents It Has Never Seen: Few-Shot Learning in Identity Verification\" style=\"border-radius:8px;margin-bottom:1.5em\" \/>\n<\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">There are thousands of different identity document types in circulation worldwide \u2014 passports, national identity cards, residence permits, driving licences \u2014 issued by nearly two hundred countries, each with its own design, security features, and biometric specifications. A border officer quickly learns the visual characteristics of the most common document types. A machine learning system trained on a fixed dataset may never encounter the majority of them. This is the generalisation problem in document-based identity verification \u2014 and few-shot learning is one of the most promising approaches to addressing it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The training data problem<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A conventional supervised learning approach requires a substantial labelled dataset for each document type the system will encounter. For the most common document types, such datasets can be assembled. For the long tail of less common document types, creating training datasets is impractical. Yet these are precisely the document types where a fraud detection system is most likely to encounter novel attacks.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What few-shot learning offers<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Few-shot learning is a machine learning paradigm in which a model is designed to learn new categories from very small numbers of examples \u2014 sometimes as few as one or five. Prototypical Networks work by learning an embedding space in which genuine documents and fraudulent documents are well-separated. At deployment time, a small number of reference examples for a new document type are used to define the prototype of that class. New documents are then classified by their distance to this prototype \u2014 no retraining required.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Results from EINSTEIN research<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Research from EINSTEIN consortium partners has applied few-shot learning to presentation attack detection on ID cards, demonstrating competitive detection performance for new country document types with as few as five unique identity examples. This was demonstrated across documents from Spain and Chile as a baseline, with generalisation to Argentina and Costa Rica \u2014 countries not represented in training.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A few-shot capable system can be updated to handle a new document type in hours rather than weeks. Combining few-shot learning with foundation model representations offers a particularly promising direction: foundation models provide rich general-purpose visual representations; few-shot learning provides the adaptation mechanism.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:0.85em;color:#6b7a90;border-top:1px solid #e2e8f2;padding-top:1em;margin-top:2em\">&#169; 2026 EINSTEIN Consortium. EINSTEIN is funded by the European Union&#8217;s Horizon Europe programme (GA&#160;No.&#160;101121280) and by UKRI (IFS&#160;10093453). Views expressed are those of the authors only. <a href=\"https:\/\/research.reading.ac.uk\/einstein\/\">www.einstein-horizon.eu<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are thousands of different identity document types in circulation worldwide \u2014 passports, national identity cards, residence permits, driving licences \u2014 issued by nearly two hundred countries, each with its own design, security features, and bio&#8230;<\/p>\n","protected":false},"author":909,"featured_media":832,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"__cvm_playback_settings":[],"__cvm_video_id":"","footnotes":""},"categories":[18],"tags":[19,108,104,30,93,24,109],"coauthors":[14],"class_list":["post-874","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-research-blog","tag-biometrics","tag-few-shot-learning","tag-generalisation","tag-identity-documents","tag-machine-learning","tag-pad","tag-prototypical-networks"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Teaching AI to Recognise Documents It Has Never Seen: Few-Shot Learning in Identity Verification - EINSTEIN<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/research.reading.ac.uk\/einstein\/teaching-ai-to-recognise-documents-it-has-never-seen-few-shot-learning-in-identity-verification\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Teaching AI to Recognise Documents It Has Never Seen: Few-Shot Learning in Identity Verification - EINSTEIN\" \/>\n<meta property=\"og:description\" content=\"There are thousands of different identity document types in circulation worldwide \u2014 passports, national identity cards, residence permits, driving licences \u2014 issued by nearly two hundred countries, each with its own design, security features, and bio...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/research.reading.ac.uk\/einstein\/teaching-ai-to-recognise-documents-it-has-never-seen-few-shot-learning-in-identity-verification\/\" \/>\n<meta property=\"og:site_name\" content=\"EINSTEIN\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-23T08:00:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/research.reading.ac.uk\/einstein\/wp-content\/uploads\/sites\/327\/2026\/05\/einstein_blog_banner-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"720\" \/>\n\t<meta property=\"og:image:height\" content=\"405\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"James Ferryman\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Ferryman\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/research.reading.ac.uk\/einstein\/teaching-ai-to-recognise-documents-it-has-never-seen-few-shot-learning-in-identity-verification\/\",\"url\":\"https:\/\/research.reading.ac.uk\/einstein\/teaching-ai-to-recognise-documents-it-has-never-seen-few-shot-learning-in-identity-verification\/\",\"name\":\"Teaching AI to Recognise Documents It Has Never Seen: Few-Shot Learning in Identity Verification - EINSTEIN\",\"isPartOf\":{\"@id\":\"https:\/\/research.reading.ac.uk\/einstein\/#website\"},\"datePublished\":\"2026-09-23T08:00:00+00:00\",\"dateModified\":\"2026-09-23T08:00:00+00:00\",\"author\":{\"@id\":\"https:\/\/research.reading.ac.uk\/einstein\/#\/schema\/person\/287e525ca50fc2213a8cd2ad36fb324f\"},\"breadcrumb\":{\"@id\":\"https:\/\/research.reading.ac.uk\/einstein\/teaching-ai-to-recognise-documents-it-has-never-seen-few-shot-learning-in-identity-verification\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/research.reading.ac.uk\/einstein\/teaching-ai-to-recognise-documents-it-has-never-seen-few-shot-learning-in-identity-verification\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/research.reading.ac.uk\/einstein\/teaching-ai-to-recognise-documents-it-has-never-seen-few-shot-learning-in-identity-verification\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/research.reading.ac.uk\/einstein\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Teaching AI to Recognise Documents It Has Never Seen: Few-Shot Learning in Identity Verification\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/research.reading.ac.uk\/einstein\/#website\",\"url\":\"https:\/\/research.reading.ac.uk\/einstein\/\",\"name\":\"EINSTEIN\",\"description\":\"IntEroperable applIcations suIte to eNhance European identity and document SecuriTy and fraud dEtectIoN\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/research.reading.ac.uk\/einstein\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/research.reading.ac.uk\/einstein\/#\/schema\/person\/287e525ca50fc2213a8cd2ad36fb324f\",\"name\":\"James Ferryman\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/research.reading.ac.uk\/einstein\/#\/schema\/person\/image\/e455eff97bf15f08533b5794a7ae2be3\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/bb9b6c1740f6a54e1761096e29ce475824a3bb90f2b70ebc385aa96656998cc9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/bb9b6c1740f6a54e1761096e29ce475824a3bb90f2b70ebc385aa96656998cc9?s=96&d=mm&r=g\",\"caption\":\"James Ferryman\"},\"url\":\"https:\/\/research.reading.ac.uk\/einstein\/author\/sis00jf\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Teaching AI to Recognise Documents It Has Never Seen: Few-Shot Learning in Identity Verification - EINSTEIN","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/research.reading.ac.uk\/einstein\/teaching-ai-to-recognise-documents-it-has-never-seen-few-shot-learning-in-identity-verification\/","og_locale":"en_GB","og_type":"article","og_title":"Teaching AI to Recognise Documents It Has Never Seen: Few-Shot Learning in Identity Verification - EINSTEIN","og_description":"There are thousands of different identity document types in circulation worldwide \u2014 passports, national identity cards, residence permits, driving licences \u2014 issued by nearly two hundred countries, each with its own design, security features, and bio...","og_url":"https:\/\/research.reading.ac.uk\/einstein\/teaching-ai-to-recognise-documents-it-has-never-seen-few-shot-learning-in-identity-verification\/","og_site_name":"EINSTEIN","article_published_time":"2026-09-23T08:00:00+00:00","og_image":[{"width":720,"height":405,"url":"https:\/\/research.reading.ac.uk\/einstein\/wp-content\/uploads\/sites\/327\/2026\/05\/einstein_blog_banner-1.png","type":"image\/png"}],"author":"James Ferryman","twitter_card":"summary_large_image","twitter_misc":{"Written by":"James Ferryman","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/research.reading.ac.uk\/einstein\/teaching-ai-to-recognise-documents-it-has-never-seen-few-shot-learning-in-identity-verification\/","url":"https:\/\/research.reading.ac.uk\/einstein\/teaching-ai-to-recognise-documents-it-has-never-seen-few-shot-learning-in-identity-verification\/","name":"Teaching AI to Recognise Documents It Has Never Seen: Few-Shot Learning in Identity Verification - EINSTEIN","isPartOf":{"@id":"https:\/\/research.reading.ac.uk\/einstein\/#website"},"datePublished":"2026-09-23T08:00:00+00:00","dateModified":"2026-09-23T08:00:00+00:00","author":{"@id":"https:\/\/research.reading.ac.uk\/einstein\/#\/schema\/person\/287e525ca50fc2213a8cd2ad36fb324f"},"breadcrumb":{"@id":"https:\/\/research.reading.ac.uk\/einstein\/teaching-ai-to-recognise-documents-it-has-never-seen-few-shot-learning-in-identity-verification\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/research.reading.ac.uk\/einstein\/teaching-ai-to-recognise-documents-it-has-never-seen-few-shot-learning-in-identity-verification\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/research.reading.ac.uk\/einstein\/teaching-ai-to-recognise-documents-it-has-never-seen-few-shot-learning-in-identity-verification\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/research.reading.ac.uk\/einstein\/"},{"@type":"ListItem","position":2,"name":"Teaching AI to Recognise Documents It Has Never Seen: Few-Shot Learning in Identity Verification"}]},{"@type":"WebSite","@id":"https:\/\/research.reading.ac.uk\/einstein\/#website","url":"https:\/\/research.reading.ac.uk\/einstein\/","name":"EINSTEIN","description":"IntEroperable applIcations suIte to eNhance European identity and document SecuriTy and fraud dEtectIoN","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/research.reading.ac.uk\/einstein\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/research.reading.ac.uk\/einstein\/#\/schema\/person\/287e525ca50fc2213a8cd2ad36fb324f","name":"James Ferryman","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/research.reading.ac.uk\/einstein\/#\/schema\/person\/image\/e455eff97bf15f08533b5794a7ae2be3","url":"https:\/\/secure.gravatar.com\/avatar\/bb9b6c1740f6a54e1761096e29ce475824a3bb90f2b70ebc385aa96656998cc9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bb9b6c1740f6a54e1761096e29ce475824a3bb90f2b70ebc385aa96656998cc9?s=96&d=mm&r=g","caption":"James Ferryman"},"url":"https:\/\/research.reading.ac.uk\/einstein\/author\/sis00jf\/"}]}},"_links":{"self":[{"href":"https:\/\/research.reading.ac.uk\/einstein\/wp-json\/wp\/v2\/posts\/874","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/research.reading.ac.uk\/einstein\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/research.reading.ac.uk\/einstein\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/research.reading.ac.uk\/einstein\/wp-json\/wp\/v2\/users\/909"}],"replies":[{"embeddable":true,"href":"https:\/\/research.reading.ac.uk\/einstein\/wp-json\/wp\/v2\/comments?post=874"}],"version-history":[{"count":1,"href":"https:\/\/research.reading.ac.uk\/einstein\/wp-json\/wp\/v2\/posts\/874\/revisions"}],"predecessor-version":[{"id":1007,"href":"https:\/\/research.reading.ac.uk\/einstein\/wp-json\/wp\/v2\/posts\/874\/revisions\/1007"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/research.reading.ac.uk\/einstein\/wp-json\/wp\/v2\/media\/832"}],"wp:attachment":[{"href":"https:\/\/research.reading.ac.uk\/einstein\/wp-json\/wp\/v2\/media?parent=874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/research.reading.ac.uk\/einstein\/wp-json\/wp\/v2\/categories?post=874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/research.reading.ac.uk\/einstein\/wp-json\/wp\/v2\/tags?post=874"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/research.reading.ac.uk\/einstein\/wp-json\/wp\/v2\/coauthors?post=874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}