One of the most powerful features of SAS Visual Investigator is its scenario authoring capability. It allows administrators to build scenarios using organization-specific business rules to detect anomalies, potentially stopping illicit activities in their tracks.
The different types of scenarios supported by SAS Visual Investigator are as follows:
Once an alert flow has been created and the desired data sources have been loaded, the new scenario dropdown menu on the flow page can be used to create a new scenario:
Select any image to see a larger version.
Mobile users: To view the images, select the "Full" version at the bottom of the page.
However, sometimes you may find that the Aggregation scenario menu option is grayed out.
This is because the appropriate relationship hasn’t been configured between the relevant entities. This post aims to help you navigate this issue with a worked example.
The desired behavior that we wish to capture is a situation where multiple insurance claims are filed against a single insurance policy. In the network diagram below, policy is represented by the blue document icon and claim is represented by the orange document icon. As illustrated, multiple claims are attached to the single policy. This pattern of losses might suggest that the policy holder is intentionally exploiting the system—a behavior worth further investigation.
In order to build this particular scenario, three pre-requisites must be met:
Table 1: Mock auto claim data
Claim ID | Policy ID | … |
1001 | 100 | … |
1002 | 200 | … |
1003 | 300 | … |
1004 | 300 | … |
1005 | 300 | … |
1006 | 400 | … |
In the above example, there are three claims filed against the policy with the Policy ID of 300. This is the behavior we wish to flag.
This data source can be added to the alert flow by simply navigating to the Data Sources section of the flow page and using the Add data sources button.
Two things to note. Firstly, for SAS Visual Investigator, the order of the pairing matters. A relationship that’s defined as from policy (one) to claims (many) is not equivalent to a relationship that’s defined as from claims (many) to policy (one). The “From” entity in a relationship will later become the actionable entity in our scenario.
Second thing to note is that no additional bridge table is necessary in this relationship definition, as there’s already a claim-to-policy association in the auto_claim table.
Lastly, as a best practice, always reindex your relationships and entities after modification.
Once the three prerequisites are met, the building of the scenario can commence. Under the Details section, define Date and time field, Lookback unit, and Group by fields. We want to group by the ID associated with our actionable entity—Policy Id—and use claim incident date as the Date and time field. The lookback unit can be defined as month-to-date or day.
Navigate to the Aggregations tab and configure it as follows to allow us to count the number of claims filed against a policy over a lookback period of six months.
Next, navigate to the Rules tab and define the condition as:
The scenario configuration is now complete. As a best practice, always test the flow after creating or updating a scenario. The Test Results tab can shed light on the efficacy of your scenario. Use it to fine tune your scenario base on your organization’s unique needs.
The most important takeaways of this post are:
I hope this worked example helped you navigate the finer intricacies of designing and building an aggregation scenario in SAS Visual Investigator.
About Configuring Relationships for Flows and Scenarios
Scenarios in SAS Visual Investigator
SAS Visual Investigator and Scenario Administrator
Using a Lookback in Scenarios: Lookback Basics
Find more articles from SAS Global Enablement and Learning here.
The rapid growth of AI technologies is driving an AI skills gap and demand for AI talent. Ready to grow your AI literacy? SAS offers free ways to get started for beginners, business leaders, and analytics professionals of all skill levels. Your future self will thank you.