Skip to content

microsoft/azure-realtime-fraud-detection

Repository files navigation

Real-Time Fraud Detection on Azure

The detection of possible fraud in financial systems has been one of the significant challenges of several organizations worldwide. In this sense, enabling the development of robust solutions that allow real-time actions is increasingly important for companies that seek to ensure greater security for their customers in carrying out financial transactions.

This repository presents a reference architecture that allows the development of Machine Learning models to be integrated into a real-time fraud detection platform.

In addition, the architecture also allows a series of asynchronous processes to be triggered near-real-time, aiming to feed monitoring dashboards and execute data enrichment routines that can support the fraud detection process.

We demonstrate routines that perform the calculation of Benford's Law and the construction of graphs to identify Fraud Rings to enable advances in fraud prevention.

For this, several Azure resources are used. Below the Reference Architecture:

Fraud Detection Architecture

Please check the prerequisites and step-by-step instructions for configuring the resources used in the items below.

Prerequisites

To use this repository, you need access to an Azure subscription. Below we will show the steps to deploy and configure the services.

While it's not required, a basic understanding of some services used will be helpful for understanding the solution. The following resources can help introduce you to them:

  1. Azure Machine Learning Overview
  2. Azure Functions
  3. Azure Event Hub
  4. Azure Stream Analytics
  5. Azure Synapse
  6. Azure Cosmos DB

Getting started

1. Deploy Resources

Start by deploying the resources to Azure. The button below will deploy All the services and its related resources:

2. Configure Azure ML Environment

Next you'll need to configure your development environment for Azure Machine Learning. We recommend using an Azure ML Workspace as it's the fastest way to get up and running.

Now you can use the AML environment. Let's train and deploy the Machine Learning model.

Train and Deploy the model

3. Configure Stream Analytics

We will configure a Stream Analytics Job to consume the inputs from Event Hub and persist the outputs to an Azure Synapse SQL Pool and to a Cosmos DB SQL API. In this way we can use the outputs to feed some other processes.

Configure Stream Analytics Job

4. Configure Cosmos DB

We need to load some data to our Cosmos DB SQL API account. The link below provide a process to do that.

Configure Cosmos DB - SQL API

5. Deploy the Functions

Finally, we have to deploy the Functions. Follow the link below to proceed with this task. How to Deploy the Functions

To Do

  1. Develop Profile Analytics Function
  2. Calculate scores from Graph db, Benford Law, and Profile Analytics
  3. Integrate scores into Orquestrator function
  4. Develop new supervised ML models

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published