A computer-implemented method for a machine learning-based software infrastructure
Patent Information
- Application Number
- EP2022829855
- Authority / Receiving Office
- EP · EP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-12-07
- Filing Date
- 2022-12-07
- Publication Date
- 2024-10-16
AI Technical Summary
Current machine learning algorithms require lengthy hyperparameter adjusting and training phases, especially for high reliability, which hampers efficient processing and prediction in applications like predictive maintenance, where timely model updates are crucial.
A computer-implemented method that calculates dataset characterization metrics to restrict hyperparameter ranges, using proprietary logic for sparsity and variable importance metrics, and evaluates algorithm performance to optimize hyperparameter selection and training efficiency, allowing for faster adaptation to dataset size increases.
This approach significantly reduces hyperparameter adjusting time without compromising reliability, enabling more accurate and timely predictive maintenance by providing performance metrics and retraining frequency, ensuring the machine learning model remains up-to-date and effective.
Smart Images

Figure 1.1
Abstract
Description
[0001] WARP DRIVE ML S . R. L .
[0002] A computer-implemented method for a machine learningbased software infrastructure
[0003] The present invention relates to a computer- implemented method for a software infrastructure , in which the software infrastructure is based on machine learning techniques and is intended for the analysis of an input dataset containing data obtained from analysis in projects and / or in objects of a predetermined type .
[0004] The method covered by the present invention comprises the following steps : a) identification of at least one independent variable within the input dataset , b) identification of at least one dependent variable within the input dataset ,
[0005] (c) identification of patterns between the independent variable and the dependent variable , d) generation of an output dataset containing an estimate of the values of the dependent variable .
[0006] In addition , step c) provides a step of hyperparameter adjusting of the machine learning algorithm and a training step .
[0007] The configuration disclosed above is common to methods , such as software algorithms , which are implemented via computers based on machine learning technology , of which there are various types known in the state of the art .
[0008] Such algorithms are commonly used to process large volumes of data , organised in input datasets and differentiated on the basis of the use case , be it technical or economic / organisational in nature .
[0009] The main purpose of algorithms developed on the basis of machine learning technology is to help users of such algorithms to extract value-added information from their databases to optimize the management of complex projects , where planning takes place on the basis of clear quantitative indications , regarding the return of the estimated investment .
[0010] Optimization also allows efficient management of the resources available to users , in line with what is planned .
[0011] The resources may be either material resources , such as people , machinery, instruments , or intangible resources , such as economic data or the like .
[0012] According to the methods known in the state of the art , the machine learning algorithms therefore provide for processing an input dataset and identifying the relationships between the variables of the input dataset , modifying the hyperparameters of the algorithm in order to analyse the values of the dependent variable on the basis of the values of the independent variable or variables , through a training procedure of the algorithm.
[0013] The type of machine learning algorithm is chosen on the basis of the specific reference use case , but regardless of the chosen algorithm technology, the methods known in the state of the art provide particularly long times for hyperparameter adjusting and for training , especially in the case where high values of reliability of the algorithm are to be achieved . There is therefore a need, not satisfied by methods known in the state of the art , to realize a computer-implemented method for a software infrastructure based on machine learning that allows the hyperparameter adjusting phase to be sped up and the training phase to be made more efficient , while maintaining high levels of reliability of the algorithm itself .
[0014] The present invention achieves the above purposes by performing a method as disclosed hereinbefore , wherein a step of analysing the input dataset is provided in order to calculate a set of metrics that characterize the input dataset .
[0015] In addition , the step of hyperparameter adjusting includes the following steps : selection of a type of reference machine learning algorithm,
[0016] - identification of the combination of the values of the hyperparameters that most likely allows obtaining the best performance of the selected machine learning algorithm.
[0017] The general concept of the present method is related to restricting the range of hyperparameters , i . e . to limiting the values of the hyperparameters .
[0018] In particular , the range is limited through the output of the metrics .
[0019] Metrics are functions that return one or more numbers as output , which output is used to filter the values of the hyperparameters to obtain a narrower range of the hyperparameters .
[0020] The term ’dataset characterization metric ’ refers to a numerical variable calculated by analysing the data constituting the dataset , with the aim of describing one or more characteristics of the dataset itself or similar . More generally, a quantitative metric refers to a numerical variable that describes one or more aspects of the object of analysis .
[0021] Improved algorithm performance refers to the condition in which , given a dataset and defined performance metric , the latter is greater (or lesser if the scale is inverse , i . e . decreasing) than the metric values obtainable with other algorithm configurations (specifically based on different hyperparameter configurations) .
[0022] This configuration , as will be evident from the illustration of an executive example , allows the range of variation of the values of the hyperparameters to be significantly reduced, which has immediate and consequent repercussions on the training phase of the machine learning algorithm.
[0023] As anticipated, the method of the present invention allows the timing of hyperparameter adjusting to be reduced, without reducing the reliability of the results obtained .
[0024] For this reason , as will be described below , the method of the present invention provides specific steps for evaluating the results obtained, which not only allow the execution of the method to be continuously improved, but which adapt the method and make it usable even in case of an increase in the size of the input dataset , before executing the training procedure again .
[0025] A particular application of the method described by the patent application in question , as will be shown below, is predictive maintenance , that is , predicting any failure or malfunction of a machine or a device , before such malfunctions occur , simply based on the operating parameters and specific data of the machine itself .
[0026] For this reason , advantageously, the method covered by the present invention provides that the input dataset consists of data detected by a plurality of sensors , aimed at detecting one or more operating conditions of at least one machine .
[0027] According to such a configuration , the method covered by the present invention provides for the use of a network of sensors inserted within one or more machines belonging to a production line , aimed at detecting specific operating parameters , such as the rotation speed of a drum, the wear of two parts sliding on each other , the consumption of electrical energy, the number of operating cycles , the charging cycles of a battery, or the like .
[0028] For example , it is possible to provide chemi cal / physical and mechanical sensors for detecting temperature , pressure , vibrations of the components , as well as detecting the rotation or displacement speed of the motor or parts of the machine .
[0029] As will be apparent from the illustration of an executive example , the calculation of the metrics is functional to optimizing the search of the hyperparameters because it leads to a restriction of the search field .
[0030] Generally, the optimization process is done over the entire range of possible values of the hyperparameters , for example using the SMAC Bayesian optimization system. In fact , SMAC is a post optimisation of the choice of hyper-parameter ranges to coins of the aforementioned optimisation processes , whereas the present invention provides for the optimisation of the choice of hyperparameter ranges .
[0031] Furthermore , unlike known state of the art technologies , the present invention provides for calculating sparsity metrics and independent variable importance metrics with proprietary logic
[0032] For example , for the metric of variable importance there are two aspects that are not present in the literature : improved management of categorical variables and use of the same to optimize the search for hyperparameters .
[0033] Furthermore , according to an executive variant described below, the method covered by the present invention provides a step of evaluating the performance of the algorithms as the number of records available varies .
[0034] This is different from the approach described by the documents known in the state of the art, as the process of searching for hyperparameters is generally carried out only by evaluating the current number of records available without analysing the performance to extend the algorithms (i . e . to increase the available records) , as in the method covered by the present invention .
[0035] Performance evaluation is a particularly relevant aspect of the present invention , as :
[0036] • currently there is no fitting calculation in the literature and consequently there tends to be a significant deviation between the mathematical functions and the real function of the technical application ;
[0037] • the literature contains no evaluation and prevention mechanisms for overfitting in this context ; • the computation algorithm of the variable , described below, is not present in the literature ;
[0038] • the performance evaluation metrics currently present in the literature do not produce an accurate prediction when used for technical applications ;
[0039] • there are no metrics in the literature that measure the accuracy, sensitivity and estimated error of the function , effectively preventing its use in technical applications .
[0040] For the complexities mentioned above , the functions present in the literature cannot be used for technical applications as they are inaccurate and poorly assessable in terms of reliability .
[0041] In relation to the use case of predictive maintenance , as there are no actual data-performance functions available , the performance of the machine learning algorithm is currently only evaluated by taking the available records into account .
[0042] This results in having to make a frequent model selection (the method by which the best statistical model is selected based on a specific evaluation metric) , which is particularly time-consuming and resource-consuming .
[0043] This can be a problem for companies , as the timing of model selection may not be in line with the timing of the production process (excessively long times to complete the model selection phase would jeopardise the very applicability of the machine learning model ) and negatively impact costs (longer model selection times lead to higher hardware / software infrastructure costs) . Unlike the methods known in the literature , the method of the present invention involves the calculation of specific metrics , which allow the management and maintenance of the technical solution by suggesting the frequency of retraining and model selection and predicting the future performance of the machine learning solution .
[0044] This is essential to increase the probability of having a machine learning model for predictive maintenance that is always up to date , able to predict machine failures according to the technical requirements of the use case .
[0045] Finally, in the case of predictive maintenance , if the data are not sufficient to obtain satisfactory performance in terms of predictive failure capacity, the time point at which the performance will be sufficient is predicted . This prediction , currently not present in the literature , allows estimation of which machine learning algorithms will first achieve the sufficient / optimal prediction performance for the use case in the future , without having to wait for the time needed to acquire large amounts of new data .
[0046] This allows more accurate planning of the investments necessary for the realization of the predictive maintenance machine learning model and subsequent monitoring that the performance of the machine learning model is in line with the initial planning .
[0047] These and further objects of the present invention are achieved by means of a computer -implemented method for a machine learning-based software infrastructure according to the attached independent claim and subclaims .
[0048] Optional features of the method of the invention are contained in the appended dependent claims , which form an integral part of the present disclosure .
[0049] Further advantages of the present invention will become clearer from the following disclosure of an exemplary embodiment illustrated in the accompanying drawings wherein :
[0050] Figure 1 shows an exemplary concept diagram, by means of a flowchart , of the method covered by the present invention .
[0051] It is specified that the figure attached to the present patent application shows only some possible embodiments of the method that is the object of the present invention to enable better understanding of its described advantages and features .
[0052] This embodiment is therefore to be understood as purely illustrative and not limiting to the inventive concept of the present invention , i . e . that of realizing a computer -implemented method, based on machine learning technology, which allows the hyperparameter adjusting phase to be sped up , and the training phase to be made more efficient , evaluating the results deriving from the application of the machine learning algorithm by also increasing the size of the input dataset .
[0053] With particular reference to the figure , the method covered by the present invention includes the analysis 1 of an input dataset containing data obtained from an analysis of objects of a predetermined type , such as one or more machines within a production line . The analysis 1 of the input dataset comprises the following steps : identification of at least one or more independent variables 10 within the input dataset , identification of at least one dependent variable 11 within the input dataset , identification of patterns 12 between the independent variables and the dependent variable .
[0054] Following step 12 , the method of the present invention includes a step 13 relating to generating an output dataset containing an estimate of the values of the dependent variable .
[0055] With particular reference to Figure 1 , step 12 provides for a step of hyperparameter adjusting 121 of the machine learning algorithm and a training step 122 . In fact , each machine learning algorithm has a set of hyperparameters that must be configured, step 121 before proceeding with the training 122 .
[0056] In the training phase 122 , the algorithm is made to learn the patterns existing between the independent variables and the dependent variable based on the historical data . The more historical data available , the more likely that the training will be effective .
[0057] Upon completion of the training 122 , the algorithm is able , having as input certain values of the independent variables , to estimate the value of the dependent variable , reported within the output dataset , step 13.
[0058] Such estimates may be accompanied by a percentage of algorithm reliability, provided by the algorithm itself .
[0059] The method covered by the present invention can ideally be divided into two modules , an analysis module 100 and a validation module 200 , illustrated in Figure 1 with dashed lines .
[0060] The analysis module 100 inputs the input dataset and speeds up the process of hyperparameter adjusting for certain types of use cases . Or rather , it is able to do this when the dataset in question , as it is constituted within a specific use case , has certain characteristics .
[0061] Some of the use cases that can be approached today using the method covered by the present invention are : predictive maintenance and predictive quality in the manufacturing field; demand forecasting in the supply chain field, identification of fraudulent transactions and money laundering operations in the banking field .
[0062] The analysis module 100 uses the input dataset and analyses it in order to calculate a set of metrics 101 that characterize the input dataset .
[0063] In addition , the analysis module 100 comprises specific steps relating to the step of hyperparameter adjusting 121 , in particular :
[0064] - selection ( 102 ) of a type of reference machine learning algorithm,
[0065] - identification 103 of the combination of the values of the hyperparameters that most likely allows obtaining the best performance of the selected machine learning algorithm.
[0066] In accordance with what is described, the analysis module 100 performs an analysis of the input dataset to calculate a set of metrics that characterize the dataset , i . e . mathematically describe a set of principle characteristics .
[0067] Advantageously, the following metrics are calculated, alternatively or in combination : Ratio of positive / negative occurrences metric , calculated on the basis of the ratio of positive occurrences to negative occurrences of the dependent variable (used in the case of binary classification) , Positive occurrence positioning metric , calculated on the basis of the number of positive occurrences of the dependent variable and their positioning over time (used in the case of binary classification) ,
[0068] Sparsity metric, calculated by analysing the sparsity of the classes of the dependent variable in the variable space ,
[0069] Importance of independent variables metric , calculated by analysing the importance of the independent variables .
[0070] According to one possible embodiment , the selection of the metrics described above , taken individually or in combination , is carried out through a method developed by extending the SHAP algorithm, optimized for the management of the categorical variables in order to obtain a value of overall importance (taking into account all levels of the category) for each variable in addition to the importance of the individual levels thereof .
[0071] These metrics are used to speed up the hyperparameter adjusting phase . This is because these metrics allow starting from a set of possible hyperparameter configurations that are already close to the optimal configuration .
[0072] Optimal configuration refers to the combination of the algorithm configuration hyperparameters that allow better identification of the patterns between the independent variables and the dependent variable . If, on the other hand, the above metrics were not used, the process of hyperparameter adjusting would be longer since the space of the possible configurations to be explored would be larger.
[0073] With regard to the step of hyperparameter adjusting 121, first, given the nature of the dataset, whether relating to structured data (tables) or unstructured data (e.g. , images, videos, sounds) , the analysis module 100 selects a type of reference machine learning algorithm 102.
[0074] In the case of structured data, the reference machine learning algorithm is XGBoost (extreme Gradient Boosting) : a specific implementation of the Gradient Boosting method is available in the Python programming language through the 'xgboost' package.
[0075] Next, step 103 requires finding the best combination of values of the characteristic hyperparameters of the XGBoost. This is the combination that is most likely to achieve the best performance of the machine learning algorithm after it has been trained.
[0076] Each hyperparameter can assume values within a specific range and therefore it is necessary to determine for each hyperparameter the optimal value within that range.
[0077] The analysis module 100, on the basis of the characterization metrics described above, narrows the range for the following hyperparameters:
[0078] Max depth with pre-application range analysis module 100: [1.100]
[0079] ETA with pre-application range analysis module 100: (0,1] Scale-pos-weight with pre-application range analysis module 100 : (0 , +°°)
[0080] Nrounds with pre-application range analysis module 100 : (0 , +°°)
[0081] Early with pre-application range analysis module 100 : [ 0 , +°°)
[0082] Max Delta with pre-application range analysis module 100 : [ 0 , +°°)
[0083] Min-child-weight with pre-application range analysis module 100 : [ 0 . 1 ]
[0084] To narrow the search field of the hyperparameters , the analysis module 100 uses the gridSearchCV method optimized for the problem in question .
[0085] The optimization of the GridSearchCV method is carried out through algorithms developed to facilitate the application of the above method to the problem of finding the best combination of hyperparameters in the case of using the XGBoost algorithm in a binary classification problem.
[0086] In particular , the optimisation of the method involves the following steps : the ranges of the hyperparameters are narrowed based on the characterization metrics described above ; a first model selection based on the original GridSearchCV method is applied; a second model selection is applied based on the original GridSearchCV method in the immediate vicinity of the value of the hyperparameters identified in the previous step .
[0087] For example , since the characterization metric called "Positive occurrence positioning metric" is 4 and the "sparsity metric" is 0 . 6 , the Max depth hyperparameter range can be reduced from [ 1 , 100 ] to [ 1 , 50 ] . This process , extended to all of the above hyperparameters , drastically speeds up the process of hyperparameter adjusting 121 .
[0088] The results of narrowing the range of the hyperparameters carried out thanks to the characterization metrics described, are saved in order to pursue a continuous improvement of the performance through the self-refining mechanisms .
[0089] For example , since the characterization metrics for certain input datasets have assumed certain values and after determining the combination of the hyperparameters the result of the training has been particularly satisfactory, the next process of hyperparameter adjusting will be restarted giving greater weight in the search for the optimal value of the Scale-pos-weight hyperparameter .
[0090] It should be noted that it is not the dataset used by the user of the method of the present invention that is saved, but only metadata referring to the process of hyperparameter adjusting .
[0091] Once the process of hyperparameter adjusting 121 has been completed, the training step 122 is predicted using the input dataset after the test set has been separated from it .
[0092] The result of the analysis module 100 is an algorithm for defining patterns between the independent variables and the dependent variable according to the optimal configuration .
[0093] Preferably, this algorithm is accompanied by a reliability index resulting from the tests carried out on the test set : this algorithm is therefore a machine learning algorithm that can be used on new values of independent variables to predict the value of the dependent variable .
[0094] It is important to note that the algorithm output from the analysis module 100 has the ability to predict the value of the dependent variable by distinguishing between those cases where the dependent variable is relatively likely to assume a certain value (occurrences called 'warnings ' ) and those cases where it is very likely to assume that value (occurrences called 'alarms ' ) . In the second case , the algorithm predicts the value of the dependent variable with greater confidence .
[0095] As described above , as an output from the analysis module 100 , the method of the present invention preferably comprises a validation module 200 , which , according to a preferred embodiment , has as input the same dataset as input to the analysis module 100 and the algorithm previously obtained again via the analysis module 100.
[0096] Alternatively, the validation module 200 may have another algorithm as input , already configured and made available by the user of the validation module 200 .
[0097] Regardless of the input , whether it is the input database and the algorithm output from the analysis module 100 or an algorithm made available by the user of the validation module 200 , the validation module 200 outputs a set of technical and economic indicators that estimate the performance of the algorithm and the economic results obtainable as the dataset varies , both in the case of different independent variables and as the size of the dataset itself increases .
[0098] These indicators may be comprised within the output dataset 13 , described above . The validation module 200 first provides a selection of the type of performance metric that is intended to be used to evaluate the performance of the machine learning algorithm.
[0099] In case of binary categorization problems , such as the predictive maintenance problem, in which the objective is to predict the state of the production machine against its operating parameters (the state of the machine can only assume two values 0-regular operation , 1-fault) , the validation module 200 proposes to the user the following metric :
[0100] Binary performance metric : using True Positive , False Positive , True Negative , and False Negative , the accuracy of positive occurrences and negative occurrences and the precision are calculated . If the precision is greater than the ratio of positive to negative occurrences , the binary performance metric may take values in the range (0 ; 1 ] , while if the precision is less than or equal to the ratio of positive to negative occurrences , the binary performance metric will be in the range ( -°° ; 0 ] .
[0101] At this point the algorithm to be used as input can be chosen , step 132 .
[0102] As discussed, according to a preferred execution variant of the method of the present invention , the algorithm used is the output of the analysis module 100 .
[0103] Then , step 133 , a variable , e . g . Dataset Size , is identified to define the size of the dataset , in order to analyse the evolution of the performance metrics due to retraining as the amount of data increases and, subsequently, by means of pseudo-exponential interpolation mechanisms developed for this specific application , a function is constructed, step 134 , which has as its independent variable the Datasize with values from 0 to the number of records constituting the dataset as input to the validation module 200 (the same as input to the analysis module 100) , and as its dependent variable the performance metrics , evaluated at certain values of the Datasize variable specifically calculated by methods designed to reduce overfitting phenomena .
[0104] According to a preferred embodiment , it is possible to provide a further step in which the function constructed in the previous step is used to estimate the value of the performance metric at 2x , 5x and lOx .
[0105] "Performance metric at 2x" means the estimated value of the performance metric when there are twice as many records as in the dataset used as input to the validation module 200 .
[0106] "Performance metric at 5x" means the estimated value of the performance metric when there are 5 times as many records in the dataset used as input to the validation module 200 .
[0107] "Performance metric at lOx" means the estimated value of the performance metric when there are 10 times as many records in the dataset used as input to the validation module 200 .
[0108] It is possible that the validation module 200 is not able to determine the values of the performance metric at 2x, 5x and lOx since for each of these three values the validation module 200 also calculates an estimation error (e . g . + / - 0 . 01 ) and if this is in fact higher than a certain settable threshold, the value of the metric is set to 'not available' (n / a) . The more the estimate moves towards higher amounts of records (that is , the value of the Datasize variable increases) , the larger the estimation error tends to be since it deviates from a known situation .
[0109] It is therefore possible that there may be cases in which the validation module 200 is able to provide the performance metric at 2x and 5x , but not at lOx, as well as cases in which it is able to provide only the performance metric at 2x , and even cases in which it is not even able to provide the performance metric at 2x if the condition occurs whereby the dataset exhibits a strongly abnormal behaviour with respect to the typical trend of datasize-performance functions available in the literature .
[0110] Finally, a step of calculation of technical and / or economic indicators is provided, step 135 .
[0111] As will be described later , on the basis of the technical indicators , economic indicators can be calculated, such as minimum performance for the release of the model into production , time instant at which this performance value will be reached, payback period and ROI at different future time moments .
[0112] This step is preferably performed through the calculation of specific metrics , such as reliability, relevance of time order and sensitivity metrics .
[0113] Reliability, time-order relevance and sensitivity metrics , together with performance metrics , can be used to calculate economic metrics , but they also have value independent of economic indicators as they complete the information set for technical indicators .
[0114] The reliability metric indicates how reliable is the function used to calculate the performance metric , the timing relevance metric indicates how relevant is the timing of dataset records (when available) in calculating the performance metric, and the sensitivity metric indicates how sensitive is the performance metric to varying the hyperparameters .
[0115] The reliability metric is determined by analysing the behaviour of the calculated function with respect to the dataset in question . The value of the reliability metric increases as the function is more able to correctly evaluate the evolution of the performance metric as the dataset size increases until the number of records constituting the dataset with a reduced degree of variability was reached .
[0116] The reliability metric is used to calculate the estimation error with respect to increasing the size of the dataset to 2x , 5x , and lOx as described above .
[0117] The time order relevance metric is calculated by analysing how much the calculated function and the reliability index vary when the dataset is used, maintaining the time order of the records that constitute it with respect to the situation wherein the time order in which the records were generated is not taken into account . The more dissimilar the function is , the greater the value of the time-order relevance metric .
[0118] The sensitivity metric is calculated by evaluating which are the hyperparameters that most affect the performance metric and how changes in the values of these hyperparameters affect the performance metric itself . The value of the sensitivity metric increases in relation to a decrease in size in the variations in the hyperparameters causing large variations in the performance metric . This means that the algorithm configuration tends to be more laborious than in the case where the value of the sensitivity metric is low .
[0119] The range of the sensitivity metric is (0 , 1 ] .
[0120] Then in step 135 , through the use of economic parameters relating to the use case in question provided by the user of the method of the present invention , taking into account the calculated function , and on the basis of the performance , reliability and sensitivity metrics , the minimum performance for which it is convenient to release the model into production and the estimated time instant of when this performance will be achieved, the project payback period, the return on investment (ROI ) at different future time instants , and the reallocatable work-hours on activities with greater added value for the individual is estimated .
[0121] The following describes a possible procedure for calculating these metrics .
[0122] The user is asked for , among other things , estimates of the cost savings resulting from being able to predict and prevent the occurrence of the undesired class (e . g . in the predictive maintenance problem, the ’ faulty ’ state) , the expense of preventing this occurrence and the inefficiencies due to the preventive intervention .
[0123] These economic estimates are used, together with the performance-Datasize function and the previously calculated performance , reliability and sensitivity metrics , to produce , according to simulation logics , the indicators listed below .
[0124] - Minimum value of the performance metric for the release of the machine learning model into production : corresponds to the value of the performance metric from which the estimated revenues (often attributable to losses) deriving from the use of the machine learning algorithm exceed the estimated costs .
[0125] - Payback period : time past which the estimated cumulative revenues equal the estimated cumulative costs to be incurred .
[0126] - Return on Investment (ROI ) , expressed in the currency selected by the user , represents the value of the investment with respect to a selectable time horizon (e . g . 1 year , 2 years , etc . ) . This is calculated by subtracting from the estimated total revenues the estimated total costs taking into account the discounted cost of money in the event that the selected time horizon exceeds one year .
[0127] - Reallocatable work-hours on activities with greater added value for the individual : on the basis of the number of people dedicated to carrying out the activity covered by the business case and the average time they take to carry out this activity, assuming that this can be supported by the machine learning model , the work-hours saved over a selectable time horizon is calculated (e . g . first 3 months from the production of the machine learning algorithm, first 6 months from the production of the machine learning algorithm, etc . ) . The time saved by each individual can be viewed as allocatable to higher value-added activities for the individual . Such activities may include , for example , training and team building . In addition, the above economic parameters can be used to define a performance metric more suited to the use case under consideration through a more accurate model selection process.
[0128] EMBODIMENT EXAMPLE
[0129] As anticipated, one of the areas of application of the method covered by the present invention is predictive maintenance.
[0130] For predictive maintenance, reference is made to the following use case.
[0131] Purpose: to predict when a failure of a mechanical instrument (e.g. production machine) is likely to occur in order to prevent it.
[0132] Technical assumptions
[0133] Independent variables : operating parameters of the production machine from industrial systems (microcontrollers, etc.) (e.g. spindle rotation speed, machining temperature, etc.) and context parameters (e.g. type of product being processed, operator experience, etc.) . An input dataset containing 100,000 records is assumed to be used.
[0134] Number of days to collect 1000 new records: 0.45 d
[0135] Dependent variable: machine status (0: Function, 1: Fault, therefore binary classification problem) , Applied machine-learning algorithm: XGBoost. Economic assumptions economic savings deriving from the possibility of being able to predict and prevent failure: € 1,500 expense to prevent this occurrence related to the cost of the intervention: € 100 inefficiencies due to the prevention intervention (e.g. lack of production due to the stop of the machine necessary to carry out the prevention intervention) : € 1,000 cost caused by error: € 300 initial cost of putting the system into production: € 20,000
[0136] The use of the method covered by the present invention applied to the aforementioned use case is developed according to the following steps:
[0137] Analysis of the historical dataset made available by the customer (analysis module 100) : the characterization metrics described above are calculated.
[0138] Configuration of the algorithm resulting from the analysis module 100: characterization metrics are used to produce this algorithm.
[0139] Example of a reduction in the range of hyperparameters obtained thanks to the use of characterization metrics:
[0140] Max depth with pre-application range analysis module 100: [1 , 100] [1 ,50]
[0141] ETA with pre-application range analysis module 100: (0,l]→ (0,5,1]
[0142] Scale-pos-weight with pre-application range analysis module 100: (0, +°°) → (0, 25)
[0143] Nrounds with pre-application range analysis module 100: (0, +°°)→ (0, 10)
[0144] Early with pre-application range analysis module 100: [0, +°°)→ (0, 40)
[0145] Max Delta with pre-application range analysis module 100: [0, +°°)→ (0, 35) Min-child-weight with pre-application range analysis module 100: [0,1]-^ [0, 0.3]
[0146] The economic and technical parameters assumed are used to define a performance metric so that the model selection process produces the best configuration of hyperparameters suitable for the use case under consideration .
[0147] Example of the best configuration of the most relevant hyperparameters with which to train the machine learning algorithm:
[0148] Max depth: 10
[0149] Eta: 0.6
[0150] Scale-pos-weight : 12
[0151] Nrounds : 5
[0152] Early: 15
[0153] Max Delta: 28
[0154] Min-child-weight: 0.3
[0155] With regard to the production of the technical metrics of performance, reliability, time order relevance and sensitivity, the following results can be reported:
[0156] Performance metric at 100,000 records: 0.6
[0157] Performance metric at 2x (200,000 records) : 0.7 with error + / - 0.01
[0158] Performance metric at 5x (500,000 records) : 0.75 with error + / - 0.05
[0159] Performance metric at lOx (1,000,000 records) : 0.77 with error + / - 0.09
[0160] Reliability metric: 0.8
[0161] Time order relevance metric: 0.1
[0162] Sensitivity metric: 0.7
[0163] The technical metrics, referring to the economic assumptions in the introduction, are used to calculate the economic metrics: minimum value of the performance metric for the release of the machine learning model into production, the estimated time instant at which this value of performance, payback period, ROI and reallocatable work-hours will be reached on activities with greater added value for the individual.
[0164] Example of results: minimum value of the performance metric for the release of the machine learning model into production: 0.75, time to achieve the performance metrics for the release of the machine learning model into production: 6 months
[0165] Payback period: 10 months
[0166] 1 Year ROI: € 10,000,
[0167] 2 Year ROI: € 70,000,
[0168] 3 Year ROI: € 180,000, work-hours reallocatable to activities with greater added value for the individual over the first 3 months after the machine learning model has been released in production: 96 work-hours per individual.
[0169] Based on the calculations above, the described indicators are analysed to understand whether and when the algorithm resulting from the analysis module 100 will produce sufficiently good performance to be used as an integral part of the production process.
[0170] The first value to be analysed is the minimum value of the performance metric for the release of the machine learning model into production. In the example this is equal to 0.75, which will be reached, observing the performance metric at 5x, with a dataset having 500,000 records . If the customer knows how much time it takes to collect an additional 400 , 000 records compared to the initial 100 , 000 , it is possible to estimate when it will be an appropriate time to put the machine learning model into production . If it takes about 6 months to collect 400 , 000 records , this will be the recommended period before releasing the machine learning model into production .
[0171] The information set supporting the customer ’ s decision-making process to decide whether to invest in the machine learning project applied to predictive maintenance is made up of : the period to wait for the release into production , the payback period, the ROI and the work-hours reallocatable to activities with greater added value for the individual .
[0172] It should be noted that as any condition of the input dataset varies , e . g . even just one different variable in addition to the dataset, differently cleaned data , time aggregation functions applied to different independent variables , etc . , or as the economic assumptions reported above vary, the procedure described must be repeated as a different dataset and different economic assumptions tend to lead to different technical and economic metrics .
[0173] This represents a great added value brought by the method of the present invention because it allows in fact different simulation scenarios to be produced, including best-case scenario and worst-case scenario .
[0174] In the example given , the customer should make the investment .
[0175] The algorithm output from the analysis module 100 is then installed on a PC at the factory and on a regular basis , for example every 5 min , it predicts whether a fault is likely to occur on the machine in the next 5 minutes through the application of the same algorithm.
[0176] The prediction will be communicated to those in charge so that they can carry out the appropriate prevention interventions only after a time equal to at least the time calculated on the basis of the value of the metric 'minimum value of the performance metric for the release of the machine learning model into production' (in the example described here this time is equal to 6 months) .
[0177] The performance of the algorithm is monitored over time to evaluate whether it is consistent with what is estimated through the performance metric, verifying for example if at 200 , 000 records the performance has actually improved to 0 . 7 as expected by the 2x performance metric .
[0178] While the invention is subject to various modifications and alternative constructions , some preferred embodiments have been shown in the drawings and described in detail .
[0179] It should be understood, however , that there is no intention to limit the invention to the specific illustrated embodiment but , on the contrary, the aim is to cover all the modifications , alternative constructions and equivalents falling within the scope of the invention as defined in the claims .
[0180] The use of "for example" , "etc . " or "or" refers to non-exclusive non-limiting alternatives , unless otherwise stated .
[0181] The use of "includes" means "includes but is not limited to" , unless otherwise stated .
Claims
CLAIMS1 . Computer-implemented method for a software infrastructure , wherein the software infrastructure is based on machine learning techniques and is intended for the analysis of an input dataset ( 1 ) containing data obtained from analyses carried out in projects and / or in objects of a predetermined type , the method providing the following steps : a) identification of at least one independent variable ( 10) within the input dataset , b) identification of at least one dependent variable ( 11 ) within the input dataset , c) identification of the relationship ( 12 ) between the independent variable and the dependent variable , step c) providing a step of hyperparameter adjusting ( 121 ) of the machine learning algorithm and a training step ( 122 ) , d) generation of an output dataset ( 13) containing an estimate of the values of the dependent variable , characterized in that an input dataset analysis step is provided in order to calculate a set of metrics ( 101 ) that characterize the input dataset , the step of hyperparameter adjusting ( 121 ) providing for the following steps : selection of a type of reference machine learning algorithm ( 102 ) ,- identification of the combination of the values of the hyperparameters ( 103) that most likely allows obtaining the best performance of the selected machine learning algorithm.2 . Method according to claim 1 , wherein the input dataset is made up of data detected by a plurality of- 29 -sensors , aimed at detecting one or more operating conditions of at least one machine .
3. Method according to claim 1 or claim 2 , wherein the calculated metrics comprise : ratio of positive / negative occurrences metric , calculated on the basis of the ratio of positive occurrences to negative occurrences of the dependent variable (in the case of binary classification) , positive occurrence positioning metric , calculated on the basis of the number of positive occurrences of the dependent variable and their positioning over time (in the case of binary classification) , sparsity metric, calculated by analysing the sparsity of the classes of the dependent variable in the variable space , importance of independent variables metric , calculated by analysing the importance of the independent variables .4 . Method according to claim 3 , wherein the selection of said metrics is carried out through a method based on the SHAP algorithm, optimized for the management of categorical variables in order to obtain a value of overall importance for each variable in addition to the importance of the individual levels thereof .5 . Method according to one or more of the preceding claims , wherein there is a step of storing the values relating to the adjustment of the obtained hyperparameters .6 . Method according to one or more of the preceding claims , wherein a step e) is envisagedfollowing step d) and relating to the evaluation of the performance of steps c) and d) .7 . Method according to claim 6 , wherein step c) involves the following steps : el ) selection of a certain type of performance metric ( 131 ) , e2 ) selection of a certain type of machine learning algorithm, ( 132 ) , e3) identification of a variable to define the size of the input dataset ( 133) , e4 ) generation of a function ( 134 ) aimed at analysing the evolution of the performance metric , which function has as an independent variable the dimensions of the dataset and as a dependent variable the values of the performance metric , e5) calculation of estimation indicators ( 135) .8 . Method according to claim 7 , wherein step e4 ) involves the following sub-steps :- analysis of the behaviour of said function , analysis of the variation of said function taking into account the time course with which the data belonging to the input dataset are generated and without taking into account the time course with which the data belonging to the input dataset are generated,- identification of the hyperparameters that have the greatest impact on the performance of said function .
9. Method according to claim 7 , wherein step el ) provides for the choice of a metric in which the accuracies on positive occurrences and negative occurrences and the precision are calculated, such that if the precision is greater than the ratio of positiveto negative occurrences said performance metric assumes values in the range between 0 and 1 , while if the precision is less than or equal to the ratio of positive to negative occurrences said performance metric assumes values in the range between -°° and 0 .10 . Method according to claim 7 , wherein step e4 ) comprises calculating an estimation error and identifying a threshold value of said error , as well as calculating a sensitivity metric of the configuration of the machine learning algorithm with respect to changes in the hyperparameters upon retraining of the algorithm.11 . Method according to one or more of the preceding claims , wherein step e5) provides for the calculation of technical indicators , such as the most suitable timing for the release of the machine learning algorithm into production and the reallocatable work- hours .
