Loading
CRM Analytics
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Detect and Remove Bias from a Model

          Detect and Remove Bias from a Model

          Einstein Discovery helps you practice ethical use of AI by detecting bias in your data so that you can remove its distorting effects on your analysis and predictions. Bias indicates that variables are being treated unequally in your model.

          Required Editions

          Note
          Note Einstein Discovery stories are now models. We wish we could snap our fingers to update the name everywhere, but you can expect to see the previous name in a few places until we replace it.
          Available in Salesforce Classic and Lightning Experience.
          Available with CRM Analytics, which is available for an extra cost in Enterprise, Performance, and Unlimited Editions. Also available in Developer Edition.

          Examples of bias include:

          • Proxy variables, where a variable is highly correlated to a sensitive variable, such as a loan applicant's street address and ethnicity.
          • Disparate impact is a type of analysis we do to try to understand how different groups are being treated by the model.

          Einstein Discovery lets you flag data that could potentially be associated with unfair treatment—such as race, gender, religion, national origin, sexual orientation, disability, age—as sensitive variables. Einstein Discovery then displays a shield icon next to models and insights associated with sensitive variables as a reminder of possible bias while you investigate your data. Removing biased variables from your model can produce more ethical and accountable insights. For an overview, take the following Trailhead modules:

          To detect and remove bias in your model:

          1. In Model Setup, select a variable that you suspect can indicate bias, click the Settings tab in the right panel, and select Analyze for Bias.

            Flagging a variable as sensitive

          2. Click Update Model to create a new model version.
          3. To filter the list so that it contains only insights associated with sensitive variables, click the shield button.

            Shield button to filter the insights list by sensitive fields

            The shield icon indicates that this insight is associated with a variable that has been flagged as sensitive.

            Shield icon, showing that an insight is associated with a sensitive variable

          4. Select an insight card.
            • Einstein Discovery shows you a disparate impact analysis if there is a significant discrepancy in the way different classes are being treated by the model.

              Disparate impact threshold line and explanation

            • Einstein Discovery shows you a potential bias analysis if it detects possible proxy variables.

              Disparate impact threshold line and explanation

          5. Click Edit Model to view model settings. Notice how Einstein displays the shield icon and the Disparate Impact data alert for the variable.

            Model setup screen, showing the shield icon and alert for a sensitive variable

          6. Investigate your model’s insights to help you decide whether to include a sensitive variable (because it serves your analysis), or to exclude it and remove its biased influence from the model. To remove a variable, simply disable it and click Update Model to create a new model version without it.

            Disabling a sensitive field to remove its bias from the model

           
          Loading
          Salesforce Help | Article