Self-healing machine learning system for transformed data
By combining the self-healing system with the decision tree model and the deep learning system, it monitors and remediates the performance changes of the machine learning model, solves the problem of predicted performance fluctuations in personalized experience in computer games, and achieves the continuity and stability of the personalized experience.
Patent Information
- Application Number
- CN202010673308.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-07-15
- Filing Date
- 2020-07-14
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-07-14
AI Technical Summary
Existing technologies are difficult to effectively monitor and solve the root causes of changes in the performance of machine learning models in personalized experience prediction in computer games, resulting in fluctuations in model prediction performance and the inability to adjust features and models in a timely manner to adapt to changes in game player behavior.
A self-healing system is used to detect changes in user behavior and model predictions through a combination of decision tree models and deep learning systems, and generate remedial measures, including retraining models, generating new features, backfilling data, etc., to ensure the continuity of personalized experience.
Real-time monitoring and remediation of machine learning model performance changes are achieved, ensuring the personalization and stability of game player experience, adapting to changes in player behavior, and improving the accuracy and efficiency of model predictions.
Smart Images

Figure CN112232515B_ABST
Abstract
Description
Technical Field
[0001] The present application generally relates to technically creative and unconventional solutions that are necessarily rooted in computer technology and produce specific technical improvements. Specifically, the present application relates to an end-to-end cloud-based machine learning platform that provides personalized game player predictions. Background Art
[0002] Machine learning can be divided into different tasks, such as supervised learning, unsupervised learning, deep learning, reinforcement learning, and recommender systems, which can be used in a variety of computer applications, such as online personalized recommendations, computer vision, speech recognition, Internet search engines, personal assistants, and self-driving cars.
[0003] As understood herein, machine learning is particularly well suited to computer-simulated scenarios such as computer games, where game developers are constantly innovating by “reimagining” how people play games, and gamer behavior in terms of how they interact, consume, and purchase games is constantly changing. Summary of the invention
[0004] The present principles relate to the detection and remediation of root causes that may contribute to changes in offline or online predictions of machine learning models, particularly when making predictions related to personalized experiences in computer simulations such as computer games. The model described herein in exemplary embodiments learns how to provide a personalized gaming experience, such as recommending games to a given user, recommending tips to a user to play games better, or recommending gaming activities to a user. The machine learning pipeline generates data lineage for features and models. The behavior of game players may change at any time. This may cause the performance predicted by the model to change. The "self-healing" system described below detects those changes and provides remediation for those changes, so that even if the player's behavior has changed, the player's experience is still personalized.
[0005] The present principles address one or more of the challenges discussed above.
[0006] Thus, in one aspect, an apparatus comprises: at least one processor; and at least one computer storage device, the at least one computer storage device being not a transient signal and in turn comprising instructions, the instructions being executable by the processor to execute a decision tree model or a sequence model having access to historical raw data, model features, feature metadata, and model metadata to identify changes in user behavior of a computer game and changes in model predictions to make recommendations to the user. The decision tree model does so at least in part by: for at least a first prediction model, determining whether a change is associated with a model quality metric associated with the first prediction model. In response to determining that a change is associated with the model quality metric associated with the first prediction model, the instructions are executable to generate a signal causing the decision tree model to use feature distribution statistics to delve into the cause of the change. In another aspect, in response to determining that a change is not associated with the model quality metric associated with the first prediction model, the instructions are executable to generate a signal determining whether a ranking of features by importance has changed.
[0007] Furthermore, the instructions are executable to cause the decision tree model to, in response to determining that the ranking of the features by importance has changed, determine whether the statistical information about the distribution of the features has changed, and, in response to determining that the statistical information about the distribution of the features has changed, generate a signal indicating that the user behavior may have changed. Conversely, in response to determining that the statistical information about the distribution of the features has not changed, indicate a healthy system. Additionally, in response to determining that the ranking of the features by importance has not changed, indicate a healthy system.
[0008] In an exemplary embodiment, the instructions may be executable to identify that an attribute of a data set used to generate an indicia of model feature has changed, and in response, automatically backfill data into the model feature to compensate for processing delays of a machine learning pipeline. The instructions may be executable to identify that an attribute of a data set used to generate the model feature has not changed, and in response, retrain the first predictive model.
[0009] In some implementations, the sequence model mentioned above may include: a deep learning system; raw data distribution statistics for input to the deep learning system; feature data for input to the deep learning system, the feature data including feature data distribution statistics, the importance of corresponding features in the model, and the status of feature deployment; monitoring data for input to the deep learning system, the monitoring data including computer component usage, processed requests, and time characteristics of machine learning jobs. Moreover, the sequence model may include model data for input to the deep learning system, the model data including model performance metrics and model metadata metrics. The deep learning system outputs recommendations for self-repair measures for the machine learning pipeline.
[0010] In an exemplary embodiment, the deep learning system of the sequence model includes at least a first layer of long short-term memory (LSTM) units, the first layer of LSTM units is used to monitor raw data, feature data and pipeline data from the data lineage infrastructure. The sequence model may also include: at least a second layer of LSTM units, the second layer of LSTM units is used to monitor model data; and at least a third layer of LSTM units, the third layer of LSTM units is used to monitor the first two layers for the attention layer. The attention layer enables the deep learning system to learn where to put "attention" and how to do so by adjusting the weights it assigns to various inputs. A softmax classifier receives input from the attention layer and outputs corresponding probabilities for multiple measures.
[0011] In a non-limiting example, at least a first one of the probabilities is given by:
[0012]
[0013] And assuming that α <t,t’> is the input y of the classifier i <t>< / t> At time t, the activation a of the previous LSTM monitoring layer should be given <t’> and c <t>< / t> The amount of attention is determined by:
[0014] c <t>< / t> =
[0015] We have
[0016] where ∑ t , α <t,t′> =1
[0017] The sequence model may be executed offline, in which case the input to the sequence model may include daily model performance metrics, model metadata metrics, daily feature distribution statistics, daily raw data distribution, and pipeline monitoring data. When offline, the sequence model may output the highest probability generated by the softmax classifier for one or more of the following: no action; automatically retrain at least one model; develop at least one new model; create at least one new feature; add data; and indicate changes in user behavior.
[0018] Additionally, the sequence model may be executed online, in which case the input to the sequence model may include one or more of the following: hourly model performance metrics, online model metadata metrics, feature deployment status indicating that all features are available for the model, and online feature metadata metrics. When online, the sequence model may output the highest probability generated by the softmax classifier for one or more of the following: no action; redeploying the default model; requesting changes to model features; and indicating changes in user behavior.
[0019] In another aspect, a computer system is configured to execute a computerized sequence model including a deep learning system. Raw data distribution statistics may be input to the deep learning system along with feature data for input to the deep learning system, the feature data including feature data distribution statistics, importance of corresponding features in the model, and status of feature deployment. Furthermore, monitoring data including computer component usage, processed requests, and temporal characteristics of machine learning jobs may be input to the deep learning system. Furthermore, model data including model performance metric measures and model metadata metrics may be input to the deep learning system. The deep learning system outputs recommendations for self-healing measures for a machine learning pipeline.
[0020] In another aspect, an apparatus includes: at least one processor; and at least one computer storage device, the at least one computer storage device is not a transient signal and in turn includes instructions, the instructions executable by the processor to track user interactions with at least one computer simulation to generate features. The instructions are executable to track the features and versions, temporal contexts, metrics, and relationships with models of the features; track at least one ancestor line responsible for generating the features; and using the output of tracking user interactions, features, and ancestor lines, combine the lifecycle of user features and user interactions to output at least one recommendation for self-healing measures for a machine learning pipeline.
[0021] The details of the present application, both as to its structure and operation, may be best understood by reference to the accompanying drawings, in which like reference numerals refer to like parts, and in which: BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 is a block diagram of an exemplary architecture of a self-healing system, the self-healing system including its model performance monitoring system, its data lineage infrastructure, its decision tree model, and its sequence model;
[0023] Figure 2 is a schematic diagram illustrating data transformation of features using a pipeline providing an offline or online service to generate feature ETL from user interaction and game data and store feature metadata in a feature store, wherein features can be generated offline from data stored in a data lake or online as data is streamed from a publish or subscribe feed;
[0024] Figure 3 is a schematic diagram of data transformations of a model, wherein a pipeline provides a training service to train the model and an inference service for the model to provide its predictions, and wherein model metadata is stored in a model store;
[0025] Figure 4 are screenshots illustrating exemplary non-limiting user interactions with items and user interactions with other users;
[0026] Figure 5 Shows Figure 1 An example of a decision tree model used to classify decisions by a self-healing system in various scenarios;
[0027] Figure 6 yes Figure 1 A block diagram of an exemplary architecture of a sequence model including a deep learning system having features thereof and an output of the deep learning system providing a remedial action;
[0028] Figure 7 It can be Figure 6 Schematic diagram of the architecture of the long short-term memory (LSTM) unit implemented in the sequence model of ;
[0029] Figure 8 is a schematic diagram of a more detailed architecture of a sequence model deep learning system, showing the characteristics of the system of raw data, feature data, pipeline data, and model data, a three LSTM layer network, and the associated attention layer;
[0030] Fig. 9 yes Figure 8 A schematic diagram of an exemplary architecture of an attention layer shown, including an attention vector providing input to the attention layer, an LSTM network of the attention layer, and a softmax classifier for classifying remedial actions;
[0031] Fig.10is a block diagram of a network architecture of a cloud-based machine learning platform consistent with the present principles; and
[0032] Fig.11 is a block diagram of a data center architecture that complies with the present principles. DETAILED DESCRIPTION
[0033] The present disclosure generally relates to a computer ecosystem that includes aspects of a network of consumer electronics (CE) devices, such as, but not limited to, distributed computer gaming networks, augmented reality (AR) networks, virtual reality (VR) networks, video broadcasting, content delivery networks, virtual machines, machine learning, and artificial neural network applications.
[0034] The system herein may include server and client components connected via a network so that data can be exchanged between the client and server components. The client component may include one or more computing devices, including AR headsets, VR headsets, game consoles (such as Sony ) and related motherboards, game controllers, portable televisions (e.g., smart TVs, Internet-enabled TVs), portable computers (such as laptops and tablet computers), and other mobile devices (including smart phones and additional examples discussed below). These client devices can operate in a variety of operating environments. For example, some of the client computers may use, for example, Orbis or Linux operating systems, operating systems from Microsoft, or Unix operating systems, or operating systems produced by Apple or Google. These operating environments can be used to execute one or more programs / applications, such as browsers made by Microsoft or Google or Mozilla, or other browser programs that can access websites hosted by Internet servers discussed below. In addition, an operating environment according to the present principles can be used to execute one or more computer game programs / applications and other programs / applications that employ the present principles.
[0035] The server and / or gateway may include one or more processors executing instructions that configure the server to receive and transmit data over a network such as the Internet. Additionally or alternatively, the client and server may be connected via a local intranet or a virtual private network. The server or controller may be provided by a game console and / or one or more motherboards thereof (such as a Sony ), personal computers, etc.
[0036] Information may be exchanged between the client and the server over the network. To this end and for security, the server and / or client may include firewalls, load balancers, temporary storage devices and proxies, as well as other network infrastructure for reliability and security. One or more servers may form an apparatus that implements a method according to the present principles to provide network users with a secure community such as an online social networking site or a video game site to communicate crowdsourced.
[0037] As used herein, instructions refer to computer-implemented steps for processing information in a system. Instructions may be implemented in software, firmware, or hardware, and include any type of programmed steps performed by components of the system.
[0038] The processor may be any conventional general purpose single chip processor or multi-chip processor capable of executing logic with the aid of various lines such as address, data and control lines, as well as registers and shift registers.
[0039] The software modules described by the flowcharts and user interfaces herein may include various subroutines, programs, etc. Without limiting the present disclosure, the logic stated as being performed by a particular module may be redistributed to other software modules and / or combined together in a single module and / or made available in a sharable library.
[0040] As indicated above, the present principles described herein may be implemented as hardware, software, firmware, or a combination thereof; accordingly, the illustrative components, blocks, modules, circuits, and steps are described in terms of their functionality.
[0041] In addition to what has been mentioned above, the logic blocks, modules and circuits described below may be implemented or executed with a general purpose processor, a digital signal processor (DSP), a field programmable gate array (FPGA) or other programmable logic devices designed to perform the functions described herein (such as application specific integrated circuits (ASICs), discrete gate or transistor logic, discrete hardware components or any combination thereof). The processor may be implemented by a combination of a controller or a state machine or a computing device.
[0042] The functions and methods described below can be implemented in hardware circuits or software circuits. When implemented in software, the functions and methods can be written in appropriate languages such as, but not limited to, Python, Scala, Java, C#, or C++, and can be stored on or transmitted by computer-readable storage media, such as random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disk storage devices (such as digital versatile disks (DVD)), magnetic disk storage devices, or other magnetic storage devices including removable thumb drives, etc. A computer-readable medium can be established by connection. Such connections can include, for example, hard-wired cables, including optical fibers and coaxial cables, as well as digital subscriber lines (DSL) and twisted pairs. Such connections can include wireless communication connections, including infrared and radio.
[0043] The components included in one embodiment may be used in other embodiments in any appropriate combination. For example, any of the various components described herein and / or depicted in the accompanying drawings may be combined, interchanged or excluded from other embodiments.
[0044] “A system having at least one of A, B, and C” (similarly, “a system having at least one of A, B, or C” and “a system having at least one of A, B, C”) includes the following systems: having only A; having only B; having only C; having both A and B; having both A and C; having both B and C; and / or having A, B, and C, etc.
[0045] In general, this principle understands that the development of machine learning models requires multiple workflows. The machine learning model first needs to be trained so that its predictions can be provided to the application. Model training involves the selection of model features and the machine learning algorithm.
[0046] Features are generated through ETL (Extract, Transform, and Load) services. The goal of ETL is to extract relevant data from the initial raw data set. In supervised learning (such as regression and classification of data sets), model training requires locating model parameters or weights by finding the minimum difference between the labeled data or output data of the training set and the model prediction. This difference is called the cost or loss function, and the algorithm that finds the minimum is called gradient descent. Gradient descent algorithms such as batch gradient descent, stochastic gradient descent, and mini-batch gradient descent can be used.
[0047] On the other hand, in unsupervised learning (such as clustering of data sets), there is no labeled data. The training of the model is intended to discover patterns in the data. Although the model parameters are generated by the algorithm, model training requires many hyperparameters that need to be tuned by the modeler. "Model parameters" are usually internal variables, coefficients or weights optimized by learning algorithms (such as gradient descent). Examples of model parameters include weight vector coefficients in linear regression, logistic regression and support vector machines, split points in decision trees. In contrast, "hyperparameters" are usually set by the modeler or tuned via algorithmic methods to optimize the performance of the model. Examples of hyperparameters include the number of neighbors k in the k nearest neighbor algorithm, the depth of the tree in the decision tree, the learning rate in the neural network, or the number of filters learned in a given convolutional layer in a convolutional neural network.
[0048] When the model has been trained, e.g., the model parameters have been found, and the model has been validated, e.g., the model hyperparameters have been tuned, the model can be tested. Testing the model requires understanding how the model performs on instances it has never seen before in order to avoid overfitting or underfitting. If the model overfits, the model performs well on the training data, but does not generalize well. If the model underfits, the model is too simple and has not learned the underlying structure of the dataset.
[0049] As understood herein, machine learning pipelines can be used to automate machine learning workflows from beginning to end by leveraging large-scale data processing infrastructure to facilitate the generation of feature ETL from raw data, data transformation of features to model predictions, and deployment of trained models in production environments for inference in an automated manner. Data pipelines enable modelers to move more quickly from generating feature ETL to monitoring their model predictions in production environments. When a model has been trained, validated, and tested, it can be deployed in a production environment to provide recommendations to applications.
[0050] In production, model performance must be monitored. For standard algorithms (such as regression or classification), model performance can be monitored using standard metrics, such as root mean square error for regression or precision, recall, and F1 score for classification.
[0051] In the context of machine learning models that provide personalized player experiences, this principle involves the following recognition. When game developers innovate by reimagining how people play games, game projects such as digital games, digital content, game mobile applications, game videos, etc. change from time to time. In addition, the behavior of game players in terms of interaction, consumption, and purchase of games is constantly changing. As understood herein, in that scenario, even if the model has been properly trained, verified, and tested, the model performance used to personalize the gaming experience may change at any time. Modelers do not have any way to clarify the reasons for the model's performance. Therefore, new feature ETLs need to be generated for game users and game projects, and personalized models need to be retrained, verified, and tested.
[0052] Currently, this challenge has not been addressed without the principles proposed in this article. Typically, choosing the right features has a greater impact on the quality of model predictions than the model algorithm itself. While different types of algorithms may produce slightly better model predictions, this is not the case for features, and without a mechanism to link changes in the raw data input used to generate feature ETL, changes in data transformations used to generate model features and train models, to the changing model performance itself, there was no way before this principle to evaluate the root cause of inferred model performance changes. As understood in this article, more than one parameter must be monitored. For example, monitoring only features or models takes a long time to discover the root cause of a poorly performing model, while monitoring only the data pipeline cannot foresee changes in the raw game player and / or game item data. Therefore, this principle helps debug and improve end-to-end model performance.
[0053] This paper describes a self-healing system to monitor model predictions, identify possible root causes of unhealthy data transformations, and propose remedial actions. The self-healing system relates the lifecycle of all transformed data involved in all types of data transformations. The raw data used to generate features, the features used to generate the model, the model predictions, and the data pipeline are analyzed together. Using this historical data, the possible root causes of changes in model performance are detected, and appropriate actions to resolve the problem are proposed through the self-healing system's models.
[0054] like Figure 1 As shown, a system consistent with the present principles has four components. The model performance and monitoring system 100 tracks any changes in the quality of the model predictions. The model performance and monitoring system 100 can decide whether to use a decision tree model described below or a sequence model described below. If the system has less than a threshold amount of historical data, such as less than 18 months, the self-healing system requests a decision tree model. On the other hand, if the system has more than a threshold amount of historical data, the self-healing system requests a sequence model.
[0055] The data lineage infrastructure 102 for features and models compares the lifecycle of transformed data (e.g., generated features and model predictions) to the lifecycle of game player and game item interactions. Both the monitoring system 100 and the data lineage infrastructure 102 provide input to a decision tree model 104 that operates on a relatively small historical data set to determine the process of remediation for offline model predictions. In addition, both the monitoring system 100 and the data lineage infrastructure 102 provide input to a sequence model 106 for a relatively large historical data set, which uses an attention mechanism for the process of determining remediation for both offline and online model predictions.
[0056] The monitoring system 100 continuously tracks any significant changes in the model quality metric (referred to herein as model WPAE), which is measured by a threshold and established by the administrator of the self-healing system. The details of the "WPAE" metric are set forth in U.S. patent application serial number 16 / 424,193 of the assignee, which is incorporated herein by reference. In contrast, the data lineage infrastructure 102 continuously tracks the data, their versions, time context, and metrics associated with any data transformation that occurs in the machine learning pipeline. The data lineage infrastructure 102 also continuously tracks changes in the interaction of gamers with game items and gamers with other gamers. By analyzing data from the data lineage infrastructure, the decision tree model 104 can diagnose when the offline model prediction has changed and the reasons for the change. Therefore, it can predict the right measures for the right reasons, such as generating new feature ETLs, retraining models, redesigning models, or alerting gamers of behavior changes.
[0057] Similarly, by analyzing data from the data lineage infrastructure 102, the sequence model 106 can diagnose when offline or online model predictions have changed and the reasons for the change. Therefore, it can predict the right action for the right cause, such as generating new feature ETL, retraining the model, redesigning the model, or alerting game player behavior changes.
[0058] Figure 1 Also shown is the data lineage infrastructure 102 accessing one or more data stores 108 (in Figure 1 On the other hand, the data lineage infrastructure 102 can access real-time user interaction data from one or more publish and subscribe feed sources 110. In addition, the data lineage infrastructure 102 accesses the feature store and model store data structures 112 of the machine learning pipeline described below. Figure 1Each block in (and other figures) may be implemented by a respective combination of one or more processors and one or more computer storage devices, non-limiting examples of which are disclosed herein.
[0059] The system disclosed herein monitors the performance of the predictions of each model deployed in a production environment. The data lineage infrastructure 102 tracks all stages of data transformation, from raw data to model features, from model features to trained models, and from trained models to models deployed in production. The self-healing system also correlates the lifecycle of transformed data. Raw data, feature data, model data, and data pipeline data are all interrelated with each other. Using this historical knowledge, the self-healing system detects the possible root causes of any model performance changes and proposes appropriate measures to resolve any detected issues.
[0060] Go to Figure 2 , shows a machine learning pipeline 200 that enables a modeler to generate a feature ETL. Both the user interaction data and the game data are received by an ETL generation service 200, which is further described herein. The ETL generation service 200 can generate one or more data structures 202 containing metadata 204 describing a plurality of features. The feature metadata can include statistical measures, including mean, average, maximum, minimum, and standard deviation, the relationship of the feature to other features, and the relationship of the feature to the model.
[0061] like Figure 3 As shown, the pipeline also enables modelers to develop, train, and deploy machine learning models at scale. Features are input to a model training service 300, which can be offline or online, and after being trained, the model can provide its predictions in an inference service 302. Both the training service 300 and the inference service 302 can generate one or more data structures 304 containing model metadata 306 generated from both services for multiple models.
[0062] The pipeline can be multi-tenant and can train a large number of models simultaneously. After training, the model can provide its predictions to many online or offline applications simultaneously. For model training, the pipeline provides many ready-made standard machine learning libraries that implement many types of algorithms. For model inference, the pipeline's model inference service 302 provides model deployment to many types of production environments.
[0063] Figure 2 and Figure 3 The pipeline shown generates model and feature metadata. Model metadata is generated when a model is trained or when a model provides its predictions in inference. Feature metadata can be generated after each ETL is generated in the pipeline.
[0064] The model metadata 306 may include, for each model, the model algorithm, the model architecture (particularly for deep learning models such as convolutional neural networks (CNNs) or recurrent neural networks (RNNs)), model parameters or weights, model hyperparameters, model features, model learning rates, model dependencies on other models (such as when the training or prediction of one model depends on one or more other models), the state of the model predictions in inference (because the model can provide online or offline model inference), and standard algorithmic metrics. These metrics, in turn, may include root mean square error for regression and precision, recall, F1 score (the harmonic mean of precision and recall) for classification. The metadata 306 may also include the relevance of the model predictions for recommendations, as measured by, for example, the WPAE metric discussed herein.
[0065] The pipeline model provides a personalized gaming experience to the gamer. Examples of those predictions include, but are not limited to, recommending a selection of games to the gamer only on his homepage. Predictions may also include helping the gamer improve his play by recommending tips (such as watching a video) to learn how to play better at a particular moment in the game. In addition, predictions may include recommending stories about the game in the player's news feed and recommending gaming activities to the gamer, such as a specific event or tournament.
[0066] Figure 4 The first screenshot 400 and the second screenshot 402 are used to illustrate exemplary non-limiting user interactions with items and user interactions with other users. Figure 1 The data lineage infrastructure 102 is shown. As shown in the screenshot 400, user interactions with game data are tracked, including user purchases of games and items provided in the game, user games, users viewing games, users commenting on games, users sharing games with other users, and user time spent in the game. As the user views the game on the display 406, these interactions are recorded based on user inputs made through, for example, a game controller 404, where the user inputs are recorded and associated with game events in the software to know exactly what the user inputs on the controller 404 represent in terms of interaction type.
[0067] On the other hand, screenshot 402 shows user-to-user interactions, including users friending other users, following other users, and re-sharing a computer-simulated share originally provided by the sharing user. The decision tree model and sequence model of the self-healing system described further below utilize the data lineage infrastructure 102 .
[0068] In view of the above, it can be understood that the data lineage infrastructure 102 continuously tracks direct raw game data and game player interaction data, and specifically tracks game data including game release date, age limit for playing games, game type, game keywords / metadata, region, and game language. It also tracks user data including user's region, user's language, user's age, user's membership type, and user's electronic wallet balance. It tracks user interactions with games, including game play commands, purchase orders, user viewing games, user dwell time spent on game ads, user preference indications related to games, user comments on games, and user re-sharing of games. In addition, the data lineage pipeline 102 tracks user-to-user interactions, including adding friends, following, and re-sharing.
[0069] For example, the input is communicated to one or more servers on the Internet via a user game console / game controller and stored as discussed above. Figure 1 The above information is collected in a "data lake" or a data repository typically hosted on a storage device on the Internet as indicated by box 108 of FIG. The data is used to generate offline feature ETL. Note that it is also possible to Figure 1 User interactions are transmitted in real time through publish and subscribe feeds as described in block 110 of . In that case, feature ETL is generated online from those streamed interactions.
[0070] The data lineage infrastructure 102 continuously tracks the ancestry line responsible for generating the feature ETLs directly involved in training the model. It tracks the features generated by the ETLs themselves, their versions, their temporal context, feature data distribution statistics, their dependencies with other ETLs, and their relationship to the model. Historical feature metadata is stored in the feature store, such as information about Figure 1 The data lineage infrastructure 102 also continuously tracks model performance metrics during training and inference of the baseline model. It tracks the importance of each feature for each model and when a model has dependencies with other models. Historical model metadata is stored in the model store, such as Figure 1 As described in block 112 of .
[0071] Detection of the issue and remediation of the issue is accomplished through two machine learning models: Figure 1 The decision tree model 104 and Figure 1 Both of these are accomplished by accessing information from the data lineage infrastructure 102 , as shown in the sequence model 106 .
[0072] Figure 5More details of the decision tree model 104 are shown. In general, by leveraging historical data from the data lake, feature store, and model store, the system can compare the lifecycle of transformed data used to generate feature ETL, train models, and deploy models with the lifecycle of user interactions with the game and user-to-user interactions. By combining the lifecycle of features and models with the lifecycle of user interactions with the game or other users, the self-healing system can discover shifts in user behavior and shifts in model predictions.
[0073] The trees of the decision tree model 104 may be trained using the Gini impurity measure:
[0074]
[0075] where p i,k is the ratio of class k in the training instances in the i-th node.
[0076] The training algorithm can use the Classification and Regression Trees (CART) algorithm, which minimizes the following cost function:
[0077]
[0078] Among them G 左 / 右 Measures the impurity of the left / right subset, while M 左 / 右 is the number of instances in the left / right subset.
[0079] The goal of the decision tree model 104 is to classify various actions that the self-healing system takes under certain conditions.
[0080] In view of the above, as shown in block 500, it is determined whether the change in the model quality metric (e.g., WPAE discussed above) reaches a given threshold defined by the data pipeline administrator, such as five percent (5%). If so, the model moves to block 502 to determine whether the feature distribution statistics have changed. Therefore, at block 502, the decision tree model analyzes the statistics about the feature distribution. However, as will be further explained below, even if the model WPAE has not changed, the self-healing system still requests the model to investigate whether the system is healthy from beginning to end on a daily or weekly basis.
[0081] If it is determined at block 504 that the size of the original data set used to generate the feature ETL has changed, and it is determined at block 506 that there is a pipeline delay, the logic moves to state 508 to automatically backfill the original data into the feature ETL to compensate for the pipeline job processing delay.
[0082] On the other hand, if it is determined at block 506 that there is no pipeline delay in the presence of a change in data set size as determined at block 504, then the logic moves to state 510 to generate an audible or visual alert to a model engineering team developing a network client for data collection consistent with the principles herein. Client telemetry data may be missing, in which case a ticket may be requested to the client engineering team to have the team investigate the issue of the missing data.
[0083] In contrast, if it is determined at block 504 that the size of the original data set used to generate the feature ETL has not changed, then the logic moves to state 512 to trigger automatic retraining of the model.
[0084] Similarly, if it is determined at block 502 that the change in feature distribution statistics has not reached a threshold amount, the logic of the model may move to state 514 to trigger automatic retraining of the model in the presence of the WPAE change determined at block 500. Note that the actions at states 508, 510, 512, 514, and 520 are examples of “self-healing recommendations.”
[0085] However, even if the model WPAE has not changed, as determined at box 500, the model logic may move to box 516 to determine whether the feature importance ranking has shifted even when the WPAE has not changed. This may be done to investigate whether the system is healthy from beginning to end on a daily or weekly basis. Thus, at box 516, it may be determined whether the ranking of features by importance has changed. The self-healing system may trigger the model to automatically retrain. Additionally or alternatively, if the importance ranking of the model's features has shifted, as determined at box 516, the model logic may determine at box 518 whether statistics about the feature distribution have changed. If the feature distribution statistics have changed, the logic may move to state 520 to send an auditory or visual request to the modeler to investigate any changes in the raw data distribution and alert the marketing department that user behavior may have changed.
[0086] On the other hand, if it is determined at block 518 that the feature distribution statistics have not changed, the logic can move to state 522 to indicate that the overall system is healthy. Likewise, if it is determined at block 516 that the ranking of features by importance has not changed, the logic can move to state 524 to indicate that the overall system is healthy.
[0087] Figure 6 An exemplary architecture of the sequence model 106 is shown. The sequence model 106 can be used by the self-repairing system for offline and online model predictions when sufficient historical data sets have been acquired. This may require up to 18 months of raw data.
[0088] like Figure 6As shown, the sequence model 106 can be implemented using a deep learning system 600. The features input to the deep learning system 600 may include raw data distribution statistics 602. These statistics may include game data and user data distribution statistics and user-game and user-user interaction distribution statistics obtained from the data lake of the data lineage infrastructure 102. The deep learning system 600 can also access feature data 604, which includes feature data distribution statistics, the importance of corresponding features in the model, and the status of feature deployment.
[0089] In addition, the deep learning system 600 can also access pipeline monitoring data 606, which includes the use of CPU / memory / instances by the machine learning pipeline, the requests processed by the pipeline, and the time / duration / wait time of machine learning in the pipeline. The pipeline monitoring data 606 can also include errors / warnings when recording raw data and the number of machine learning jobs being executed.
[0090] The deep learning system 600 can also access model data 608. The model data can include model performance metric measures and model metadata metrics per model WPAE.
[0091] The output of the deep learning system 600 includes a recommended remedial action 610 for the self-healing system.
[0092] The deep learning system 600 of the sequence model 106 can be implemented using a variant of a recurrent neural network (RNN) called a long short-term memory (LSTM) network. RNN is a type of neural network that provides an efficient and scalable model for making predictions based on sequence data. RNN combines inputs from the current moment and inputs from the memory layer to provide a decision.
[0093] However, as understood herein, when trained, RNNs may suffer from vanishing and exploding gradients. This occurs because RNNs are unable to capture long-term dependencies due to the multiplicative gradients that may decrease or increase exponentially with respect to the several layers deployed in the RNN network.
[0094] The goal of understanding self-healing systems is to learn to make relevant predictions from large historical data sets. LSTM networks solve the gradient vanishing and gradient exploding problems of RNNs by utilizing specific gates. LSTM is very effective in capturing long-term temporal dependencies of feature data.
[0095] In fact, now refer to Figure 7 , shows an LSTM cell 700 that uses four types of gates, as described in the following table:
[0096] Door Type The role of the door <![CDATA[Update door (702) Γ u > How important is the past to the present? <![CDATA[Relevant gate (704) Γ r > Discard previous information? <![CDATA[Forgotten Gate (706) Γ f > Erase cell? <![CDATA[Output gate (708) Γ o > How much of the cell's content is revealed?
[0097] Figure 7 shows how these four gates are integrated into an LSTM cell, where:
[0098] x <t>< / t> 710 is the input vector of the unit, a <t-1>< / t-1> 712 is the previous cell output, c <t-1>< / t-1> 714 is the previous cell memory, a <t>< / t> 716 is the current cell output, and c <t>< / t> 718 is the current cell memory.
[0099] The current cell output 716 can be calculated using the following formula, where the symbol * represents the element-by-element multiplication between two vectors:
[0100] a <t>< / t> =Γ o *c <t>< / t>
[0101] The current cell memory 718 can be calculated using the following formula:
[0102]
[0103] in It can be calculated by the following expression:
[0104] Where Wc is the weight and bc is the bias.
[0105] Given the above structure of LSTM, now note that Figure 8 , the figure shows that in one example, the deep learning system 600 of the sequence model 106 includes three layers of LSTM units. The first two layers 800 and 802 are monitoring layers, which monitor the original data, feature data, pipeline data 804 and model data 806.
[0106] The third LSTM layer 808 provides overall supervision for the attention layer 810. The attention layer 810 enables the deep learning system 600 of the sequence model 106 to learn where to put "attention" and how to do so by adjusting the weights it assigns to the various inputs from the overall supervision layer 808.
[0107] like Figure 8 As shown, the attention layer 810 weights the outputs of different LSTM cells in the overall monitoring layer 808 and inputs its calculated output to the softmax classifier 812, which outputs the probability of each possible measure, given by the following formula:
[0108]
[0109] Regarding the above, assuming α <t,t’> is the input y of the classifier i <t>< / t> At time t (where t progresses from left to right along the x-axis as shown), the activation a of the previous LSTM monitoring layer should be given <t’> and c <t>< / t> The amount of attention (i.e., context) is determined by the following formula:
[0110] c <t>< / t> =∑ t , α <t,t′> a <t′>
[0111] We have
[0112] where ∑ t , α <t,t′> =1
[0113] Fig. 9 The LSTM unit of the attention layer 810 is shown utilizing the attention vector 900 and providing input to the softmax classifier 812 as described above, which outputs a remediation measure 902. For an offline model, the input to the sequence model may include daily model WPAE and model metadata metrics, daily feature distribution statistics, daily raw data distribution, and pipeline monitoring data. The remediation measure 902 output by the offline sequence model 106 may include the highest probability generated by the softmax classifier 812 of the sequence model for one or more of the following measures:
[0114] Healthy system - self-healing system without measures;
[0115] Retrain the model - the self-healing system will automatically retrain the model;
[0116] Develop new models - self-healing systems alert modelers that new models may be needed;
[0117] Create new features - The self-healing system alerts the modeler that new features need to be generated for the model;
[0118] Backfilling job data on lost data - the self-healing system automatically backfills the original data into the feature ETL; and
[0119] User event detection - The self-healing system requests investigation of any changes in the raw data distribution and alerts the marketing department that user behavior may have changed.
[0120] On the other hand, for the online sequence model 106, the inputs to the sequence model may include hourly model performance (such as the number of times an item is clicked or the number of purchases by a game player), online model metadata metrics, feature deployment states indicating that all features are available to the model so that the model returns its predictions, and online feature metadata metrics. The output of the online sequence model 106 (remedial measures 902) may include the highest probability generated by the softmax classifier 812 of the sequence model for one or more of the following measures:
[0121] Healthy system - self-healing system without measures;
[0122] Restore deployed models - the self-healing system redeploys the default model in production; Update online features - the self-healing system requests the modeler to change features in the model; and
[0123] User event detection - The self-healing system requests investigation of any changes in the raw data distribution and alerts the marketing department that user behavior may have changed.
[0124] Reference now Fig.10 , an exemplary system is shown, which may include one or more of the exemplary devices mentioned herein for performing the techniques described in this document according to the present principles. As shown, the system may include one or more regional data centers 10, each of which includes one or more servers with accompanying processors and solid-state memory and disk storage. The servers establish a cloud-based system for executing the above-mentioned machine learning platform in which machine learning models are executed on multiple data centers. The regional data center communicates with one or more computerized front-end devices 18 (such as a computer (laptop, PC, etc.) executing a web browser, a mobile application executed on a mobile device, or a computer simulation console such as a game console) via a wired link and / or a wireless link 16.
[0125] Therefore, if Fig.10 As shown, a machine learning pipeline for personalizing the gaming experience is provided from the "cloud". The machine learning pipeline is executed by a large number of computer clusters in a cloud backend hosted by a regional data center 10. All model training and model inference occur in the backend. Model predictions are provided to a front-end application, such as any of a front-end application running on a device 18 including a web browser, a game console, or a mobile application. All front-end applications communicate with the cloud backend through an Internet network 16. Each cluster may include a large number of computer servers physically located in one or more server farms, which are located in one or more geographically dispersed data centers.
[0126] A typical architecture might include a large number of regional data centers distributed around the world, with one or more regional data centers located in North America, EMEA, Japan, and other parts of the world.
[0127] like Fig.11 As shown, each data center may include one or more load balancers 20 to manage network requests from front-end applications 18 to multiple server farms 23, and one or more threat detection and firewall tools 22 to protect the servers 25 from external security threats. Although most data is mobile and generated and can be stored in large file systems (such as Apache Hadoop Distributed File System (HDFS)) in various data formats (such as Apache Parquet) that can be easily accessed and manipulated by clusters in the server farm, some data may be static and physically stored on a network attached storage device (NAS) 24 in the data center.
[0128] The computerized front-end device 18 may include one or more displays, one or more speakers for outputting audio in accordance with the present principles, one or more input devices, one or more network interfaces, one or more input ports (such as a High-Definition Multimedia Interface (HDMI) port or a USB port that is physically connected (e.g., using a wired connection) to another CE device and / or a headphone port for connecting headphones), one or more computer memories (e.g., disk-based storage devices or solid-state storage devices), a position or location receiver, one or more cameras, and the like.
[0129] It will be appreciated that while the present principles have been described with reference to certain exemplary embodiments, these embodiments are not intended to be limiting and that various alternative arrangements may be used to implement the subject matter claimed herein.
Claims
1. A device for a machine learning platform, the device comprising: at least one processor; as well as at least one computer storage device, the at least one computer storage device being not a transient signal and comprising instructions executable by the at least one processor to: Executing a decision tree model with access to historical data, model features, and model metadata to identify changes in computer-simulated user behavior and changes in model predictions to make personalized recommendations to the user, the user behavior including at least one of user-game interaction and user-user interaction, at least in part by: For at least a first prediction model used to make personalized recommendations to a user, determining whether a change is associated with a model quality metric associated with the first prediction model; In response to determining that a change is associated with the model quality metric associated with the first predictive model, generating a signal causing the decision tree model or the sequence model to use feature distribution statistics to delve into causes of the change; generating, in response to determining that a change is not associated with the model quality metric associated with the first predictive model, a signal to initiate a system health check for determining whether to take remedial action on a machine learning pipeline of the first predictive model, the system health check comprising determining whether a ranking of features by importance has changed; In response to determining that the ranking of the features by importance has changed, determining whether statistical information about the distribution of the features has changed; In response to determining that the statistical information about the feature distribution has changed, generating a signal indicating that the user behavior may have changed; In response to determining that the statistical information about the characteristic distribution has not changed, indicating a healthy system; as well as In response to determining that the ranking of the features by importance has not changed, a healthy system is indicated.
2. The apparatus of claim 1, wherein the instructions are executable to: identifying that an attribute of a data set used to generate a model signature has changed, and in response, automatically backfilling data into the model signature to compensate for processing delays; It is identified that an attribute of the data set used to generate the model signature has not changed, and in response, the first predictive model is retrained.
3. The apparatus of claim 1, wherein the sequence model is used to determine a remedial action for the machine learning pipeline of the first prediction model, comprising: Deep learning systems; Raw data distribution statistics for inputting into the deep learning system, wherein the raw data distribution statistics include at least one of game data distribution statistics, user data distribution statistics, user-game interaction distribution statistics, and user-user interaction distribution statistics; feature data for input to the deep learning system, the feature data including feature data distribution statistics, the importance of corresponding features in the model, and the status of feature deployment; monitoring data for input to the deep learning system, the monitoring data including temporal characteristics of computer component usage, processed requests, and machine learning; as well as Model data for input to the deep learning system, the model data comprising model performance metrics and model metadata metrics; The deep learning system outputs a recommendation for a remedial action for the machine learning pipeline based on at least one of the raw data distribution statistics, the feature data, the monitoring data, and the model data.
4. The apparatus of claim 3, wherein the deep learning system comprises: at least a first layer of long short-term memory (LSTM) units, the first layer of LSTM units being used to monitor raw data, feature data, and pipeline data from a data lineage infrastructure; At least a second LSTM layer, wherein the second LSTM layer is used to monitor the model data; At least a third LSTM layer, the third LSTM layer is used to provide overall monitoring of the first two layers to the attention layer; the attention layer, the attention layer adjusting the weights assigned to inputs from a previous holistic monitoring; as well as A softmax classifier is configured to receive input from the attention layer and output corresponding probabilities of multiple measures.
5. The apparatus of claim 4, wherein at least a first one of the probabilities is given by: where α <t,t’> is the input y of the classifieri <t>< / t> At time t, the activation a of the previous monitoring layer should be given <t’> and c <t>< / t> The amount of attention is determined by: c <t>< / t> =∑ t′ α <t,t′> a <t′> Then where ∑ t , α <t,t′> =1.
6. The apparatus of claim 4, wherein the sequence model is offline, and the inputs to the sequence model include daily model effectiveness metrics, model metadata metrics, daily feature distribution statistics, daily raw data distribution, and pipeline monitoring data.
7. The apparatus of claim 6, wherein the sequence model is configured to output the highest probability generated by the softmax classifier for one or more of: no action; automatically retraining at least one model; developing at least one new model; creating at least one new feature; adding data; and indicating a change in user behavior.
8. The apparatus of claim 4, wherein the sequence model is online and the input to the sequence model comprises one or more of: hourly model performance, online model metadata metrics, a feature deployment status indicating that all features are available for use with the model, and online feature metadata metrics.
9. The apparatus of claim 8, wherein the sequence model is configured to output the highest probability generated by the softmax classifier for one or more of: no action; redeploying a default model; requesting changes to model features; and indicating a change in user behavior.
10. A computer system for a machine learning platform, the computer system being configured to execute a computerized sequence model for determining a remedial action for a machine learning pipeline of a first prediction model, the first prediction model being used to make personalized recommendations to a user, the computerized sequence model comprising: Deep learning systems; Raw data distribution statistics for inputting into the deep learning system, wherein the raw data distribution statistics include at least one of game data distribution statistics, user data distribution statistics, user-game interaction distribution statistics, and user-user interaction distribution statistics; feature data for input to the deep learning system, the feature data including feature data distribution statistics, the importance of corresponding features in the model, and the status of feature deployment; monitoring data for input to the deep learning system, the monitoring data including temporal characteristics of computer component usage, processed requests, and machine learning; as well as Model data for input to the deep learning system, the model data comprising model performance metrics and model metadata metrics; The deep learning system outputs a recommendation for a remedial action for the machine learning pipeline based on at least one of the raw data distribution statistics, the feature data, the monitoring data, and the model data.
11. The system of claim 10, wherein the deep learning system comprises: at least a first layer of long short-term memory (LSTM) units, the first layer of LSTM units being used to monitor raw data, feature data, and pipeline data from a data lineage infrastructure; At least a second LSTM layer, wherein the second LSTM layer is used to monitor the model data; At least a third LSTM layer, the third LSTM layer is used to provide overall monitoring of the first two layers to the attention layer; the attention layer, the attention layer adjusting the weights assigned to inputs from a previous holistic monitoring; as well as A softmax classifier is configured to receive input from the attention layer and output corresponding probabilities of multiple measures.
12. The system of claim 11, wherein at least a first one of the probabilities is given by: where α <t,t’> is the input y of the classifier i <t>< / t> At time t, the activation a of the previous monitoring layer should be given <t’> and c <t>< / t> The amount of attention is determined by: c <t>< / t> =∑ t′ α <t,t′> a <t′> Then where ∑ t , α <t,t′> =1.
13. The system of claim 10, wherein the sequence model is offline, and the inputs to the sequence model include daily model effectiveness metrics, model metadata metrics, daily feature distribution statistics, daily raw data distribution, and pipeline monitoring data.
14. The system of claim 13, wherein the sequence model is configured to output the highest probability generated by a softmax classifier for one or more of: no action; automatically retraining at least one model; developing at least one new model; creating at least one new feature; adding data; and indicating a change in user behavior.
15. The system of claim 10, wherein the sequence model is online and inputs to the sequence model include one or more of: hourly model performance, online model metadata metrics, a feature deployment status indicating that all features are available for use with the model, and online feature metadata metrics.
16. The system of claim 15, wherein the sequence model is configured to output the highest probability generated by the softmax classifier for one or more of: no action; redeploying a default model; requesting changes to model features; and indicating a change in user behavior.
17. A device for a machine learning platform, the device comprising: at least one processor; as well as at least one computer storage device, the at least one computer storage device being not a transient signal and comprising instructions executable by the at least one processor to: Tracking user interactions using at least one computer simulation to generate features corresponding to raw data, the raw data including at least one of game data, user data, user-game interaction data, and user-user interaction data; Tracking the feature includes tracking at least one of a version of the feature, a temporal context, a model quality metric, and a relationship of the feature to a first prediction model, wherein the first prediction model is used to make personalized recommendations to the user; tracing at least one ancestral line responsible for generating the feature; Using the output of tracking user interactions, features, and ancestry lines, the user features and the lifecycle of the user interactions are combined to output at least one recommendation for a remedial action for the machine learning pipeline of the first predictive model.
18. The apparatus of claim 17, wherein the instructions are executable to: Compare the lifecycle of the model to the lifecycle of simulated user interactions; and Based on comparing the lifecycle of the model with the lifecycle of the simulated user interaction, the user features and the lifecycle of the user interaction are combined to output at least one recommendation for a remedial action for the machine learning pipeline.
19. The apparatus of claim 17, wherein the computer simulation comprises a computer game.
20. The apparatus of claim 19, wherein the instructions are executable to: identifying a spending characteristic including a user's propensity to purchase computer games at least in part by identifying money spent by the user on purchasing computer games over a predetermined time period; The game play characteristic is identified at least in part by identifying an amount of time the user spends playing the computer game within a predetermined time span.
