Case-specific scores, explainability, and automated decisions in computer-based reasoning systems

Case-based reasoning systems with explanation data and certainty scores improve the transparency and efficiency of machine learning decisions by determining relevant data elements, enhancing model accuracy and reducing size.

US12818226B1Active Publication Date: 2026-12-01HOWSO INC
View PDF 52 Cites 0 Cited by

Patent Information

Application Number
US18/345864
Authority / Receiving Office
US · United States
Patent Type
Patents(United States)
Current Assignee / Owner
Priority Date
2022-07-01
Filing Date
2023-06-30
Publication Date
2026-12-01
Estimated Expiration
2045-06-19

AI Technical Summary

Technical Problem

Current machine learning systems lack explainability in decision-making processes, making it difficult to trace why certain outcomes are predicted and when sufficient data is available, and they do not effectively determine which data elements to include or exclude.

Method used

Implementing case-based reasoning systems that provide explanation data, such as certainty scores and similarity measures, to determine suggested actions and include or exclude data elements based on their contribution to model accuracy.

Benefits of technology

Enhances the explainability of machine learning decisions and optimizes the data included in the model, improving decision-making confidence and reducing model size while maintaining accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US12818226-D00000_ABST
    Figure US12818226-D00000_ABST
Patent Text Reader

Abstract

The techniques herein include using an input context to determine a suggested action and / or cluster. Explanations may also be determined and returned along with the suggested action. The explanations may include (i) case mean change in accuracy; (ii) case contribution; (ii) case feature residuals; (iii) global case feature residual conviction; (iv) local case feature residual conviction; and / or other measures such as the ones discussed herein, including certainty. The explanation data may be used to determine whether to perform a suggested action. Further, the measures may also be used to include or exclude data elements from the model.
Need to check novelty before this filing date? Find Prior Art

Description

RELATED APPLICATIONS

[0001] The present application is based on and claims the benefit of U.S. Provisional Patent Application No. 63 / 357,875 having a filing date of Jul. 1, 2022, which is incorporated by reference herein in its entirety.FIELD OF THE INVENTION

[0002] The present invention relates to computer-based reasoning systems and more specifically to explainability and decisions in computer-based reasoning systems.BACKGROUND

[0003] Machine learning systems can be used to predict outcomes based on input data. For example, given a set of input data, a regression-based machine learning system can predict an outcome. The regression-based machine learning system will likely have been trained on much training data in order to generate its regression model. It will then predict the outcome based on the regression model.

[0004] One issue with current systems is, however, that those predicted outcomes appear without any indication of why a particular outcome has been predicted. For example, a regression-based machine learning system will simply output a predicted result, and provide no indication of why that outcome was predicted. When machine learning systems are used as decision-making systems, this lack of visibility into why the machine learning system has made its decisions can be an issue. For example, when the machine learning system makes a prediction, which is then used as part of a decision, that decision is made without knowing why the machine learning system predicted that particular outcome based on the input. When the prediction or subsequent decision is wrong, there is no way to trace back and assess why the prediction was made by the machine learning system.

[0005] Further, many system do not know when they have “enough” data or, when presented with a dataset, do not know if there are data elements (such as cases and / or the features of the cases) that can be excluded or should be included.

[0006] The techniques herein overcome these issues.

[0007] The approaches described in this section are approaches that could be pursued, but not necessarily approaches that have been previously conceived or pursued. Therefore, unless otherwise indicated, it should not be assumed that any of the approaches described in this section qualify as prior art merely by virtue of their inclusion in this section.SUMMARY

[0008] The claims provide a summary of the invention.BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In the drawings:

[0010] FIG. 1 is a flow diagram depicting example processes for explainable and automated decisions in computer-based reasoning systems.

[0011] FIG. 2 is a block diagram depicting example systems for explainable and automated decisions in computer-based reasoning systems.

[0012] FIG. 3 is a block diagram of example hardware for explainable and automated decisions in computer-based reasoning systems.

[0013] FIG. 4 is a flow diagram depicting example processes for controlling systems.

[0014] FIG. 5 is a flow diagram depicting example processes for creation of well-balanced computer-based reasoning systems.DETAILED DESCRIPTION

[0015] In the following description, for the purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, that the present invention may be practiced without these specific details. In other instances, well-known structures and devices are shown in block diagram form in order to avoid unnecessarily obscuring the present invention.General Overview

[0016] The techniques herein provide for explainable and automated decisions in computer-based reasoning systems. In some embodiments, the computer-based reasoning system is a case-based reasoning system. In case-based reasoning systems, in some embodiments, an input context may be used to determine a suggested action. The input context may have multiple features and those features may be used to find the “most similar” case or cases in the case-based reasoning model. “Similarity” may be determined using a premetric, as discussed elsewhere herein. In some embodiments, a single most similar case, multiple similar cases, or a combination of multiple similar cases can be returned as a suggested action or actions.

[0017] In addition to the suggested action, explanation data may also be determined and returned with the suggested action. The explanation data may include, in some embodiments, a certainty score, such as a conviction score for the suggested action. The certainty score may be determined in numerous ways, such as those discussed herein. The explanation data may also (or instead) include (i) mean change in accuracy; (ii) robust mean change in accuracy; (iii) case contribution; (iv) robust case contribution; (v) local and global case feature residuals; (vi) robust local and global case feature residuals; and / or other measures such as the ones discussed herein. In some embodiments, the explanation data may be used to determine whether to perform a suggested action.

[0018] Some embodiments herein include the ability to determine whether to include or exclude particular data elements, such as data cases and / or their features.Example Process for Explainable and Automated Decision Making in Computer-Based Reasoning Systems

[0019] FIG. 1 is a flow diagram depicting an example process for explainable and automated decisions in computer-based and case-based reasoning systems. Generally, process 100 begins by receiving 110 a request for a suggested action. Numerous examples of requests for suggested action are described herein. After the request for a suggested action has been received 110, a determination 120 is made for one or more suggested cases. The request for a suggested action received 110 may include an input context that can be used to determine 120 one or more suggested cases (e.g., for use in control of a system). Each of the one or more suggested cases may be associated with an action. As such, determining 120 one or more suggested cases may also include determining 120 one or more suggested actions to be taken. A machine learning systems might simply stop at 120 and provide the one or more suggested actions (e.g., for control of a system). Techniques herein, however, include determining 130 a suggested action and determining 140 explanation data related to the suggested action. For example, after determining 120 suggested cases, which includes suggested actions, a suggested action may be determined based on the one or more suggested actions. Determining 130 a suggested action may be accomplished by any of the techniques described herein, including combining the suggested actions together to form a new suggested action, picking one of the suggested actions to be the suggested action, and the like. After determining 130 a suggested action based on the one or more suggested actions, explanation data may be determined 140. Explanation data may take many forms, including certainty scores, conviction scores, similarity measures, prototype identity, distance measures, such as distance to the nearest contrary case, and the like. After determining 140 the explanation data and determining 130 the suggested action, a response 150 may be sent with the suggested action and the explanation.

[0020] A determination 160 may be made based on the explanation data whether to cause the performance of the suggested action and / or provide an explanation in response to the request. If the determination 160 made on the explanation data indicates 170 that performance should be caused, then performance of the suggested action is caused 199. Causing performance of the suggested action may include controlling a real-world system, such as a self-driving car or any of the other examples discussed herein. If the determination 160 does not indicate 170 performance of the suggested action, then the explanation data may be provided 180 along with the suggested action related to the explanation data. In some embodiments, the suggested action may still be performed, a different action may be performed, or no action may be performed as part of performing 181.FURTHER EXAMPLES

[0021] Returning to the top of process 100, a request may be received 110 for a suggested action to be taken. Receiving 110 the request for a suggested action may take many forms, such as an API call, a remote procedure call, activating a motor or other actuator, setting a voltage, receiving digital information via http, https, ftp, ftps, and / or the like. The format of the request may be any appropriate format, including an indicator that an action is being requested, and the context in which the action is being requested.

[0022] After an input context is received 110, a case-based reasoning system may be queried based on the provided context as part of the request in order to determine 120 one or more candidate cases. In some embodiments, determining 120 the one or more candidate cases may include comparing the input context in the received 110 request to the elements in a case-based reasoning model. In some embodiments, this received 110 context is called the input context, or the current context. In some embodiments, the input context is compared to cases in the case-based reasoning model. The cases that are most similar to the input context, may be used as the candidate cases. In some embodiments, the number of candidate cases to determine may be any appropriate number including 1, 2, 5, 10, etc. The number of candidate cases may also be a function of the number of cases in the model (e.g., a percentage of the model). In some embodiments, the candidate cases may be determined as those within a certain threshold distance of the input context (e.g., as measured by a distance measure or other premetric, such as those discussed herein).

[0023] In some embodiments, determining 120 one or more candidate cases based on the input context may include determining a region around the input context and determining the most similar one or more cases that are outside of that region. For example, the cases that are within a region may be those cases that are within a certain distance (for example, using one of the distance measures discussed herein). The region may be defined, in some embodiments, as the most similar N cases, the most similar P percent of the model. In some embodiments, the region may be also based on a density measure. In some embodiments, the region may be defined as a function of density. For example, the density of cases around the input context may be above a certain threshold density and as you move away from the input context, the density of cases may drop, and upon dropping that may define the boundary of that region. Once that region around the input context is determined, then the one or more candidate cases are determined 120 as those most similar to the input context while being outside the region.

[0024] If only a single candidate action is determined 120, then that candidate action may be determined 130 as the suggested action. If multiple candidate actions are determined 120, then any appropriate technique can be used to determine 130 the suggested action based on those two or more candidate actions. For example, if the candidate cases all have the same candidate actions, then that (identical among the candidate cases) candidate action may be used as a suggested action. If the candidate actions in the candidate cases previously determined 120 are different, then another mechanism may be used, such as voting among the candidate actions, taking the candidate action that appears most often, determining an arithmetic mean or mode of the candidate actions, harmonic mean, inverse distance weighted mean (e.g., where the weights are based on distance of the related context to the input context, based on conviction, etc.), Łukaszyk-Karmowski metric weighted mean, kernel methods, fisher kernels, radial basis function, and / or the like. In some embodiments, determining the suggested action may include choosing based on the candidate cases and action using feature weights. The feature weights may be chosen based on conviction of the features, certainty scores, or any other appropriate mechanism. For example, some embodiments may derive feature weights based on one of the feature mean change in accuracy scores (e.g., robust) in distance computations such as those described herein (e.g., as part of process 100, 400, and / or 500). As a more specific example, weight for feature N (wN) may be calculated based on the robust MCA score (such as robust feature mean decrease in accuracy) for feature N. A distance measure may then use those weights to calculate distance with an equation such as (w1*X{circumflex over ( )}p+w2*Y{circumflex over ( )}p+ . . . ){circumflex over ( )}(1 / p)). As a further example, the feature weight may be based on the certainty score based using any appropriate equation. For example, in some embodiments, the feature weight may be calculated based on the (robust) mean increase in accuracy (e.g., a fixed X times the robust mean increase in accuracy) and / or may be lower as (robust) mean decrease in accuracy. In some embodiments, the mean change in accuracies for each feature may be “normalized” (e.g., mapped from 0.0 to 1.0) before being used to calculate features weights and / or the normalized feature weights may be used as the feature weights.

[0025] Whether using MDA or MIA, we may use the value to proportionally affect any feature weight, since, in some embodiments, a larger MDA value may mean the feature impacts accuracy more significantly and thus could be weighted as such. In some embodiments, each MCA value may be used as-is as a feature weight, or scaled (or normalized) in some manner as a feature weight, it may be used to scale an existing feature weight, and / or any other particular equation can be used.

[0026] Further, the candidate actions in the candidate cases previously determined 120 may be used to determine if any action is taken, for example, the action may not be taken unless all of the candidate actions are equal, within some threshold of each other (e.g., as measured by distance or similarity), meet the criteria of a diversity or variance measure, if any action values in the candidate set are equal to specific values, if any action values in the candidate set are outside of specified bounds, etc. For example, in some embodiments, determining 130 a suggested action based on the respective one or more candidate actions includes determining a weighting for each action of the respective one or more candidate actions based on a function of a distance between the input context and each of the one or more candidate cases. The suggested action may then be determined 130 based on the weighting of each action of the respective one or more candidate actions. The weighting for each candidate action may be, as noted above, based on the distance between that candidate action and the input context. Any appropriate distance metric or pre-metric may be used, including Euclidean distance, Minkowski distance, Damerau-Levenshtein distance, Kullback-Leibler divergence, 1-Kronecker delta, and / or any other distance measure, metric, pseudometric, premetric, index, and the like. As noted elsewhere herein, feature weights may be used as part of the distance metric or pre-metric to take into account certainty scores, such as mean change in accuracy scores.

[0027] Explanation data is determined 140 related to the suggested action. For example, in some embodiments, a certainty score may be determined 140 for the suggested action. In some embodiments, determining the certainty score for the suggested action may be accomplished by removing the suggested case from the case-based reasoning model and determining a conviction measure associated with adding the suggested case back into the case-based reasoning model. Numerous examples of certainty measures and conviction functions are discussed elsewhere herein. In some embodiments, the determined 140 certainty score(s) may be one or more (i) mean change in accuracy; (ii) robust mean change in accuracy; (iii) case contribution; (iv) robust case contribution; (v) local and global case feature residuals; (vi) robust local and global case feature residuals; and / or other measures such as the ones discussed herein.

[0028] In some embodiments, as depicted in FIG. 1, the suggested action may be determined 130 before the explanation data is determined 140. Embodiments also include determining 130 and 140 the suggested action and the explanation data simultaneously or determining 140 the explanation data before determining 130 the suggested action.

[0029] After the certainty score has been determined 140, the suggested action and the certainty score may be sent in response 150 to the original request for a suggest action. When the certainty score is determined 160 as being beyond a certain threshold, a decision 170 is made to cause 199 control of a system based on the suggested action. For example, if the certainty score is above a certain threshold, then a controlled system may be confident that the suggested action should be performed without further review or explanation. As such, when that certainty score is above that threshold, the control of the system may be caused 199 based on that suggested action. Controlling a system based on suggested action is explained in detail elsewhere herein. As one example, if a certainty score for a suggested action for a self-driving car is above a certain threshold, then that action may be performed for the self-driving car.

[0030] As another example, in some embodiments not depicted in FIG. 1, if a certainty score is not beyond a threshold, then the case associated with the suggested action may be removed from the case-based reasoning model. For example, if the certainty score (e.g., based on a robust case MDA) is not beyond a certain threshold, then the case associated with the suggested action may be removed from the model.

[0031] When the certainty score for a suggested action is determined 160 to not be beyond a certain threshold, then a decision 170 is made to determine and provide 180 one or more explanation factors for the suggested action. For example, the explanation factors may include the certainty score. In some embodiments, additional explanation factors, such as those discussed herein, may be determined and provided 180. Further, when the certainty score is not beyond a certain threshold, the one or more explanation factors may be provided 180 in response to the original request for a suggested action, to the original requestor (in addition to or instead of the suggested action). For example, if the certainty score is not beyond a certain threshold, then the certainty score and the suggested action may both be provided to a human operator of the requesting system, who may then review the suggested action and the certainty score in order to determine what action to take next. As depicted in FIG. 1, the system may optionally perform 181 an action based on the suggested action and / or the explanation. For example, if a human operator of a self-driving car is provided with a suggested action for the self-driving car and the certainty score, which is below a certain threshold, that human operator may decide to continue to perform the suggested action, perform a different action, or no action at all.Example Processes for Creation of Well-Balanced Computer Based Reasoning Systems

[0032] As noted elsewhere herein, in some embodiments, the certainty score may be used as part of a decision whether to include or exclude data from a model. For example, if the certainty score is beyond a certain threshold, then the data may be determined whether to be included or excluded from the model. This determination can be made after a model is created (e.g., by performing the process on the set or a subset of the training data) and / or as the data is being collected. In some embodiments, as depicted in FIG. 5, a certainty score may be used to reduce the size of a model in a computer-based reasoning system. For example, in some embodiments, if a case does not contribute much information (such as accuracy) to a model, then it may be removed from the model. As a more specific example, a feature or case accuracy score may be determined 520 for multiple cases in a case-based reasoning model (e.g., tens of, hundreds of, thousands of, or more). Those cases that meet a checked inclusivity condition 530, (e.g., excluding based on high robust mean decrease in accuracy; etc.) may be included 550 or excluded 540 from the computer-based reasoning model, depending on the inclusivity condition. In some embodiments, only those cases that reach an inclusion threshold may be included 550 in the computer-based reasoning model, or only those cases that reach an exclusion threshold may be excluded 540. In some embodiments, both an exclusionary lower threshold and inclusionary upper threshold may be used. In other embodiments, conviction may be used to rank features and the top N cases may be those included in the models. As noted elsewhere herein, excluding cases from the model, which reduces the size of the model, may be beneficial in embodiments where the model would otherwise cause the need extra storage and / or computing power. In some embodiments, smaller models also reduce the risk profile of retaining data. In many computer-based reasoning systems, smaller models (e.g., with fewer cases) may be more efficient to store and when making decision. The reduced models may be used, for example, with any of the techniques described herein.

[0033] Returning to the top of process 500, in some embodiments, certainty scores (such as familiarity conviction and / or prediction conviction) may be used to determine whether to include or exclude cases, such as context action pairs. For example, training cases in a self-driving vehicle computer-based reasoning model may be tested in order to determine whether to include or exclude those particular data elements or cases (e.g., whether to “prune” those cases and / or “compress” the model). In some embodiments, the training cases may be assessed before they are included in a training data set. This can help a system determine whether to include new training data cases in a training data set or computer-based reasoning model, or whether to exclude those cases.

[0034] As discussed elsewhere herein, information on the assessment whether to include 550 or exclude 540 cases can also be used to help direct training. For example, if a new training case is included 550 in the training data set and / or computer-based reasoning model, then a human or automated operator may be given that information in order to encourage more data along those lines. If a case is excluded 540, then an indication can be sent to an operator in order to indicate to not include or produce more training data along those lines. As an example, in the vehicular context, cases may be related to driving on a highway. The contribution for the inclusion of the highway driving cases can be determined 520. And the determination whether to select or include 550 or exclude 540 the case can then be made. After that, control of the vehicle could be caused 599 using the updated computer-based reasoning model.

[0035] Returning to the top of FIG. 5, the process receives 510 a request to determine whether to include particular data in a computer-based reasoning model. The request may be received 510 using any appropriate communication mechanism, such as HTTP, HTTPS, FTP, FTPS, an API call, a remote procedure call, a function or procedure call, The received 510 request may be a request to reduce the size of a computer-based reasoning model (or assess whether to add a new case to a computer-based reasoning model). For example, a system or device (not depicted in FIG. 2), may request the reduction in model size for a computer-based reasoning model to the training and analysis system 210. In other embodiments, the training and analysis system 210 may initiate the model reduction request on its own (e.g., when a model reaches a certain threshold or at a fixed interval). In some embodiments, the request received 510 can be to reduce the model to a particular size, by a certain amount, or based on the informational value of the elements of the model (described more herein). As described herein, reducing the size of the computer-based reasoning model while maintaining much of the informational value of the model is beneficial. The model being culled could be any appropriate model, including computer-based reasoning models for self-driving vehicles, manufacturing control, federated system control, labelling images, decisions on claims (e.g., how to fund an insurance claim based on the factors of the case), and the like.

[0036] In some embodiments, the request to determine whether to include the one or more particular data features or cases in a computer-based reasoning model is received 510 as part of training. For example, if the training is ongoing, the request received 510 may be a request to determine whether to add a newly-received case to the computer-based reasoning model. Using the vehicular example, if Alicia is training a self-driving car computer-based reasoning system, and data (e.g., context-action pairs) is being collected for that drive (perhaps in real time, perhaps after the fact, but before the data is added to the model), then process 500 may be used to determine whether each case or data elements for Alicia's training data should be added to the computer-based reasoning model. Determining whether to add the elements before they are added to the computer-based reasoning model will allow the model to maintain a smaller size (by not adding elements that do not provide sufficient informational value), while still adding those elements that do provide informational value. As discussed herein, having a smaller model with high informational content can be beneficial.

[0037] One or more certainty scores may be determined 520 for the cases or data elements. For example, certainty scores, such as (i) mean change in accuracy; (ii) robust mean change in accuracy; (iii) case contribution; (iv) robust case contribution; (v) local and global case feature residuals; (vi) robust local and global case feature residuals, etc. for the case(s) or data elements may be determined. Determining (i) mean change in accuracy; (ii) robust mean change in accuracy; (iii) case contribution; (iv) robust case contribution; (v) local and global case feature residuals; (vi) robust local and global case feature residuals, etc. are described elsewhere herein. In some embodiments, one or more targeted or untargeted certainty scores may be determined. In some embodiments, one or more of (i) mean change in accuracy; (ii) robust mean change in accuracy; (iii) case contribution; (iv) robust case contribution; (v) local and global case feature residuals; (vi) robust local and global case feature residuals, etc. (or another certainty score) may be determined 520. Further, both or either of targeted and untargeted certainty scores (e.g., for any of (i) mean change in accuracy; (ii) robust mean change in accuracy; (iii) case contribution; (iv) robust case contribution; (v) local and global case feature residuals; (vi) robust local and global case feature residuals, etc.) may be determined 520.

[0038] After the certainty scores have been determined 520, then a check 530 is made whether the certainty scores meet an inclusivity condition. As used herein, an inclusivity condition may be a condition to either include or exclude a case. For example, a check 530 may be made to determine whether the case accuracy score is beyond (e.g., above) a first threshold, whether the case contribution score is beyond (e.g., below) a second threshold, and / or whether the case feature residual is beyond (e.g., below) a third threshold, etc., If those condition(s) is (are) met, then, in some embodiments, the case may be excluded 540 from the model. As a more specific example, when the robust case mean decrease in accuracy is low (e.g., beyond a threshold) then, in some embodiments, it may be the case that the case is easy to “label” or associate with an outcome, but is not needed in the model (e.g., it does not provide much or any additional information), and it therefore may be excluded 540 from the model. As another specific example, when the case contribution score is beyond a threshold (e.g., lower threshold), then the case may not contribute significantly to the model and therefore be excluded from the model. In some embodiments, the case can be excluded without reducing the overall effectiveness of the model by much. The thresholds for (i) mean change in accuracy; (ii) robust mean change in accuracy; (iii) case contribution; (iv) robust case contribution; (v) local and global case feature residuals; (vi) robust local and global case feature residuals, etc. may be any appropriate threshold including, a value scaled by the size of the model, a value scaled by the accuracy of the model, a fixed value, etc. If the conviction measure is used instead of conviction (without being taken as a ratio to the expected value), then additional thresholds may be appropriate including a fixed value of entropy, entropy scaled based on the model, entropy scaled based on other measures of the model, etc.

[0039] In any of the above conditions, it may be that the decision to include or exclude a case is made on a case-by-case basis, or, in some embodiments, the cases may be considered together or jointly and the decisions may be made based on the relative conviction measures for the cases. For example, only the top (or bottom) N cases for a function of distance contribution, residual, targeted prediction conviction, and / or familiarity conviction may be included in the model, and the rest may be excluded. Further, two or more of the conditions may be considered together when making a decision to include or exclude a case.

[0040] Excluding 540 a case from a model may include, in some embodiments, removing the case and / or a pointer to a case from a file, database, or other storage associated with the model. Including 550 a case in a model may include, in some embodiments, adding the case and / or a pointer to a case to a file, database, or other storage associated with the model.

[0041] In some embodiments, determining 530 whether cases meet the inclusivity condition includes determining whether the cases are “archetype” cases. For example, an inclusivity condition can include determining whether both the case accuracy and case contribution are high (e.g., each beyond (e.g., above) a particular threshold). If it is determined that both case accuracy and case contribution are high, the case may be considered an archetype, and therefore may be included 550 in the model. If the inclusivity condition is not met, then the case may be excluded 540 from the model. Relatedly, the inclusivity condition could be determining the top N cases or top P percent of cases (e.g., percent of cases in the model) for a combined case accuracy; case contribution; case feature residuals; global case feature residual conviction; local case feature residual conviction, etc. score (e.g., as calculated by E*(case accuracy score)+F*(case contribution score); C*(case accuracy score){circumflex over ( )}A+D*(case contribution score){circumflex over ( )}B; a combination of two or more of the preceding, or the like, where A, B, C, D, E, and F may each be positive (or negative) numbers (or fractions), including zero). If a particular case meets the inclusivity condition of being one of the top N cases (or top P percent of cases), then that particular case may be included 550 in the model, otherwise, it may be excluded 540. In some embodiments, high prediction conviction and moderate familiarity prediction may also be used as an inclusivity condition.

[0042] After determining whether to include 550 or exclude 540 a case, then a determination 559 is made whether to consider more cases or data elements for inclusion 550 or exclusion 540. If there are more cases to consider, then certainty score(s) are determined 520 for the next cases, and process 500 proceeds. If there are no more cases to consider for exclusion, then control of a controllable system may be caused 599. Causing 599 control of a controllable system is described elsewhere herein.

[0043] In some embodiments, when determining 559 whether to continue including 550 and / or excluding 540 more cases can include including or excluding cases until a space goal, memory size goal, and / or number of cases goal is met. For example, if the received 510 request includes a number of cases by which to reduce the model, then cases may be removed until that number of cases are excluded. If the received 510 request includes a total number of cases to include in the model, then cases may be included 550 until that number of cases have been included in the model.

[0044] As discussed elsewhere, the techniques for inclusion 550 or exclusion 540 of cases based on certainty scores (e.g., (i) mean change in accuracy; (ii) robust mean change in accuracy; (iii) case contribution; (iv) robust case contribution; (v) local and global case feature residuals; (vi) robust local and global case feature residuals, etc. scores (or a combination)) can be useful when the goal of using the techniques herein is to balance information in the model and model size (whether pruning an existing model or building a model as cases are considered, e.g., during training). In some embodiments, the certainty score thresholds are numeric thresholds (e.g., 0.1, 1, 2.1, 100, etc.). The certainty score is then compared to that threshold in order to make the determination of whether to include 550 or exclude 540 the one or more cases. In some embodiments, as discussed elsewhere herein, it may be beneficial to not add (exclude 540) cases to the model when they do not provide sufficient additional information to the computer-based reasoning model. For example, a low pass filter may remove anomalies, and a high pass filter may remove redundancies. So, in some embodiments, the certainty score is compared both to high and low thresholds, and is only included 550 if the certainty scores are within bounds (or not outside the bounds) of the two thresholds.

[0045] In some embodiments, the received 510 request may request a particular size of computer-based reasoning model. The element with the top N “scores” with respect to a particular measure are the only ones included 550 in the computer-based reasoning model, and the rest are excluded, where N may be calculated as the number of cases that meet the particular size for the computer-based reasoning model. For example, the N cases with the highest case accuracy and lowest case contribution scores may be selected for inclusion 550 in the model and the rest of the cases may be excluded 540. Limiting the model to a certain number (N) of cases may be a useful approach when a certain limit on the computer-based reasoning model size is desired for reasons such as memory availability, tolerable latency for the model to respond, and computational effort required. In examples and embodiments in which a request for reduction in computer-based reasoning model of a particular size is received 510 (e.g., removing D cases), then the cases with the lowest D scores on a particular measure may be excluded 540 from the model.

[0046] Consider the example of Alicia training a self-driving vehicle simulation. As the new cases (e.g., context-action pairs related to the context of the vehicle and the actions being taken) are received, each may be assessed with respect to the computer-based reasoning model being built (e.g., using a process discussed herein such as process 500). If the goal is to limit the addition of new cases to only those with certain additional information gain, then the condition may be checked 530, and the case may only be included 550 to the computer-based reasoning model if the condition indicates inclusion, otherwise, the case may be excluded 540. If the goal is to limit the computer-based reasoning model size to a particular threshold, then all candidate cases may be assessed, and only those with the for which the check 530 indicates inclusion 550 are added to the computer-based reasoning model (e.g., the cases with the top N certainty scores, where N is the goal for the number of cases in the computer-based reasoning model).

[0047] Going further into the example, cases that meet the checked 530 conditions may be those that are least related to previous cases in the computer-based reasoning model. For example, if Alicia has not previously driven over railroad tracks, then cases (e.g., context-action pairs) related to actions taken in the context of driving over railroad tracks may be the most surprising and have the most information gain. If Alicia has driven for many miles on straight stretches of highway during daylight, then additional cases in that context may not be excluded 540 based on the checks 530.

[0048] As another example, some embodiments are related to systems for labeling images. Human experts may label images in order to identify features of the images and / or the subject of the image. These labels, and the contexts in which they were made (the image being the primary source of the context), may be used as training data for a computer-based reasoning model. The techniques herein could be used to determine whether to include 550 each new case or data feature (e.g., a whole or part of a context-label pair), and only include 550 those cases or data features that are determined to not be excluded 540 based on checking 530 conditions. Similarly, a computer-based reasoning model for image labeling could also be pruned, assessing each case and including only the cases with the top N scores for the conditions checked 530 and / or excluding the cases with the bottom D scores for the conditions checked 530.

[0049] As alluded to in the examples above, in some embodiments, more than one embodiment or approach described herein may be used (not depicted in FIG. 5). For example, during the training of a computer-based reasoning system, only cases that meet the checked 530 conditions may be included 550 to the computer-based reasoning model. Once the training is over, the model may be pruned (e.g., limiting the model to the top N highest scoring case for the checked 530 conditions and / or removing the bottom D lowest scores on the checked conditions). Further, in some embodiments, the criteria used for adding (or pruning) may change over time. For example, the threshold to add new cases to a computer-based reasoning model may increase as the model grows, making it yet harder for a case to be included 550 in the model. Additionally, or in the alternative, the threshold to add new cases may decrease over time, allowing cases to be added even if they have lower scores on the checked 530 conditions. Further, the threshold may stay the same and, due to the decreased relative informativeness of cases in the same training domain, fewer cases will be accepted into the model as the model becomes asymptotically representative of the training domain. In this way, the techniques recognize that, as a computer-based reasoning model grows, it becomes increasingly difficult for new cases to meet the conditions for inclusion.

[0050] As depicted in FIG. 5, the process 500 may optionally determine 559 whether other cases should be included or excluded in the computer-based reasoning model. In the embodiments and examples in which a model is being built (e.g., during training), this includes new cases being considered for inclusion 550. For example, as Alicia is driving, new cases, such as context-action pairs can be assessed for inclusion in the computer-based reasoning model using the techniques herein. In the context of reducing model size once it has been built, the process 500 may be run for each case (or some subset of them) in the computer-based reasoning model. As noted elsewhere herein, the cases of an existing computer-based reasoning model may be assessed until a threshold number (D) have been excluded from the computer-based reasoning model and / or a threshold number (N) have been selected for inclusion in the computer-based reasoning model.

[0051] In some embodiments, when the determined to exclude 540 a case, the techniques may include flagging that the case is being excluded or included (not depicted in FIG. 5). This can be useful, for example, during the collection of training data. For example, if Alicia is driving in a context where much data has already been collected (e.g., daytime highway driving and straight sections of road), many of those cases may be excluded 540. As such, Alicia could be given an indication (e.g., in the form of an audio cue from a computer-based reasoning training and analysis system 210 within the vehicle, or the like) that driving in the current context was not providing much additional information to the computer-based reasoning model. In response to the flagging, Alicia might exit the highway to start training the computer-based reasoning on side streets. Techniques and embodiments such as this not only help control the size of the computer-based reasoning model but also could be helpful in reducing the amount of time and effort needed to train the computer-based reasoning model by helping focus the training. Further, an indication that incoming cases are not providing much additional information can also be an indication that the computer-based reasoning model is ripe for pruning and such an indication could be used to prompt the start of process 500.

[0052] In some embodiments, another way a model may be culled by removing cases associated with anomalous actions (not depicted in FIG. 5). An anomaly could be flagged during later operation (e.g., if an anomalous action occurs, it could be flagged by an operator of the system being controlled). In some embodiments, the case, context-action pair, or data element associated with the anomalous action could be flagged for removal. The anomalous cases could be removed from the model. Removing anomalous data not only can benefit the use of the model because anomalous decision will no longer (or less likely) be made using the computer-based reasoning model, but also the computer-based reasoning model will be smaller, which has the benefits discussed herein.

[0053] When an anomaly is detected, more data “around” the case or data element associated with the anomaly might be needed. For example, if an anomaly is detected, the context in which the anomaly occurred might be ripe for additional cases. This could be “flagged” for a trainer, who could then focus training on that context. These additional cases could then be considered for addition to the computer-based reasoning model in the manner described herein.

[0054] When the model is ready for use it may be provided to a control system (e.g., control system 220 of FIG. 2) for causing 599 control of a controllable real-world system. One example of controlling a system is controlling an image labelling system which is discussed with respect to FIG. 4, and elsewhere herein.

[0055] Another example of causing 599 control of a real-world system is causing control of a self-driving vehicle. Vehicle-related cases and control are discussed with respect to FIG. 4 and elsewhere herein, and can include obtaining contextual data for a current context for the self-driving vehicle (e.g., what context is the vehicle in at the moment), determining an action based on the current context, and causing performance of the determined context for the self-driving vehicle.Case and Feature Mean Change in Accuracy Examples, Including Robust Mean Change in Accuracy

[0056] The mean change in accuracy “MCA” (e.g., mean decrease in accuracy “MDA” or the mean increase in accuracy “MIA”) score(s) of a case in the case-based reasoning model is, in some embodiments, the mean decrease in accuracy of each influential case (case that contributes to a decision aka “local model” or “local cases”) used to make a prediction. In some embodiments, the MDA for a case “case MDA score” can be used to show how much influence each case has on the accuracy of a prediction, where positive values signify a case increases accuracy and negative values signify it decreases accuracy.

[0057] In some embodiments, as part of determining 140 explanation data, case MDA scores may be determined. As part of this determination 140, in some embodiments, the case MDA score is computed via LOO (leave-one-out), each local case's ‘decrease in accuracy’ is computed as accuracy of making a prediction with the case minus the accuracy of making the prediction without the case (case held out). To compute these accuracies, for each of the one or more candidate cases, some embodiments iterate over all of the one or more candidate cases in that particular candidate cases' local model, which may be different than the one or more candidate cases but may have overlap. Some embodiments include each one of these cases and predict its value to establish the accuracy “with” the candidate case. The embodiments may then repeat this with the local case held out, to establish the accuracy with the case removed. The resultant calculation is then the mean change (e.g., decrease) in accuracy of all the cases in each local model. For example, if an influential case has a case MDA score of 0.001 and the average accuracy is 95%, the small positive value implies that predictions with the case are only improved slightly so the case may be removed without a notable loss to accuracy. A negative value may signify that the case may be erroneous and improperly decreasing accuracy, or it may be a region of the model that has too little data to be accurate. In some embodiments, case MDA scores can be calculated for any feature data type. For example, if applied to continuous values it can take on a difference (e.g., among the values of the continuous feature), or if applied to categorical values, it can take on a difference in accuracy.

[0058] Some embodiments include the calculation of a “robust case MDA score” as an enhancement to case MDA score. Instead of just holding out a given case, the embodiment may sample from the power set of all possible combinations of local cases (e.g., a set of all possible subsets of local cases) and assess accuracy across all samples with and without the case in question in order to determine the MDA for each sample / subset. For example, a subset of two or more of the local cases can be held out and the accuracy with and without that that subset can be calculated. This can be repeated more than once, and the average of the MDAs for all of the sampled subsets can be determined and used as explanation data.

[0059] Embodiments herein generally are discussed in terms of mean decrease in accuracy, or MDA. In some embodiments, instead of or in addition to calculating MDA score(s), a mean increase in accuracy (“MIA”) may be calculated. Together mean increase in accuracy (MIA) and mean decrease in accuracy (MDA) scores may be termed mean change in accuracy or MCA. In some embodiments, as part of determining 140 explanation data, case MCA scores may be determined. As part of this determination 140, in some embodiments, the case MCA score is computed via add-one-in, each local case's ‘increase in accuracy’ is computed as accuracy of making a prediction with the case minus the accuracy of making the prediction with the case (case added in). Some embodiments include the calculation of a “robust case MIA score” as an enhancement to case MIA score. Instead of just adding in a given case, the embodiment may sample from the power set of all possible combinations of local cases (e.g., a set of all possible subsets of local cases) and assess accuracy across all samples without and with the case in question in order to determine the MIA for each sample / subset. For example, a subset of two or more of the local cases can be added in and the accuracy without and with that that subset can be calculated. This can be repeated more than once, and the average of the MDAs for all of the sampled subsets can be calculated.

[0060] The case MCA (MDA or MIA) scores, or robust case MCA (MDA or MIA) scores, may then be sent in the response 150 to the request for the suggested action along with the suggested action. When the case MCA (MDA or MIA) scores are within a certain threshold, a system may then automatically cause 199 control based on the suggested action. For example, if the case MCA (MDA or MIA) scores are beyond a threshold, then a system may be confident in performing the suggested action without human review. When the case MCA (MDA or MIA) scores are not beyond that certain threshold, however, one or more explanation factors may be determined and provided 180 in response to the request for suggested action. For example, if the case MCA (MDA or MIA) scores are not beyond the certain threshold, then that information may be provided as one or more of the explanation factors, possibly also with the cases in the regional model. A human operator may then review that information in order to determine whether to perform 181 the suggested action, perform 181 a different action, or perform no action at all.

[0061] Further, some embodiments may include and / or exclude features in order to determine the feature MDA and / or feature MIA score(s) for each feature, where accuracy calculations are made by holding out and adding in features. Additional embodiments may calculate a “robust feature MIA score” and / or a “robust feature MDA score”. Instead of just adding in a given feature, the embodiment may sample from the power set of all possible combinations of local cases (e.g., a set of all possible subsets of local cases) and assess accuracy across all samples with and without the case in question in order to determine the MDA or MIA score(s) for each sample / subset. For example, a subset of two or more of the local cases can be held out and the accuracy with and without that that subset can be calculated. This can be repeated more than once, and the average of the MIAs or MDAs for all of the sampled subsets can be determined.

[0062] The feature MCA (MDA or MIA) scores, or robust feature MCA (MDA or MIA) scores, may then be sent in the response 150 to the request for the suggested action along with the suggested action. When the feature MCA (MDA or MIA) scores are within a certain threshold, a system may then automatically cause 199 control based on the suggested action. For example, if the feature MCA (MDA or MIA) scores are beyond a threshold, then a system may be confident in performing the suggested action without human review. When the feature MCA (MDA or MIA) scores are not beyond that certain threshold, however, one or more explanation factors may be determined and provided 180 in response to the request for suggested action. For example, if the feature MCA (MDA or MIA) scores are not beyond the certain threshold, then that information may be provided as one or more of the explanation factors, possibly also with the features in the regional model. A human operator may then review that information in order to determine whether to perform 181 the suggested action, perform 181 a different action, or perform no action at all.

[0063] In some embodiments, determining a robust measure, such as robust case or feature MCA (MDA or MIA) score(s) includes using a set of cases to determine the robust case or feature MCA (MDA or MIA) score(s), and, further, reusing the set of cases to determine other robust case or feature MIAs or MDAs scores. Consider, for example, some embodiments where robust feature MDA is being determined. The following data may be used to predict “Feature A”:

[0064] CaseFeature AFeature BFeature CFeature D1—ValB1ValC1—2—ValB2—ValD23——ValC3ValD34———ValD4where “−” dashes represent missing values. In some embodiments, the predicted values for Feature A are then compared to the actual value for Feature A (which may have been “left out” as discussed above), and that is used to compute the robust feature MDA score.

[0065] The following values may then be used to predict Feature B:

[0066] CaseFeature AFeature BFeature CFeature D3——ValC3ValD34———ValD45ValA5——ValD56ValA6—ValC6—

[0067] In some embodiments, some of the cases can be reused from the prediction of Feature A to the prediction of Feature B. For example, for case 3 in the above example, if all missing features are predicted, those prediction may be used to help determine robust feature MDA score for both Feature A and Feature B. In some embodiments, this reuse may be beneficial because it may speed up the calculation of feature MDA score across features. Some embodiments include checking to ensure there are at least a threshold number cases for each feature. Further, some embodiments include determining a total number of samples to use for all of the features based on the likelihood of there being at least a threshold number of cases for predicting each feature.

[0068] Some embodiments include using these same techniques for robust case MDA and MIA score(s), as well as robust feature MIA score(s).

[0069] In some embodiments, robust case and feature MCA (MDA or MIA) score(s) may be used as explanation data, as discussed with respect to FIG. 1. In some embodiments, in addition to and / or instead of being used as explanation data, robust case and feature MCA (MDA or MIA) score(s) may be used to determine whether to keep a case or feature in a model. For example, if a robust case and feature MCA (MDA or MIA) score(s) is not beyond a threshold, then the corresponding case or feature may be excluded from the case-based reasoning model. It may be beneficial, in some embodiments, to remove cases and / or features from case-based reasoning models when the case and / or feature does not provide sufficient additional information. For example, it may be in the embodiment that a low robust case MDA score corresponds with that case contributing little additional information. In some embodiments, removing cases and / or features that provide less than a threshold of additional information may be beneficial if the additional information provided by the case and / or feature is not sufficient to justify the larger model size. A smaller model size, in some embodiments, provides a technical benefit of using less computation when used, and may have a smaller storage size, to name just a few benefits.

[0070] As noted above case and feature MCA (MDA or MIA) scores are forms of a “case accuracy scores” (or “feature accuracy scores” in the case of feature measures). Collectively these may be termed “data accuracy scores”. The robust case and feature MCA (MDA or MIA) scores are forms of a “robust case accuracy scores” (or “robust feature accuracy scores” in the case of feature measures). Collectively these may be termed “robust data accuracy scores”. Robust case accuracy measure may, in some embodiments, be determined based on a sample set of local cases from the power set of all possible combinations of local cases (e.g., a set of all possible subsets of local cases) and assess accuracy across all samples with and without the case in question in order to determine the robust case accuracy measure for each sample / subset.Case Contribution Examples

[0071] In some embodiments, case contribution scores may be calculated based on the difference between the action value without the case and with the case, and may be used to show the comparable impact that a case makes on the prediction value. When making a prediction (labeling the target feature) the “actual / true” value of the target feature may not be known, however since the actual values of all the influential cases (in the local model, which, in some embodiments is the one or more candidate cases) are known, some embodiments may use those to compute how much each of these influential cases contributes to the prediction.

[0072] In some embodiments, as part of determining 140 explanation data, case contribution scores may be determined. As part of this determination 140, some embodiments compute case contribution scores via LOO (leave-one-out), each prediction is made with and without the case, and the output is the difference between predicted value without the case minus the original predicted value. For nominal features we use the categorical action probability of the predicted class. In some embodiments, positive values for case contribution scores signify a case increases the value of the prediction, negative values for case contribution scores signify a case decreases the value of the prediction. For example, in some embodiments, if an influential case has a case contribution score of “−0.4”, that means that if it were removed, the predicted value would have been lower.

[0073] Some embodiments include “robust case contribution”, which is as an enhancement to case contribution. Instead of just holding out a given case, it will sample from the power set of all possible combinations of local cases and assess accuracy across all samples with and without the case in question, determining the robust case contribution score based on that analysis.

[0074] The case contribution scores, or robust case contribution scores, may then be sent in the response 150 to the request for the suggested action along with the suggested action. When the case contribution scores are within a certain threshold, a system may then automatically cause 199 control based on the suggested action. For example, if the case contribution scores are beyond a threshold, then a system may be confident in performing the suggested action without human review. When the case contribution scores are not beyond that certain threshold, however, one or more explanation factors may be determined and provided 180 in response to the request for suggested action. For example, if the case contribution scores are not beyond the certain threshold, then that information may be provided as one or more of the explanation factors, possibly also with the cases in the regional model. A human operator may then review that information in order to determine whether to perform 181 the suggested action, perform 181 a different action, or perform no action at all.Case Feature Residuals Examples

[0075] In some embodiments, as part of determining 140 explanation data, case feature residual scores may be determined. As part of this determination 140, in some embodiments, case feature residual scores may be calculated based on, for a given case in the one or more local cases, for each of its feature values, the difference between the predicted value if the case were held out and the actual value. It can be used to identify reasons for anomalies, indicating how unpredictable or anomalous a value is.

[0076] Some embodiments include calculating robust case feature residuals as an enhancement to case contribution, where, instead of just holding out a given feature, the embodiments calculate the case feature residual based on sampling from the power set of all possible combinations of features and assess accuracy across all samples with and without the case in question.

[0077] The case residual scores or robust case contribution scores may then be sent in the response 150 to the request for the suggested action along with the suggested action. When the case feature residual scores are within a certain threshold, a system may then automatically cause 199 control based on the suggested action. For example, if the case feature residual scores are beyond a threshold, then a system may be confident in performing the suggested action without human review. When the case feature residual scores are not beyond that certain threshold, however, one or more explanation factors may be determined and provided 180 in response to the request for suggested action. For example, if the case feature residual scores are not beyond the certain threshold, then that information may be provided as one or more of the explanation factors, possibly also with the cases in the regional model. A human operator may then review that information in order to determine whether to perform 181 the suggested action, perform 181 a different action, or perform no action at all.Global Case Feature Residual Conviciton Examples

[0078] In some embodiments, global case feature residual conviction scores may be the conviction of the case feature residuals with respect to the global feature residuals. Global case feature residual conviction scores can be used to see which features have notably different uncertainty for a specific case as compared to the model as a whole.

[0079] In some embodiments, as part of determining 140 explanation data, global case feature residual conviction scores may be determined. As part of this determination 140, in some embodiments, global case feature residual conviction scores may be determined based at least in part by taking the ratio of the global model residual to the case residual for each feature (described elsewhere herein). For example, in some embodiments, if a global case feature residual conviction score is significantly smaller than the case's residual for a feature, it signifies the model has difficulty predicting this particular case's feature value, thus this conviction would be ‘low’. A conviction value of one (1) may indicate that its prediction accuracy is average for the data set.

[0080] Some embodiments include calculating robust global case feature residual conviction scores as an enhancement to case feature residual conviction. Instead of just holding out a given feature, the embodiments sample from the power set of all possible combinations of features and assess accuracy across all samples with and without the case in question.

[0081] The global case feature residual conviction scores or robust case contribution scores may then be sent in the response 150 to the request for the suggested action along with the suggested action. When the global case feature residual conviction scores are within a certain threshold, a system may then automatically cause 199 control based on the suggested action. For example, if the global case feature residual conviction scores are beyond a threshold, then a system may be confident in performing the suggested action without human review. When the global case feature residual conviction scores are not beyond that certain threshold, however, one or more explanation factors may be determined and provided 180 in response to the request for suggested action. For example, if the global case feature residual conviction scores are not beyond the certain threshold, then that information may be provided as one or more of the explanation factors, possibly also with the cases in the regional model. A human operator may then review that information in order to determine whether to perform 181 the suggested action, perform 181 a different action, or perform no action at all.Local Case Feature Residual Conviciton Examples

[0082] In some embodiments, local case feature residual conviction scores may represent a conviction of the case feature residuals with respect to the local feature residuals, and the local case feature residual conviction score can be used to see which features have notably different uncertainty for a specific case as compared to the local data, or similar types of predictions.

[0083] In some embodiments, as part of determining 140 explanation data, local case feature residual conviction scores may be determined. As part of this determination 140, in some embodiments, a local case feature residual conviction score may be determined at least in part by taking the ratio of the local model residual to the case residual for each feature. For example, in some embodiments if the local case feature residual conviction score is large and so is the case's residual, it means the model may have difficulty predicting not just this particular case's feature value, but every cases' value in this local area, thus this conviction would be ‘average’. If the case's residual is high but the local case feature residual conviction score is low, then the conviction will be low, indicating this may be an anomalous value for the case's feature.

[0084] Some embodiments include calculating robust local case feature residual conviction scores as an enhancement to case feature residual conviction. Instead of just holding out a given feature, it will sample from the power set of all possible combinations of features and assess accuracy across all samples with and without the case in question.

[0085] The local case feature residual conviction scores or robust case contribution scores may then be sent in the response 150 to the request for the suggested action along with the suggested action. When the local case feature residual conviction scores are within a certain threshold, a system may then automatically cause 199 control based on the suggested action. For example, if the local case feature residual conviction scores are beyond a threshold, then a system may be confident in performing the suggested action without human review. When the local case feature residual conviction scores are not beyond that certain threshold, however, one or more explanation factors may be determined and provided 180 in response to the request for suggested action. For example, if the local case feature residual conviction scores are not beyond the certain threshold, then that information may be provided as one or more of the explanation factors, possibly also with the cases in the regional model. A human operator may then review that information in order to determine whether to perform 181 the suggested action, perform 181 a different action, or perform no action at all.Familiarity Conviction Examples

[0086] In some embodiments, it may be useful to employ conviction as measure of how much information the point distorts the model. To do so, one may define feature conviction such that a point's weighted distance contribution affects other points' distance contribution and compared to the expected distance contribution of adding any new point.

[0087] Definition 1. Given a point x∈X and the set K of its k nearest neighbors, a distance function d: Rz×Z→R, and a distance exponent a, the distance contribution of x may be the harmonic mean

[0088] ϕ⁢(x)=(1<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>K<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>⁢∑k∈K1d⁡(x,k) α)-1.(1)

[0089] Definition 2. Given a set of points X⊂Rz for every x∈X and an integer 1≤k<|X| one may define the distance contribution probability distribution, C of X to be the set

[0090] C={ϕ⁡(x1)∑ i=1n⁢ϕ⁡(xi),ϕ⁡(x2)∑ i=1n⁢ϕ⁡(xi),… ,ϕ⁡(xn)∑ i=1n⁢ϕ⁡(xi)}(2)for a function φ: X→R that returns the distance contribution.

[0091] Note that if φ(0)=∞, special consideration may be given to multiple identical points, such as splitting the distance contribution among those points.

[0092] Remark 1. C may be a valid probability distribution. In some embodiments, this fact is used to compute the amount of information in C.

[0093] Definition 3. The point probability of a point xi,i=1, 2, . . . , n may be

[0094] l⁡(i)=ϕ⁡(xi)∑iϕ⁡(xi)(3)where the index i is assigned the probability of the indexed point's distance contribution. One may denote this random variable L.

[0095] Remark 2. When points are selected uniformly at random, one may assume L is uniform when the distance probabilities have no trend or correlation.

[0096] Definition 4. The conviction of a point xi∈X may be

[0097] π⁡(xi)=1<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>X<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>⁢∑i𝕂𝕃⁡(L⁢L-{i}⋃𝔼⁢l⁡(i))𝕂𝕃⁡(L⁢L-{xi}⋃𝔼⁢l⁡(i))(4)where KL is the Kullback-Leibler divergence. In some embodiments, when one assumes L is uniform, one may have that the expected probability

[0098] 𝔼⁢l⁡(i)=1n.Prediction Conviction Examples

[0099] In some embodiments, it is useful to employ conviction as a proxy for accuracy of a prediction. To do so, one may define another type of conviction such that a point's weighted distance to other points is of primary importance, and can be expressed as the information required to describe the position of the point in question relative to existing points.

[0100] Definition 5. Let q be the number of features in a model and n be the number of observations. One may define the residual function of the training data X:

[0101] r: X→R q(5)r⁡(x)=J1(k,p),J2(k,p),… ,Jq(k,p)(6)Where J may be the error function parameterized by the hyperparameters k and p evaluated on points near x. In some embodiments, one may refer to the residual function evaluated on all of the model data as rM.

[0102] In some embodiments, one can quantify the information needed to express a distance contribution φ(x) by moving to a probability. This may be accomplished by setting the expected value of the Exponential Distribution (which is the maximum entropy distribution constrained by the first moment) to be the magnitude of the residual vector:

[0103] 1λ=r⁡(x)p(7)

[0104] In some embodiments, the distance contribution can be other relevant or applicable distributions, such as the log normal distribution, Gaussian distribution, normal distribution, etc.

[0105] In some embodiments, one can then determine the probability that a distance contribution is greater than 0:

[0106] P⁡(r⁡(x)p≤0)=e -1r⁡(x)p·ϕ⁡(x)(8)

[0107] In some embodiments, one may determine the distance contribution in terms of the probability that two points are the same given their uncertainties, or alternatively the probability that two points are different given their uncertainties.

[0108] One may also convert the probability to information:

[0109] I⁡(x)=-ln⁢P⁡(r⁡(x)p≤0)(9)

[0110] Which can be simply written as:

[0111] I(y )=ϕ⁡(x)r⁡(x)p(10)

[0112] As the distance contribution decreases, or as the residual vector magnitude increases, the less information is needed to represent this point. One can then compare this to the expected value in regular conviction form, yielding a prediction conviction

[0113] πα=𝔼⁢II⁡(x).(11)where I is the set of information calculated for each point in the model.Feature Prediction Contribution Examples

[0114] In some embodiments, Feature Prediction Contribution may be related Mean Decrease in Accuracy (MDA). In MDA scores are established for models with all the features M and models with each feature held out M−fi,i=1 . . . q. The difference |M−M−fi| is the importance of each feature, where the result's sign is altered depending on whether the goal is to maximize or minimize score.

[0115] In some embodiments, prediction information is correlated with accuracy and thus may be used as a surrogate.

[0116] M=1n⁢∑iI⁡(xi)M-ji=1n⁢∑jI-ji(xj)

[0117] One can now make two definitions:

[0118] Definition 6. The prediction contribution of feature i is

[0119] M-M-fiM

[0120] Definition 7. The prediction conviction of feature i is

[0121] 1q⁢∑ iq⁢ M-fiM-fiADDITIONAL EMBODIMENTS

[0122] Not depicted in FIG. 1, more than one of the explanation data may be determined and used together. For example, any of the fractal dimensionality, conviction, complexity, feature residual, feature prediction contribution, regional model complexity, archetype and / or counterfactual cases, and / or other measures can be used together to determine whether to automatically cause 199 performance of the suggested action. For example, the suggested action may be caused 199 if the certainty is high and there are no feature values outside the range of the local model.Systems Case-Specific Scores, Explainability, and Automated Decisions in Computer-Based Reasoning Systems

[0123] FIG. 2 is a block diagram depicting example systems for explainable and automated decisions in computer-based reasoning systems. Numerous devices and systems are coupled to a network 290. Network 290 can include the internet, a wide area network, a local area network, a Wi-Fi network, any other network or communication device described herein, and the like. Further, numerous of the systems and devices connected to 290 may have encrypted communication there between, VPNs, and or any other appropriate communication or security measure. System 200 includes a training and analysis system 210 coupled to network 290. The training and analysis system 210 may be used for collecting data related to systems 250-258 and creating computer-based reasoning models based on the training of those systems. Further, training and analysis system 210 may perform aspects of process 100, 500, and / or 400 described herein. Control system 220 is also coupled to network 290. A control system 220 may control various of the systems 250-258. For example, a vehicle control 221 may control any of the vehicles 250-253, or the like. In some embodiments, there may be one or more network attached storages 230, 240. These storages 230, 240 may store training data, computer-based reasoning models, updated computer-based reasoning models, and the like. In some embodiments, training and analysis system 210 and / or control system 220 may store any needed data including computer-based reasoning models locally on the system.

[0124] FIG. 2 depicts numerous systems 250-258 that may be controlled by a control system 220 or 221. For example, automobile 250, helicopter 251, submarine 252, boat 253, factory equipment 254, construction equipment 255, security equipment 256, oil pump 257, or warehouse equipment 258 may be controlled by a control system 220 or 221.Example Processes for Controlling Systems

[0125] FIG. 4 depicts an example process 400 for controlling a system. In some embodiments and at a high level, the process 400 proceeds by receiving or receiving 410 a computer-based reasoning model for controlling the system. The computer-based reasoning model may be one created using processes 100 and / or 500, as one example. In some embodiments, the process 400 proceeds by receiving 420 a current context for the system, determining 430 an action to take based on the current context and the computer-based reasoning model, and causing 440 performance of the determined action (e.g., labelling an image, causing a vehicle to perform the turn, lane change, waypoint navigation, etc.). If operation of the system continues 450, then the process returns to receive 420 the current context, and otherwise discontinues 460 control of the system. In some embodiments, causing 199 performance of a selected action may include causing 440 performance of a determined action (or vice-versa).

[0126] As discussed herein the various processes 100, 400, 500, etc. may run in parallel, in conjunction, together, or one process may be a subprocess of another. Further, any of the processes may run on the systems or hardware discussed herein. The features and steps of processes 100, 400, 500 could be used in combination and / or in different orders.Self-Driving Vehicles

[0127] Returning to the top of the process 400, it begins by receiving 410 a computer-based reasoning model for controlling the system. The computer-based reasoning model may be received in any appropriate matter. It may be provided via a network 290, placed in a shared or accessible memory on either the training and analysis system 210 or control system 220, or in accessible storage, such as storage 230 or 240.

[0128] In some embodiments (not depicted in FIG. 4), an operational situation could be indicated for the system. The operational situation is related to context, but may be considered a higher level, and may not change (or change less frequently) during operation of the system. For example, in the context of control of a vehicle, the operational situation may be indicated by a passenger or operator of the vehicle, by a configuration file, a setting, and / or the like. For example, a passenger Alicia may select “drive like Alicia” in order to have the vehicle driver like her. As another example, a fleet of helicopters may have a configuration file set to operate like Bob. In some embodiments, the operational situation may be detected. For example, the vehicle may detect that it is operating in a particular location (area, city, region, state, or country), time of day, weather condition, etc. and the vehicle may be indicated to drive in a manner appropriate for that operational situation.

[0129] The operational situation, whether detected, indicated by passenger, etc., may be changed during operation of the vehicle. For example, a passenger may first indicate that she would like the vehicle to drive cautiously (e.g., like Alicia), and then realize that she is running later and switch to a faster operation mode (e.g., like Carole). The operational situation may also change based on detection. For example, if a vehicle is operating under an operational situation for a particular portion of road, and detects that it has left that portion of road, it may automatically switch to an operational situation appropriate for its location (e.g., for that city), may revert to a default operation (e.g., a baseline program that operates the vehicle) or operational situation (e.g., the last used). In some embodiments, if the vehicle detects that it needs to change operational situations, it may prompt a passenger or operator to choose a new operational situation.

[0130] In some embodiments, the computer-based reasoning model is received before process 400 begins (not depicted in FIG. 4), and the process begins by receiving 420 the current context. For example, the computer-based reasoning model may already be loaded into a controller 220 and the process 400 begins by receiving 420 the current context for the system being controlled. In some embodiments, referring to FIG. 2, the current context for a system to be controlled (not depicted in FIG. 2) may be sent to control system 220 and control system 220 may receive 420 current context for the system.

[0131] Receiving 420 current context may include receiving the context data needed for a determination to be made using the computer-based reasoning model. For example, turning to the vehicular example, receiving 420 the current context may, in various embodiments, include receiving information from sensors on or near the vehicle, determining information based on location or other sensor information, accessing data about the vehicle or location, etc. For example, the vehicle may have numerous sensors related to the vehicle and its operation, such as one or more of each of the following: speed sensors, tire pressure monitors, fuel gauges, compasses, global positioning systems (GPS), RADARs, LiDARs, cameras, barometers, thermal sensors, accelerometers, strain gauges, noise / sound measurement systems, etc. Current context may also include information determined based on sensor data. For example, the time to impact with the closest object may be determined based on distance calculations from RADAR or LiDAR data, and / or may be determined based on depth-from-stereo information from cameras on the vehicle. Context may include characteristics of the sensors, such as the distance a RADAR or LiDAR is capable of detecting, resolution and focal length of the cameras, etc. Context may include information about the vehicle not from a sensor. For example, the weight of the vehicle, acceleration, deceleration, and turning or maneuverability information may be known for the vehicle and may be part of the context information. Additionally, context may include information about the location, including road condition, wind direction and strength, weather, visibility, traffic data, road layout, etc.

[0132] Referring back to the example of vehicle control rules for Bob flying a helicopter, the context data for a later flight of the helicopter using the vehicle control rules based on Bob's operation of the helicopter may include fuel remaining, distance that fuel can allow the helicopter to travel, location including elevation, wind speed and direction, visibility, location and type of sensors as well as the sensor data, time to impact with the N closest objects, maneuverability and speed control information, etc. Returning to the stop sign example, whether using vehicle control rules based on Alicia or Carole, the context may include LiDAR, RADAR, camera and other sensor data, location information, weight of the vehicle, road condition and weather information, braking information for the vehicle, etc.

[0133] The control system then determined 430 an action to take based on the current context and the computer-based reasoning model. For example, turning to the vehicular example, an action to take is determined 430 based on the current context and the vehicle control rules for the current operational situation. In some embodiments that use machine learning, the vehicle control rules may be in the form of a neural network (as described elsewhere herein), and the context may be fed into the neural network to determine an action to take. In embodiments using case-based reasoning, the set of context-action pairs closest (or most similar) to the current context may be determined. In some embodiments, only the closest context-action pair is determined, and the action associated with that context-action pair is the determined 430 action. In some embodiments, multiple context-action pairs are determined 430. For example, the N “closest” context-action pairs may be determined 430, and either as part of the determining 430, or later as part of the causing 440 performance of the action, choices may be made on the action to take based on the N closest context-action pairs, where “distance” for between the current context can be measured using any appropriate technique, including use of Euclidean distance, Minkowski distance, Damerau-Levenshtein distance, Kullback-Leibler divergence, and / or any other distance measure, metric, pseudometric, premetric, index, or the like. As noted elsewhere herein, feature weights may be used as part of the distance metric or pre-metric to take into account certainty scores, such as mean change in accuracy scores.

[0134] In some embodiments, the actions to be taken may be blended based on the action of each context-action pair, with invalid (e.g., impossible or dangerous) outcomes being discarded. A choice can also be made among the N context-action pairs chosen based on criteria such as choosing to use the same or different operator context-action pair from the last determined action. For example, in an embodiment where there are context-action pair sets from multiple operators in the vehicle control rules, the choice of which context-action pair may be based on whether a context-action pair from the same operator was just chosen (e.g., to maintain consistency). The choice among the top N context-action pairs may also be made by choosing at random, mixing portions of the actions together, choosing based on a voting mechanism, etc.

[0135] Some embodiments include detecting gaps in the training data and / or vehicle control rules and indicating those during operation of the vehicle (for example, via prompt and / or spoken or graphical user interface) or offline (for example, in a report, on a graphical display, etc.) to indicate what additional training is needed (not depicted in FIG. 4). In some embodiments, when the computer-based reasoning system does not find context “close enough” to the current context to make a confident decision on an action to take, it may indicate this and suggest that an operator might take manual control of the vehicle, and that operation of the vehicle may provide additional context and action data for the computer-based reasoning system. Additionally, in some embodiments, an operator may indicate to a vehicle that she would like to take manual control to either override the computer-based reasoning system or replace the training data. These two scenarios may differ by whether the data (for example, context-action pairs) for the operational scenario are ignored for this time period, or whether they are replaced.

[0136] In some embodiments, the operational situation may be chosen based on a confidence measure indicating confidence in candidate actions to take from two (or more) different sets of control rules (not depicted in FIG. 4). Consider a first operational situation associated with a first set of vehicle control rules (e.g., with significant training from Alicia driving on highways) and a second operational situation associated with a second set of vehicle control rules (e.g., with significant training from Carole driving on rural roads). Candidate actions and associated confidences may be determined for each of the sets of vehicle control rules based on the context. The determined 430 action to take may then be selected as the action associated with the higher confidence level. For example, when the vehicle is driving on the highway, the actions from the vehicle control rules associated with Alicia may have a higher confidence, and therefore be chosen. When the vehicle is on rural roads, the actions from the vehicle control rules associated with Carole may have higher confidence and therefore be chosen. Relatedly, in some embodiments, a set of vehicle control rules may be hierarchical, and actions to take may be propagated from lower levels in the hierarchy to high levels, and the choice among actions to take propagated from the lower levels may be made on confidence associated with each of those chosen actions. The confidence can be based on any appropriate confidence calculation including, in some embodiments, determining how much “extra information” in the vehicle control rules is associated with that action in that context.

[0137] In some embodiments, there may be a background or baseline operational program that is used when the computer-based reasoning system does not have sufficient data to make a decision on what action to take (not depicted in FIG. 4). For example, if in a set of vehicle control rules, there is no matching context or there is not a matching context that is close enough to the current context, then the background program may be used. If none of the training data from Alicia included what to do when crossing railroad tracks, and railroad tracks are encountered in later operation of the vehicle, then the system may fall back on the baseline operational program to handle the traversal of the railroad tracks. In some embodiments, the baseline model is a computer-based reasoning system, in which case context-action pairs from the baseline model may be removed when new training data is added. In some embodiments, the baseline model is an executive driving engine which takes over control of the vehicle operation when there are no matching contexts in the vehicle control rules (e.g., in the case of a context-based reasoning system, there might be no context-action pairs that are sufficiently “close”).

[0138] In some embodiments, determining 430 an action to take based on the context can include determining whether vehicle maintenance is needed. As described elsewhere herein, the context may include wear and / or timing related to components of the vehicle, and a message related to maintenance may be determined based on the wear or timing. The message may indicate that maintenance may be needed or recommended (e.g., because preventative maintenance is often performed in the timing or wear context, because issues have been reported or detected with components in the timing or wear context, etc.). The message may be sent to or displayed for a vehicle operator (such as a fleet management service) and / or a passenger. For example, in the context of an automobile with sixty thousand miles, the message sent to a fleet maintenance system may include an indication that a timing belt may need to be replaced in order to avoid a P percent chance that the belt will break in the next five thousand miles (where the predictive information may be based on previously-collected context and action data, as described elsewhere herein). When the automobile reaches ninety thousand miles and assuming the belt has not been changed, the message may include that the chance that the belt will break has increased to, e.g., P*4 in the next five thousand miles.

[0139] Performance of the determined 430 action is then caused 440. Turning to the vehicular example, causing 440 performance of the action may include direct control of the vehicle and / or sending a message to a system, device, or interface that can control the vehicle. The action sent to control the vehicle may also be translated before it is used to control the vehicle. For example, the action determined 430 may be to navigate to a particular waypoint. In such an embodiment, causing 440 performance of the action may include sending the waypoint to a navigation system, and the navigation system may then, in turn, control the vehicle on a finer-grained level. In other embodiments, the determined 430 action may be to switch lanes, and that instruction may be sent to a control system that would enable the car to change the lane as directed. In yet other embodiments, the action determined 430 may be lower level (e.g., accelerate or decelerate, turn 4° to the left, etc.), and causing 440 performance of the action may include sending the action to be performed to a control of the vehicle, or controlling the vehicle directly. In some embodiments, causing 440 performance of the action includes sending one or more messages for interpretation and / or display. In some embodiments, the causing 440 the action includes indicating the action to be taken at one or more levels of a control hierarchy for a vehicle. Examples of control hierarchies are given elsewhere herein.

[0140] Some embodiments include detecting anomalous actions taken or caused 440 to be taken. These anomalous actions may be signaled by an operator or passenger, or may be detected after operation of the vehicle (e.g., by reviewing log files, external reports, etc.). For example, a passenger of a vehicle may indicate that an undesirable maneuver was made by the vehicle (e.g., turning left from the right lane of a 2-lane road) or log files may be reviewed if the vehicle was in an accident. Once the anomaly is detected, the portion of the vehicle control rules (e.g., context-action pair(s)) related to the anomalous action can be determined. If it is determined that the context-action pair(s) are responsible for the anomalous action, then those context-action pairs can be removed or replaced using the techniques herein.

[0141] Referring to the example of the helicopter fleet and the vehicle control rules associated with Bob, the vehicle control 220 may determine 430 what action to take for the helicopter based on the received 420 context. The vehicle control 220 may then cause the helicopter to perform the determined action, for example, by sending instructions related to the action to the appropriate controls in the helicopter. In the driving example, the vehicle control 220 may determine 430 what action to take based on the context of vehicle. The vehicle control may then cause 440 performance of the determined 430 action by the automobile by sending instructions to control elements on the vehicle.

[0142] If there are more 450 contexts for which to determine actions for the operation of the system, then the process 400 returns to receive 410 more current contexts. Otherwise, process 400 ceases 460 control of the system. Turning to the vehicular example, as long as there is a continuation of operation of the vehicle using the vehicle control rules, the process 400 returns to receive 420 the subsequent current context for the vehicle. If the operational situation changes (e.g., the automobile is no longer on the stretch of road associated with the operational situation, a passenger indicates a new operational situation, etc.), then the process returns to determine the new operational situation. If the vehicle is no longer operating under vehicle control rules (e.g., it arrived at its destination, a passenger took over manual control, etc.), then the process 400 will discontinue 460 autonomous control of the vehicle.

[0143] Many of the examples discussed herein for vehicles discuss self-driving automobiles. As depicted in FIG. 2, numerous types of vehicles can be controlled. For example, a helicopter 251 or drone, a submarine 252, or boat or freight ship 253, or any other type of vehicle such as plane or drone (not depicted in FIG. 2), construction equipment, (not depicted in FIG. 2), and / or the like. In each case, the computer-based reasoning model may differ, including using different features, using different techniques described herein, etc. Further, the context of each type of vehicle may differ. Flying vehicles may need context data such as weight, lift, drag, fuel remaining, distance remaining given fuel, windspeed, visibility, etc. Floating vehicles, such as boats, freight vessels, submarines, and the like may have context data such as buoyancy, drag, propulsion capabilities, speed of currents, a measure of the choppiness of the water, fuel remaining, distance capability remaining given fuel, and the like. Manufacturing and other equipment may have as context width of area traversing, turn radius of the vehicle, speed capabilities, towing / lifting capabilities, and the like.Image Labelling

[0144] The techniques herein may also be applied in the context of an image-labeling system. For example, numerous experts may label images (e.g., identifying features of or elements within those images). For example, the human experts may identify cancerous masses on x-rays. Having these experts label all input images is incredibly time consuming to do on an ongoing basis, in addition to being expensive (paying the experts). The techniques herein may be used to train an image-labeling computer-based reasoning model based on previously-trained images. Once the image-labeling computer-based reasoning system has been built, then input images may be analyzed using the image-based reasoning system. In order to build the image-labeling computer-based reasoning system, images may be labeled by experts and used as training data. Using the techniques herein, the certainty scores of the training data can be used to build an image-labeling computer-based reasoning system that balances the size of the computer-based reasoning model with the information that each additional image (or set of images) with associated labels provides. Once the image-labelling computer-based reasoning is trained, it can be used to label images in the future. For example, a new image may come in, the image-labelling computer-based reasoning may determine one or more labels for the image, and then the one or more labels may then be applied to the image. Thus, these images can be labeled automatically, saving the time and expense related to having experts label the images.

[0145] In some embodiments, processes 100, 400, or 500 may include determining the certainty scores for each image (or multiple images) and the associated labels or of the aspects of the computer-based reasoning model. The certainty scores for the one or more images may be determined and a determination may be made whether to select or include the one or more images (or aspects) in the image-labeling computer-based reasoning model based on the determined certainty scores. While there are more sets of one or more images with labels to assess, the process may return to determine whether more image or label sets should be included or whether aspects should be included and / or changed in the model. Once there are no more images or aspects to consider, the process can turn to controlling the image analysis system using the image-labeling computer-based reasoning.

[0146] In some embodiments, process 100 may determine (e.g., in response to a request) the suggested cases and explanation data for in the image-labeling computer-based reasoning model. Based on a determination made based on the suggested action and / or explanation data, the process can cause 199 control of an image-labeling system using process 400. For example, if the data elements are related to images and labels applied to those images, then the image-labeling computer-based reasoning model trained on that data will apply labels to incoming images. Process 400 proceeds by receiving 410 an image-labeling computer-based reasoning model. The process proceeds by receiving 420 an image for labeling. The image-labeling computer-based reasoning model is then used to determine 430 labels for the input image. The image is then labeled 440. If there are more 450 images to label, then the system returns to receive 410 those images and otherwise ceases 460. In such embodiments, the image-labeling computer-based reasoning model may be used to select labels based on which training image is “closest” (or most similar) to the incoming image. The label(s) associated with that image will then be selected to apply to the incoming image.

[0147] In some embodiments, process 500 may determine (e.g., based on a received 510 request) the certainty scores of each image (or multiple images) and the associated labels or of the aspects of the computer-based reasoning model. In some embodiments, the certainty scores for the one or more images may be determined 520, 530, 540. A determination may be made whether to select or include 550 the one or more images (or aspects) in the image-labeling computer-based reasoning model based on the determined certainty scores. While there are more sets of one or more images with labels to assess, the process 500 may return to determine whether more image or label sets should be included or whether aspects should be included, excluded, and / or changed in the model. Once there are no more images or aspects to consider, the process 500 can turn to causing control or controlling 599 the image analysis system using the image-labeling computer-based reasoning model.

[0148] Causing control or controlling 199, 599 an image-labeling system may be accomplished by process 400. For example, if the data elements are related to images and labels applied to those images, then the image-labeling computer-based reasoning model trained on that data will apply labels to incoming images. Process 400 proceeds by receiving 410 an image-labeling computer-based reasoning model. The process proceeds by receiving 420 an image for labeling. The image-labeling computer-based reasoning model is then used to determine 430 labels for the input image. The image is then labeled 440. If there are more 450 images to label, then the system returns to receive 410 those images and otherwise ceases 460. In such embodiments, the image-labeling computer-based reasoning model may be used to select labels based on which training image is “closest” (or most similar) to the incoming image. The label(s) associated with that image will then be selected to apply to the incoming image.Manufacturing and Assembly

[0149] The processes 100, 400, or 500 may also be applied in the context of manufacturing and / or assembly. For example, conviction can be used to identify normal behavior versus anomalous behavior of such equipment. Using the techniques herein, a crane (e.g., crane 255 of FIG. 2), robot arm, or other actuator is attempting to “grab” something and its certainty scores is beyond a threshold, it can stop, sound an alarm, shutdown certain areas of the facility, and / or request for human assistance. Anomalous behavior that is detected via conviction among sensors and actuators can be used to detect when there is a breakdown, unusual wear and tear or mechanical or other malfunction, an unusual component or seed or crop, etc. It can also be used to find damaged equipment for repairs or buffing or other improvements for any robots that are searching and correcting defects in products or themselves (e.g., fixing a broken wire or smoothing out cuts made to the ends of a manufactured artifact made via an extrusion process). Conviction can also be used for cranes and other grabbing devices to find which cargo or items are closest matches to what is needed. Conviction can be used to drastically reduce the amount of time to train a robot to perform a new task for a new product or custom order, because the robot will indicate the aspects of the process it does not understand and direct training towards those areas and away from things it has already learned. Combining this with stopping ongoing actions when an anomalous situation is detected would also allow a robot to begin performing work before it is fully done training, the same way that a human apprentice may help out someone experienced while the apprentice is learning the job. Conviction can also inform what features or inputs to the robot are useful and which are not.

[0150] In some embodiments, process 100 may determine (e.g., in response to a request) the certainty scores of one or more data elements (e.g., of the manufacturing equipment) or aspects (e.g., features of context-action pairs or aspects of the model) to potentially include in the manufacturing control computer-based reasoning model. The certainty scores for the one or more manufacturing elements may be determined and a determination may be made whether to select or include the one or more manufacturing data elements or aspects in the manufacturing control computer-based reasoning model based on the determined certainty scores. While there are more sets of one or more manufacturing data elements or aspects to assess, the process may return to determine whether more manufacturing data elements or aspects sets should be included. Once there are no more manufacturing data elements or aspects to consider, the process can turn to controlling the manufacturing system using the manufacturing control computer-based reasoning system.

[0151] In some embodiments, process 100 may determine (e.g., in response to a request) the suggested cases and explanation data for in the manufacturing control computer-based reasoning model. Based on a determination made based on the suggested action and / or explanation data, the process can cause 199 control of a manufacturing system may be accomplished by process 400. For example, if the data elements are related to manufacturing data elements or aspects, then the manufacturing control computer-based reasoning model trained on that data will control manufacturing or assemble. Process 400 proceeds by receiving 410 a manufacturing control computer-based reasoning model. The process proceeds by receiving 420 a context. The manufacturing control computer-based reasoning model is then used to determine 430 an action to take. The action is then performed by the control system (e.g., caused by the manufacturing control computer-based reasoning system). If there are more 450 contexts to consider, then the system returns to receive 410 those contexts and otherwise ceases 460. In such embodiments, the manufacturing control computer-based reasoning model may be used to control a manufacturing system. The chosen actions are then performed by a control system.

[0152] In some embodiments, process 500 may determine (e.g., based on a received 510 request) the related certainty score of one or more data cases (e.g., of the manufacturing equipment) or aspects (e.g., features of context-action pairs or aspects of the model) to potentially include in the manufacturing control computer-based reasoning model. In some embodiments, the certainty scores for the one or more manufacturing elements may be determined 520, 530, 540. A determination may be made whether to select or include 550 the one or more manufacturing data elements or aspects in the manufacturing control computer-based reasoning model based on the determined certainty scores. While there are more sets of one or more manufacturing data elements or aspects to assess (e.g., from additional equipment and / or from subsequent time periods), the process 500 may return to determine whether more manufacturing data elements or aspects sets should be included. Once there are no more manufacturing data elements or aspects to consider for inclusion, the process 500 can turn to causing control or controlling 199, 599 the manufacturing system using the manufacturing control computer-based reasoning system.

[0153] Causing 199, 599 control of a manufacturing system may be accomplished by process 400. For example, if the data elements are related to manufacturing data elements or aspects, then the manufacturing control computer-based reasoning model trained on that data will cause control manufacturing or assemble. Process 400 proceeds by receiving 410 a manufacturing control computer-based reasoning model. The process proceeds by receiving 420 a context. The manufacturing control computer-based reasoning model is then used to determine 430 an action to take. The action is then performed by the control system (e.g., caused by the manufacturing control computer-based reasoning system). If there are more 450 contexts to consider, then the system returns to receive 410 those contexts and otherwise ceases 460. In such embodiments, the manufacturing control computer-based reasoning model may be used to control a manufacturing system. The chosen actions are then performed by a control system.Smart Voice Control

[0154] The processes 100, 400, or 500 may also be applied in the context of smart voice control. For example, combining multiple inputs and forms of analysis, the techniques herein can recognize if there is something unusual about a voice control request. For example, if a request is to purchase a high-priced item or unlock a door, but the calendar and synchronized devices indicate that the family is out of town, it could send a request to the person's phone before confirming the order or action; it could be that an intruder has recorded someone's voice in the family or has used artificial intelligence software to create a message and has broken in. It can detect other anomalies for security or for devices activating at unusual times, possibly indicating some mechanical failure, electronics failure, or someone in the house using things abnormally (e.g., a child frequently leaving the refrigerator door open for long durations). Combined with other natural language processing techniques beyond sentiment analysis, such as vocal distress, a smart voice device can recognize that something is different and ask, improving the person's experience and improving the seamlessness of the device into the person's life, perhaps playing music, adjusting lighting, or HVAC, or other controls. The level of confidence provided by conviction can also be used to train a smart voice device more quickly as it can ask questions about aspects of its use that it has the least knowledge about. For example: “I noticed usually at night, but also some days, you turn the temperature down in what situations should I turn the temperature down? What other inputs (features) should I consider?”

[0155] Using the techniques herein, a smart voice device may also be able to learn things it otherwise may not be able to. For example, if the smart voice device is looking for common patterns in any of the aforementioned actions or purchases and the conviction drops below a certain threshold, it can ask the person if it should take on a particular action or additional autonomy without prompting, such as “It looks like you're normally changing the thermostat to colder on days when you have your exercise class, but not on days when it is cancelled; should I do this from now on and prepare the temperature to your liking?”

[0156] In some embodiments, process 100 may determine (e.g., in response to a request) the certainty scores of one or more data elements (e.g., of the smart voice system) or aspects (e.g., features of the data or parameters of the model) to potentially include in the smart voice system control computer-based reasoning model. The certainty scores for the one or more smart voice system data elements or aspects may be determined and a determination may be made whether to include the one or more smart voice system data elements or aspects in the smart voice system control computer-based reasoning model based on the determined certainty scores. While there are more sets of one or more smart voice system data elements or aspects to assess, the process may return to determine whether more smart voice system data elements or aspects sets should be included. Once there are no more smart voice system data elements or aspects to consider, the process can turn to controlling the smart voice system using the smart voice system control computer-based reasoning model.

[0157] In some embodiments, process 100 may determine (e.g., in response to a request) the suggested cases and explanation data for in the smart voice computer-based reasoning model. Based on a determination made based on the suggested action and / or explanation data, the process can cause 199 control of a smart voice system using process 400. For example, if the data elements are related to smart voice system actions, then the smart voice system control computer-based reasoning model trained on that data will control smart voice systems. Process 400 proceeds by receiving 410 a smart voice computer-based reasoning model. The process proceeds by receiving 420 a context. The smart voice computer-based reasoning model is then used to determine 430 an action to take. The action is then performed by the control system (e.g., caused by the smart voice computer-based reasoning system). If there are more 450 contexts to consider, then the system returns to receive 410 those contexts and otherwise ceases 460. In such embodiments, the smart voice computer-based reasoning model may be used to control a smart voice system. The chosen actions are then performed by a control system.

[0158] In some embodiments, process 500 may determine (e.g., based on a received 510 request) the related conviction measures, such as certainty scores of one or more data elements (e.g., of the smart voice system) or aspects (e.g., features of the data or parameters of the model) to potentially include in the smart voice system control computer-based reasoning model. In some embodiments, the certainty scores for the one or more smart voice system data elements or aspects may be determined 520, 530, 540 and a determination may be made whether to include 550 the one or more smart voice system data elements or aspects in the smart voice system control computer-based reasoning model based on the determined certainty scores. While there are more sets of one or more smart voice system data elements or aspects to assess, the process 500 may return to determine whether more smart voice system data elements or aspects sets should be included. Once there are no more smart voice system data elements or aspects to consider, the process 100, 500 can turn to causing control or controlling 199, 599 the smart voice system using the smart voice system control computer-based reasoning model.

[0159] Causing control or controlling 199, 599 a smart voice system may be accomplished by process 400. For example, if the data elements are related to smart voice system actions, then the smart voice system control computer-based reasoning model trained on that data will control smart voice systems. Process 400 proceeds by receiving 410 a smart voice computer-based reasoning model. The process proceeds by receiving 420 a context. The smart voice computer-based reasoning model is then used to determine 430 an action to take. The action is then performed by the control system (e.g., caused by the smart voice computer-based reasoning system). If there are more 450 contexts to consider, then the system returns to receive 410 those contexts and otherwise ceases 460. In such embodiments, the smart voice computer-based reasoning model may be used to control a smart voice system. The chosen actions are then performed by a control system.Control of Federarted Devices

[0160] The processes 100, 400, or 500 may also be applied in the context of federated devices in a system. For example, combining multiple inputs and forms of analysis, the techniques herein can recognize if there is something that should trigger action based on the state of the federated devices. For example, if the training data includes actions normally taken and / or statuses of federated devices, then an action to take could be an often-taken action in the certain (or related contexts). For example, in the context of a smart home with interconnected heating, cooling, appliances, lights, locks, etc., the training data could be what a particular user does at certain times of day and / or in particular sequences. For example, if, in a house, the lights in the kitchen are normally turned off after the stove has been off for over an hour and the dishwasher has been started, then when that context again occurs, but the kitchen light has not been turned off, the computer-based reasoning system may cause an action to be taken in the smart home federated systems, such as prompting (e.g., audio) whether the user of the system would like the kitchen lights to be turned off. As another example, training data may indicate that a user sets the house alarm and locks the door upon leaving the house (e.g., as detected via geofence). If the user leaves the geofenced location of the house and has not yet locked the door and / or set the alarm, the computer-based reasoning system may cause performance of an action such as inquiring whether it should lock the door and / or set an alarm. As yet another example, in the security context, the control may be for turning on / off cameras, or enact other security measures, such as sounding alarms, locking doors, or even releasing drones and the like. Training data may include previous logs and sensor data, door or window alarm data, time of day, security footage, etc. and when security measure were (or should have been) taken. For example, a context such as particular window alarm data for a particular basement window coupled with other data may be associated with an action of sounding an alarm, and when a context occurs related to that context, an alarm may be sounded.

[0161] In some embodiments, process 100 may determine the certainty scores of one or more data elements or aspects of the federated device control system for potential inclusion in the federated device control computer-based reasoning model. The certainty scores for the one or more federated device control system data elements may be determined and a determination may be made whether to select or include the one or more federated device control system data elements in the federated device control computer-based reasoning model based on the determined certainty scores. While there are more sets of one or more federated device control system data elements or aspects to assess, the process may return to determine whether more federated device control system data elements or aspect sets should be included. Once there are no more federated device control system data elements or aspects to consider, the process can turn to controlling the federated device control system using the federated device control computer-based reasoning model.

[0162] In some embodiments, process 100 may determine (e.g., in response to a request) the suggested cases and explanation data for in the federated device computer-based reasoning model. Based on a determination made based on the suggested action and / or explanation data, the process can cause 199 control of a federated device system may be accomplished by process 400. For example, if the data elements are related to federated device system actions, then the federated device control computer-based reasoning model trained on that data will control federated device control system. Process 400 proceeds by receiving 410 a federated device control computer-based reasoning model. The process proceeds by receiving 420 a context. The federated device control computer-based reasoning model is then used to determine 430 an action to take. The action is then performed by the control system (e.g., caused by the federated device control computer-based reasoning system). If there are more 450 contexts to consider, then the system returns to receive 410 those contexts and otherwise ceases 460. In such embodiments, the federated device control computer-based reasoning model may be used to control federated devices. The chosen actions are then performed by a control system.

[0163] In some embodiments, process 500 may determine (e.g., based on a received 510 request) the related certainty scores of one or more data elements or aspects of the federated device control system for potential inclusion in the federated device control computer-based reasoning model. In some embodiments, the certainty score for the one or more federated device control system data elements may be determined 520, 530, 540 and a determination may be made whether to select or include 550 the one or more federated device control system data elements in the federated device control computer-based reasoning model based on the determined certainty scores. While there are more sets of one or more federated device control system data elements or aspects to assess, the process 500 may return to determine whether more federated device control system data elements or aspect sets should be included. Once there are no more federated device control system data elements or aspects to consider, the process 100, 500 can turn to causing control or controlling 199, 599 the federated device control system using the federated device control computer-based reasoning model.

[0164] Causing control or controlling 199, 599 a federated device control system may be accomplished by process 400. For example, if the data elements are related to federated device system actions, then the federated device control computer-based reasoning model trained on that data will control federated device control system. Process 400 proceeds by receiving 410 a federated device control computer-based reasoning model. The process proceeds by receiving 420 a context. The federated device control computer-based reasoning model is then used to determine 430 an action to take. The action is then performed by the control system (e.g., caused by the federated device control computer-based reasoning system). If there are more 450 contexts to consider, then the system returns to receive 410 those contexts and otherwise ceases 460. In such embodiments, the federated device control computer-based reasoning model may be used to control federated devices. The chosen actions are then performed by a control system.Control and Automation of Experiments

[0165] The processes 100, 400, or 500 may also be used in the context of control systems for laboratory experiments. For example, many lab experiments today, especially in the biological and life sciences, but also in materials science and others, yield combinatorial increases, in terms of numbers, of possibilities and results. The fields of design of experiment, as well as many combinatorial search and exploration techniques are currently combined with statistical analysis. However, conviction-based techniques such as those herein can be used to guide a search for knowledge, especially if combined with utility functions. Automated lab experiments may have actuators and may put different chemicals, samples, or parts in different combinations and put them under different circumstances. Using conviction to guide the machines enables them to home in on learning how the system under study responds to different scenarios, and, for example, searching areas of greatest uncertainty. Conceptually speaking, when the certainty scores is combined with a value function, especially in a multiplicative fashion, then the combination is a powerful information theoretic take on the classic exploration vs exploitation trade-offs that are made in search processes from artificial intelligence to science to engineering. Additionally, such a system can be made to automate experiments where it can predict the most effective approach, homing in on the best possible, predictable outcomes for a specific knowledge base. Further, like in the other embodiments discussed herein, it could indicate (e.g., raise alarms) to human operators when the results are anomalous, or even tell which features being measured are most useful (so that they can be appropriately measured) or when measurements are not sufficient to characterize the outcomes. If the system has multiple kinds of sensors that have “costs” (e.g., monetary, time, computation, etc.) or cannot be all activated simultaneously, the feature entropies could be used to activate or deactivate the sensors to reduce costs or improve the distinguishability of the experimental results.

[0166] In some embodiments, process 100 may determine (e.g., in response to a request) the certainty scores of one or more data elements or aspects of the experiment control system. The certainty scores for the one or more experiment control system data elements or aspects may be determined and a determination may be made whether to select or include the one or more experiment control system data elements or aspects in experiment control computer-based reasoning model based on the determined certainty scores. While there are more sets of one or more experiment control system data elements or aspects to assess, the process may return to determine whether more experiment control system data elements or aspects sets should be included. Once there are no more experiment control system data elements or aspects to consider, the process can turn to causing 181 control of the experiment control system using the experiment control computer-based reasoning model.

[0167] In some embodiments, process 100 may determine (e.g., in response to a request) the suggested cases and explanation data for in the experiment control computer-based reasoning model. Based on a determination made based on the suggested action and / or explanation data, the process can cause 199 control of an experiment control system may be accomplished by process 400. For example, if the data elements are related to experiment control system actions, then the experiment control computer-based reasoning model trained on that data will control experiment control system. Process 400 proceeds by receiving 410 an experiment control computer-based reasoning model. The process proceeds by receiving 420 a context. The experiment control computer-based reasoning model is then used to determine 430 an action to take. The action is then performed by the control system (e.g., caused by the experiment control computer-based reasoning system). If there are more 450 contexts to consider, then the system returns to receive 410 those contexts and otherwise ceases 460. In such embodiments, the experiment control computer-based reasoning model may be used to control experiment. The chosen actions are then performed by a control system.

[0168] In some embodiments, process 500 may determine (e.g., based on a received 510 request) the certainty scores of one or more data elements or aspects of the experiment control system. In some embodiments, the certainty scores for the one or more experiment control system data elements or aspects may be determined 520, 530, 540 and a determination may be made whether to select or include 550 the one or more experiment control system data elements or aspects in experiment control computer-based reasoning model based on the determined certainty scores. While there are more sets of one or more experiment control system data elements or aspects to assess, the process 100, 500 may return to determine whether more experiment control system data elements or aspects sets should be included. Once there are no more experiment control system data elements or aspects to consider, the process 100, 500 can turn to causing control or controlling 199, 599 the experiment control system using the experiment control computer-based reasoning model.

[0169] Causing control or controlling 199, 599 an experiment control system may be accomplished by process 400. For example, if the data elements are related to experimental control system actions, then the experiment control computer-based reasoning model trained on that data will control experiment control system. Process 400 proceeds by receiving 410 an experiment control computer-based reasoning model. The process proceeds by receiving 420 a context. The experiment control computer-based reasoning model is then used to determine 430 an action to take. The action is then performed by the control system (e.g., caused by the experiment control computer-based reasoning system). If there are more 450 contexts to consider, then the system returns to receive 410 those contexts and otherwise ceases 460. In such embodiments, the experiment control computer-based reasoning model may be used to control experiment. The chosen actions are then performed by a control system.Control of Energy Transfer Systems

[0170] The processes 100, 400, or 500 may also be applied in the context of control systems for energy transfer. For example, a building may have numerous energy sources, including solar, wind, grid-based electrical, batteries, on-site generation (e.g., by diesel or gas), etc. and may have many operations it can perform, including manufacturing, computation, temperature control, etc. The techniques herein may be used to control when certain types of energy are used and when certain energy consuming processes are engaged. For example, on sunny days, roof-mounted solar cells may provide enough low-cost power that grid-based electrical power is discontinued during a particular time period while costly manufacturing processes are engaged. On windy, rainy days, the overhead of running solar panels may overshadow the energy provided, but power purchased from a wind-generation farm may be cheap, and only essential energy consuming manufacturing processes and maintenance processes are performed.

[0171] In some embodiments, process 100 may determine (e.g., in response to a request) the certainty scores of one or more data elements or aspects of the energy transfer system. The certainty scores for the one or more energy transfer system data elements or aspects may be determined and a determination may be made whether to select or include the one or more energy transfer system data elements or aspects in energy control computer-based reasoning model based on the determined certainty scores. While there are more sets of one or more energy transfer system data elements or aspects to assess, the process may return to determine whether more energy transfer system data elements or aspects should be included. Once there are no more energy transfer system data elements or aspects to consider, the process can turn to controlling the energy transfer system using the energy control computer-based reasoning model.

[0172] In some embodiments, process 100 may determine (e.g., in response to a request) the suggested cases and explanation data for in the energy transfer computer-based reasoning model. Based on a determination made based on the suggested action and / or explanation data, the process can cause 199 control of an energy transfer system may be accomplished by process 400. For example, if the data elements are related to energy transfer system actions, then the energy control computer-based reasoning model trained on that data will control energy transfer system. Process 400 proceeds by receiving 410 an energy control computer-based reasoning model. The process proceeds by receiving 420 a context. The energy control computer-based reasoning model is then used to determine 430 an action to take. The action is then performed by the control system (e.g., caused by the energy control computer-based reasoning system). If there are more 450 contexts to consider, then the system returns to receive 410 those contexts and otherwise ceases 460. In such embodiments, the energy control computer-based reasoning model may be used to control energy. The chosen actions are then performed by a control system.

[0173] In some embodiments, process 100, 500 may determine (e.g., based on a received 110, 510 request) the related conviction measures, such as certainty scores of one or more data elements or aspects of the energy transfer system. In some embodiments, the certainty scores for the one or more energy transfer system data elements or aspects may be determined 520, 530, 540 and a determination may be made whether to select or include 550 the one or more energy transfer system data elements or aspects in energy control computer-based reasoning model based on the determined certainty scores. While there are more sets of one or more energy transfer system data elements or aspects to assess, the process 100, 500 may return to determine whether more energy transfer system data elements or aspects should be included. Once there are no more energy transfer system data elements or aspects to consider, the process 100, 500 can turn to causing control or controlling 199, 599 the energy transfer system using the energy control computer-based reasoning model.

[0174] Causing control or controlling 199, 599 an energy transfer system may be accomplished by process 400. For example, if the data elements are related to energy transfer system actions, then the energy control computer-based reasoning model trained on that data will control energy transfer system. Process 400 proceeds by receiving 410 an energy control computer-based reasoning model. The process proceeds by receiving 420 a context. The energy control computer-based reasoning model is then used to determine 430 an action to take. The action is then performed by the control system (e.g., caused by the energy control computer-based reasoning system). If there are more 450 contexts to consider, then the system returns to receive 410 those contexts and otherwise ceases 460. In such embodiments, the energy control computer-based reasoning model may be used to control energy. The chosen actions are then performed by a control system.Health Care Decision Making, Prediction, and Fraud Protection

[0175] The processes 100, 400, or 500 may also be used for health care decision making, prediction (such as outcome prediction), and / or fraud detection. For example, some health insurers require pre-approval, pre-certification, pre-authorization, and / or reimbursement for certain types of healthcare procedures, such as healthcare services, administration of drugs, surgery, hospital visits, etc. When analyzing pre-approvals, a health care professional must contact the insurer to obtain their approval prior to administering care, or else the health insurance company may not cover the procedure. Not all services require pre-approval, but many may, and which require it can differ among insurers. Health insurance companies may make determinations including, but not necessarily limited to, whether a procedure is medically necessary, whether it is duplicative, whether it follows currently-accepted medical practice, whether there are anomalies in the care or its procedures, whether there are anomalies or errors with the health care provider or professional, etc.

[0176] In some embodiments, a health insurance company may have many “features” of data on which health care pre-approval or reimbursement decisions are determined by human operators. These features may include diagnosis information, type of health insurance, requesting health care professional and facility, frequency and / or last claim of the particular type, etc. The data on previous decisions can be used to train the computer-based reasoning system. The techniques herein may be used to guide the health care decision making process. For example, when the computer-based reasoning model determines, with high conviction or confidence, that a procedure should be pre-approved or reimbursed, it may pre-approve or reimburse the procedure without further review. In some embodiments, when the computer-based reasoning model has low conviction re whether or not to pre-approve a particular procedure, it may flag it for human review (including, e.g., sending it back to the submitting organization for further information). In some embodiments, some or all of the rejections of procedure pre-approval or reimbursement may be flagged for human review.

[0177] Further, in some embodiments, the techniques herein can be used to flag trends, anomalies, and / or errors. For example, as explained in detail elsewhere herein, the techniques can be used to determine, for example, when there are anomalies for a request for pre-approval, diagnoses, reimbursement requests, etc. with respect to the computer-based reasoning model trained on prior data. When the anomaly is detected, (e.g., outliers, such as a procedure or prescription has been requested outside the normal range of occurrences per time period, for an individual that is outside the normal range of patients, etc.; and / or what may be referred to as “inliers”—or “contextual outliers,” such as too frequently (or rarely) occurring diagnoses, procedures, prescriptions, etc.), the pre-approval, diagnosis, reimbursement request, etc. can be flagged for further review. In some cases, these anomalies could be errors (e.g., and the health professional or facility may be contacted to rectify the error), acceptable anomalies (e.g., patients that need care outside of the normal bounds), or unacceptable anomalies. Additionally, in some embodiments, the techniques herein can be used to determine and flag trends (e.g., for an individual patient, set of patients, health department or facility, region, etc.). The techniques herein may be useful not only because they can automate and / or flag pre-approval decision, reimbursement requests, diagnosis, etc., but also because the trained computer-based reasoning model may contain information (e.g., prior decision) from multiple (e.g., 10s, 100s, 1000s, or more) prior decision makers. Consideration of this large amount of information may be untenable for other approaches, such as human review.

[0178] The techniques herein may also be used to predict adverse outcomes in numerous health care contexts. The computer-based reasoning model may be trained with data from previous adverse events, and perhaps from patients that did not have adverse events. The trained computer-based reasoning system can then be used to predict when a current or prospective patient or treatment is likely to cause an adverse event. For example, if a patient arrives at a hospital, the patient's information and condition may be assessed by the computer-based reasoning model using the techniques herein in order to predict whether an adverse event is probable (and the conviction of that determination). As a more specific example, if a septuagenarian with a history of low blood pressure is admitted for monitoring a heart murmur, the techniques herein may flag that patient for further review. In some embodiments, the determination of a potential adverse outcome may be an indication of one or more possible adverse events, such as a complication, having an additional injury, sepsis, increased morbidity, and / or getting additionally sick, etc. Returning to the example of the septuagenarian with a history of low blood pressure, the techniques herein may indicate that, based on previous data, the possibility of a fall in the hospital is unduly high (possibly with high conviction). Such information can allow the hospital to try to ameliorate the situation and attempt to prevent the adverse event before it happens.

[0179] In some embodiments, the techniques herein include assisting in diagnosis and / or diagnosing patients based on previous diagnosis data and current patient data. For example, a computer-based reasoning model may be trained with previous patient data and related diagnoses using the techniques herein. The diagnosis computer-based reasoning model may then be used in order to suggest one or more possible diagnoses for the current patient. As a more specific example, a septuagenarian may present with specific attributes, medical history, family history, etc. This information may be used as the input context to the diagnosis computer-based reasoning system, and the diagnosis computer-based reasoning system may determine one or more possible diagnoses for the septuagenarian. In some embodiments, those possible diagnoses may then be assessed by medical professionals. The techniques herein may be used to diagnose any condition, including, but not limited to breast cancer, lung cancer, colon cancer, prostate cancer, bone metastases, coronary artery disease, congenital heart defect, brain pathologies, Alzheimer's disease, and / or diabetic retinopathy.

[0180] In some embodiments, the techniques herein may be used to generate synthetic data that mimics, but does not include previous patient data. This synthetic data generation is available for any of the uses of the techniques described herein (manufacturing, image labelling, self-driving vehicles, etc.), and can be particularly important in circumstances where using user data (such as patient health data) in a model may be contrary to policy or regulation. As discussed elsewhere herein, the synthetic data can be generated to directly mimic the characteristics of the patient population, or more surprising data can be generated (e.g., higher certainty scores) in order to generate more data in the edge cases, all without a necessity of including actual patient data.

[0181] In some embodiments, processes 100, 400 may include determining (e.g., in response to a request) the certainty scores of one or more data elements or aspects of the health care system. The certainty scores for the one or more health care system data elements or aspects may be determined and a determination may be made whether to select or include the one or more health care system data elements or aspects in a health care system computer-based reasoning model based on the determined certainty scores. While there are more sets of one or more health care system data elements or aspects to assess, the process may return to determine whether more health care system data elements or aspects should be included. Once there are no more health care system data elements or aspects to consider included in the model, the process can turn to controlling the health care computer-based reasoning system using the health care system computer-based reasoning model.

[0182] In some embodiments, process 100 may determine (e.g., in response to a request) the search result (e.g., k nearest neighbors, most probable cases in gaussian process regression, etc.) in the computer-based reasoning model for use in the health care system computer-based reasoning model. Based on those search results, the process can cause 199 control of a health care computer-based reasoning system using process 400. For example, if the data elements are related to health care system actions, then the health care system computer-based reasoning model trained on that data will control the health care system. Process 400 proceeds by receiving 410 a health care system computer-based reasoning model. The process proceeds by receiving 420 a context. The health care system computer-based reasoning model is then used to determine 430 an action to take. The action is then performed by the control system (e.g., caused by the health care system computer-based reasoning system). If there are more 450 contexts to consider, then the system returns to receive 410 those contexts and otherwise ceases 460. In such embodiments, the health care system computer-based reasoning model may be used to assess health care decisions, predict outcomes, etc. In some embodiments, the chosen action(s) are then performed by a control system.

[0183] In some embodiments, process 100, 500 may determine (e.g., in response to a received 110, 510 request) the related conviction measures, such as certainty scores, of each health care system case, feature, or data element use in the health care system computer-based reasoning model. In some embodiments, the certainty scores for the one or more health care system cases, features, or data elements may be determined 520, 530, 540. A determination may be made whether to select or include 550 the one or more health care system case, feature, or data element in the image-labeling computer-based reasoning model based on the determined certainty scores. While there are more sets of one or more health care system cases, features, or data elements with labels to assess, the process 100, 500 may return to determine whether more health care system cases, features, or data elements should be included or whether aspects should be included, excluded, and / or changed in the model. Once there are no more health care system cases, features, or data elements to consider, the process 100,500, 600, and / or 700 can turn to causing control or controlling 199, 599 the health care system using the health care computer-based reasoning system.

[0184] Process 400 proceeds by receiving 410 a health care system computer-based reasoning model. The process proceeds by receiving 420 a context. The health care system computer-based reasoning model is then used to determine 430 an action to take. The action is then performed by the control system (e.g., caused by the health care system computer-based reasoning system). If there are more 450 contexts to consider, then the system returns to receive 410 those contexts and otherwise ceases 460. In some embodiments, the health care system computer-based reasoning model may be used to assess health care decisions, predict outcomes, etc. In some embodiments, the chosen action(s) are then performed by a control system.Financial Decision Making, Prediction, and Fraud Protection

[0185] The processes 100, 400, or 500 may also be used for financial decision making, prediction (such as outcome or performance prediction), and / or fraud detection. For example, some financial systems require approval, certification, authorization, and / or reimbursement for certain types of financial transactions, such as loans, lines of credit, credit or charge approvals, etc. When analyzing approvals, a financial professional may determine, as one example, whether to approve prior to loaning money. Not all services or transactions require approval, but many may, and which require it can differ among financial system or institutions. Financial transaction companies may make determinations including, but not necessarily limited to, whether a loan appears to be viable, whether a charge is duplicative, whether a loan, charge, etc. follows currently-accepted practice, whether there are anomalies associated with the loan or charge, whether there are anomalies or errors with the any party to the loan, etc.

[0186] In some embodiments, a financial transaction company may have many “features” of data on which financial system decisions are determined by human operators. These features may include credit score, type of financial transaction (loan, credit card transaction, etc.), requesting financial system professional and / or facility (e.g., what bank, merchant, or other requestor), frequency and / or last financial transaction of the particular type, etc. The data on previous decisions can be used to train the computer-based reasoning system. The techniques herein may be used to guide the financial system decision making process. For example, when the computer-based reasoning model determines, with high conviction or confidence, that a financial transaction should be approved (e.g., with high conviction), it may the approve the transaction without further review (e.g., by a human operator). In some embodiments, when the computer-based reasoning model has low conviction re whether or not to approve a particular transaction, it may flag it for human review (including, e.g., sending it back to the submitting organization for further information or analysis). In some embodiments, some or all of the rejections of approvals may be flagged for human review.

[0187] Further, in some embodiments, the techniques herein can be used to flag trends, anomalies, and / or errors. For example, as explained in detail elsewhere herein, the techniques can be used to determine, for example, when there are anomalies for a request for approval, etc. with respect to the computer-based reasoning model trained on prior data. When the anomaly is detected, (e.g., outliers, such as a transaction has been requested outside the normal range of occurrences per time period, for an individual that is outside the normal range of transactions or approvals, etc.; and / or what may be referred to as “inliers”—or “contextual outliers,” such as too frequently (or rarely) occurring types of transactions or approvals, unusual densities or changes to densities of the data, etc.), the approval may be flagged for further review. In some cases, these anomalies could be errors (e.g., and the financial professional or facility may be contacted to rectify the error), acceptable anomalies (e.g., transactions or approvals are legitimate, even if outside of the normal bounds), or unacceptable anomalies. Additionally, in some embodiments, the techniques herein can be used to determine and flag trends (e.g., for an individual customer or financial professional, set of individuals, financial department or facility, systems, etc.). The techniques herein may be useful not only because they can automate and / or flag approval decisions, transactions, etc., but also because the trained computer-based reasoning model may contain information (e.g., prior decision) from multiple (e.g., 10s, 100s, 1000s, or more) prior decision makers. Consideration of this large amount of information may be untenable for other approaches, such as human review.

[0188] In some embodiments, the techniques herein may be used to generate synthetic data that mimics, but does not include previous financial data. This synthetic data generation is available for any of the uses of the techniques described herein (manufacturing, image labelling, self-driving vehicles, etc.), and can be particularly important in circumstances where using user data (such as financial data) in a model may be contrary to contract, policy, or regulation. As discussed elsewhere herein, the synthetic data can be generated to directly mimic the characteristics of the financial transactions and / or users, or more surprising data can be generated (e.g., higher certainty scores) in order to generate more data in the edge cases, all without including actual financial data.

[0189] In some embodiments, processes 100, 400 may include determining (e.g., in response to a request) the certainty scores of one or more data elements or aspects of the financial system. The certainty scores for the one or more financial system data elements or aspects may be determined and a determination may be made whether to select or include the one or more financial system data elements or aspects in a financial system computer-based reasoning model based on the determined certainty scores. While there are more sets of one or more financial system data elements or aspects to assess, the process may return to determine whether more financial system data elements or aspects should be included. Once there are no more financial system data elements or aspects to consider included in the model, the process can turn to controlling the financial system computer-based reasoning system using the financial system computer-based reasoning model.

[0190] In some embodiments, process 100 may determine (e.g., in response to a request) the search result (e.g., k nearest neighbors, most probable cases in gaussian process regression, etc.) in the computer-based reasoning model for use in the financial system computer-based reasoning model. Based on those search results, the process can cause 199 control of a financial system computer-based reasoning system using process 400. For example, if the data elements are related to financial system actions, then the financial system computer-based reasoning model trained on that data will control the financial system. Process 400 proceeds by receiving 410 a financial system computer-based reasoning model. The process proceeds by receiving 420 a context. The financial system computer-based reasoning model is then used to determine 430 an action to take. The action is then performed by the control system (e.g., caused by the financial system computer-based reasoning system). If there are more 450 contexts to consider, then the system returns to receive 410 those contexts and otherwise ceases 460. In such embodiments, the financial system computer-based reasoning model may be used to assess financial system decisions, predict outcomes, etc. In some embodiments, the chosen action(s) are then performed by a control system.

[0191] In some embodiments, processes 100, 400, 500, 600, 700 may include determining (e.g., in response to a request) the certainty scores of one or more data elements or aspects of the financial system. The certainty scores for the one or more financial system data elements or aspects may be determined and a determination may be made whether to select or include the one or more financial system data elements or aspects in a financial system computer-based reasoning model based on the determined certainty scores. While there are more sets of one or more financial system data elements or aspects to assess, the process may return to determine whether more financial system data elements or aspects should be included. Once there are no more financial system data elements or aspects to consider, the process can turn to controlling the financial computer-based reasoning system using the financial system computer-based reasoning model.

[0192] In some embodiments, process 100, 400, 500, 600, 700 may determine (e.g., in response to a request) synthetic data for use in the financial system computer-based reasoning model. Based on a model that uses the synthetic data, the process can cause 199, 599 control of a financial computer-based reasoning system using process 400. For example, if the data elements are related to financial system actions, then the financial system computer-based reasoning model trained on that data will control the financial system (e.g., quarantine, delete, or flag for review, entities, data, network traffic, etc.). Process 400 proceeds by receiving 410 a financial system computer-based reasoning model. The process proceeds by receiving 420 a context. The financial system computer-based reasoning model is then used to determine 430 an action to take. The action is then performed by the control system (e.g., caused by the financial system computer-based reasoning system). If there are more 450 contexts to consider, then the system returns to receive 410 those contexts and otherwise ceases 460. In such embodiments, the financial system computer-based reasoning model may be used to assess financial threats, etc. In some embodiments, the chosen action(s) are then performed by a control system.Real Estate Future Value and Valuation Prediction

[0193] The techniques herein may also be used for real estate value estimation. For example, the past values and revenue from real estate ventures may be used as training data. This data may include, in addition to value (e.g., sale or resale value), compound annual growth rate (“CAGR”), zoning, property type (e.g., multifamily, Office, Retail, Industrial), adjacent business and types, asking rent (e.g., rent per square foot (“sqft”) for each of Office, Retail, Industrial, etc. and / or per unit (for multifamily buildings), further, this may be based on all properties within the selected property type in a particular geography, for example), capitalization rate (or “cap rate” based on all properties within selected property type in a geography), demand (which may be quantified as occupied stock), market capitalization (e.g., an average modeled price per sqft multiplied by inventory sqft of the given property type and / or in a given geography), net absorption (net change in demand for a rolling 12 month period), net completions (e.g., net change in inventory sqft (Office, Retail, Industrial) or units (Multifamily) for a period of time, such as analyzed data element(s) rolling 12 month period), occupancy (e.g., Occupied sqft / total inventory sqft, 100%-vacancy %, etc.), stock (e.g., inventory square footage (Office, Retail, Industrial) or units (Multifamily), revenue (e.g., revenue generated by renting out or otherwise using a piece of real estate), savings (e.g., tax savings, depreciation), costs (e.g., taxes, insurance, upkeep, payments to property managers, costs for findings tenants, property managers, etc.), geography and geographic location (e.g., views of water, distance to shopping, walking score, proximity to public transportation, distance to highways, proximity to job centers, proximity to local universities, etc.), building characteristics (e.g., date built, date renovated, etc.), property characteristics (e.g., address, city, state, zip, property type, unit type(s), number of units, numbers of bedrooms and bathrooms, square footage(s), lot size(s), assessed value(s), lot value(s), improvements value(s), etc. —possibly including current and past values), real estate markets characteristics (e.g., local year-over-year growth, historical year-over-year growth), broader economic information (e.g., gross domestic product growth, consumer sentiment, economic forecast data), local economic information (e.g., local economic growth, average local salaries and growth, etc.), local demographics (e.g., numbers of families, couples, single people, number of working-age people, numbers or percentage of people with at different education, salary, or savings levels, etc.). The techniques herein may be used to train a real estate computer-based reasoning model based on previous properties. Once the real estate computer-based reasoning system has been trained, then input properties may be analyzed using the real estate reasoning system. Using the techniques herein, the certainty scores of the training data can be used to build a real estate computer-based reasoning system that balances the size of the computer-based reasoning model with the information that each additional property record (or set of records) provides to the model.

[0194] The techniques herein may be used to predict performance of real estate in the future. For example, based on the variables associated discussed here, that are related, e.g., with various geographies, property types, and markets, the techniques herein may be used to find property types and geographies with the highest expected value or return (e.g., as CAGR). As a more specific example, a model of historical CAGR with asking rent, capitalization rate, demand, net absorption, net completions, occupancy, stock, etc. can be trained. That model may be used, along with more current data, to predict the CAGR of various property types and / or geographies over the coming X years (e.g., 2, 3, 5, or 10 years). Such information may be useful for predicting future value for properties and / or automated decision making.

[0195] As another example, using the techniques herein, a batch of available properties may be given as input to the real estate computer-based reasoning systems, and the real estate computer-based reasoning system may be used to determine what properties are likely to be good investments. In some embodiments, the predictions of the computer-based reasoning system may be used to purchase properties. Further, as discussed extensively herein, explanations may be provided for the decisions. Those explanation may be used by a controllable system to make investment decisions and / or by a human operator to review the investment predictions.

[0196] In some embodiments, processes 100, 400, or 500 may include determining the certainty scores of each input real estate data case (or multiple real estate data cases) with respect to the associated labels or of the aspects of the computer-based reasoning model. The certainty scores for the one or more real estate data cases may be determined and a determination may be made whether to select or include the one or more real estate data cases in the real estate computer-based reasoning model based on the determined certainty scores. While there are more sets of one or more real estate data cases to assess, the process may return to determine whether more real estate data case sets should be included or whether aspects should be included and / or changed in the model. Once there are no more training cases to consider, the process can turn to controlling predicting real estate investments information for possible use in purchasing real estate using the real estate computer-based reasoning.

[0197] In some embodiments, process 100 may determine (e.g., in response to a request) the search result (e.g., k nearest neighbors, most probable cases in gaussian process regression, etc.) in the computer-based reasoning model for use in the real estate computer-based reasoning model. Based on those search results, the process can cause 199 control of a real estate system, using, for example, process 400. For example, the training data elements are related to real estate, and the real estate computer-based reasoning model trained on that data will determine investment value(s) for real estate data cases (properties) under consideration. These investment values may be any appropriate value, such as CAGR, monthly income, resale value, income or resale value based on refurbishment or new development, net present value of one or more of the preceding, etc. In some embodiments, process 400 begins by receiving 410 a real estate computer-based reasoning model. The process proceeds by receiving 420 properties under consideration for labeling and / or predicting value(s) for the investment opportunity. The real estate computer-based reasoning model is then used to determine 430 values for the real estate under consideration. The prediction(s) for the real estate is (are) then made 440. If there are more 450 properties to consider, then the system returns to receive 410 data on those properties and otherwise ceases 460. In some embodiments, the real estate computer-based reasoning model may be used to determine which training properties are “closest” (or most similar) to the incoming property or property types and / or geographies predicted as high value. The investment value(s) for the properties under consideration may then be determined based on the “closest” properties or property types and / or geographies.

[0198] In some embodiments, processes 100, 400, 500, 600, 700 may include determining (e.g., in response to a request) the certainty scores of one or more data elements or aspects of the real estate system. The certainty scores for the one or more real estate system data elements or aspects may be determined and a determination may be made whether to select or include the one or more real estate system data elements or aspects in a real estate system computer-based reasoning model based on the determined certainty scores. While there are more sets of one or more real estate system data elements or aspects to assess, the process may return to determine whether more real estate system data elements or aspects should be included. Once there are no more real estate system data elements or aspects to consider, the process can turn to controlling the real estate computer-based reasoning system using the real estate system computer-based reasoning model.

[0199] In some embodiments, process 100, 400, 500, 600, 700 may determine (e.g., in response to a request) synthetic data for use in the real estate system computer-based reasoning model. Based on a model that uses the synthetic data, the process can cause 199, 599 control of a real estate computer-based reasoning system using process 400. For example, if the data elements are related to real estate system actions, then the real estate system computer-based reasoning model trained on that data will control the real estate system (e.g., quarantine, delete, or flag for review, entities, data, network traffic, etc.). Process 400 proceeds by receiving 410 a real estate system computer-based reasoning model. The process proceeds by receiving 420 a context. The real estate system computer-based reasoning model is then used to determine 430 an action to take. The action is then performed by the control system (e.g., caused by the real estate system computer-based reasoning system). If there are more 450 contexts to consider, then the system returns to receive 410 those contexts and otherwise ceases 460. In such embodiments, the real estate system computer-based reasoning model may be used to assess real estate threats, etc. In some embodiments, the chosen action(s) are then performed by a control system.Cybersecurity

[0200] The processes 100, 400, or 500 may also be used for cybersecurity analysis. For example, a cybersecurity company or other organization may want to perform threat (or anomalous behavior) analysis, and in particular may want explanation data associated with the threat or anomalous behavior analysis (e.g., why was a particular event, user, etc. identified as a threat or not a threat?). The computer-based reasoning model may be trained using known threats / anomalous behavior and features associated with those threats or anomalous behavior, Data that represents neither a threat nor anomalous behavior (e.g., non-malicious access attempts, non-malicious emails, etc.) may also be used to train the computer-based reasoning model. In some embodiments, when a new entity, user, packet, payload, routing attempt, access attempt, log file, etc. is ready for assessment, the features associated with that new entity, user, packet, payload, routing attempt, access attempt, log file, etc. may be used as input in the trained cybersecurity computer-based reasoning system. The cybersecurity computer-based reasoning system may then determine the probability or likelihood that the entity, user, packet, payload, routing attempt, access attempt, pattern in the log file, etc. is or represents a threat or anomalous behavior. Further, explanation data, such as a conviction measures, training data used to make a decision etc., can be used to mitigate the threat or anomalous behavior and / or be provided to a human operator in order to further assess the potential threat or anomalous behavior.

[0201] Any type of cybersecurity threat or anomalous behavior can be analyzed and detected, such as denial of service (DoS), distributed DOS (DDoS), brute-force attacks (e.g., password breach attempts), compromised credentials, malware, insider threats, advanced persistent threats, phishing, spear phishing, etc. and / or anomalous traffic volume, bandwidth use, protocol use, behavior of individuals and / or accounts, logfile pattern, access or routing attempt, etc. In some embodiments the cybersecurity threat is mitigated (e.g., access is suspended, etc.) while the threat is escalated to a human operator. As a more specific example, if an email is received by the email server, the email may be provided as input to the trained cybersecurity computer-based reasoning model. The cybersecurity computer-based reasoning model may indicate that the email is a potential threat (e.g., detecting and then indicating that email includes a link to a universal resource locator that is different from the universal resource location displayed in the text of the email). In some embodiments, this email may be automatically deleted, may be quarantined, and / or flagged for review.

[0202] In some embodiments, processes 100, 400, or 500 may include determining (e.g., in response to a request) the certainty scores of one or more data elements or aspects of the cybersecurity system. The certainty scores for the one or more cybersecurity system data elements or aspects may be determined and a determination may be made whether to select or include the one or more cybersecurity system data elements or aspects in a cybersecurity system computer-based reasoning model based on the determined certainty scores. While there are more sets of one or more cybersecurity system data elements or aspects to assess, the process may return to determine whether more cybersecurity system data elements or aspects should be included. Once there are no more cybersecurity system data elements or aspects to consider, the process can turn to controlling the cybersecurity computer-based reasoning system using the cybersecurity system computer-based reasoning model.

[0203] In some embodiments, process 100 may determine (e.g., in response to a request) the search result (e.g., k nearest neighbors, most probable cases in gaussian process regression, etc.) in the computer-based reasoning model for use in the cybersecurity system computer-based reasoning model. Based on those search results, the process can cause 199 control of a cybersecurity computer-based reasoning system using process 400. For example, if the data elements are related to cybersecurity system actions, then the cybersecurity system computer-based reasoning model trained on that data will control the cybersecurity system (e.g., quarantine, delete, or flag for review, entities, data, network traffic, etc.). Process 400 proceeds by receiving 410 a cybersecurity system computer-based reasoning model. The process proceeds by receiving 420 a context. The cybersecurity system computer-based reasoning model is then used to determine 430 an action to take. The action is then performed by the control system (e.g., caused by the cybersecurity system computer-based reasoning system). If there are more 450 contexts to consider, then the system returns to receive 410 those contexts and otherwise ceases 460. In such embodiments, the cybersecurity system computer-based reasoning model may be used to assess cybersecurity threats, etc. In some embodiments, the chosen action(s) are then performed by a control system.

[0204] In some embodiments, processes 100, 400, 500, 600, 700 may include determining (e.g., in response to a request) the certainty scores of one or more data elements or aspects of the cybersecurity system. The certainty scores for the one or more cybersecurity system data elements or aspects may be determined and a determination may be made whether to select or include the one or more cybersecurity system data elements or aspects in a cybersecurity system computer-based reasoning model based on the determined certainty scores. While there are more sets of one or more cybersecurity system data elements or aspects to assess, the process may return to determine whether more cybersecurity system data elements or aspects should be included. Once there are no more cybersecurity system data elements or aspects to consider, the process can turn to controlling the cybersecurity computer-based reasoning system using the cybersecurity system computer-based reasoning model.

[0205] In some embodiments, process 100, 400, 500, 600, 700 may determine (e.g., in response to a request) synthetic data for use in the cybersecurity system computer-based reasoning model. Based on a model that uses the synthetic data, the process can cause 199, 599 control of a cybersecurity computer-based reasoning system using process 400. For example, if the data elements are related to cybersecurity system actions, then the cybersecurity system computer-based reasoning model trained on that data will control the cybersecurity system (e.g., quarantine, delete, or flag for review, entities, data, network traffic, etc.). Process 400 proceeds by receiving 410 a cybersecurity system computer-based reasoning model. The process proceeds by receiving 420 a context. The cybersecurity system computer-based reasoning model is then used to determine 430 an action to take. The action is then performed by the control system (e.g., caused by the cybersecurity system computer-based reasoning system). If there are more 450 contexts to consider, then the system returns to receive 410 those contexts and otherwise ceases 460. In such embodiments, the cybersecurity system computer-based reasoning model may be used to assess cybersecurity threats, etc. In some embodiments, the chosen action(s) are then performed by a control system.Example Control Hierarchies

[0206] In some embodiments, the technique herein may use a control hierarchy to control systems and / or cause actions to be taken (e.g., as part of causing 199 control in FIG. 1). There are numerous example control hierarchies and many types of systems to control, and hierarchy for vehicle control is presented below. In some embodiments, only a portion of this control hierarchy is used. It is also possible to add levels to (or remove levels from) the control hierarchy.

[0207] An example control hierarchy for controlling a vehicle could be:

[0208] Primitive Layer—Active vehicle abilities (accelerate, decelerate), lateral, elevation, and orientation movements to control basic vehicle navigation

[0209] Behavior Layer—Programmed vehicle behaviors which prioritize received actions and directives and prioritize the behaviors in the action.

[0210] Unit Layer—Receives orders from command layer, issues moves / directives to the behavior layer.

[0211] Command Layers (hierarchical)—Receives orders and gives orders to elements under its command, which may be another command layer or unit layer.Example Cases, Data Elements, Contexts, and Operational Situations

[0212] In some embodiments, the cases or data elements may include context data and action data in context-action pairs. Further, cases may relate to control of a vehicle. For example, context data may include data related to the operation of the vehicle, including the environment in which it is operating, and the actions taken may be of any granularity. Consider an example of data collected while a driver, Alicia, drives around a city. The collected data could be context and action data where the actions taken can include high-level actions (e.g., drive to next intersection, exit the highway, take surface roads, etc.), mid-level actions (e.g., turn left, turn right, change lanes) and / or low-level actions (e.g., accelerate, decelerate, etc.). The contexts can include any information related to the vehicle (e.g. time until impact with closest object(s), speed, course heading, breaking distances, vehicle weight, etc.), the driver (pupillary dilation, heart rate, attentiveness, hand position, foot position, etc.), the environment (speed limit and other local rules of the road, weather, visibility, road surface information, both transient such as moisture level as well as more permanent, such as pavement levelness, existence of potholes, etc.), traffic (congestion, time to a waypoint, time to destination, availability of alternate routes, etc.), and the like. These input data (e.g., context-action pairs for training a context-based reasoning system or input training contexts with outcome actions for training a machine learning system) can be saved and later used to help control a compatible vehicle in a compatible operational situation. The operational situation of the vehicle may include any relevant data related to the operation of the vehicle. In some embodiments, the operational situation may relate to operation of vehicles by particular individuals, in particular geographies, at particular times, and in particular conditions. For example, the operational situation may refer to a particular driver (e.g., Alicia or Carole). Alicia may be considered a cautious car driver, and Carole a faster driver. As noted above, and in particular, when approaching a stop sign, Carole may coast in and then brake at the last moment, while Alicia may slow down earlier and roll in. As another example of an operational situation, Bob may be considered the “best pilot” for a fleet of helicopters, and therefore his context and actions may be used for controlling self-flying helicopters.

[0213] In some embodiments, the operational situation may relate to the locale in which the vehicle is operating. The locale may be a geographic area of any size or type, and may be determined by systems that utilize machine learning. For example, an operational situation may be “highway driving” while another is “side street driving”. An operational situation may be related to an area, neighborhood, city, region, state, country, etc. For example, one operational situation may relate to driving in Raleigh, NC and another may be driving in Pittsburgh, PA. An operational situation may relate to safe or legal driving speeds. For example, one operational situation may be related to roads with forty-five miles per hour speed limits, and another may relate to turns with a recommended speed of 20 miles per hour. The operational situation may also include aspects of the environment such as road congestion, weather or road conditions, time of day, etc. The operational situation may also include passenger information, such as whether to hurry (e.g., drive faster), whether to drive smoothly, technique for approaching stop signs, red lights, other objects, what relative velocity to take turns, etc. The operational situation may also include cargo information, such as weight, hazardousness, value, fragility of the cargo, temperature sensitivity, handling instructions, etc.

[0214] In some embodiments, the context and action may include vehicle maintenance information. The context may include information for timing and / or wear-related information for individual or sets of components. For example, the context may include information on the timing and distance since the last change of each fluid, each belt, each tire (and possibly when each was rotated), the electrical system, interior and exterior materials (such as exterior paint, interior cushions, passenger entertainment systems, etc.), communication systems, sensors (such as speed sensors, tire pressure monitors, fuel gauges, compasses, global positioning systems (GPS), RADARs, LiDARs, cameras, barometers, thermal sensors, accelerometers, strain gauges, noise / sound measurement systems, etc.), the engine(s), structural components of the vehicle (wings, blades, struts, shocks, frame, hull, etc.), and the like. The action taken may include inspection, preventative maintenance, and / or a failure of any of these components. As discussed elsewhere herein, having context and actions related to maintenance may allow the techniques to predict when issues will occur with future vehicles and / or suggest maintenance. For example, the context of an automobile may include the distance traveled since the timing belt was last replaced. The action associated with the context may include inspection, preventative replacement, and / or failure of the timing belt. Further, as described elsewhere herein, the contexts and actions may be collected for multiple operators and / or vehicles. As such, the timing of inspection, preventative maintenance and / or failure for multiple automobiles may be determined and later used for predictions and messaging.

[0215] Causing performance of an identified action can include sending a signal to a real car, to a simulator of a car, to a system or device in communication with either, etc. Further, the action to be caused can be simulated / predicted without showing graphics, etc. For example, the techniques might cause performance of actions in the manner that includes, determining what action would be take, and determining whether that result would be anomalous, and performing the techniques herein based on the determination that such state would be anomalous based on that determination, all without actually generating the graphics and other characteristics needed for displaying the results needed in a graphical simulator (e.g., a graphical simulator might be similar to a computer game).Example of Certainty and Conviction

[0216] In some embodiments, certainty score is a broad term encompassing it plain and ordinary meaning, including the certainty (e.g., as a certainty function) that a particular set of data fits a model, the confidence that a particular set of data conforms to the model, or the importance of a feature or case with regard to the model. Determining a certainty score for a particular case can be accomplished by removing the particular case from the case-based or computer-based reasoning model and determining the conviction score of the particular case based on an entropy measure associated with adding that particular case back into the model. Any appropriate entropy measure, variance, confidence, and / or related method can be used for making this determination, such as the ones described herein. In some embodiments, certainty or conviction is determined by the expected information gain of adding the case to the model divided by the actual information gain of adding the case. For example, in some embodiments, certainty or conviction may be determined based on Shannon Entropy, Rényi entropy, Hartley entropy, min entropy, Collision entropy, Rényi divergence, diversity index, Simpson index, Gini coefficient, Kullback-Leibler divergence, Fisher information, Jensen-Shannon divergence, Symmetrised divergence. In some embodiments, certainty scores are conviction scores and are determined by calculating the entropy, comparing the ratio of entropies, and / or the like. As noted elsewhere herein, feature weights may be used as part of the distance metric or pre-metric to take into account certainty scores, such as mean change in accuracy scores.

[0217] In some embodiments, the conviction of a case may be computed based on looking only at the K nearest neighbors when adding the feature back into the model. The K nearest neighbors can be determined using any appropriate distance measure, including use of Euclidean distance, 1-Kronecker delta, Minkowski distance, Damerau-Levenshtein distance, and / or any other distance measure, metric, pseudometric, premetric, index, or the like. In some embodiments, influence functions are used to determine the importance of a feature or case.

[0218] In some embodiments, determining certainty or conviction scores can include determining the conviction of each feature of multiple features of the cases in the computer-based reasoning model. In this context the word “feature” is being used to describe a data field as across all or some of the cases in the computer-based reasoning model. The word “field,” in this context, is being used to describe the value of an individual case for a particular feature. For example, a feature for a theoretical computer-based reasoning model for self-driving cars may be “speed”. The field value for a particular case for the feature of speed may be the actual speed, such as thirty-five miles per hour.

[0219] Returning to determining certainty or conviction scores, in some embodiments, determining the conviction of a feature may be accomplished by removing the feature from the computer-based reasoning model and determining a conviction score of the feature based on an entropy measure associated with adding the feature back into the computer-based reasoning model. For example, returning to the example above, removing a speed feature from a self-driving car computer-based reasoning model could include removing all of the speed values (e.g., fields) from cases from the computer-based reasoning model and determining the conviction of adding speed back into the computer-based reasoning model. The entropy measure used to determine the conviction score for the feature can be any appropriate entropy measure, such as those discussed herein. In some embodiments, the conviction of a feature may also be computed based on looking only at the K nearest neighbors when adding the feature back into the model. In some embodiments, the feature is not actually removed, but only temporarily excluded.Hardware Overview

[0220] According to some embodiments, the techniques described herein are implemented by one or more special-purpose computing devices. The special-purpose computing devices may be hard-wired to perform the techniques, or may include digital electronic devices such as one or more application-specific integrated circuits (ASICs) or field programmable gate arrays (FPGAs) that are persistently programmed to perform the techniques, or may include one or more general purpose hardware processors programmed to perform the techniques pursuant to program instructions in firmware, memory, other storage, or a combination. Such special-purpose computing devices may also combine custom hard-wired logic, ASICs, or FPGAs with custom programming to accomplish the techniques. The special-purpose computing devices may be desktop computer systems, portable computer systems, handheld devices, networking devices or any other device that incorporates hard-wired and / or program logic to implement the techniques.

[0221] For example, FIG. 3 is a block diagram that illustrates a computer system 300 upon which an embodiment of the invention may be implemented. Computer system 300 includes a bus 302 or other communication mechanism for communicating information, and a hardware processor 304 coupled with bus 302 for processing information. Hardware processor 304 may be, for example, a general-purpose microprocessor.

[0222] Computer system 300 also includes a main memory 306, such as a random-access memory (RAM) or other dynamic storage device, coupled to bus 302 for storing information and instructions to be executed by processor 304. Main memory 306 also may be used for storing temporary variables or other intermediate information during execution of instructions to be executed by processor 304. Such instructions, when stored in non-transitory storage media accessible to processor 304, render computer system 300 into a special-purpose machine that is customized to perform the operations specified in the instructions.

[0223] Computer system 300 further includes a read only memory (ROM) 308 or other static storage device coupled to bus 302 for storing static information and instructions for processor 304. A storage device 310, such as a magnetic disk, optical disk, or solid-state drive is provided and coupled to bus 302 for storing information and instructions.

[0224] Computer system 300 may be coupled via bus 302 to a display 312, such as an OLED, LED or cathode ray tube (CRT), for displaying information to a computer user. An input device 314, including alphanumeric and other keys, is coupled to bus 302 for communicating information and command selections to processor 304. Another type of user input device is cursor control 316, such as a mouse, a trackball, or cursor direction keys for communicating direction information and command selections to processor 304 and for controlling cursor movement on display 312. This input device typically has two degrees of freedom in two axes, a first axis (e.g., x) and a second axis (e.g., y), that allows the device to specify positions in a plane. The input device 314 may also have multiple input modalities, such as multiple 2-axes controllers, and / or input buttons or keyboard. This allows a user to input along more than two dimensions simultaneously and / or control the input of more than one type of action.

[0225] Computer system 300 may implement the techniques described herein using customized hard-wired logic, one or more ASICs or FPGAs, firmware and / or program logic which in combination with the computer system causes or programs computer system 300 to be a special-purpose machine. According to some embodiments, the techniques herein are performed by computer system 300 in response to processor 304 executing one or more sequences of one or more instructions contained in main memory 306. Such instructions may be read into main memory 306 from another storage medium, such as storage device 310. Execution of the sequences of instructions contained in main memory 306 causes processor 304 to perform the process steps described herein. In alternative embodiments, hard-wired circuitry may be used in place of or in combination with software instructions.

[0226] The term “storage media” as used herein refers to any non-transitory media that store data and / or instructions that cause a machine to operate in a specific fashion. Such storage media may comprise non-volatile media and / or volatile media. Non-volatile media includes, for example, optical disks, magnetic disks, or solid-state drives, such as storage device 310. Volatile media includes dynamic memory, such as main memory 306. Common forms of storage media include, for example, a floppy disk, a flexible disk, hard disk, solid-state drive, magnetic tape, or any other magnetic data storage medium, a CD-ROM, any other optical data storage medium, any physical medium with patterns of holes, a RAM, a PROM, and EPROM, a FLASH-EPROM, NVRAM, any other memory chip or cartridge.

[0227] Storage media is distinct from but may be used in conjunction with transmission media. Transmission media participates in transferring information between storage media. For example, transmission media includes coaxial cables, copper wire and fiber optics, including the wires that comprise bus 302. Transmission media can also take the form of acoustic or light waves, such as those generated during radio-wave and infra-red data communications.

[0228] Various forms of media may be involved in carrying one or more sequences of one or more instructions to processor 304 for execution. For example, the instructions may initially be carried on a magnetic disk or solid-state drive of a remote computer. The remote computer can load the instructions into its dynamic memory and send the instructions over a telephone line using a modem. A modem local to computer system 300 can receive the data on the telephone line and use an infra-red transmitter to convert the data to an infra-red signal. An infra-red detector can receive the data carried in the infra-red signal and appropriate circuitry can place the data on bus 302. Bus 302 carries the data to main memory 306, from which processor 304 retrieves and executes the instructions. The instructions received by main memory 306 may optionally be stored on storage device 310 either before or after execution by processor 304.

[0229] Computer system 300 also includes a communication interface 318 coupled to bus 302. Communication interface 318 provides a two-way data communication coupling to a network link 320 that is connected to a local network 322. For example, communication interface 318 may be an integrated services digital network (ISDN) card, cable modem, satellite modem, or a modem to provide a data communication connection to a corresponding type of telephone line. As another example, communication interface 318 may be a local area network (LAN) card to provide a data communication connection to a compatible LAN. Wireless links may also be implemented. In any such implementation, communication interface 318 sends and receives electrical, electromagnetic or optical signals that carry digital data streams representing various types of information. Such a wireless link could be a Bluetooth, Bluetooth Low Energy (BLE), 802.11 WiFi connection, or the like.

[0230] Network link 320 typically provides data communication through one or more networks to other data devices. For example, network link 320 may provide a connection through local network 322 to a host computer 324 or to data equipment operated by an Internet Service Provider (ISP) 326. ISP 326 in turn provides data communication services through the worldwide packet data communication network now commonly referred to as the “Internet”328. Local network 322 and Internet 328 both use electrical, electromagnetic or optical signals that carry digital data streams. The signals through the various networks and the signals on network link 320 and through communication interface 318, which carry the digital data to and from computer system 300, are example forms of transmission media.

[0231] Computer system 300 can send messages and receive data, including program code, through the network(s), network link 320 and communication interface 318. In the Internet example, a server 330 might transmit a requested code for an application program through Internet 328, ISP 326, local network 322 and communication interface 318.

[0232] The received code may be executed by processor 304 as it is received, and / or stored in storage device 310, or other non-volatile storage for later execution.

[0233] In the foregoing specification, embodiments of the invention have been described with reference to numerous specific details that may vary from implementation to implementation. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense. The sole and exclusive indicator of the scope of the invention, and what is intended by the applicants to be the scope of the invention, is the literal and equivalent scope of the set of claims that issue from this application, in the specific form in which such claims issue, including any subsequent correction.

Claims

1. A method comprising:receiving a request for a suggested action based on an input context, in a computer-based reasoning system, wherein the computer-based reasoning system includes a computer-based reasoning model;determining one or more candidate cases based on the input context in the computer-based reasoning system, wherein the one or more candidate cases include respective one or more candidate actions;determining the suggested action based on the respective one or more candidate actions;determining a certainty score related to the one or more candidate cases based on a robust feature mean change in accuracy score, wherein determining the robust feature mean change in accuracy score related to the one or more candidate cases comprises:determining features in the one or more candidate cases;determining two or more samples from a power set of all possible subsets of the features in the one or more candidate cases, wherein the power set of all possible subsets of features in the one or more candidate cases comprises all subsets of features in the one or more candidate cases;for each particular feature in the one or more candidate cases, determining a feature change in accuracy score for the particular feature by:determining a first accuracy score for each sample set of features without the particular feature;determining a second accuracy score for each sample set of features with the particular feature;determining the feature change in accuracy score for the particular feature based on the first accuracy scores and the second accuracy scores;determining the robust feature mean change in accuracy score based on the case change in accuracy scores for each particular candidate feature in the one or more candidate features;when there the certainty score is not beyond a threshold,determining one or more explanation factors for the suggested action determined based at least in part on the certainty score;responding to the request for the suggested action with the suggested action and the one or more explanation factors,when there the certainty score is beyond the threshold:causing performance of the suggested action by a control system,wherein the method is performed by one or more computing devices.

2. The method of claim 1, wherein determining the robust mean change in accuracy score related to the one or more candidate cases comprises determining a robust feature mean decrease in accuracy score related to the one or more candidate cases.

3. The method of claim 1, wherein determining the robust mean change in accuracy score related to the one or more candidate cases comprises determining a robust feature mean increase in accuracy score related to the one or more candidate cases.

4. The method of claim 1, wherein determining the one or more candidate cases based on the input context in the computer-based reasoning system comprises:determining feature mean change in accuracy scores for features related to the one or more candidate cases;determining feature weights for the features in the one or more candidate cases based at least in part on the robust feature mean change in accuracy scores for the features related to the one or more candidate cases;determining the one or more candidate cases based at least in part on a distance measure calculated based at least in part on the feature weights for the features related to the one or more candidate cases.

5. The method of claim 4, wherein determining feature weights for the features in the one or more candidate cases based at least in part on the robust feature mean change in accuracy scores for the features related to the one or more candidate cases comprises:determining the feature weights for the features based on the mean change in accuracy score as weights w1 to wN, where w1 to wN are the weights for each features and N is a number of features; andwherein determining the one or more candidate cases based at least in part on a distance measure calculated based at least in part on the feature weights for the features related to the one or more candidate cases comprises:determining a distance measure based on the feature weights w1 to wN and the feature values for features f1 to fN.

6. The method of claim 5, wherein determining the one or more candidate cases based at least in part on a distance measure calculated based at least in part on the feature weights for the features related to the one or more candidate cases further comprises:determining the one or more candidate cases based at least in part on the distance measure calculated based at least in part on the feature weights for the features related to the one or more candidate cases comprises; anddetermining the one or more candidate cases as cases in the computer-based reasoning model with the lowest one or more distance measures.

7. The method of claim 5, wherein determining the feature weights for the features based on the mean change in accuracy score as weights w1 to wN comprises:determining a normalized value of the mean change in accuracy scores for each of the features f1 to fN based on normalization calculations performed on the mean change in accuracy scores for features f1 to fN,determining weights w1 to wN based at least in part on performing the normalization calculations performed on the mean change in accuracy score for the features f1 to fN.

8. A system comprising one or more computing devices, wherein the one or more computing devices are configured to perform the method of:receiving a request for a suggested action based on an input context, in a computer-based reasoning system, wherein the computer-based reasoning system includes a computer-based reasoning model;determining one or more candidate cases based on the input context in the computer-based reasoning system, wherein the one or more candidate cases include respective one or more candidate actions;determining the suggested action based on the respective one or more candidate actions;determining a certainty score related to the one or more candidate cases based on a robust feature mean change in accuracy score, wherein determining the robust feature mean change in accuracy score related to the one or more candidate cases comprises:determining features in the one or more candidate cases;determining two or more samples from a power set of all possible subsets of the features in the one or more candidate cases, wherein the power set of all possible subsets of features in the one or more candidate cases comprises all subsets of features in the one or more candidate cases;for each particular feature in the one or more candidate cases, determining a feature change in accuracy score for the particular feature by:determining a first accuracy score for each sample set of features without the particular feature;determining a second accuracy score for each sample set of features with the particular feature;determining the feature change in accuracy score for the particular feature based on the first accuracy scores and the second accuracy scores;determining the robust feature mean change in accuracy score based on the case change in accuracy scores for each particular candidate feature in the one or more candidate features;when there the certainty score is not beyond a threshold,determining one or more explanation factors for the suggested action determined based at least in part on the certainty score;responding to the request for the suggested action with the suggested action and the one or more explanation factors,when there the certainty score is beyond the threshold:causing performance of the suggested action by a control system,wherein the method is performed by one or more computing devices.

9. The system of claim 8, wherein determining the robust mean change in accuracy score related to the one or more candidate cases comprises determining a robust feature mean decrease in accuracy score related to the one or more candidate cases.

10. The system of claim 8, wherein determining the robust mean change in accuracy score related to the one or more candidate cases comprises determining a robust feature mean increase in accuracy score related to the one or more candidate cases.

11. The system of claim 8, wherein determining the one or more candidate cases based on the input context in the computer-based reasoning system comprises:determining feature mean change in accuracy scores for features related to the one or more candidate cases;determining feature weights for the features in the one or more candidate cases based at least in part on the robust feature mean change in accuracy scores for the features related to the one or more candidate cases;determining the one or more candidate cases based at least in part on a distance measure calculated based at least in part on the feature weights for the features related to the one or more candidate cases.

12. The system of claim 11, wherein determining feature weights for the features in the one or more candidate cases based at least in part on the robust feature mean change in accuracy scores for the features related to the one or more candidate cases comprises:determining the feature weights for the features based on the mean change in accuracy score as weights w1 to wN, where w1 to wN are the weights for each features and N is a number of features; andwherein determining the one or more candidate cases based at least in part on a distance measure calculated based at least in part on the feature weights for the features related to the one or more candidate cases comprises:determining a distance measure based on the feature weights w1 to wN and the feature values for features f1 to fN.

13. The system of claim 12, wherein determining the one or more candidate cases based at least in part on a distance measure calculated based at least in part on the feature weights for the features related to the one or more candidate cases further comprises:determining the one or more candidate cases based at least in part on the distance measure calculated based at least in part on the feature weights for the features related to the one or more candidate cases comprises; anddetermining the one or more candidate cases as cases in the computer-based reasoning model with the lowest one or more distance measures.

14. The system of claim 12, wherein determining the feature weights for the features based on the mean change in accuracy score as weights w1 to wN comprises:determining a normalized value of the mean change in accuracy scores for each of the features f1 to fN based on normalization calculations performed on the mean change in accuracy scores for features f1 to fN,determining weights w1 to wN based at least in part on performing the normalization calculations performed on the mean change in accuracy score for the features f1 to fN.

Citation Information

Patent Citations

  • Autonomous vehicle fleet model training and testing

    US10459444B1

  • System and method for enterprise modeling, optimization and control

    US20010049595A1

  • Constraint-optimization system and method for document component layout generation

    US20040019851A1

  • Methods and systems for automatically generating provably correct computer program code

    US20050137992A1

  • Methods and Systems for Interactive Evolutionary Computing (IEC)

    US20060195204A1