Systems and methods for model quality analysis

The system segments datasets into clusters to quantify model quality and identify underperforming cohorts, addressing the lack of universal model quality assessment and providing actionable insights for remediation, thereby improving model reliability and operational efficiency.

US12818215B1Active Publication Date: 2026-12-01DOMINO DATA LAB INC
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
US17/818966
Authority / Receiving Office
US · United States
Patent Type
Patents(United States)
Current Assignee / Owner
Priority Date
2021-08-16
Filing Date
2022-08-10
Publication Date
2026-12-01
Estimated Expiration
2045-06-05

AI Technical Summary

Technical Problem

Current methods lack the capability to consistently and universally quantify model quality, identify factors causing model degradation, and provide actionable insights for remediation, particularly due to issues like data drift and concept drift, model bias, and underperforming cohorts.

Method used

A system and method for quantifying model quality by segmenting datasets into clusters, calculating quality measures for each segment, and generating actionable insights using unsupervised learning algorithms, with features like earth mover's distance to identify underperforming cohorts and suggest remedial actions.

Benefits of technology

Enables reliable and secure model quality monitoring across different environments, providing visual tools for diagnosing issues at scale and suggesting improvements, enhancing model development and operational efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US12818215-D00000_ABST
    Figure US12818215-D00000_ABST
Patent Text Reader

Abstract

Systems and methods provided herein can provide models quality analytics for a machine learning algorithm trained model. The method comprises clustering an input data into a plurality of segments; calculating a quality measure of the model for each of the plurality of segments; and (c) generating an actionable insight based on the quality measure.
Need to check novelty before this filing date? Find Prior Art

Description

CROSS-REFERENCE

[0001] This application claims the benefit of U.S. Provisional Application No. 63 / 233,435, filed Aug. 16, 2021, which application is incorporated herein by reference in its entirety.BACKGROUND

[0002] Models are the central output of data science, and they have tremendous power to transform companies, industries and society. Models are algorithms whose instructions are induced from a set of data and are then used to make predictions, recommendations, or prescribe an action based on a probabilistic assessment.

[0003] Companies use models to create new products and drive ongoing operational improvement. Companies may need to develop organizational capability to manage models to enable the companies to reliably and securely develop, validate, deliver and monitor models. In reality, data is constantly evolving which has important consequences for models that have been deployed into production systems. As data evolves over time (e.g., data drift), predictions from these models may become less accurate. Models can degrade for a variety of reasons. For example, changes to products or policies may affect how may customers behave; adversarial actors may adapt their behavior; data pipelines may break; and sometimes the world simply evolves. In some cases, model degradation may be due to data drift and / or concept drift, model bias, model quality issues for specific input data, underperforming cohorts and the like. Current methods and systems may be able to monitor model performance such as latency, uptime, resource consumption but lack of the capability to discover or identify the underlying reasons causing the poor performance. Additionally, there lacks a consistent and / or universal method for quantifying quality of models of various types.SUMMARY

[0004] Recognized herein is a need for automated and universal systems and methods for quantifying model quality, identifying factors (e.g., data segment, features) that cause the model quality issues, and / or providing actionable insights for remediation. Systems and methods herein may provide a visual tool for interpreting a model monitoring result. For example, factors may be identified for causing model quality issues and visually presented to a user. In some cases, the provided systems and methods may also be integrated into a platform capable of monitoring traffic and a portfolio of models over time. In some cases, the provided systems and methods may monitor model quality and provide the model quality analysis after models that have been deployed in a development, test, or production environment. Alternatively, the systems and methods herein may perform model quality monitoring and analysis in different phases (e.g., development, deployment, prediction, validation, etc.).

[0005] Conventional model quality metrics may be too fine-grained with one score per data point or too coarse-grained with a single score representing the performance of the model. The methods and systems herein may address the above drawbacks of the conventional methods by providing improved model quality metrics that measure model performance over an optimal segregation of data. For instance, the model quality metrics may be determined by first segmenting the dataset into cohorts of related data points then overlaying the model quality scores onto each segment. This beneficially allows for the calculation of model performance statistics for each cohort and allows for the discovery of underperforming hotspots.

[0006] The system herein can be a standalone system or self-contained component that can be independently operated and functioned, and may be in communication with other systems or entities (e.g., a model development and management platform). For example, the model quality analytic system can be an integrated component of a model management system for data science to facilitate seamless collaboration of data science teams and integration of data science workflows. Alternatively, the model quality analytic system may be a component or a subsystem of another system. In some cases, the systems provided herein may be a platform as a service (PaaS) and / or software-as-a-service (SaaS) applications configured for providing a suite of pre-built, cross-industry applications, developed on its platform, that facilitate various entities to monitor model qualities. In some cases, the systems may be an on-premise platform where the applications and / or software are hosted locally.

[0007] In an aspect, a computer-implemented method is provided for providing models quality analytics for a machine learning algorithm trained model. The method comprises: a) clustering an input data into a plurality of segments; b) calculating a quality measure of the model for each of the plurality of segments; and c) generating an actionable insight based on the quality measure.

[0008] In a separate yet related aspect, a system is provided for providing models quality analytics for a machine learning algorithm trained model, The system comprises: (i) a memory for storing a set of software instructions, and (ii) one or more processors configured to execute the set of software instructions to: (a) cluster an input data into a plurality of segments; (b) calculate a quality measure of the model for each of the plurality of segments; and (c) generate an actionable insight based on the quality measure.

[0009] In some embodiments, the actionable insight comprises a given segment identified from the plurality of segments that has a low model quality or high model quality. In some cases, the method further comprises computing a difference between the given segment and the other one or more segments from the plurality of segments. In some instances, the difference is computed with respect to a feature distribution computed over data points within the given segment and data points outside the given segment. In some embodiments, the method further comprises calculating a contrast score between a feature distribution for data points within a given segment and the feature distribution for data points outside the given segment. For example, the contrast score is calculated based on earth mover's distance.

[0010] In some embodiments, clustering the input data into the plurality of segments comprises using an unsupervised learning algorithm. In some cases, the method further comprises determining an optimal number of the plurality of segments by reconstructing an error curve based on a subset of k values. In some embodiments, the input data are clustered into the plurality of segments based on labels in the input data.

[0011] Additional aspects and advantages of the present disclosure will become readily apparent to those skilled in this art from the following detailed description, wherein only illustrative embodiments of the present disclosure are shown and described. As will be realized, the present disclosure is capable of other and different embodiments, and its several details are capable of modifications in various obvious respects, all without departing from the disclosure. Accordingly, the drawings and description are to be regarded as illustrative in nature, and not as restrictive.INCORPORATION BY REFERENCE

[0012] All publications, patents, and patent applications mentioned in this specification are herein incorporated by reference to the same extent as if each individual publication, patent, or patent application was specifically and individually indicated to be incorporated by reference. To the extent publications and patents or patent applications incorporated by reference contradict the disclosure contained in the specification, the specification is intended to supersede and / or take precedence over any such contradictory material.BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The novel features of the invention are set forth with particularity in the appended claims. A better understanding of the features and advantages of the present invention will be obtained by reference to the following detailed description that sets forth illustrative embodiments, in which the principles of the invention are utilized, and the accompanying drawings (also “Figure” and “FIG.” herein), of which:

[0014] FIG. 1 shows an example of a system for performing model quality analysis and generating actional insights for remedy models.

[0015] FIG. 2 illustrates that different k values (e.g., k=3, k=4) can be selected for a clustering analysis.

[0016] FIG. 3 shows an example of a method for determining a k value.

[0017] FIG. 4 shows an example of a method for selecting the number of clusters (i.e., k value).

[0018] FIG. 5 shows an example of overlaying the model quality metrics onto the discovered clusters.

[0019] FIG. 6 shows an example of a feature distribution for data points within and outside of a cluster.

[0020] FIG. 7 shows an example of contrast scores calculated for a plurality of features of a given cluster / segment.

[0021] FIG. 8 shows an example of generating a model quality output by a user interface module.

[0022] FIG. 9 shows components of an exemplary model monitoring platform.

[0023] FIG. 10 shows a computer system that is programmed or otherwise configured to implement a system for model quality analytics as described above.DETAILED DESCRIPTION

[0024] While various embodiments of the invention have been shown and described herein, it will be obvious to those skilled in the art that such embodiments are provided by way of example only. Numerous variations, changes, and substitutions may occur to those skilled in the art without departing from the invention. It should be understood that various alternatives to the embodiments of the invention described herein may be employed.

[0025] The present disclosure provides improved systems and methods for quantifying model quality, identifying one or more factors (e.g., underperforming data segments, features) causing a poor model quality and / or providing actionable insights for remediation. Model quality analytics systems and methods of the present disclosure may provide a visual platform for analyzing models quality and diagnosing issues at scale. In particular, users may visualize the actionable analytic results in real-time or scheduled delivery via a user interface or receive the model quality output via a media channel provided by the systems.

[0026] A model is a special type of algorithm. An algorithm is a hard-coded set of instructions to calculate a deterministic answer. Models are algorithms whose instructions are induced from a set of data and are then used to make predictions, to make recommendations, or to prescribe one or more actions based on a probabilistic assessment.

[0027] Models can be different from one another in various aspects such that an improved system or method for analyzing model qualities at different scales taking into account the complexity is desired. Different models may use different techniques or tools, specialized hardware infrastructure (e.g., cloud computing, GPUs), or different development environments. Different models may be built differently. For example, the processes to develop models can be different. In some cases, different models may have different behaviors. The provided model systems and methods are capable of enabling entities (e.g., companies, organizations, teams, individuals) to reliably and securely monitor model qualities with actionable insights, thereby improving the development and operational efficiency of the entities.

[0028] In some embodiments, a model can be an artifact created or trained by applying an algorithm to training data. A model may be a machine learning model. The model may then be deployed to make predictions against real data. One or more models may be associated with an experiment. The one or more models may evolve over time as different data sets are provided to the algorithm or when parameters are adjusted. It should be noted that methods and systems of the present disclosure can be applied to provide model quality analytics for models trained using any type of machine learning algorithms, architectures or approaches. For example, the machine learning algorithm may comprise one or more of the following: a support vector machine (SVM), a naïve Bayes classification, a linear regression, a quantile regression, a logistic regression, a random forest, a neural network, convolutional neural network (CNN), recurrent neural network (RNN), a gradient-boosted classifier or regressor, or another supervised or unsupervised machine learning algorithm (e.g., generative adversarial network (GAN), Cycle-GAN, etc).

[0029] In some cases, each of the models may be fully versioned, such that they can reflect changes across time. For example, a model may be specified by a model ID and a version number. A model can be retrieved by the unique model ID and version number. In some cases, every time a model is created or updated, a previous version of the model (if any) may be archived in a registry, and a more recent version of the model may be generated. The versioning may comprise assigning a new unique identifier to the updated model. In addition, the versioning may comprise saving the time point (e.g., date and time of the most recent update). The provided model monitor system may monitor the model quality for different versions of models. The unique versioning allows for easy and efficient retrieving and managing various data associated with a model.

[0030] In an example, a model is uniquely specified by model_id (i.e., model ID) that is unique within the system. In another example, a given version of a model can be specified by model_id.version_number (i.e., model ID and version number). It should be noted that the abovementioned examples are for illustrative purpose only and other suitable formats or structures can be used to specify a model and a version of a model.

[0031] As utilized herein, terms “component,”“system,”“interface” and the like are intended to refer to a computer-related entity, hardware, software (e.g., in execution), and / or firmware. For example, a component can be a processor, a process running on a processor, an object, an executable, a program, a storage device, and / or a computer. By way of illustration, an application running on a server and the server can be a component. One or more components can reside within a process, and a component can be localized on one computer and / or distributed between two or more computers. Further, these components can execute from various computer readable media having various data structures stored thereon. The components can communicate via local and / or remote processes such as in accordance with a signal having one or more data packets (e.g., data from one component interacting with another component in a local system, distributed system, and / or across a network, e.g., the Internet, a local area network, a wide area network, etc. with other systems via the signal). As another example, a component can be an apparatus with specific functionality provided by mechanical parts operated by electric or electronic circuitry; the electric or electronic circuitry can be operated by a software application or a firmware application executed by one or more processors; the one or more processors can be internal or external to the apparatus and can execute at least a part of the software or firmware application. As yet another example, a component can be an apparatus that provides specific functionality through electronic components without mechanical parts; the electronic components can include one or more processors therein to execute software and / or firmware that confer(s), at least in part, the functionality of the electronic components. In some cases, a component can emulate an electronic component via a virtual machine, e.g., within a cloud computing system.

[0032] A container is a form of operating system virtualization. For instance, a container can be a standard unit of software that packages up code and the dependencies so the application runs quickly and reliably from one computing environment to another. A single container can be used to run from a small microservice or software process to a larger application. A container may include all the necessary executables, binary code, libraries, and configuration files. A Docker container is a running instantiation of an image, essentially a working version of an image. In an example, a user may create or deploy a new container or application using a Docker. In some cases, to deploy a simple application using Docker, a user may create a directory and, inside the directory, create a Dockerfile. In the Dockerfile, the user may describe what they want to include in the container that they would like to run. The user may then run a “dockerbuild” command, which will examine the directory specified and the Dockerfile contained therein and build a Docker image. The user may then run a “docker run” command, which will create a Docker container that can run anything that has been specified in the Dockerfile. The aforementioned Docker images are essentially blueprints and can be considered as models that describe what a Docker container should look like, at least when the container is first started.

[0033] Model quality may refer to how well a machine-learned model (i.e., a function predicting outputs for given inputs) generalizes to unseen data. Currently, model quality may be assessed with various accuracy or consistency measures such as using validation data prior to production. There can be different quality metrics based on different types of models. For example, for classification tasks / models, accuracy is the percentage of all correct predictions. That is, given a labeled validation dataset (i.e., multiple rows containing features and the expected output) the metric measures how well a model can match the expected output labels. As an example of model quality metric, a confusion matrix can be used on binary classification models, recall and precision may indicate the relative importance of false positives and false negatives. For regression models, accuracy measures may quantify the typical distance between predictions and expected values, such as Mean Absolute Percentage Error or Mean Squared Error. For ranking tasks other accuracy measures such as MAP@K or Mean Reciprocal Rank may be used, and for other types of models such as Natural Language Processing yet other measures may be used. However, such different accuracy metrics can be difficult to interpret or hard to identify the underlying factors causing the model quality issues.

[0034] Systems and methods herein provide algorithms and methods for quantifying model quality, interpret the metrics and generate insights and actionable items to remedy the model quality issues. In particular, methods and algorithms may be provided to identify model quality issues with respect to a specific input data, identify important data to further investigate, identify which segment(s) of the input data causes the model quality issue (or differences between specific data points and the rest of the dataset), identify how a given data segment is different from the rest of the data set (e.g., comparison of model quality metrics with respect to one or more features), and / or identify where the model performs poorly.

[0035] The present disclosure may also provide methods and algorithms for generating insights and actionable items for model remedy. The insights and actional items may include, but not limited to, identifying model quality hotspots in the data (e.g., specific examples or group of examples), recommendation for training the model such as by dropping problematic data or adding more data, or changing the model. For example, the actionable items may include using the discovered examples to determine where the model is performing poorly and suggesting using a different neural network architecture, suggesting replacing a particular data segment, changing an input feature, adding more data, enlarging hyper-parameter search space, training longer / better optimization algorithms, trying a different regularization technique, and the like.

[0036] FIG. 1 shows an example of a system 100 for providing actionable insights to remedy models. The system 100 may comprise multiple components configured for measuring model quality, identifying model quality issues and generating actionable insights for remedy the issues. In some embodiments, the actional insights may be related to at least one of the segments or clusters. In some cases, the actional insights may include insights generated for each segment or cluster. In some cases, the multiple components may be self-contained components that can be independently operated and worked on by different users / systems concurrently. Each of the components may be a hardware module, software module, or a combination of hardware and software modules. The system 100 or one or more components of the system may be in communication with a cloud 113.

[0037] In some embodiments, the system 100 may comprise a model quality analytic engine 101. The model quality analytic engine 101 may be configured to execute an algorithm to quantify model quality, identify model quality issues and identify reasons causing the issues. In some cases, the models that are analyzed by the model quality analytic engine are the models in production. Alternatively or additionally, the algorithm may be used to analyze the quality of models in any phase / stage (during training, validation, prior to deployment, etc.) of a machine learning model's development and / or deployment lifecycle.

[0038] Unlike conventional methods for calculating model quality across the entire data sets, the disclosure provides methods and algorithms for measuring model quality against different data segments or clusters. In some cases, the model quality may be measured with respect to different segments of input data. For example, the input datasets may be segmented into a plurality of segments or clusters and the model quality may be measured for each cluster. This beneficially allows for identifying which segment / portion of the input data causes the model quality issue (e.g., identifying the underperforming cohorts). The present disclosure provides algorithms to automatically break the datasets into segments, determine which segment to further investigate, identify which segment of the data underperforms (i.e., segment does not work) thereby interpreting the model quality measures and providing actionable insights. In some cases, the actionable insights may be recommended operations to be taken for an identified under-performed cohort.

[0039] The model quality analytic engine 101 may execute an algorithm to segment the input or training datasets into a plurality of clusters. In some cases, the clusters can be further segmented into sub-clusters. In some cases, the algorithm may be a supervised learning or unsupervised learning algorithm. In some cases, supervised learning may be adopted when the training dataset comprise both the raw data and labels (e.g., ground truth) that segment the data into distinct groups (e.g., different classes). The input / training data may be automatically segmented based on the labels. In some cases, when the training dataset comprise raw data without labels, unsupervised learning may be adopted. The unsupervised learning algorithms may include clustering algorithms that automatically discover patterns in the raw data and learn the labels. The clustering methods may automatically find the number of clusters and assign each data point to a cluster.

[0040] In some cases, the clustering analysis may be k means algorithm that defines k clusters such that the total within-cluster variation (or error) is a minimum. A cluster center is the representative of its cluster. The squared distance between each point and its cluster center is the required variation. The aim of k-means clustering is to find these k clusters and their centers while reducing the total error. In some cases, prior to performing the clustering analysis, the computer system may receive a user-specified k value. However, when the k value is not specified, the system may determine the number of clusters (i.e., k value) automatically. The method herein may be capable of determining the proper / optimal k value. FIG. 2 illustrates that different k values (e.g., k=3, k=4) can be selected for a clustering analysis. In the illustrated example, the ground truth k value is 4, a user may select an improper k value (k is not equal to 4) thus under-segment or over-segment the data.

[0041] In some cases, the algorithm may select the k values automatically by using a range of k values, repeating the clustering analysis N times (where N is an integer), and the determining groups / clusters have a k value with minimum values of the error metric over the range of k values. FIG. 3 shows an example of determining the k value using elbow method 301. The elbow method may calculate the Within-Cluster-Sum of Squared Errors (WSS) for different values of k, and choose the k for which WSS first starts to diminish. In the plot of WSS-versus-k 301, this is visible as an elbow. The Squared Error for each point is the square of the distance of the point from its representation i.e. its predicted cluster center. The WSS score is the sum of these Squared Errors for all the points. Distance metric such as the Euclidean Distance or the Manhattan Distance can be used.

[0042] However, such elbow method may require calculation of the error curve for a range of K values for every possible number. This can be computationally expensive. In some embodiments, the algorithm provided herein may improve the efficiency by choosing a subset of k values and reconstructing the entire curve based on the subset of k values (and corresponding errors).

[0043] FIG. 3 shows an example of an error curve 303 reconstructed using a subset of the k values (represented by the dots). In some cases, the subset of k values for reconstructing the error curve may be selected non-uniformly. For example, denser points may be selected at the beginning of the curve 305 while sparse points may be selected at the tail of the curve 307. The error curve may be reconstructed using interpolation or other suitable methods.

[0044] Upon reconstruction of the error curve, the algorithm may then determine the optimal k value. Conventional method may find the elbow by calculating the derivative (derivative equals zero) and may set a threshold to detect that the derivative equals zero. This can be problematic since the different datasets may have different sensitivity to the threshold. The present methods may determine the optimal k value using a geometric method.

[0045] FIG. 4 shows an example of the method for determining the number of clusters (i.e., k value). In the illustrated example, the method may comprise: (i) connecting the ends 401 of the error curve 400 with a line 403, (ii) finding the shortest distance from each point on the error curve to the line 410, and (iii) selecting the point 407 with the maximum distance 405 from the line as the optimal k value (i.e., number of clusters).

[0046] Upon determining the number of clusters, the method herein may calculate the model quality for the plurality of clusters discovered by the algorithm described above. Unlike conventional method which analyzes model quality metrics for the individual data point, the present method may compute statistics on model quality metrics for each cluster. The method may provide other information related to a cluster, segment or cohort in addition to the statistics. For example, the number of samples in each segment or cluster may also be provided. FIG. 5 shows an example of overlaying the model quality visual indicators onto the clusters plot. In the illustrated example, visual representation of the model quality metrics such as colors may be overlaid onto the original clusters 500. This beneficially provides model quality per cluster and allows users to visualize the model quality for each cluster of the data. For example, the plot may show that one cluster 503 has better model quality than another cluster 501 in an intuitive manner (e.g., indicated by the color scale / coding). This also identifies the underperforming cohort or the segment (cluster) of data that may need further investigation. For instance, the cluster 501 displayed in the color(s) corresponding to the low model qualities may be identified as underperforming cohort and may be further investigated. Additionally or alternatively, insights may be generated for each cluster indicating the high or low model quality with respect to the respective cluster. It should be noted any other suitable visual indicators such as indicators of various shape, size, color, texts or any combination of the above may be utilized to represent the model quality of a cluster.

[0047] In addition to identifying the data cluster / segment that causes poor model quality (e.g., underperforming data segment), the method herein may also identify a feature that is important for model quality results (e.g., a feature that influences the model quality). A feature may be an individual independent variable that is the input to the prediction model. In some cases, a feature may not be an independent variable in the case of deep learning algorithms. For example, a feature (e.g., column) may represent a measurable piece of data that can be used for analysis. Prediction models use features to make prediction. In some cases, feature selection and / or feature engineering may be employed to transform raw data into features that the machine learning system will use to learn. The selection / quality of the features in the dataset can have a major impact on the quality of the insights when that dataset is used for machine learning. The method herein may beneficially provide analysis of feature(s) with respect to a cluster.

[0048] In some cases, the method may analyze the values for a given feature within and outside of a cluster (of raw data points). For instance, the method may compute a contrast score representing the difference between the values for a given feature of data points within and outside of a given cluster. The input data may comprise a feature set including one or more features. The method may calculate the feature distribution for the data points within and outside of a cluster and then compute a contrast score for each feature distribution between the data points within and outside of the cluster. FIG. 6 shows an example of the feature distribution for data points within and outside of a cluster. The charts show the feature distribution within a cluster 601, 605 and feature distribution for data points outside of a cluster 603, 607 with value on the horizontal axis and frequency on the vertical axis.

[0049] Next, the method may calculate the contrast score. The contrast score may be calculated using any suitable metrics such as earth mover's distance (EMD) 609 which is a measure of the distance between two probability distributions over a region. FIG. 7 shows an example of contrast scores calculated for a plurality of features of a given cluster / segment. As shown in the example, the contrast score for a segment may be computed with respect to one or more features (e.g., residual sugar, density, alcohol, and pH). The contrast score may indicate how different the distribution of a feature in a cluster from the distribution of the feature outside of the cluster. For instance, a lower contrast score for a feature (e.g., pH) may indicate a lower degree of difference in the feature distribution within and outside of a cluster, whereas a higher contrast score for a feature (e.g., residual sugar) may indicate a higher degree of difference in the feature distribution within and outside of a cluster.

[0050] Such feature distribution analytics may beneficially provide insights about how a given cluster performs differently from other clusters. For instance, the system may generate insight indicating that the model performs poorly on a discovered data segment for one or more specific features (when the corresponding contrast score is above a predetermined threshold). The system may also generate actionable items such as adding more data, changing the identified feature, changing the discovered data segment or others.

[0051] The feature distribution can be calculated using any suitable method. In some cases, instead of representing the distribution of a feature over its range with the feature value on the horizontal axis (and frequency on the vertical axis), the method herein may translate the feature values into a normalized range (e.g., a range of [0, 1]). For instance, the method may hash the feature value into a normalized range and generate a histogram using the hashed feature value.

[0052] In some embodiments, the system 100 may comprise a user interface module 103 allowing users to visualize the model quality analytics results via a GUI. For example, the system 100 may provide a visual tool for visualizing the model quality metrics overlaid onto discovered clusters, the contrast scores for a given feature of data points within a cluster, and various others in a convenient and dynamic manner. In some cases, the GUI may also display insights and actionable items generated by the model quality analytic engine 101. For example, the insights or actionable items may indicate the identified underperforming data segment and suggest adding more data or replacing the datasets.

[0053] The user interface module 103 may also generate reports including the model quality output and deliver the reports to the user. The user interface module 103 may be able to automatically update and refresh the analytics result (e.g., during model production, deployment or validation). FIG. 8 shows an example of generating a model quality output by the user interface module. For example, the user interface module may automatically convert markup documents with embedded R code (e.g., .Rnw or .Rmd) into final outputs (e.g. .pdf or .html) using a converter (e.g., Pandoc). The user interface may be able to add functionality on top of the base markdown language to enable it to support more complex outputs such as displaying the statistics, charts, diagrams, and analytics results in an interactive manner. The user interface may be able to generate a report or output regardless of statistical programming language (e.g., R, Python, etc.) and model types (e.g., classification, regression, clustering).

[0054] In some cases, the user interface module 103 may also allow users to define the report. For example, a user may define a channel for delivering a report such that the report may be delivered in a user-defined form (e.g., audio, visual alert in a GUI, etc.) or user-selected communication channels (e.g., email, Slack, MSN). A user may set up, edit or change rules by interacting with various components provided within the GUI. A user may provide inputs via interactive elements on the graphical user interface for editing one or more rules for reviewing a report, generating a report or displaying a report. For example, a user may choose which charts to show / hide or define parameters of a chart. For instance, a user may customize the histogram via the graphical user interface such as by changing the bin size or other filtering terms or appearance parameters (e.g., size of the plot, color, or type of plot).

[0055] A user may select how frequent to receive the report or the trigger of performing the model quality analytics via the GUI. A user may select a frequency or threshold through a drop-down menu, pull-down menu or other type of menu that provides pre-determined range, options or user-defined values for triggering the model quality analysis. In some cases, the system may monitor the model quality according to pre-determined schedule or rules.

[0056] A graphical user interface can have various other interactive elements such as buttons, text boxes and the like, which may allow a user to provide input commands or contents by directly typing, clicking or dragging such interactive elements. A graphical user interface (GUI) can be provided on a display of an electronic device 120. The display may be a screen. The display may or may not be a touchscreen. The display may be a light-emitting diode (LED) screen, OLED screen, liquid crystal display (LCD) screen, plasma screen, or any other type of screen. The display may be configured to show a user interface (UI) or a graphical user interface (GUI) rendered through an application (e.g., via an application programming interface (API) executed on the user device). The display can be a capacitive or resistive touch display, or a head-mountable display (e.g., Google® Goggles). Such displays can be used with other systems and methods of the disclosure.

[0057] In some situations, a GUI rendered by the user interface module 103 may have various graphical, textual, audio and / or video elements. A GUI is a type of interface that allows users to interact with electronic devices through graphical icons and visual indicators such as secondary notation, as opposed to text-based interfaces, typed command labels or text navigation. The actions in a GUI are usually performed through direct manipulation of the graphical elements. The GUIs may be provided in a software, a software application, a web browser, and the like. Links may be generated through an application programming interface (API) which is a set of routines, protocols, and tools for building software applications. A user may interact with the GUI through direct touch on a screen or IO devices such as handheld controller, mouse, joystick, keyboard, trackball, touchpad, button, verbal commands, gesture-recognition, attitude sensor, thermal sensor, touch-capacitive sensors, or any other device. A GUI may enable a user to interact with systems of the disclosure, such as for visualizing statistics about models. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback, for example, visual feedback, auditory feedback, or tactile feedback; and input from the user can be received in any form, including acoustic, speech, or tactile input.

[0058] The system 100 may provide a visual tool for visualizing various aspects of identified model quality issues, identified factors causing the issues, insights and suggested remedies in a convenient and dynamic manner. In some embodiments, the graphical user interface can have a search field or search toolbar that enables a user to input one or more search terms to be used by the system to conduct a search. The search field can include a drop-down menu, pull-down menu or other type of menu to enable a user to select, for example, commonly used words or previous search strings. A graphical user interface can have various other interactive elements such as buttons, bar, text boxes and the like, which may allow a user to provide input commands or contents by directly typing, clicking or dragging such interactive elements.

[0059] In some cases, a user may input one or more parameters for defining rules for triggering model quality analysis, or provide any other type of input via text fields. In some cases, the system 100 may provide system suggested rules, metrics, or other parameters. For example, the system may identify features (i.e., input features) that are more important (predictive) than other features or important data segment. The rules for detecting model quality degradation for important features or important data segment may be different from rules for less important features / segments. For example, important features that have drifted a small amount may suggest a model retraining, while features with low / no predictive power can drift a lot with negligible impact on the overall model. In some cases, systems herein may suggest the threshold for triggering notifying users about a poor model quality or remedy the model quality issues. In some cases, the system may allow users to visualize the effect of the threshold set up for selected models.

[0060] In some embodiments, the system may comprise application Program Interfaces (API) 105 configured to register a model with the system, associate that model with a particular training dataset, automatically map the underlying features, register ongoing inferences by the model against the training dataset to understand deviations from the training data set, register a prediction result, register model quality metrics (e.g. contrast scores), register underperforming cohorts, register parameters for triggering a report, register notification channels and various other functionalities. The APIs 105 can be any suitable API gateway that may allow developers to encapsulate the internal structure of an application in multiple ways, depending upon use case. This is because, in addition to accommodating direct requests, gateways can be used to invoke multiple back-end services and aggregate the results. For example, the APIs 105 may invoke feature distribution computation on virtual machines or containerized applications (e.g., Apache Spark).

[0061] The system 100 may be in communication with a database 115. The database 115 may store any relevant data such as results of model quality analytics, algorithms used for the model quality analytics, generated insights and actionable items, versioned models, and various other data as described elsewhere herein.

[0062] In some cases, the system 100 may be coupled to a model monitoring platform via the APIs 105. Alternatively, the system 100 may be integrated into the model monitoring platform. Some of the functionalities of the APIs 105 may be part of the model monitoring platform. For example, the model monitoring platform may comprise APIs for registering a model. For instance, if a call to API is made without supplying a model ID, the API may call a model ID generator to generate a new ID and associate the supplied model with the ID in the database 115. The version number may be set to 0 when the version number is not available. If a call to the API is made with the model ID (e.g., model_id) specified, the API may check the database and see if the (model_id.version_id) pair is unique. If not, an error may be generated. In addition to generating and / or storing the model ID, the API may also store the timestamp when the model was registered. As an example, the data required to register a model using the API may include model path (e.g., project_id.experiment_id.model_id.version_number), model type (e.g., {classification, regression, clustering}), algorithm (e.g., {random_forest, support_vector_machine, gradient_boosted_machine, decision_tree}), hyper parameters, training data (e.g., feature columns, prediction columns, prediction data, prediction columns, etc), metrics, or URL (i.e., path to the file that contains the data in the DataFrame). One or more of the abovementioned data may be user-defined or customizable. For instance, users may specify their own model type or algorithms via a user interface.

[0063] In some cases, when the actual data used to train a model is not available, a user may supply summary statistics and metrics for the training data set that was used to build the model. The user may be able to register the data used to train the model or the summary statistics of the training data using the API as described above.

[0064] The system herein may be part of a model monitoring platform or be in communication with a model monitoring system. The model monitoring platform may comprise multiple components configured for monitoring models. The model monitoring platform may provide detailed history of models, generate model risk report, detect model drift (e.g., data drift, model performance drift), perform integrity check, generate risk or drift alert and various other functions. The model monitor methods and systems may manage, track and monitor various aspects of data science lifecycles such as the technologies or processes for developing, validating, delivering models. For example, the entire system / platform and knowledge generated throughout the processes of model development and model production may be monitored by the model monitor system. Various aspects of models in different stages of the processes can be visualized via a graphical user interface.

[0065] The various aspects managed and monitored by the model monitor system may include, but are not limited to, model technologies (e.g., compute infrastructure, software tooling), model development (e.g., data, experiments, processes of building a model, model validation processes), model production (e.g., performance of model, model deployment, integration of model into downstream systems, impact of model products on business, model drifting, model quality analytics, underperforming cohort identification, etc.), model governance (e.g., model dependency graph, model portfolio, status of model), and model context (e.g., artifacts generated during building models or using models).

[0066] FIG. 9 shows components of an exemplary model monitoring platform. In some cases, the model monitoring platform may comprise a distributed event streaming platform (e.g., Apache Kafka) for Publisher-Subscriber communication. Apache Kafka is an example of a distributed event streaming platform for Publisher-Subscriber communication and eventing. Other suitable platform that is capable of handling real-time data feeds can be utilized. The platform may provide an asynchronous system wherein each module is responsible for handling its own state and logic and communicates with other modules via the platform. As illustrated in the example, Slack, email and Kafka or other integrations may be included for notifying users of a model quality output, actional insights about the model quality, suggested remedial actions, or notifying users upon detection of a drift in the data or if any data integrity checks have been violated. The rule engine may define and register checks for the data and models that have been registered as described elsewhere herein.

[0067] The process engine may be used to execute the model quality analytics algorithms as described above. In some cases, the process engine may also be used to execute the checks that have been registered for the data and models. The socket.io may be used for pushing events about model registration, data registration and status of checks to UI. The database may be used for storing data and metadata for the training data, prediction data, models, checks, schedules, results of checks and others. In some cases, raw training / prediction data may be stored on a network file system and / or support cloud file systems.

[0068] It is noted that although the notification engine is described for notifying a detected drift event or a model quality output events, various other methods can be used for notifying a drift or the model quality events. For example, the model monitoring platform may notify users about an event (e.g., detected drift, identified model quality issues) by making a synchronous API call which returns yes / no and details of the checks, or allowing users logging into a web user interface to view a notification.

[0069] A scheduler of the model monitoring platform may be configured to schedule sending notifications or alerts about an event (e.g., detected poor model quality, suggested model quality remedies, detected drift, etc.). In some embodiments, the scheduler may receive an ID of a schedule as input, pass the required data to the scheduler and send a model ID to a queue for sending notifications. For example, the scheduler may listen to “registered_schedule”, pass the configuration to scheduler, and start the job. Once the scheduled time is arrived then it may publish an event “send_notifications” to the queue.

[0070] Multiple aspects of models may be monitored along with time. In some cases, performance of a model, model quality, accuracy of a model, data used in different phases (e.g., development, deployment, prediction, validation, etc) may be monitored along with time. The model monitoring platform may be capable of monitoring model drift. A model drift may include model performance drift and / or data drift. A model drift may be defined as a drift in model performance, data, or others with respect to a reference time (e.g., initial time), a normal condition / value, an initial model or initial dataset, or other user defined references. A model drift may refer to change in data or performance of a model over time.

[0071] Systems and methods herein may detect and track data drift in the model's input features and output predictions. Users may be permitted to select among a variety of statistical checks to suit different monitoring needs. For example, users may supply proprietary ground truth data for a model, and systems herein may ingest it to calculate and track the model's prediction quality using one or more of the quality measures as described above. In some cases, the model monitoring platform may automatically check if the characteristics of the predictions versus the target data that were used to train the model are significantly different. The system may also track the difference between data that were used to train the models verses the data that are being presented to the models to score. Systems herein may permit users to set up scheduled checks, use APIs to ingest data, and configure alert notification recipients such users are capable of monitoring models at a large scale in a standardized manner with improved efficiency.

[0072] In some cases, the model monitoring platform may permit users to set up rules for detecting the model drift. For example, one or more rules may be defined for detecting (input) data drift such as by checking descriptive statistics, data types (e.g., strings, integers, etc.), data ranges, and data sparsity / missing data, and then comparing them to the original training data. Drastic changes in input data distributions may indicate serious model degradation. The rules may also include metrics defined to track the difference between data used to train the model versus data that are being presented to the model to score. If the difference crosses a threshold or is drifting significantly, that is a strong indicator of model drift and degradation. The model monitoring platform may allow users to customize / add any rules (e.g., drift distribution analysis) that are suitable for monitoring the input data presented to a model in order to see if they have changed.

[0073] A user may also set up one or more rules for detecting concept drift. The approaches for detecting concept drift may include, for example comparing the distribution of the labels of the training set versus those of the production data in real-time. Detecting the concept drift may include, for example, checking if a) the input values fall within an allowed set or range, and b) that the frequencies of each respective value within the set align with the historical data.

[0074] In some cases, a user may set an alert for alerting a model drift. A user may set up rules for alerting a model drift. For example, a user may create workflow rules by setting up threshold and alerts. The alert may be delivered in any suitable forms (e.g., audio, visual alert in a GUI, etc) or via any suitable communication channels (e.g., email, Slack, MSN).

[0075] In some cases, a production model for which a poor model quality is detected may need to be re-validated and deployed again to re-train. With the model monitor platform, models drifting and poor model quality can be detected instantly or in real-time. In some cases, upon detection of a model quality falls below a threshold, a user may be notified about the actional insights (e.g., adding more data, retraining and deploying new versions, or shutting down and reverting to a prior version) to mitigate risk. The result of model quality analytics may be accessed or visualized via a graphical user interface.

[0076] The model monitor platform may be capable of capturing, archiving, or storing complex states of hierarchy of library and data dependencies. Typically, data science tasks comprise obtaining data from a raw state. Such data may be structured in a format (e.g., stored in a data structure) which is optimized for the system that created it. Next, the data is processed (e.g., by massaging, cleaning, aggregation, transformation, feature extraction, or a combination thereof) to allow for further analysis (e.g., analytical processes) to discern or determine one or more outputs, such as an underlying structure or a prediction of behaviors. Any or all of these different data processing or data analysis steps can be dependent on a hierarchy of libraries and data dependencies. For example, if a model is generated by an algorithm using a dozen different input data sets, a dozen data dependencies are created (one for each link between an input data set and an output model). The input data sets may themselves be dependent upon the outputs of one or more algorithms, creating a depth of hierarchy of libraries and data dependencies. Such hierarchy can be significant, often dozens of layers deep for complex models. In some cases, the model monitor system may be capable of accessing such data (e.g., reference, link) without possessing the data.

[0077] Data monitored by the model monitor platform may include data involved in model training and during production. The data at model training may comprise, for example, training, test and validation data, predictions and scores made by the model for each data set, or statistics that characterize the above datasets (e.g., mean, variance and higher order moments of the data sets). Data involved in production time may comprise time, input data, predictions made, and confidence bounds of predictions made. In some embodiments, the ground truth data may also be monitored. The ground truth data may be monitored to evaluate the accuracy of a model and / or trigger retraining of the model. In some cases, users may provide ground truth data to the model monitor system or a model management platform after a model is in production. The model monitor system may monitor changes in data such as changes in ground truth data, or when new training data or prediction data becomes available.

[0078] The model monitor platform may be configured to perform data integrity checks and detect data drift and model quality degradation. The process may begin with detecting data drift in training data and prediction data. During training and prediction, the model monitor platform may monitor difference in distributions of training data, test, validation and prediction data, change in distributions of training data, test, validation and prediction data over time, covariates that are causing changes in the prediction output, and various others. Alerts on model quality may be generated and delivered when new ground data becomes available. The model monitor platform may also provide dashboards to track model performance / model risk for a portfolio of models based on the training / prediction data and model registration data collected as part of data drift, accuracy and data integrity checks.

[0079] During prediction time, once a model is registered with the model monitor platform, predictions may be associated with the model in order to track data drift, model quality degradation, or to incorporate feedback from new ground truth data. In some embodiments, an API (e.g., RegisterPrediction API) may be used for registering prediction. For example, the RegisterPrediction API may allow users to specify the time the prediction actually occurred by providing timestamp column. In some cases, the model monitor platform may generate and store a monotonically increasing number as prediction ID for each prediction (e.g., prediction id). When a prediction timestamp is not provided, the combination of prediction ID and the corresponding prediction may provide an estimated time when that prediction occurred. The RegisterPrediction API may also allow users to define and register new metrics to be tracked.

[0080] The model monitor platform may register checks. Checks may be registered to generate notification about data integrity problems, data drift checks, model quality checks or changes in ground truth accuracy. In some cases, checks may be registered to be associated with one or more of the input features that were used for modelling. Checks may be registered via the UI or by calling an API. In some cases, users may also schedule checks to run periodically by calling a scheduler API. In some cases, multiple checks can be combined by operators (e.g., AND / OR).

[0081] The model monitor platform may register notifications. In some cases, once the models, predictions, ground truth and checks are set up, users may configure a template or rules that may be used to send the notification message depending on the checks fail / pass. A user may configure the template or rule via the UI or by calling an API. A user may also set or configure one or more notification channels using an API.

[0082] In some cases, upon receiving a notification, the model monitor platform may take one or more actions. The one or more actions may include, for example, unpublish model / fallback to last known working version of the model, return error / fallback response values for models that are problematic, or retrain and re-deploy models using different datasets for consumption by different applications.

[0083] FIG. 10 shows a computer system 1001 that is programmed or otherwise configured to implement a system for model quality analytics as described above. The computer system 1001 can regulate various aspects of the present disclosure, such as, for example, implementing various components of the model quality analytics system, rendering graphical user interfaces and the other functions as described elsewhere herein. The computer system 1001 can be an electronic device of a user or a computer system that is remotely located with respect to the electronic device. The electronic device can be a mobile electronic device.

[0084] The computer system 1001 includes a central processing unit (CPU, also “processor” and “computer processor” herein) 1005, which can be a single core or multi core processor, or a plurality of processors for parallel processing. The computer system 1001 also includes memory or memory location 1010 (e.g., random-access memory, read-only memory, flash memory), electronic storage unit 1015 (e.g., hard disk), communication interface 1020 (e.g., network adapter) for communicating with one or more other systems, and peripheral devices 1025, such as cache, other memory, data storage and / or electronic display adapters. The memory 1010, storage unit 1015, interface 1020 and peripheral devices 1025 are in communication with the CPU 1005 through a communication bus (solid lines), such as a motherboard. The storage unit 1015 can be a data storage unit (or data repository) for storing data. The computer system 1001 can be operatively coupled to a computer network (“network”) 1030 with the aid of the communication interface 1020. The network 1030 can be the Internet, an internet and / or extranet, or an intranet and / or extranet that is in communication with the Internet.

[0085] The network 1030 in some cases is a telecommunication and / or data network. The network 1030 can include one or more computer servers, which can enable distributed computing, such as cloud computing. For example, one or more computer servers may enable cloud computing over the network 1030 (“the cloud”) to perform various aspects of analysis, calculation, and generation of the present disclosure, such as, for example, capturing a configuration of one or more experimental environments; performing usage analyses of products (e.g., applications); and providing outputs of statistics of projects. Such cloud computing may be provided by cloud computing platforms such as, for example, Amazon Web Services (AWS), Microsoft Azure, Google Cloud Platform, and IBM cloud. The network 1030, in some cases with the aid of the computer system 1001, can implement a peer-to-peer network, which may enable devices coupled to the computer system 1001 to behave as a client or a server.

[0086] The CPU 1005 can execute a sequence of machine-readable instructions, which can be embodied in a program or software. The instructions may be stored in a memory location, such as the memory 1010. The instructions can be directed to the CPU 1005, which can subsequently program or otherwise configure the CPU 1005 to implement methods of the present disclosure. Examples of operations performed by the CPU 1005 can include fetch, decode, execute, and writeback.

[0087] The CPU 1005 can be part of a circuit, such as an integrated circuit. One or more other components of the system 1001 can be included in the circuit. In some cases, the circuit is an application specific integrated circuit (ASIC).

[0088] The storage unit 1015 can store files, such as drivers, libraries and saved programs. The storage unit 1015 can store user data, e.g., user preferences and user programs. The computer system 1001 in some cases can include one or more additional data storage units that are external to the computer system 1001, such as located on a remote server that is in communication with the computer system 1001 through an intranet or the Internet.

[0089] The computer system 1001 can communicate with one or more remote computer systems through the network 1030. For instance, the computer system 1001 can communicate with a remote computer system of a user (e.g., a user of an experimental environment). Examples of remote computer systems include personal computers (e.g., portable PC), slate or tablet PC's (e.g., Apple® iPad, Samsung® Galaxy Tab), telephones, Smart phones (e.g., Apple® iPhone, Android-enabled device, Blackberry®), or personal digital assistants. The user can access the computer system 1001 via the network 1030.

[0090] Methods as described herein can be implemented by way of machine (e.g., computer processor) executable code stored on an electronic storage location of the computer system 1001, such as, for example, on the memory 1010 or electronic storage unit 1015. The machine executable or machine readable code can be provided in the form of software. During use, the code can be executed by the processor 1005. In some cases, the code can be retrieved from the storage unit 1015 and stored on the memory 1015 for ready access by the processor 1005. In some situations, the electronic storage unit 1015 can be precluded, and machine-executable instructions are stored on memory 1010.

[0091] The code can be pre-compiled and configured for use with a machine having a processer adapted to execute the code, or can be compiled during runtime. The code can be supplied in a programming language that can be selected to enable the code to execute in a pre-compiled or as-compiled fashion.

[0092] Aspects of the systems and methods provided herein, such as the computer system 1001, can be embodied in programming. Various aspects of the technology may be thought of as “products” or “articles of manufacture” typically in the form of machine (or processor) executable code and / or associated data that is carried on or embodied in a type of machine readable medium. Machine-executable code can be stored on an electronic storage unit, such as memory (e.g., read-only memory, random-access memory, flash memory) or a hard disk. “Storage” type media can include any or all of the tangible memory of the computers, processors or the like, or associated modules thereof, such as various semiconductor memories, tape drives, disk drives and the like, which may provide non-transitory storage at any time for the software programming. All or portions of the software may at times be communicated through the Internet or various other telecommunication networks. Such communications, for example, may enable loading of the software from one computer or processor into another, for example, from a model monitor server or host computer into the computer platform of an application server. Thus, another type of media that may bear the software elements includes optical, electrical and electromagnetic waves, such as used across physical interfaces between local devices, through wired and optical landline networks and over various air-links. The physical elements that carry such waves, such as wired or wireless links, optical links or the like, also may be considered as media bearing the software. As used herein, unless restricted to non-transitory, tangible “storage” media, terms such as computer or machine “readable medium” refer to any medium that participates in providing instructions to a processor for execution.

[0093] Hence, a machine readable medium, such as computer-executable code, may take many forms, including but not limited to, a tangible storage medium, a carrier wave medium or physical transmission medium. Non-volatile storage media include, for example, optical or magnetic disks, such as any of the storage devices in any computer(s) or the like, such as may be used to implement the databases, etc. shown in the drawings. Volatile storage media include dynamic memory, such as main memory of such a computer platform. Tangible transmission media include coaxial cables; copper wire and fiber optics, including the wires that comprise a bus within a computer system. Carrier-wave transmission media may take the form of electric or electromagnetic signals, or acoustic or light waves such as those generated during radio frequency (RF) and infrared (IR) data communications. Common forms of computer-readable media therefore include for example: a floppy disk, a flexible disk, hard disk, magnetic tape, any other magnetic medium, a CD-ROM, DVD or DVD-ROM, any other optical medium, punch cards paper tape, any other physical storage medium with patterns of holes, a RAM, a ROM, a PROM and EPROM, a FLASH-EPROM, any other memory chip or cartridge, a carrier wave transporting data or instructions, cables or links transporting such a carrier wave, or any other medium from which a computer may read programming code and / or data. Many of these forms of computer readable media may be involved in carrying one or more sequences of one or more instructions to a processor for execution.

[0094] The computer system 1001 can include or be in communication with an electronic display 1035 that comprises a user interface (UI) 1040 for providing, for example, the various components (e.g., lab, launch pad, control center, knowledge center, etc) of the model monitor system. Examples of UI's include, without limitation, a graphical user interface (GUI) and web-based user interface.

[0095] Methods and systems of the present disclosure can be implemented by way of one or more algorithms. An algorithm can be implemented by way of software upon execution by the central processing unit 1005. The algorithm can, for example, capture a configuration of one or more experimental environments; generate user defined reports of hardware usage; monitor models; and generate usage statistics of selected projects or models.

[0096] It should be noted that application of the provided methods and systems are not limited by the underlying computing infrastructure or computing environment. For instance, the provided model monitor system may be applied to grid computing platform or systems utilizing various technologies such as mesh computing, peer-to-peer computing, autonomic (self-healing) computing, wireless sensor networks, mobile data acquisition, mobile signature analysis, cooperative distributed peer-to-peer ad hoc networking and processing, local cloud / fog computing and grid / mesh computing, dew computing, mobile edge computing, cloudlet, distributed data storage and retrieval, remote cloud services, augmented reality and the like. It is understood in advance that although this specification includes description of cloud computing, implementation of the teachings recited herein are not limited to a cloud computing environment. Rather, embodiments of the present invention are capable of being implemented in conjunction with any other types of computing environment now known or later developed.

[0097] While preferred embodiments of the present invention have been shown and described herein, it will be obvious to those skilled in the art that such embodiments are provided by way of example only. It is not intended that the invention be limited by the specific examples provided within the specification. While the invention has been described with reference to the aforementioned specification, the descriptions and illustrations of the embodiments herein are not meant to be construed in a limiting sense. Numerous variations, changes, and substitutions will now occur to those skilled in the art without departing from the invention. Furthermore, it shall be understood that all aspects of the invention are not limited to the specific depictions, configurations or relative proportions set forth herein which depend upon a variety of conditions and variables. It should be understood that various alternatives to the embodiments of the invention described herein may be employed in practicing the invention. It is therefore contemplated that the invention shall also cover any such alternatives, modifications, variations or equivalents. It is intended that the following claims define the scope of the invention and that methods and structures within the scope of these claims and their equivalents be covered thereby.

Claims

1. A system for providing model quality analytics for a machine learning algorithm trained model, the system comprising:(i) a memory for storing a set of software instructions, and (ii) one or more processors configured to execute the set of software instructions to:(a) receive an input data that is used to train a model, wherein when the input data comprises labels, segment the input data into a plurality of segments based at least in part on the labels, and wherein when the input data does not comprise labels, cluster the input data into a plurality of segments using a clustering algorithm;(b) generate quality analytics for the model at least by calculating a per-cluster quality measure of the model for each of the plurality of segments;(c) generate a visual output of the quality analytics, the visual output comprising the per-cluster quality measure foreach of the plurality of segments; and(d) responsive to detection that the per-cluster quality measure of a segment of the plurality of segments falls below a threshold, automatically perform a remedial action with respect to the model, the remedial action comprising at least one of:(i) retraining the model using a training dataset in which data corresponding to the segment is replaced or additional data is added, and re-deploying the retrained model;(ii) reverting the model to a prior version of the model; and(iii) unpublishing the model.

2. The system of claim 1, wherein the quality analytics comprise an identification of the segment of the plurality of segments whose per-cluster quality measure falls below the threshold.

3. The system of claim 2, wherein the one or more processors are configured to further compute a difference between the segment and one or more other segments of the plurality of segments.

4. The system of claim 3, wherein the difference is computed with respect to a feature distribution computed over data points within the segment and data points outside the segment.

5. The system of claim 1, wherein the one or more processors are configured to further calculate a feature distribution for data points within a given segment and data points outside the given segment.

6. The system of claim 1, wherein the one or more processors are configured to further calculate a contrast score between a feature distribution for data points within a given segment and a second feature distribution for data points outside the given segment.

7. The system of claim 6, wherein the contrast score is calculated based on earth mover's distance.

8. The system of claim 1, wherein the input data are segmented into the plurality of segments using an unsupervised learning algorithm.

9. The system of claim 8, wherein the one or more processors are configured to further determine an optimal number of the plurality of segments by reconstructing an error curve based on a subset of k values.

10. A computer-implemented method for providing model quality analytics for a machine learning algorithm trained model, the method comprising:(a) receiving an input data that is used to train a model, wherein when the input data comprises labels, segmenting the input data into a plurality of segments based at least in part on the labels, and wherein when the input data does not comprise labels, clustering the input data into a plurality of segments using a clustering algorithm;(b) generating quality analytics for the model at least by calculating a per-cluster quality measure of the model for each of the plurality of segments;(c) generating a visual output of the quality analytics, the visual output comprising the per-cluster quality measure for each of the plurality of segments; and(d) responsive to detection that the per-cluster quality measure of a segment of the plurality of segments falls below a threshold, automatically performing a remedial action with respect to the model, the remedial action comprising at least one of:(i) retraining the model using a training dataset in which data corresponding to the segment is replaced or additional data is added, and re-deploying the retrained model;(ii) reverting the model to a prior version of the model; and(iii) unpublishing the model.

11. The computer-implemented method of claim 10, wherein the quality analytics comprise an identification of the segment of the plurality of segments whose per-cluster quality measure falls below the threshold.

12. The computer-implemented method of claim 11, further comprising computing a difference between the segment and one or more other segments of the plurality of segments.

13. The computer-implemented method of claim 12, wherein the difference is computed with respect to a feature distribution computed over data points within the segment and data points outside the segment.

14. The computer-implemented method of claim 10, further comprising calculating a feature distribution for data points within a given segment and data points outside the given segment.

15. The computer-implemented method of claim 10, further comprising calculating a contrast score between a feature distribution for data points within a given segment and a second feature distribution for data points outside the given segment.

16. The computer-implemented method of claim 15, wherein the contrast score is calculated based on earth mover's distance.

17. The computer-implemented method of claim 10, wherein segmenting the input data into the plurality of segments comprises using an unsupervised learning algorithm.

18. The computer-implemented method of claim 17, further comprising determining an optimal number of the plurality of segments by reconstructing an error curve based on a subset of k values.

Citation Information

Patent Citations

  • Churn prediction based on existing event data

    US20160055496A1

  • Feature engineering and analytics systems and methods

    US20230334365A1

  • Drift-tolerant machine learning models

    US20240086762A1

  • Systems and methods for evaluating machine-learning models and predictions

    US20240220778A1