Custom Risk Scoring with Identity Data
Learn how to build custom risk scoring systems using identity data to enhance fraud detection and improve user onboarding. Explore techniques for leveraging machine learning and data enrichment.

Contents
In this guide
Jump to the part you need.
Custom Risk Scoring with Identity Data
In today’s digital landscape, businesses face increasing challenges in balancing security with a seamless user experience. Traditional, rule-based fraud detection systems often fall short, resulting in false positives and frustrating legitimate customers. Implementing a custom risk scoring system leveraging rich identity data is a powerful way to improve fraud detection accuracy and personalize the onboarding process. This post will delve into the architecture, data sources, and implementation strategies for building effective custom risk scoring models.
Key Takeaway 1: Custom risk scoring allows for a more nuanced assessment of risk than simple rules, reducing false positives and improving user experience.
Key Takeaway 2: Effective risk scoring relies on a diverse set of identity data points, enriched with external sources and machine learning insights.
Key Takeaway 3: A flexible architecture is crucial, allowing for easy adaptation to evolving fraud patterns and integration with existing systems.
Key Takeaway 4: Regularly monitoring and retraining your model is vital to maintain accuracy and effectiveness.
Understanding the Foundations of Risk Scoring
At its core, risk scoring assigns a numerical value representing the likelihood of a user being fraudulent or posing a security risk. This score is then used to trigger various actions, such as requiring additional verification steps, flagging transactions for manual review, or outright denying access. Unlike static rules (e.g., “block all transactions from Country X”), risk scoring models dynamically adjust based on a multitude of factors. The power lies in combining and weighting these factors to create a holistic view of risk.
Traditional methods often rely on manually defined rules. However, modern approaches increasingly leverage machine learning algorithms to identify complex patterns and predict risk more accurately. A well-designed system should incorporate both rule-based and machine learning components for optimal results.
Key Identity Data Sources for Risk Scoring
The quality of your risk score directly depends on the richness and accuracy of the underlying identity data. Here are some critical data points to consider:
- Document Verification Data: Information extracted from ID documents (e.g., name, date of birth, document type, issuing country) and the results of authenticity checks.
- Biometric Data: Face match scores, liveness detection results, and biometric timestamps.
- Device Intelligence: Device type, operating system, browser version, IP address, geolocation, and device fingerprint.
- Behavioral Biometrics: Typing speed, mouse movements, and navigation patterns.
- Transaction Data: Transaction amount, frequency, location, and time of day.
- Velocity Checks: Number of accounts created within a specific timeframe, number of transactions processed, and rate of address changes.
- Third-Party Data Enrichment: Data from fraud blacklists, credit bureaus, and public records.
Building Your Risk Scoring Architecture
A robust risk scoring architecture typically involves these components:
- Data Ingestion: Collecting identity data from various sources (APIs, webhooks, databases).
- Data Processing & Feature Engineering: Cleaning, transforming, and preparing the data for model training. This includes creating new features from existing data (e.g., time since last login, ratio of successful to failed verification attempts).
- Risk Model Training: Training a machine learning model (e.g., logistic regression, random forest, gradient boosting) using historical data labeled with fraud outcomes.
- Real-time Scoring: Applying the trained model to new users and transactions to generate a risk score.
- Decision Engine: Using the risk score to trigger appropriate actions (e.g., automatic approval, manual review, step-up authentication).
- Monitoring & Retraining: Continuously monitoring model performance and retraining the model with new data to maintain accuracy.
Consider using a real-time feature store to minimize latency when calculating risk scores. APIs like Didit’s allow you to access and combine these data points within a unified platform, simplifying the integration process.
Example: Implementing a Simple Risk Score
Here’s a simplified example of how you might calculate a risk score using Python:
def calculate_risk_score(document_age, ip_risk_score, velocity_score):
# Document Age: Recency of document issuance (lower = higher risk)
# IP Risk Score: Score from IP intelligence provider (higher = higher risk)
# Velocity Score: Number of accounts created from the same IP (higher = higher risk)
document_age_weight = 0.3
ip_risk_score_weight = 0.4
velocity_score_weight = 0.3
risk_score = (document_age * document_age_weight) +
(ip_risk_score * ip_risk_score_weight) +
(velocity_score * velocity_score_weight)
return risk_score
# Example Usage
document_age = 2 # Document issued 2 years ago
ip_risk_score = 0.8 # High-risk IP address
velocity_score = 5 # 5 accounts created from this IP
risk_score = calculate_risk_score(document_age, ip_risk_score, velocity_score)
print(f"Risk Score: {risk_score}")
How Didit Helps
Didit simplifies the process of building and implementing custom risk scoring systems by providing:
- Comprehensive Identity Data: Access to a wide range of identity data points through a single API, including document verification, biometric authentication, and device intelligence.
- Workflow Orchestration: The ability to build complex verification flows with conditional logic and automated decision-making.
- Fraud Signals: Pre-built fraud signals and risk indicators that can be incorporated into your risk scoring model.
- API Integration: Easy-to-use APIs for seamless integration with your existing systems.
- Scalability: A scalable platform that can handle high volumes of verification requests.
Ready to Get Started?
Ready to enhance your fraud detection capabilities with custom risk scoring? Explore Didit’s identity platform and see how we can help you build a more secure and user-friendly experience.
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alberto Rosas
Co-founder and CEO

Questions
Blog questions
Who writes the Didit blog?
Which topics does the blog cover?
Is the blog available in my language?
Where do I find product updates?
Are these posts legal advice?
How do I find posts on one topic?
Are posts dated?
Do posts link to the docs?
Is the blog the same as the docs?
Compliance built in
Audited, certified and attested.
We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center
- Regulation encoded into your flows
Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.
- Ready for AMLR
Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.
- Tested in Spain's Treasury sandbox
Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.
- Audited, not self-declared
iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.
Your obligations · 3 regions
SOC 2 Type 2
ISO 27001
iBeta Level 1 and Level 2
EU regulator attestation
FSM youth protection
GDPR
EBA remote onboarding
MiCA compatible
FIDO Alliance member
- AMLREU AML Regulation ready
Integration · Didit MCP
Run Didit from your own AI agent
Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.
- Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
- Run investigationsAsk why a session was declined, review cases, search people and companies.
- Change rulesCreate payment rules, test them on past data and switch them on.
- Pull reportsAsk for numbers, exports or the audit log.
Didit Academy


