IP Library Granted Patent US 12,436,967
Granted Patent B2
US 12,436,967 · App. 17/743,173 · Granted Oct 7, 2025

Visualizing feature variation effects on computer model prediction

Inventors: Kin Kwan Leung (Toronto, CA); Barum Rho (Toronto, CA); Yaqiao Luo (Toronto, CA); Valentin Tsatskin (Toronto, CA); Derek Cheung (Toronto, CA); Kyle William Hall (Baltimore, CA)
Assignee: The Toronto-Dominion Bank
G06F16/26G06F16/283G06F16/285
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,436,967
App. No.
17/743,173
Granted
Oct 7, 2025
Kind
B2
Abstract

A model visualization system analyzes model behavior to identify clusters of data instances with similar behavior. For a selected feature, data instances are modified to set the selected feature to different values evaluated by a model to determine corresponding model outputs. The feature values and outputs may be visualized in an instance-feature variation plot. The instance-feature variation plots for the different data instances may be clustered to identify latent differences in behavior of the model with respect to different data instances when varying the selected feature. The number of clusters for the clustering may be automatically determined, and the clusters may be further explored by identifying another feature which may explain the different behavior of the model for the clusters, or by identifying outlier data instances in the clusters.

Claims (59)

1. A system for visualizing feature variation effects on computer model prediction, comprising:

a processor; and

a computer-readable medium having instructions executable by the processor for:

identifying a trained computer model configured to generate an output value based on an input having a plurality of features;

identifying a data set having a plurality of data instances, each data instance having a feature vector corresponding to the plurality of features;

for each data instance in the plurality of data instances, generating an associated instance-feature variation plot describing model outputs of the trained computer model for a range of values for a first feature in the feature vector for the data instance;

clustering the plurality of data instances to a plurality of clusters based on the associated instance-feature variation plots, each cluster describing data instances having similar model outputs with respect to the range of values for the first feature;

labeling each of the plurality of data instances with the respective cluster associated with the instance;

training an interpretation model to output predicted membership of a data instance in one or more clusters of the plurality of clusters based on features of the plurality of features other than the first feature with training data including the plurality of data instances using the associated cluster label as the output to be learned by the interpretation model;

determining, based on the trained interpretation model, a second feature of the plurality of features, different from the first feature, and a decision value of the second feature that predicts membership in a first cluster of the plurality of clusters relative to a second cluster of the plurality of clusters, such that the second feature and decision value most correlate with the cluster membership describing data instances having similar model outputs of the trained computer model for the range of values for the first feature; and

providing the clustered data instances for display to a user to view the effects of the first feature on the model outputs and an indication of the decision value of the second feature.

2. The system of claim 1 , wherein the plurality of data instances is clustered with k-means clustering.

3. The system of claim 1 , wherein a number of the plurality of clusters is automatically determined based on a statistical metric.

4. The system of claim 1 , wherein the instructions are further executable for:

identifying an outlier data instance of a cluster of the plurality of clusters; and

providing information about the outlier data instance for display to the user.

5. The system of claim 1 , wherein the interpretation model is a decision tree and wherein the second feature and the decision value are determined based a decision node of the decision tree.

6. The system of claim 1 , wherein the instructions are further executable for providing a visual display of second feature values of the data instances associated with each cluster of the plurality of clusters.

7. The system of claim 1 , wherein the instructions are further executable for:

comparing the plurality of clusters of the data set with a second plurality of clusters generated for instance-feature variation plots for the first feature of the model applied to another plurality of instances associated with a second data set;

determining that the data set and the second data set are sufficiently different based on the comparison; and

responsive to determining that the data set and second data set are sufficiently different, retraining the trained computer model with the second data set.

8. A method for visualizing feature variation effects on computer model prediction, comprising:

identifying a trained computer model configured to generate an output value based on an input having a plurality of features;

identifying a data set having a plurality of data instances, each data instance having a feature vector corresponding to the plurality of features;

for each data instance in the plurality of data instances, generating an associated instance-feature variation plot describing model outputs of the trained computer model for a range of values for a first feature in the feature vector for the data instance;

clustering the plurality of data instances to a plurality of clusters based on the associated instance-feature variation plots, each cluster describing data instances having similar model outputs with respect to the range of values for the first feature;

labeling each of the plurality of data instances with the respective cluster associated with the instance;

training an interpretation model to output predicted membership of a data instance in one or more of the plurality of clusters based on features of the plurality of features other than the first feature with training data including the plurality of data instances using the associated cluster label as the output to be learned by the interpretation model;

determining, based on the trained interpretation model, a second feature of the plurality of features, different from the first feature, and a decision value of the second feature that predicts membership in a first cluster of the plurality of clusters relative to a second cluster of the plurality of clusters, such that the second feature and decision value most correlate with the cluster membership describing data instances having similar model outputs of the trained computer model for the range of values for the first feature; and

providing the clustered data instances for display to a user to view the effects of the first feature on the model outputs and an indication of the decision value of the second feature.

9. The method of claim 8 , wherein the plurality of data instances is clustered with k-means clustering.

10. The method of claim 8 , wherein a number of the plurality of clusters is automatically determined based on a statistical metric.

11. The method of claim 8 , further comprising:

identifying an outlier data instance of a cluster of the plurality of clusters; and

providing information about the outlier data instance for display to the user.

12. The method of claim 8 , wherein the interpretation model is a decision tree and wherein the second feature and the decision value are determined based a decision node of the decision tree.

13. The method of claim 8 , further comprising providing a visual display of second feature values of the data instances associated with each cluster of the plurality of clusters.

14. The method of claim 8 , further comprising:

comparing the plurality of clusters of the data set with a second plurality of clusters generated for instance-feature variation plots for the first feature of the model applied to another plurality of instances associated with a second data set;

determining that the data set and the second data set are sufficiently different based on the comparison; and

responsive to determining that the data set and second data set are sufficiently different, retraining the trained computer model with the second data set.

15. A non-transitory computer-readable medium for visualizing feature variation effects on computer model prediction, the non-transitory computer-readable medium comprising instructions executable by a processor for:

identifying a data set having a plurality of data instances, each data instance having a feature vector corresponding to a plurality of features;

for each data instance in the plurality of data instances, generating an associated instance-feature variation plot describing model outputs of the trained computer model for a range of values for a first feature in the feature vector for the data instance;

clustering the plurality of data instances to a plurality of clusters based on the associated instance-feature variation plots, each cluster describing data instances having similar model outputs with respect to the range of values for the first feature;

training an interpretation model to output predicted membership of a data instance in one or more clusters of the plurality of clusters based on features of the plurality of features other than the first feature with training data including the plurality of data instances using the associated cluster label as the output to be learned by the interpretation model;

determining, based on the trained interpretation model, a second feature of the plurality of features, different from the first feature, and a decision value of the second feature that predicts membership in a first cluster of the plurality of clusters relative to a second cluster of the plurality of clusters, such that the second feature and decision value most correlate with the cluster membership describing data instances having similar model outputs of the trained computer model for the range of values for the first feature; and

providing the clustered data instances for display to a user to view the effects of the first feature on the model outputs and an indication of the decision value of the second feature.

16. The non-transitory computer-readable medium of claim 15 , wherein the plurality of data instances is clustered with k-means clustering.

17. The non-transitory computer-readable medium of claim 15 , wherein a number of the plurality of clusters is automatically determined based on a statistical metric.

18. The non-transitory computer-readable medium of claim 15 , wherein the instructions are further executable for:

identifying an outlier data instance of a cluster of the plurality of clusters; and

providing information about the outlier data instance for display to the user.

19. The non-transitory computer-readable medium of claim 15 , wherein the interpretation model is a decision tree and wherein the second feature and the decision value are determined based a decision node of the decision tree.

20. The non-transitory computer-readable medium of claim 15 , wherein the instructions are further executable for:

comparing the plurality of clusters of the data set with a second plurality of clusters generated for instance-feature variation plots for the first feature of the model applied to another plurality of instances associated with a second data set;

determining that the data set and the second data set are sufficiently different based on the comparison; and

responsive to determining that the data set and second data set are sufficiently different, retraining the trained computer model with the second data set.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 3, 2025
From: LEUNG, KIN KWAN; RHO, BARUM; LUO, YAQIAO; TSATSKIN, VALENTIN
To: THE TORONTO-DOMINION BANK
Reel/Frame 072152/0235 →
Continuity (2)
Provisional Application 63213684 · Jun 22, 2021
Related Publication 20220405299A1 · Dec 22, 2022
References Cited (21)
US 10339181B1 · Singh et al. · 2019 [cited by applicant]
US 10510022B1 · Tharrington, Jr. et al. · 2019 [cited by applicant]
US 20180028079A1 · Gurevich · 2018 [cited by examiner]
US 20180286092A1 · Wright · 2018 [cited by examiner]
US 20200349395A1 · Nushi · 2020 [cited by examiner]
US 20200372362A1 · Kim · 2020 [cited by examiner]
US 20210049503A1 · Nourian · 2021 [cited by examiner]
US 20210142169A1 · De · 2021 [cited by examiner]
US 20220374598A1 · Osuala · 2022 [cited by examiner]
Goldstein, et al., “Peeking Inside the Black Box: Visualizing Statistical Learning with Plots of Individual Conditional Expectation,” Journal of Computational and Graphical Statistics, vol. 24, No. 1, arXiv:1309.6392v2 … [cited by applicant]
International Search Report and Written Opinion issued in PCT/CA2022/050748 on Aug. 10, 2022; 9 pages. [cited by applicant]
Britton, “VINE: Visualizing Statistical Interactions in Black Box Models,” arXiv:1904.00561v1 [cs.LG], Apr. 1, 2019, 11 pages; https://arxiv.org/pdf/1904.00561.pdf. [cited by applicant]
Grinstein, et al., “clusterICE: Clustering of ICE and d-ICE curves by kmeans,” May 2, 2019, 3 pages; https://rdrr.io/cran/ICEbox/man/clusterICE.html. [cited by applicant]
I. Research, “AI Explainability 360,” https://aix360.mybluemix.net/ Github: https://github.com/Trusted—AVAIX360, accessed Jun. 19, 2021, 2 pages. [cited by applicant]
NumPy, “NumFOCUS DEI research study—call for participation,” © 2022, 4 pages; https://numpy.org. [cited by applicant]
Pandas-dev/pandas: Pandas 1.4.2, DOI: 10.5281/zenodo, 6408044, Apr. 2, 2022, 4 pages. [cited by applicant]
Shapley, “The Shapley value,” Cambridge University Press, © 1988, ISBN 0-521-36177-X, 14 pages. [cited by applicant]
Shapley, “A Value for n-Person Games,” Princeton University Press, © 2016, 3 pages; https://doi.org/10.1515/9781400881970-018. [cited by applicant]
Shapley, “A Value for n-Person Games,” Princeton University Press, 1953, 2 pages; https://doi.org/10.1515/9781400881970-018. [cited by applicant]
The Pandas Development Team, “What's new in 1.0.1,” Feb. 5, 2020, 2 pages; https://pandas.pydata.org/pandas-docs/dev/whatsnew/v1.0.1.html. [cited by applicant]
Vega—A Visualization Grammar, Version 5.22.1; retrieved from the Internet on May 12, 2022, 1 page; https://vega.github.io/vega/. [cited by applicant]