HMRC: Logo Detection and Classification Toolkit (LDK)
This document outlines the Algorithmic Transparency Recording Standard record for HM Revenue & Customs' Logo Detection and Classification Toolkit (LDK), an in-house machine learning tool used to identify unauthorized uses of HMRC and HMG logos. Developed jointly by HMRC's Data Science and Cybersecurity teams using YOLOv2, the tool automates web scraping and logo detection to combat fraud and brand misuse. It reduces process completion times from three days to a few hours while maintaining human review before any takedown actions are taken.
Summary and content fields are drawn from the document text and are pending editorial review.
Who issued it
Who it governs
This document is for researchers, policymakers, and members of the public interested in algorithmic transparency and public sector AI deployment.
What the document contains
The document details the architectural specifications, model training parameters, dataset composition, risk assessments, and decision-making workflows for HMRC's Logo Detection and Classification Toolkit.
The text does not contain broader legislative mandates, binding codes of conduct for external entities, or general ethical frameworks beyond operational risk mitigation for this specific tool.
- The Logo Detection and Classification Toolkit (LDK) uses a YOLOv2 deep learning model to automatically detect unauthorized uses of HMRC and HMG logos online.
- The tool reduces manual process completion times from three days to 3-4 hours and improves finding rates significantly.
- Human analysts review all algorithmic outputs and verify URLs before any takedown procedures or legal actions are initiated.
- Model parameters, weights, and biases are retrained and updated every six months using newly gathered training and validation datasets.
- The system is deployed in a Linux environment utilizing Flask and TensorFlow serving servers.
· Tier 1 Information · Tier 2 - Owner and Responsibility · Tier 2 - Description and Rationale · Tier 2 - Decision making Process · Tier 2 - Tool Specification · Tier 2 - Model Specification · Tier 2 - Data Specification · Tier 2 - Risks, Mitigations and Impact Assessments
How it scores
Each score is backed by a quote verified against the document text. Editorial review has not yet confirmed them.
Accountability
4/5Clear responsibility for AI outcomes
Senior responsible owner Principal Data Scientist
Tier 2 - Owner and Responsibility 1.3 - Senior responsible owner
screening score · 2026-11-26
Fairness
0/5Non-discrimination and equitable treatment
screening score · 2026-11-26
Human Dignity
0/5Respect for the inherent worth of persons
screening score · 2026-11-26
Human Oversight
4/5Humans remain in control of consequential decisions
The algorithm does not take down the sites automatically, it generates a list of URLs for the analyst to take them down manually instead.
Tier 2 - Risks, Mitigations and Impact Assessments 5.2 - Risks and mitigations
screening score · 2026-11-26
Privacy
1/5Protection of personal data and private life
Both the Data Science and Cyber security teams have access to this data. These individuals have personal login credentials and two factor authentication for these accounts.
Tier 2 - Data Specification 4.3.11 - Data access and storage
screening score · 2026-11-26
Transparency
4/5Openness about how AI systems work and are used
The Logo Detection and Classification Toolkit comprises of three different modules.
Tier 2 - Description and Rationale 2.1 - Detailed description
screening score · 2026-11-26
Enforcement
3/5Consequences and compliance mechanisms with real force
When a logo is detected then action is taken either by contacting the hosting company or to take down the URL, which can include legal action against the internet provider.
Tier 2 - Decision making Process 3.1 - Process integration
screening score · 2026-11-26
Impact Assessment
3/5Required assessment of an AI system's risks/impacts before or during use
The Logo Detection and Classification Toolkit is supporting the Cybersecurity team to take down 10 URLs on average per month.
Tier 2 - Risks, Mitigations and Impact Assessments 5.1 - Impact assessment
screening score · 2026-11-26