Method and device for obtaining time series features using machine learning model

By dynamically updating the machine learning model and adjusting hyperparameters, time series features are obtained, which solves the problems of high threshold for obtaining time series features and poor prediction results in the existing technology, and achieves more accurate and efficient time series information extraction.

CN110717597BActive Publication Date: 2024-09-10THE FOURTH PARADIGM BEIJING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910554851.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-06-26
Filing Date
2019-06-25
Publication Date
2024-09-10
Estimated Expiration
2039-06-25

AI Technical Summary

Technical Problem

Existing technologies require a large amount of manpower and computing resources to obtain time series features. The threshold is high and it is difficult to effectively reflect the time series information of streaming data, resulting in unsatisfactory prediction results.

Method used

By obtaining data to be processed that flows in in time series, the machine learning model is updated using data based on real results, and hyperparameters are set according to changes in distribution status, and model parameters are dynamically adjusted to obtain time series characteristics.

Benefits of technology

It reduces labor costs, improves the accuracy and objectivity of time series features, and enhances the prediction effect of machine learning models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110717597B_ABST
    Figure CN110717597B_ABST
Patent Text Reader

Abstract

A method and device for obtaining time series features using a machine learning model are provided. The method comprises: obtaining data to be processed that flows in in time series, and obtaining the real result of the data to be processed when the data to be processed has a real result; according to the time series of the data to be processed, continuously updating the machine learning model using training data formed based on at least a portion of the data to be processed that has a real result; and obtaining time series features corresponding to the current data to be processed based on parameter items related to at least one model parameter of the machine learning model currently being updated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application claims priority to Chinese patent application number 201810671327.X, filed on June 26, 2018, entitled “Method and device for obtaining time series features using a machine learning model”. This application generally relates to the field of artificial intelligence, and more specifically, to a method and device for obtaining time series features using a machine learning model, and a method and system for performing machine learning processing. Background Art

[0002] With the emergence of massive data, artificial intelligence technology has developed rapidly, and machine learning is the inevitable product of artificial intelligence development to a certain stage. It is committed to mining valuable potential information from large amounts of data through computing means.

[0003] In the field of machine learning, machine learning models are often trained by providing empirical data to machine learning algorithms to determine the ideal parameters that constitute the machine learning models. The trained machine learning models can be used to provide corresponding prediction results when facing new prediction data. The machine learning models of many classic algorithms are often based on static data models, that is, they assume that there is no order between data and they are all randomly generated according to the same probability distribution, resulting in the temporal nature of the data itself not being considered by the model. However, in the actual scenarios of applying machine learning, data is often generated in a streaming manner, and features related to temporal nature are very important (for example, users' recent continuous consumption behavior, etc.). Although there are some methods for extracting temporal features from data, they usually use methods such as artificially designed time windows for statistics to obtain temporal features. These methods not only require operators to understand machine learning technology, but also require expert knowledge of relevant specific businesses, and require a lot of manpower and computing resources, resulting in a high threshold for using these methods and a high cost for extracting temporal features. In addition, each time an application scenario is changed, the corresponding rules need to be redesigned in combination with the application scenario. Even if a lot of manpower is spent, the time series features obtained by this method are difficult to effectively reflect the time series information of the real streaming data, resulting in unsatisfactory prediction results. Summary of the invention

[0004] According to an exemplary embodiment of the present application, a method for obtaining time series features using a machine learning model is provided, and the method may include: obtaining data to be processed that flows in in time series, and obtaining the real results of the data to be processed when the data to be processed has real results; according to the time series of the data to be processed, continuously updating the machine learning model using training data formed based on at least a portion of the data to be processed with real results; based on parameter items related to at least one model parameter of the machine learning model currently being updated, obtaining time series features corresponding to the current data to be processed.

[0005] Optionally, the method may further include: monitoring the distribution state change of the data to be processed that flows in in time sequence; and setting a hyperparameter for updating the machine learning model according to the monitoring result. Optionally, the step of updating the machine learning model may include: updating the machine learning model using the training data based on the set hyperparameter.

[0006] Optionally, the step of setting hyperparameters for updating the machine learning model may include: when it is determined according to the monitoring results that a distribution state change exceeding a threshold has occurred, all hyperparameters for updating the machine learning model are reset to replace the hyperparameters currently used to update the machine learning model; when it is determined according to the monitoring results that no distribution state change exceeding the threshold has occurred, partially adjusting the hyperparameters currently used to update the machine learning model.

[0007] Optionally, the monitoring step may include: monitoring the distribution status of the data to be processed that flows in in time series and / or the model effect of the machine learning model.

[0008] Optionally, the method may further include: selecting the at least a portion of the to-be-processed data having real results according to the monitored distribution state and / or model effect.

[0009] Optionally, in the method, parameter items related to at least one model parameter of the machine learning model currently being updated may include the model parameters themselves, calculation results between model parameters and / or statistical information of the model parameters during the updating process of the machine learning model.

[0010] Optionally, the machine learning model may include multiple machine learning models, and the algorithm type of each machine learning model may be the same or different.

[0011] Optionally, the data to be processed is time-series data generated in content recommendation, credit card fraud detection, abnormal behavior detection, user interest extraction or precision marketing scenarios.

[0012] Optionally, in a content recommendation scenario, the data to be processed includes data related to candidate recommended content that the content operator wishes to recommend to the user, as well as user historical operation data and / or user-related data continuously obtained by the content operator from the user device during the operation of the App.

[0013] Optionally, the data to be processed is time-series data generated in any of the following scenarios:

[0014] Image processing scenarios;

[0015] Speech recognition scenario;

[0016] Natural language processing scenarios;

[0017] Automatically control the scene;

[0018] Intelligent question-answering scenario;

[0019] Business decision scenarios;

[0020] Recommended business scenarios;

[0021] Search scene;

[0022] Abnormal behavior detection scenario.

[0023] Optionally,

[0024] The image processing scenarios include: optical character recognition (OCR), face recognition, object recognition and image classification;

[0025] The speech recognition scenarios include: products that can perform human-computer interaction through speech;

[0026] The natural speech processing scenarios include: reviewing text, identifying spam content, and classifying text;

[0027] The automatic control scenarios include: prediction of mine group regulation operation, prediction of wind turbine group regulation operation and prediction of air conditioning system regulation operation;

[0028] The intelligent question-answering scenarios include: chatbots and intelligent customer service;

[0029] The business decision-making scenarios include: financial technology, medical and municipal fields. The financial technology field includes: marketing and customer acquisition, anti-fraud, anti-money laundering, underwriting and credit scoring; the medical field includes: disease screening and prevention, personalized health management and auxiliary diagnosis; the municipal field includes: social governance and regulatory enforcement, resource environment and facility management, industrial development and economic analysis, public services and people's livelihood security and smart cities;

[0030] The recommendation business scenarios include: recommendations of news, advertisements, music, consulting, videos and financial products;

[0031] The search scenarios include: web page search, image search, text search, and video search;

[0032] The abnormal behavior detection scenarios include: abnormal power consumption behavior detection of State Grid customers, network malicious traffic detection and abnormal behavior detection in operation logs.

[0033] According to another exemplary embodiment of the present application, a method for performing machine learning processing is provided, which may include: obtaining time series features using a machine learning model according to the above method; generating a machine learning sample corresponding to the current data to be processed, wherein the machine learning sample includes the time series features.

[0034] Optionally, the method may also include: using other machine learning models to perform predictions on the machine learning samples, or using the machine learning samples to train the other machine learning models, wherein the other machine learning models have the same prediction target as the machine learning model.

[0035] Optionally, in the method, the characteristics of the machine learning sample may further include: statistical information of the training data based on a time window.

[0036] According to another exemplary embodiment of the present application, a computer-readable medium for acquiring time series features using a machine learning model is provided, wherein a computer program for executing the above-mentioned method of acquiring time series features using a machine learning model is recorded on the computer-readable medium.

[0037] According to another exemplary embodiment of the present application, a computing device for obtaining timing features using a machine learning model is provided, including a storage component and a processor, wherein a set of computer executable instructions is stored in the storage component, and when the computer executable instruction set is executed by the processor, the processor is prompted to execute the above-mentioned method for obtaining timing features using a machine learning model.

[0038] According to another exemplary embodiment of the present application, a computer-readable medium for performing machine learning processing is provided, wherein a computer program for performing the above-mentioned method of performing machine learning processing is recorded on the computer-readable medium.

[0039] According to another exemplary embodiment of the present application, a computing device for performing machine learning processing is provided, including a storage component and a processor, wherein a set of computer executable instructions is stored in the storage component, and when the set of computer executable instructions is executed by the processor, the processor is prompted to perform the above-mentioned method for performing machine learning processing.

[0040] According to another exemplary embodiment of the present application, there is provided an apparatus for acquiring timing features using a machine learning model, and the apparatus may include: a data acquisition unit, configured to acquire data to be processed that flows in in a timing sequence, and acquire the real result of the data to be processed when the data to be processed has a real result; a machine learning model updating unit, configured to continuously update the machine learning model according to the timing of the data to be processed by using training data formed based on at least a portion of the data to be processed that has a real result; and a timing feature acquisition unit, configured to acquire timing features corresponding to the current data to be processed based on parameter items related to at least one model parameter of the machine learning model currently being updated.

[0041] Optionally, the device may also include: a monitoring unit configured to monitor changes in the distribution state of the data to be processed that flows in in a time series; a hyperparameter setting unit configured to set hyperparameters for updating the machine learning model based on the monitoring results, wherein the machine learning model updating unit may be configured to update the machine learning model using the training data based on the set hyperparameters.

[0042] Optionally, the hyperparameter setting unit can be configured to: when it is determined according to the monitoring results that a distribution state change that exceeds a threshold has occurred, all hyperparameters used to update the machine learning model are reset to replace the hyperparameters currently used to update the machine learning model; when it is determined according to the monitoring results that no distribution state change that exceeds the threshold has occurred, partially adjust the hyperparameters currently used to update the machine learning model.

[0043] Optionally, the monitoring unit may be configured to monitor the distribution status of the data to be processed that flows in in time series and / or the model effect of the machine learning model.

[0044] Optionally, the device may further include: a data selection unit configured to select at least a portion of the to-be-processed data having real results according to the monitored distribution status and / or model effect.

[0045] Optionally, parameter items related to the model parameters of the machine learning model currently being updated may include the model parameters themselves, calculation results between the model parameters and / or statistical information of the model parameters during the updating process of the machine learning model.

[0046] Optionally, the machine learning model may include multiple machine learning models, and the algorithm type of each machine learning model may be the same or different.

[0047] Optionally, the data to be processed is time-series data generated in content recommendation, credit card fraud detection, abnormal behavior detection, user interest extraction or precision marketing scenarios.

[0048] Optionally, in a content recommendation scenario, the data to be processed includes data related to candidate recommended content that the content operator wishes to recommend to the user, as well as user historical operation data and / or user-related data continuously obtained by the content operator from the user device during the operation of the App.

[0049] Optionally, the data to be processed is time-series data generated in any of the following scenarios:

[0050] Image processing scenarios;

[0051] Speech recognition scenario;

[0052] Natural language processing scenarios;

[0053] Automatically control the scene;

[0054] Intelligent question-answering scenario;

[0055] Business decision scenarios;

[0056] Recommended business scenarios;

[0057] Search scene;

[0058] Abnormal behavior detection scenario.

[0059] Optionally,

[0060] The image processing scenarios include: optical character recognition (OCR), face recognition, object recognition and image classification;

[0061] The speech recognition scenarios include: products that can perform human-computer interaction through speech;

[0062] The natural speech processing scenarios include: reviewing text, identifying spam content, and classifying text;

[0063] The automatic control scenarios include: prediction of mine group regulation operation, prediction of wind turbine group regulation operation and prediction of air conditioning system regulation operation;

[0064] The intelligent question-answering scenarios include: chatbots and intelligent customer service;

[0065] The business decision-making scenarios include: financial technology, medical and municipal fields. The financial technology field includes: marketing and customer acquisition, anti-fraud, anti-money laundering, underwriting and credit scoring; the medical field includes: disease screening and prevention, personalized health management and auxiliary diagnosis; the municipal field includes: social governance and regulatory enforcement, resource environment and facility management, industrial development and economic analysis, public services and people's livelihood security and smart cities;

[0066] The recommendation business scenarios include: recommendations of news, advertisements, music, consulting, videos and financial products;

[0067] The search scenarios include: web page search, image search, text search, and video search;

[0068] The abnormal behavior detection scenarios include: abnormal power consumption behavior detection of State Grid customers, network malicious traffic detection and abnormal behavior detection in operation logs.

[0069] According to another exemplary embodiment of the present application, a system for performing machine learning processing is provided, and the system may include: the above-mentioned device for obtaining time series features using a machine learning model; a machine learning sample generating device, configured to generate a machine learning sample corresponding to the current data to be processed, wherein the machine learning sample includes the time series features.

[0070] Optionally, the system may also include: a prediction device, configured to use other machine learning models to perform predictions on the machine learning samples; or, a training device, configured to use the machine learning samples to train the other machine learning models, wherein the other machine learning models have the same prediction target as the machine learning model.

[0071] Optionally, the characteristics of the machine learning sample may further include: statistical information of the training data based on a time window.

[0072] According to the method and device for obtaining time series features using a machine learning model according to the exemplary embodiments of the present application, the machine learning model can be continuously updated, and the time series features can be obtained based on parameter items related to the model parameters of the currently updated machine learning model, thereby being able to continuously use the machine learning model itself to obtain time series features that can more accurately and objectively reflect the time series information of the data, and at the same time, can reduce the labor cost in the machine learning process.

[0073] The method and system for performing machine learning processing according to the exemplary embodiments of the present application can effectively utilize the time series features acquired in the above manner, and therefore can improve the prediction effect (for example, prediction accuracy) of the subsequent machine learning model on the machine learning samples including the time series features. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] These and / or other aspects and advantages of the present application will become clearer and easier to understand from the following detailed description of the embodiments of the present application in conjunction with the accompanying drawings, in which:

[0075] Figure 1 is a block diagram showing an apparatus for acquiring time series features using a machine learning model according to an exemplary embodiment of the present application;

[0076] Figure 2 is a block diagram showing an apparatus for acquiring time series features using a machine learning model according to another exemplary embodiment of the present application;

[0077] Figure 3 is a block diagram illustrating a system for performing machine learning processing according to an exemplary embodiment of the present application;

[0078] Figure 4 is a flowchart illustrating a method for acquiring time series features using a machine learning model according to an exemplary embodiment of the present application;

[0079] Figure 5 is a flowchart illustrating a method of performing a machine learning process according to an exemplary embodiment of the present application;

[0080] Figure 6 is a schematic diagram illustrating a recommendation network including a system for performing a machine learning process according to an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0081] In order to enable those skilled in the art to better understand the present application, exemplary embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0082] Figure 1 1 is a block diagram showing an apparatus for acquiring time series features using a machine learning model according to an exemplary embodiment of the present application (hereinafter, for convenience of description, it is referred to as a time series feature acquisition apparatus) 100. Figure 1 , the time series feature acquisition device 100 may include a data acquisition unit 110, a machine learning model updating unit 120 and a time series feature acquisition unit 130.

[0083] Specifically, the data acquisition unit 110 can acquire the data to be processed that flows in in time sequence, and acquire the real result of the data to be processed when the data to be processed has a real result. Here, the data to be processed can be streaming data that flows in in time sequence, and the data acquisition unit 110 can continuously acquire the data to be processed that flows in from an external data source (e.g., a content operator) in a streaming manner, or the data to be processed that flows in from an external data source at one time or in batches. For example, the data to be processed here can be data related to the candidate recommended content that the content operator wants to recommend to the user, however, the data to be processed is not limited to this, but can be data continuously generated by any type of data source, or data continuously acquired by any type of data acquisition device (e.g., user historical operation data that the content operator continuously acquires from the user device during the running of the App, etc.), in addition, such data can also include data related to the user (e.g., user ID, age, gender, etc.). In addition to acquiring the data to be processed that flows in in time sequence, the data acquisition unit 110 can also acquire the real result of the data to be processed when the data to be processed has a real result. Here, the real result can be the real label information of the data to be processed about the prediction target. For example, the real result of the data to be processed may be the real feedback on whether the candidate recommended content corresponding to the data to be processed is accepted by the user after being actually recommended to the user device. "The data to be processed has a real result" indicates that the real tag information of the data to be processed about the prediction target has been known (for example, the content operator has obtained the real feedback from the user device on whether the candidate recommended content actually recommended is accepted by the user after being recommended, for example, the user clicks on the recommended content to indicate that the user accepts the recommended content). In this case, the data acquisition unit 110 can obtain the real result of the data to be processed. In addition, it should be noted that the acquisition of the data to be processed and the acquisition of the real result when the data to be processed has a real result may not be carried out at the same time. For example, the acquisition of the real result of the data to be processed may lag behind the acquisition of the data to be processed. That is to say, the data acquisition unit 110 can continuously acquire the data to be processed that continuously flows in in time sequence on the one hand, and also correspondingly acquire the real results of each data to be processed on the other hand. For this reason, the external data source can provide only the corresponding real results of the data to be processed in an appropriate manner after providing the data to be processed, or the external data source can also provide the data to be processed and its real results in full after providing the data to be processed. It should be noted that the exemplary embodiments of the present invention do not limit the specific manner in which the data acquisition unit 110 acquires the data to be processed and its true results, that is, the data acquisition unit 110 can acquire the data to be processed and / or the true results of the data to be processed through appropriate reception, extraction and / or splicing processing.

[0084] In an embodiment of the present invention, in a recommendation scenario, the data to be processed acquired by the data acquisition unit 110 may include the aforementioned "data related to candidate recommended content that the content operator wishes to recommend to the user", and may also include: "user historical operation data continuously acquired by the content operator from the user device during the operation of the App" and / or "data related to the user".

[0085] In an embodiment of the present invention, the data to be processed acquired by the data acquisition unit 110 may also be time-series data generated in credit card fraud detection, abnormal behavior detection, user interest extraction or precision marketing scenarios.

[0086] Further, in the embodiment of the present invention, the data to be processed acquired by the data acquisition unit 110 may be any data with time series. Specifically, the scenarios for generating data with time series include but are not limited to the following scenarios:

[0087] Image processing scenarios include: optical character recognition (OCR), face recognition, object recognition and image classification. For example, OCR can be applied to bill (such as invoice) recognition, handwriting recognition, etc., face recognition can be applied to security and other fields, object recognition can be applied to traffic sign recognition in autonomous driving scenarios, and image classification can be applied to "take a photo and buy" and "find the same item" on e-commerce platforms.

[0088] Voice recognition scenarios, including products that enable human-computer interaction through voice, such as mobile phone voice assistants (such as Siri on Apple phones) and smart speakers;

[0089] Natural language processing scenarios, including: reviewing text (such as contracts, legal documents, and customer service records), identifying spam content (such as identifying spam text messages), and classifying text (emotion, intent, and topic).

[0090] Automatic control scenarios include: prediction of adjustment operations of mine groups, wind turbine groups and air conditioning systems; specifically, for mine groups, a group of adjustment operations with high mining rates can be predicted; for wind turbine groups, a group of adjustment operations with high power generation efficiency can be predicted; for air conditioning systems, a group of adjustment operations that can meet demand while saving energy can be predicted;

[0091] Intelligent question-and-answer scenarios, including chatbots and intelligent customer service;

[0092] Business decision-making scenarios, including: scenarios in the fields of financial technology, medical care, and municipal administration, among which:

[0093] The financial technology field includes: marketing (such as coupon usage prediction, ad click behavior prediction, user portrait mining, etc.) and customer acquisition, anti-fraud, anti-money laundering, underwriting and credit scoring, and commodity price prediction;

[0094] Medical fields include: disease screening and prevention, personalized health management and auxiliary diagnosis;

[0095] The municipal sector includes: social governance and regulatory enforcement, resource environment and facility management, industrial development and economic analysis, public services and livelihood security, and smart cities (deployment and management of various urban resources such as public transportation, online car-hailing, and shared bicycles);

[0096] Recommended business scenarios, including: recommendations of news, advertising, music, consulting, videos, and financial products (such as financial management, insurance, etc.);

[0097] Search scenarios include: web search, image search, text search, video search, etc.;

[0098] Abnormal behavior detection scenarios include: abnormal behavior detection of State Grid customers’ electricity consumption, network malicious traffic detection, abnormal behavior detection in operation logs, etc.

[0099] The data to be processed acquired by the data acquisition unit 110 is determined according to the specific scenario and the different prediction targets in the specific scenario. For example, under the scenario classification of business decision-making, taking commodity price prediction as an example, the data to be processed is data about commodities at different time points / periods, such as the attributes of the commodity itself, season, weather, inventory, competitive product situation and other related data, and the real result is the actual price of the commodity at the corresponding time point / time period. For another example, taking the prediction of the distribution of online car-hailing orders as an example, the data to be processed can be related data of different locations at different time points / periods, such as geographical location attributes (business district, office building, school, residential area, etc.), weather conditions, number of public transportation, etc., and the real result can be the number of car-hailing orders generated at the corresponding time point / period.

[0100] The machine learning model updating unit 120 can continuously update the machine learning model using training data formed based on at least a portion of the data to be processed with real results according to the time sequence of the data to be processed. Here, at least a portion of the data to be processed with real results can be the latest acquired data to be processed with real results, or can be all the acquired data to be processed with real results, or can include the latest acquired data to be processed with real results and part of the data to be processed with real results acquired before the latest acquired data to be processed with real results. For example, assuming that the data to be processed that flow in in time sequence are data block 1, data block 2, data block 3 and data block 4 (here, each data block may include at least one data), then according to the time sequence of the data to be processed, when data block 1 has a true result (that is, when the data acquisition unit 110 obtains the true result of data block 1), the machine learning model update unit 120 may first use the training data formed based on data block 1 with the true result to update the machine learning model, and then, when the data acquisition unit 110 obtains the true result of data block 2 again, the machine learning model update unit 120 may continue to use the training data formed based on data block 2 with the true result to update the machine learning model, or, may also use the training data formed based on data block 1 and data block 2 with the true results to update the machine learning model. Subsequently, when the data acquisition unit 110 acquires the real result of data block 3 again, the machine learning model updating unit 120 may update the machine learning model using the training data formed based on data block 3 having the real result, or may update the machine learning model using the training data formed based on data block 1, data block 2, and data block 3 having the real result, or may update the machine learning model using the training data formed based on data block 2 and data block 3 having the real result. As can be seen from the above examples, in fact, in the exemplary embodiment of the present application, the machine learning model may be continuously updated according to the time sequence of the data to be processed.

[0101] In addition, when updating the machine learning model using training data, for example, the stochastic gradient descent (SGD) algorithm can be used to determine the model parameters of the machine learning model when the loss function of the machine learning model on the training data is minimized, thereby obtaining the model parameters of the updated machine learning model. However, the algorithm used to update the machine learning model using training data is not limited to SGD, but any machine learning algorithm that trains the machine learning model based on training data to determine the model parameters can also be used.

[0102] The time series feature acquisition unit 130 can acquire the time series features corresponding to the current data to be processed based on the parameter items related to at least one model parameter of the machine learning model currently being updated. For example, still according to the above-mentioned time series assumption of the data to be processed (that is, the data to be processed flows in in time series in the order of data block 1 to data block 4), in this case, if the current data to be processed is data block 3, the machine learning model currently being updated can be the machine learning model mentioned above that is updated using the training data formed based on the data block 2 with real results, or it can also be a machine learning model updated using the training data formed based on the data block 1 and data block 2 with real results. As another example, if the current data to be processed is, for example, data block 4, the machine learning model currently being updated can be the machine learning model mentioned above that is updated using the training data formed based on the data block 3 with real results, or it can be a machine learning model updated using the training data formed based on the data block 1, data block 2 and data block 3 with real results, or it can be a machine learning model updated using the training data formed based on the data block 2 and data block 3 with real results. When the currently updated machine learning model is determined, the time series feature extraction unit 130 may obtain the time series features corresponding to the current data to be processed (e.g., data block 4) based on the parameter item related to at least one model parameter of the updated machine learning model. That is, the currently updated machine learning model may be a machine learning model updated using training data formed based on a portion of the data to be processed with real results that appeared before the current data to be processed.

[0103] In addition, as an example, parameter items related to at least one model parameter of the machine learning model currently being updated may include the model parameters themselves, the results of operations between the model parameters, and / or statistical information of the model parameters during the updating process of the machine learning model. For example, the operating results between the model parameters may be the results of operations after a predetermined operation (e.g., summing, averaging, etc.) is performed between multiple model parameters of the same machine learning model. In addition to using the model parameters of the updated machine learning model and / or the results of operations between the model parameters as time series features, optionally, since the parameters of the machine learning model are constantly changing during the updating process of the machine learning model, the statistical information of the model parameters during the updating process of the machine learning model may also be used as a time series feature. Specifically, the statistical information of the model parameters during the updating process of the machine learning model may be, for example, the mean, variance, standard deviation, etc. of at least one model parameter during the updating process of the machine learning model, but is not limited thereto.

[0104] According to an exemplary embodiment, the time series feature as a whole can be represented as a feature vector, wherein each dimension in the feature vector (hereinafter referred to as a time series feature component for convenience of description) can correspond to a feature parameter of a machine learning model. In the case where the feature corresponding to the time series feature component is a continuous feature, the time series feature component can be obtained by performing a predetermined operation on the value of the continuous feature itself and the model parameter corresponding to the continuous feature. For example, if the machine learning model is an LR (logistic regression) machine learning model and the continuous feature is age, the time series feature component corresponding to the continuous feature of age in the time series feature can be obtained by multiplying the age (e.g., 18 years old) with the model parameter corresponding to the continuous feature of age (i.e., the weight corresponding to the continuous feature of age). In the case where the feature corresponding to the time series feature component is a discrete feature, if the discrete feature has a one-dimensional discrete value, the model parameter corresponding to the discrete feature itself can be directly used as the time series feature component corresponding to the discrete feature, and if the discrete feature has a multi-dimensional discrete value, the result after performing a predetermined operation (e.g., summing, averaging, taking the maximum value, etc.) on the model parameters corresponding to each dimension of the discrete feature can be used as the time series feature component corresponding to the discrete feature. For example, if the machine learning model is an LR machine learning model and the discrete feature is "theme = sports", then the temporal feature component corresponding to "theme = sports" may be the model parameter itself corresponding to "theme = sports", and if the discrete feature is "theme = sports, celebrity", then the temporal feature component corresponding to "theme = sports, celebrity" may be the result of performing a predetermined operation on the model parameters corresponding to "theme = sports" and the model parameters corresponding to "theme = celebrity". It should be noted that the above-mentioned temporal feature representation or calculation method is only an example, and the specific representation or calculation method of the temporal feature may vary depending on the machine learning model.

[0105] In addition, the machine learning model mentioned above can be either a single machine learning model (any machine learning model) or multiple machine learning models, and the algorithm type of each machine learning model can be the same or different. For example, the machine learning model can be either a single logistic regression (LR) machine learning model or multiple LR machine learning models, or it can be a machine learning model with multiple machine learning algorithm types different from each other, including an LR machine learning model and other machine learning models (for example, a factorization machine (FM), a support vector machine (SVM), a deep neural network, etc.). In the case where the machine learning model mentioned above is a plurality of machine learning models, the parameter item related to at least one model parameter of the currently updated machine learning model can also be the result of an operation between model parameters of different machine learning models. In addition, when the machine learning model is a plurality of machine learning models, the time series features acquired by the time series feature acquisition unit 130 can be the result of splicing the time series features acquired using each of the plurality of machine learning models.

[0106] As described above, according to the exemplary embodiment, the timing feature extraction device 100 can continuously acquire streaming data to be processed, and continuously use the training data formed by a part of the data to be processed with real results to update the machine learning model according to the timing of the data to be processed, so that the machine learning model itself can always be used to obtain the timing features corresponding to the current data to be processed, so that the acquisition of timing features no longer depends on expert knowledge or professional and technical personnel's in-depth understanding of various scenarios, and the timing features obtained in the above manner are often more objective and accurate than the timing features obtained artificially through statistical methods. In addition, the method of obtaining timing features described above can greatly reduce manpower consumption because the timing features are obtained through the machine learning model itself, and such a method of obtaining timing features is not limited to a specific machine learning scenario, but can be widely used in any machine learning scenario.

[0107] Figure 2 It is a block diagram showing a device for acquiring time series features using a machine learning model according to another exemplary embodiment of the present application (hereinafter, for the convenience of description, referred to as a time series feature acquisition device) 200.

[0108] Reference Figure 2 ,and Figure 1 Compared with the time series feature acquisition device 100, Figure 2 In addition to a data acquisition unit 210, a machine learning model updating unit 220 and a time series feature acquisition unit 230, the time series feature acquisition device 200 also includes a monitoring unit 240 and a hyperparameter setting unit 250. Figure 2The data acquisition unit 210, the machine learning model updating unit 220 and the time series feature acquisition unit 230 may correspond to Figure 1 The data acquisition unit 110, the machine learning model updating unit 120 and the time series feature acquisition unit 130, therefore, refer to Figure 1 The description about the data acquisition unit 110, the machine learning model updating unit 120 and the time series feature acquisition unit 130 is also applicable to Figure 2 The corresponding units of are not described here. Figure 2 The monitoring unit 240 and the hyper-parameter setting unit 250 are provided.

[0109] As above Figure 1 As described, the data acquisition unit 210 can acquire the data to be processed that flows in in time series, and acquire the real result of the data to be processed when the data to be processed has a real result. The monitoring unit 240 can monitor the distribution state changes of the data to be processed that flows in in time series. For example, the distribution state changes may include changes in the joint probability distribution of the data to be processed. Specifically, the monitoring unit 240 can monitor the distribution state of the data to be processed that flows in in time series and / or the model effect of the machine learning model to determine the distribution state changes of the data to be processed that flows in in time series. Here, the distribution state of the data to be processed may refer to the probability distribution state of the data to be processed and its real result. For example, when the data to be processed has a real result, the data acquisition unit 210 can acquire the real result of the data to be processed. In this case, the monitoring unit 240 can calculate the probability distribution state of the data to be processed and its real result, thereby determining the distribution state changes of the data to be processed that flows in in time series. In addition, as mentioned above with reference to Figure 1The machine learning model updating unit 220 may continuously update the machine learning model using the training data formed based on at least a portion of the data to be processed with real results according to the time sequence of the data to be processed. Accordingly, the change in the distribution state of the data to be processed usually causes the previously updated machine learning model to become worse in terms of effect. Therefore, the change in the distribution state of the data to be processed may also be monitored by monitoring the model effect of the machine learning model. For example, the model effect of the above-mentioned machine learning model may be the model effect (e.g., model accuracy, etc.) of the machine learning model on the training data formed based on at least a portion of the data to be processed with real results during the machine learning model update process. For example, during the machine learning model update process, the monitoring unit 240 may compare the predicted result of the machine learning model for the data to be processed with its real result to determine the model effect, thereby determining the change in the distribution state of the data to be processed according to the change in the model effect. Alternatively, optionally, the monitoring unit 240 may also monitor both the distribution state of the data to be processed flowing in in time sequence and the model effect of the machine learning model, so that the above two may be comprehensively analyzed to more accurately determine the change in the distribution state of the data to be processed flowing in in time sequence. Subsequently, the monitoring result of the monitoring unit 240 may be used to set the hyperparameters for updating the machine learning model.

[0110] In this exemplary embodiment, the hyperparameter setting unit 250 may set the hyperparameters for updating the machine learning model according to the monitoring results of the monitoring unit 240. Specifically, in the case where it is determined according to the monitoring results that a distribution state change exceeding the threshold value has occurred, the hyperparameter setting unit 250 may reset all the hyperparameters for updating the machine learning model to replace the hyperparameters currently used to update the machine learning model. Here, resetting the hyperparameters for updating the machine learning model may be, for example, resetting all the hyperparameters currently used to update the machine learning model to new values ​​according to the monitored distribution state, model effect, and algorithm type of the machine learning model. However, in the case where it is determined according to the monitoring results that no distribution state change exceeding the threshold value has occurred, the hyperparameter setting unit 250 may partially adjust the hyperparameters currently used to update the machine learning model. For example, the hyperparameter setting unit 250 may adjust the hyperparameters of the machine learning model by evaluating the model effect of the machine learning model on the training data. Here, the threshold value may be set by the user according to the actual machine learning scenario. In addition, the hyperparameters here may be, for example, learning rate, regularization term, number of hidden layers of a deep neural network, etc., but are not limited thereto, and may be any hyperparameter that affects the learning of the machine learning model.

[0111] When the hyperparameter setting unit 250 sets hyperparameters for updating the machine learning model, the machine learning model updating unit 220 can update the machine learning model based on the set hyperparameters using training data formed based on at least a portion of the data to be processed having real results.

[0112] In addition, the distribution state of the data to be processed that flows in in time series and / or the model effect of the machine learning model monitored by the monitoring unit 240 can be used to monitor the distribution state changes of the data to be processed that flows in in time series so that the hyperparameter device unit 250 can set the hyperparameters for updating the machine learning model according to the monitoring results, and it can also be used to select at least a portion of the data to be processed with real results. For example, according to another exemplary embodiment, the time series feature acquisition device 200 may also include a data selection unit (not shown). The data selection unit can select at least a portion of the data to be processed with real results based on the distribution state and / or model effect monitored by the monitoring unit 240, thereby determining the training data for updating the machine learning model. Specifically, for example, if the distribution state changes greatly and / or the model effect decreases significantly, the amount of at least a portion of the data to be processed with real results that needs to be selected is larger, and if the distribution state changes slightly and / or the model effect decreases less, the amount of at least a portion of the data to be processed with real results that needs to be selected can be smaller. For example, as described above with reference to Figure 1In the case where the data acquisition unit 110 acquires the real result of data block 2, the machine learning model updating unit 120 can use the training data formed based on the data block 2 with the real result to update the machine learning model, or can also use the training data formed based on the data block 1 and the data block 2 with the real result to update the machine learning model. At this time, the data selection unit can select the at least part of the data to be processed with the real result according to the distribution state and / or the model effect monitored by the monitoring unit 240, that is, in the above example, the data block 2 with the real result is selected as the at least part of the data to be processed with the real result, or the data block 1 and the data block 2 with the real result are selected as the at least part of the data to be processed with the real result. For example, if the change degree of the monitored distribution state is large and / or the decline degree of the model effect is large, the data block 1 and the data block 2 with the real result can be selected as the at least part of the data to be processed with the real result, and if the change degree of the monitored distribution state is relatively small and / or the decline degree of the model effect is relatively small, the data block 2 with the real result can be selected as the at least part of the data to be processed with the real result. As for how to determine the degree of change in the distribution state and the degree of decline in the model effect, in practice, corresponding thresholds can be set for the degree of change in the distribution state and the degree of decline in the model effect, and the degree of change in the distribution state and the degree of decline in the model effect can be determined by comparing the monitoring results with the thresholds. In addition, when determining at least a portion of the data to be processed that has real results, in addition to considering the monitored distribution state and / or model effect, the algorithm type of the machine learning model can also be considered. This is because the amount of training data required for machine learning model training for machine learning models of different algorithm types will vary to a certain extent.

[0113] and Figure 1 Similar to the timing feature acquisition unit 130, the timing feature acquisition unit 230 can acquire the timing features corresponding to the current data to be processed based on the parameter items related to at least one model parameter of the currently updated machine learning model. Any description of the timing feature acquisition unit 130 (for example, the description of the currently updated machine learning model, the description of the parameter items, etc.) is also applicable to the timing feature acquisition unit 230 and will not be repeated here.

[0114] As described above, according to the exemplary embodiment of the present application, the time series feature acquisition device 200 can continuously monitor the distribution state changes of the to-be-processed data flowing in in time series, set the hyperparameters for updating the machine learning model according to the monitoring results, and continuously update the machine learning model using the training data based on the set hyperparameters. Since the machine learning model is continuously updated under the update of the hyperparameters according to the distribution state changes, the time series features acquired in this way are relatively accurate. Figure 1 The time series features acquired by the time series feature acquisition device can more accurately reflect the time series information of the data to be processed, and can provide better machine learning effects even when the data distribution changes.

[0115] Figure 3 is a block diagram showing a system 300 for performing machine learning processing according to an exemplary embodiment of the present application (hereinafter, for convenience of description, it will be referred to as a machine learning system for short) .

[0116] Reference Figure 3 , the machine learning system 300 may include a time series feature acquisition device 310 and a machine learning sample generation device 320. Here, the time series feature acquisition device 310 may be a reference Figure 1 The time series feature acquisition device 100 or the reference Figure 2 The time series feature acquisition device 200, therefore, refers to Figure 1 and Figure 2 Any description about the timing feature acquisition device is also applicable to the timing feature acquisition device 310 here, and will not be repeated here.

[0117] The machine learning sample generating device 320 can generate and refer to Figure 1 or Figure 2 The machine learning sample corresponding to the current data to be processed, here, the machine learning sample may include the time series features obtained by the time series feature acquisition device 310 using the machine learning model. Here, depending on whether the machine learning sample is used for model training or model prediction in the future, the machine learning sample can be a training sample (in the case of supervised machine learning, the machine learning sample needs to include corresponding tags) or a prediction sample. By including the time series features as described above in the machine learning sample, when the machine learning sample is used for subsequent machine learning, the effect of the subsequent machine learning model can be further improved.

[0118] For example, in a recommendation scenario, when the data to be processed acquired by the data acquisition unit 110 in the time series feature acquisition device 310 is "data related to candidate recommended content that the content operator hopes to recommend to the user" and "user historical operation data that the content operator continuously acquires from the user device during the operation of the App" and / or "data related to the user", the machine learning sample generation device 320 generates training samples of a machine learning model trained to predict user recommended content, or prediction samples using the model for prediction. For another example, when the data to be processed acquired by the data acquisition unit 110 in the time series feature acquisition device 310 is data related to commodity price prediction (related data such as the attributes of the commodity itself, seasons, weather, inventory, and competitive products at different time points / periods), the machine learning sample generation device 320 generates training samples of a machine learning model trained to predict commodity prices, or prediction samples using the model for prediction. In different scenarios, the machine learning sample generation device 320 generates machine learning samples corresponding to the scenario, which will not be described one by one here.

[0119] Optionally, according to another exemplary embodiment, the machine learning sample corresponding to the current data to be processed may include, in addition to the time series features acquired by the time series feature acquisition device 310, a reference Figure 1 or Figure 2 The training data described is based on statistical information of a time window. As an example, the statistical information of the training data based on a time window can be the statistical information of the actual result of the training data on the prediction target. For example, assuming that the training data is related to the recommended movie and the prediction target is whether the recommended movie will be accepted by the user, the statistical information of the actual result of the training data on the prediction target can be the probability (for example, 30%) that a movie with a science fiction theme will be accepted by the user after recommendation within a predetermined time period (for example, within a week). Alternatively, the statistical information of the training data based on a time window can also be the statistical information of the features contained in the training data itself based on the time window. For example, in the movies recommended to the user and accepted by the user in the past week, the theme of the movie gradually changed from science fiction to romance. By further including the statistical information of the training data based on a time window in the machine learning sample that already includes the above-mentioned time series features, when the machine learning sample is used for subsequent machine learning, the effect of the subsequent machine learning model can be further improved.

[0120] As described above, the machine learning samples including time series features can be used for subsequent machine learning, for example, for training other machine learning models or performing predictions using other machine learning models. Figure 3The machine learning system 300 shown may also include a prediction device (not shown) or a training device (not shown). Specifically, the prediction device may use other machine learning models to perform predictions on the machine learning samples generated by the machine learning sample generation device. The training device may use the machine learning samples to train the other machine learning models (in this case, for supervised machine learning, the machine learning samples need to further include corresponding tags). Here, the prediction target targeted by the other machine learning model and the machine learning model may be the same. In addition, the algorithm type of the other machine learning model may be the same as or different from the algorithm type of the machine learning model, and the other machine learning model may also include at least one machine learning model. It should be noted that this application has no restrictions on the machine learning algorithms used by the prediction device 330 and the training device 340, the number of machine learning models, the type of machine learning models (for example, it can be either a linear model or a nonlinear model), etc., as long as it can use the time series features obtained by the time series feature acquisition device 310 using the machine learning model.

[0121] According to the exemplary embodiment of the present application, the machine learning system 300 can use the machine learning model to obtain timing features and generate machine learning samples including the timing features. Since such machine learning samples include timing features that can accurately reflect the timing information of the data, when they are used for subsequent machine learning, the effect of the subsequent machine learning model (for example, prediction accuracy) can be improved.

[0122] The above has been referred to Figures 1 to 3 The timing feature acquisition device and machine learning system according to the exemplary embodiments of the present application are described. It should be noted that although the timing feature acquisition device and the machine learning system are described above, for the convenience of description, they are divided into units (for example, data acquisition unit 110, machine learning model update unit 120 and timing feature acquisition unit 130) and devices (for example, timing feature acquisition device 310 and machine learning sample generation device 320) for performing corresponding processing respectively, however, it is clear to those skilled in the art that the processing performed by the above-mentioned units or devices can also be performed in the timing feature acquisition device and the machine learning system without any specific division of units and devices, or without clear demarcation between the units and devices. In addition, the above reference Figure 1 or Figure 2 The described time series feature acquisition device is not limited to including the above-described units, but some units may be added or deleted as needed, and the above units may also be combined. Figure 3 The described machine learning system is also not limited to including the devices described above, but some devices may be added or deleted as needed, and the above devices may also be combined.

[0123] Next, we will refer to Figure 4 and Figure 5 A method for acquiring time series features using a machine learning model and a method for performing machine learning processing according to an exemplary embodiment of the present application are described.

[0124] Figure 4 It is a flowchart showing a method for obtaining time series features using a machine learning model according to an exemplary embodiment of the present application (hereinafter referred to as “time series feature acquisition method” for the convenience of description).

[0125] Here, as an example, Figure 4 The timing feature acquisition method shown can be obtained by Figure 1 The time series feature acquisition device 100 shown in the figure can be implemented by the computer program in software, or by a computing device with a specific configuration. Figure 4 The method shown is Figure 1 The timing feature acquisition device 100 shown in FIG. 1 is used to perform the above operation, and it is assumed that the timing feature acquisition device 100 may have Figure 1 Configuration shown.

[0126] Reference Figure 4 In step S410, the data acquisition unit 110 may acquire the data to be processed that flows in in time sequence, and acquire the real result of the data to be processed if the data to be processed has a real result. As an example, the data acquisition unit 110 may continuously acquire the data to be processed or its real result in a manual, semi-automatic or fully automatic manner. Figure 1 The contents mentioned in the description of the data acquisition unit 110 (eg, description of the data to be processed and its actual results, etc.) are all applicable here and will not be repeated here.

[0127] In this step, in the recommendation scenario, the data to be processed obtained may include the aforementioned "data related to candidate recommended content that the content operator hopes to recommend to the user" and may also include: "user historical operation data continuously obtained by the content operator from the user device during the operation of the App" and / or "data related to the user".

[0128] In this step, the data to be processed may also be time-series data generated in credit card fraud detection, abnormal behavior detection, user interest extraction, or precision marketing scenarios.

[0129] Furthermore, the data to be processed may be any data with time series, and the scenarios that specifically generate data with time series include but are not limited to the following scenarios: image processing scenario, speech recognition scenario, natural language processing scenario, automatic control scenario, intelligent question and answer scenario, business decision scenario, recommended business scenario, search scenario, and abnormal behavior detection scenario. For more specific application scenarios under the above-mentioned scenarios, please refer to the previous description.

[0130] In step S420, the machine learning model updating unit 120 may continuously update the machine learning model using training data formed based on at least a portion of the data to be processed having real results according to the time sequence of the data to be processed that flows in in time sequence. For the selection of at least a portion of the data to be processed having real results and how to update the machine learning model, please refer to the above Figure 1 and Figure 2 It should be noted that step S420 can be performed continuously, so that the machine learning model can be continuously updated according to the time sequence of the data to be processed.

[0131] In step S430, the time series feature acquisition unit 130 may acquire the time series features corresponding to the current data to be processed based on the parameter items related to at least one model parameter of the machine learning model currently being updated. As an example, the parameter items related to at least one model parameter of the machine learning model currently being updated may include the model parameters themselves, the calculation results between the model parameters and / or the statistical information of the model parameters during the update process of the machine learning model. In addition, the machine learning model mentioned above can be either a single machine learning model (any machine learning model) or multiple machine learning models, and the algorithm type of each machine learning model can be the same or different. In reference to Figure 1 The contents mentioned when describing the timing feature acquisition unit 130 are also applicable here, so they are not repeated here.

[0132] The method for acquiring time series features according to the exemplary embodiment of the present application can utilize the machine learning model itself to acquire time series features corresponding to the current data to be processed, so that the acquisition of time series features no longer depends on expert knowledge or professional and technical personnel's in-depth understanding of various scenarios, and the time series features acquired in the above manner are often more objectively and accurately reflect the time series information of the data to be processed than the time series features obtained artificially through statistical methods.

[0133] As mentioned above Figure 2 The time series feature extraction device is as follows Figure 1 In addition to the data acquisition unit, the machine learning model update unit and the time series feature acquisition unit shown in FIG. Figure 2The example shown includes a monitoring unit and a hyperparameter setting unit, and may further include a data selection unit. Figure 2 The timing feature extraction device shown corresponds to, optionally, Figure 4 The automatic machine learning method may further include operations performed by the monitoring unit 240, operations performed by the hyperparameter setting unit 250, and operations performed by the data selection unit.

[0134] For example, according to another exemplary embodiment, Figure 4 The automatic machine learning method may also include a monitoring step and a hyperparameter determination step between steps S410 and S420. Specifically, in the monitoring step, the monitoring unit may monitor the distribution state changes of the data to be processed that flow in in time series. As an example, in the monitoring step, the monitoring unit 240 may monitor the distribution state of the data to be processed that flow in in time series and / or the model effect of the machine learning model, thereby realizing the monitoring of the distribution state changes of the data to be processed that flow in in time series. In the hyperparameter determination step, the hyperparameter setting unit 250 may set the hyperparameters for updating the machine learning model according to the monitoring results. As an example, in the hyperparameter determination step, in the case where it is determined according to the monitoring results that a distribution state change exceeding the threshold has occurred, the hyperparameter setting unit 250 may completely reset the hyperparameters for updating the machine learning model to replace the hyperparameters currently used to update the machine learning model, and in the case where it is determined according to the monitoring results that no distribution state change exceeding the threshold has occurred, the hyperparameter setting unit 250 may partially adjust the hyperparameters currently used to update the machine learning model.

[0135] When hyperparameters for updating the machine learning model are set, in step S420, the machine learning model updating unit 230 (or the machine learning model updating unit 130) may use the training data to update the machine learning model based on the set hyperparameters.

[0136] As mentioned above Figure 2 As described above, the time series feature extraction device may further include a data selection unit. Accordingly, according to another exemplary embodiment of the present application, Figure 4 The method for acquiring time series features may further include a data selection step performed by a data selection unit after the monitoring step. Specifically, in the data selection step, the data selection unit may select the at least a portion of the to-be-processed data having real results according to the distribution state and / or model effect monitored by the monitoring unit 240 in the monitoring step. Figure 2 The method for selecting the at least part of the data to be processed having real results is described in the description, so it will not be repeated here.

[0137] According to a method for acquiring timing features of another exemplary embodiment of the present application, the distribution state changes of the data to be processed that flow in in time series can be continuously monitored, hyperparameters for updating the machine learning model can be set according to the monitoring results, and the machine learning model can be continuously updated using the training data based on the set hyperparameters. Therefore, it is possible to obtain timing features that more accurately reflect the timing information of the data to be processed.

[0138] It should be noted that although the above description Figure 4 When Figure 4 However, it is clear to those skilled in the art that the various steps in the above method are not necessarily executed in sequence, but can be executed in parallel. For example, the above-described steps S410 and S420 can be executed in parallel, that is, during the period when the machine learning model updating unit 120 updates the machine learning model, the data acquisition unit 110 can still continuously acquire new data to be processed that flow in in time sequence. In addition, while the monitoring unit 240 monitors the distribution state changes of the data to be processed that flow in in time sequence in the monitoring step, the data acquisition unit 110 can still continuously acquire new data to be processed that flow in in step S410.

[0139] The above has been referred to Figure 4 The method for acquiring the time series characteristics according to the exemplary embodiment of the present application is described. Next, referring to Figure 5 A method of performing a machine learning process according to an exemplary embodiment of the present application is described.

[0140] Figure 5 1 is a flowchart illustrating a method for performing machine learning processing according to an exemplary embodiment of the present application (hereinafter, for convenience of description, referred to as “machine learning method”).

[0141] Here, as an example, Figure 5 The machine learning method shown can be Figure 3 The machine learning system 300 shown may be implemented entirely in software by a computer program or by a computing device with a specific configuration. Figure 5 The method shown is Figure 3 The machine learning system 300 shown in FIG. 1 is used to perform the above operation and assumes that the machine learning system 300 may have Figure 3 Configuration shown.

[0142] Reference Figure 5In step S510, the time series feature acquisition device 310 may use a machine learning model to acquire time series features. Specifically, the time series feature acquisition device 310 may acquire time series features in the same manner as the time series feature acquisition device 100 and the time series feature acquisition device 200 acquire time series features, and therefore, no further description is given here. In step S520, the machine learning sample generation device 320 may generate a machine learning sample corresponding to the current data to be processed, wherein the machine learning sample may include the time series features acquired in step S510. As described above with reference to Figure 3 The machine learning samples here may also include statistical information of the training data (formed based on at least a portion of the data to be processed with real results) based on the time window. For a description of the statistical information, see the above Figure 3 The description is not repeated here.

[0143] As reference Figure 3 As described above, the machine learning system 300 may further include a prediction device 330 or a training device 340. Accordingly, according to another exemplary embodiment, Figure 5 The machine learning method may also include a prediction step performed by the prediction device 330 or a training step performed by the training device 340. Specifically, in the prediction step, the prediction device 330 may use other machine learning models to perform predictions on the machine learning samples generated in step S520. In the training step, the training device 340 may use the machine learning samples generated in step S520 to train other machine learning models. Here, the prediction target for the other machine learning models and the machine learning model may be the same.

[0144] According to the exemplary embodiment of the present application, the machine learning method can generate machine learning samples by utilizing the time series features acquired by the time series feature acquisition device based on the machine learning model. Since such machine learning samples include time series features that can accurately reflect time series information, when they are used for subsequent machine learning, the prediction effect of the subsequent machine learning model on them can be improved.

[0145] Next, to facilitate a better understanding of the present application, a network environment including a machine learning system according to an exemplary embodiment of the present application is briefly described by way of example.

[0146] Figure 6 is a schematic diagram illustrating a recommendation network 600 including a system for performing a machine learning process according to an exemplary embodiment of the present application.

[0147] For ease of description, Figure 6 Take the content recommendation scenario as an example to illustrate the above reference Figure 3 A recommendation network 600 of a machine learning system is described.

[0148] Reference Figure 6 , the recommendation network 600 may include a machine learning system 610, a user terminal device 620, and a content operation system 630. Here, the content operation system 630 aims to recommend content that is more easily accepted to the user terminal device 620 (for example, news, advertisements, music, videos, etc.). To this end, the content operation system 630 may provide the machine learning system 610 with the to-be-processed data about the candidate recommended content, so that the machine learning system 610 uses the machine learning model to evaluate the possibility of the user terminal device 620 accepting each candidate content. Here, the machine learning system 610 may be the above reference Figure 3 The machine learning system 300 described herein may include a reference to Figure 3 The time series feature acquisition device 310, machine learning sample generation device 320 and prediction device 330 described above. Specifically, the machine learning system 610 can be constructed by the content operator itself, or provided by a dedicated entity providing machine learning services. Accordingly, the machine learning system 610 can be set up in the cloud (such as a public cloud, a private cloud or a hybrid cloud), or in the local system of the content operator. Here, for the convenience of description, it is assumed that the machine learning system 610 is set up in a public cloud.

[0149] The user terminal device 620 may be any terminal device, such as, but not limited to, a personal computer, a smart phone, a TV, etc. In addition, the user terminal device 620 may receive or access content recommended by the content operation system 630 through applications installed thereon, such as specific content displayed in an application or a notification message pushed.

[0150] exist Figure 6In the recommendation network 600 shown, when the content operation system 630 wishes to recommend content to a specific user (e.g., the user of the user terminal device 1) in the user terminal device 620, the content operation system 630 may, for example, preliminarily screen the candidate recommended content that it wishes to recommend to the specific user from the content resources it owns in its local server or cloud data warehouse. For example, the content operation system 630 may preliminarily determine the content category that the specific user may prefer based on the basic registration information of the user on its client (e.g., the user's gender, age, occupation, region, etc.) and the user's historical behavior records on its client (e.g., historical content collection records, content comment records, content sharing records, content search records, the completeness of watching or listening to content playback, etc.), and preliminarily screen out multiple candidate recommended content from a large number of content resources. In addition, the content operation system 630 may further obtain the data to be processed corresponding to the multiple candidate recommended content, and continuously send the obtained data to be processed to the machine learning system 610, where the data to be processed may be pre-processed into a predetermined format or may be processed into a predetermined format by the machine learning system 610 after receiving it. Here, the content operation system 630 may continuously (for example, at predetermined intervals) send the to-be-processed data corresponding to the candidate recommended contents for multiple users to the machine learning system 610. In addition, the machine learning system 610 may use a machine learning model to obtain the time series features corresponding to the current to-be-processed data for the received to-be-processed data corresponding to the multiple candidate recommended contents, and then generate a machine learning sample corresponding to the current to-be-processed data including the time series features, and predict the probability of each candidate content corresponding to the current to-be-processed data being accepted after recommendation based on the generated machine learning sample, so as to serve as the recommendation index of each candidate content.

[0151] Afterwards, the machine learning system 610 may send the recommendation index of each of the multiple candidate recommended contents for the specific user to the content operation system 630. The content operation system 630 may determine which candidate contents are ultimately recommended to the specific user based on the recommendation index of the multiple candidate recommended contents, and perform the corresponding content recommendation. Optionally, the machine learning system 610 may determine which candidate contents are recommended to the user based on the recommendation index of the multiple candidate recommended contents, and then send the determination result to the content operation system 630 so that the content operation system 630 can perform the corresponding content recommendation according to the determination result, or the machine learning system 610 may directly perform the content recommendation to the specific user based on the determination result if it obtains the authorization of the content operation system 630 in advance (in this case, the machine learning system 610 also needs to obtain each candidate recommended content in addition). After the content is recommended to the specific user, the machine learning system 610 may obtain real feedback on whether the content is accepted by the specific user after being recommended. For example, the content operation system 630 may continuously collect the log data records of the specific user, and obtain the real feedback on whether the content is accepted by the specific user after being recommended from the log data records, and then send the real feedback to the machine learning system 610. That is to say, in the case where the data to be processed corresponding to the actual recommended content has real results (i.e., real feedback on whether the content is accepted by the user after being recommended), the machine learning system 610 can obtain the real results of the data to be processed. In addition, the machine learning system 610 can continuously update the machine learning model according to the time sequence of the data to be processed using training data formed based on at least a portion of the data to be processed with real feedback, and obtain the time sequence features corresponding to the current data to be processed based on parameter items related to at least one model parameter of the currently updated machine learning model. For example, according to the time sequence of the data to be processed corresponding to the actual recommended content, whenever real feedback on whether the actual recommended content is accepted after being recommended is obtained, the machine learning system 610 can update the machine learning model using at least a portion of the data to be processed corresponding to the actual recommended content with real results. In view of the fact that reference has been made to Figure 1 and Figure 2 etc. describe the details related to updating the machine learning model and acquiring the timing features by the timing feature acquisition device included in the machine learning system 610, so they are not repeated here.

[0152] The recommendation network according to the exemplary embodiment of the present application utilizes the time series features obtained based on the parameter items related to the model parameters of the currently updated machine learning model when recommending content, and therefore, it is able to improve the accuracy of content recommendation. It should be noted that the above only illustrates the configuration of an exemplary network environment including the machine learning system according to the exemplary embodiment of the present application by taking the content recommendation scenario as an example. However, it is clear to those skilled in the art that the machine learning system 610 is not limited to content recommendation scenarios, but can be applied to any machine learning scenario involving time series information, such as credit card fraud detection, abnormal behavior detection, user interest extraction, precision marketing, etc.

[0153] Furthermore, the machine learning system in this application can be applied to scenarios including, but not limited to, the following scenarios: image processing scenarios, speech recognition scenarios, natural language processing scenarios, automatic control scenarios, intelligent question-and-answer scenarios, business decision-making scenarios, recommended business scenarios, search scenarios, and abnormal behavior detection scenarios. For more specific application scenarios in the above-mentioned scenarios, please refer to the previous description.

[0154] The method and device of the present application using a machine learning model to obtain time series features, as well as the method and device for performing machine learning processing, have no difference in the overall execution scheme when applied to different scenarios, except that the data targeted in different scenarios are different. Therefore, technical personnel in this field can apply the scheme of the present application to different scenarios without any obstacles based on the aforementioned scheme disclosure, so there is no need to explain each scenario one by one.

[0155] The above has been referred to Figures 1 to 6 The time series feature acquisition method and time series feature acquisition device, machine learning method and machine learning system, and recommendation network including the machine learning system according to the exemplary embodiments of the present application are described. However, it should be understood that: Figures 1 to 3 The devices, systems, and units shown may be configured as software, hardware, firmware, or any combination of the above items to perform specific functions. For example, these systems, devices, or units may correspond to dedicated integrated circuits, pure software codes, or modules that combine software and hardware. In addition, one or more functions implemented by these systems, devices, or units may also be uniformly executed by components in physical entity devices (e.g., processors, clients, or servers, etc.).

[0156] In addition, the above method can be implemented by a program recorded on a computer-readable medium. For example, according to an exemplary embodiment of the present application, a computer-readable medium for obtaining time series features using a machine learning model can be provided, wherein a computer program for executing the following method steps is recorded on the computer-readable medium: obtaining the data to be processed that flows in in time sequence, and obtaining the real result of the data to be processed when the data to be processed has a real result; according to the time sequence of the data to be processed, continuously using the training data formed based on at least a part of the data to be processed with real results to update the machine learning model; based on the parameter items related to at least one model parameter of the machine learning model currently updated, obtaining the time series features corresponding to the current data to be processed. In addition, according to another exemplary embodiment of the present application, a computer-readable medium for performing machine learning processing can be provided, wherein a computer program for executing the following method steps is recorded on the computer-readable medium: obtaining time series features using a machine learning model according to the aforementioned method; generating a machine learning sample corresponding to the current data to be processed, wherein the machine learning sample includes the time series features.

[0157] The computer program in the computer-readable medium can be run in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. It should be noted that the computer program can also be used to perform additional steps in addition to the above steps or perform more specific processing when performing the above steps. The contents of these additional steps and further processing have been described in reference to Figure 4 to Figure 5 It is mentioned in the description of the related method, so it will not be repeated here to avoid repetition.

[0158] It should be noted that the timing feature acquisition device or machine learning system according to the exemplary embodiment of the present application can completely rely on the operation of the computer program to realize the corresponding functions, that is, each unit or device corresponds to each step in the functional architecture of the computer program, so that the entire device or system is called through a special software package (for example, lib library) to realize the corresponding function.

[0159] On the other hand, when Figures 1 to 3 When the various units or devices shown are implemented in software, firmware, middleware or microcode, the program code or code segments for performing the corresponding operations can be stored in a computer-readable medium such as a storage medium, so that the processor can perform the corresponding operations by reading and running the corresponding program code or code segments.

[0160] For example, according to an exemplary embodiment of the present application, a computing device for obtaining time series features using a machine learning model may include a storage component and a processor, wherein a computer executable instruction set is stored in the storage component, and when the computer executable instruction set is executed by the processor, the following steps are performed: obtaining the data to be processed that flows in in time sequence, and obtaining the real result of the data to be processed when the data to be processed has a real result; according to the time sequence of the data to be processed, continuously using the training data formed based on at least a part of the data to be processed with real results to update the machine learning model; based on the parameter items related to at least one model parameter of the machine learning model currently updated, obtain the time series features corresponding to the current data to be processed. In addition, according to another exemplary embodiment of the present application, a computing device for performing machine learning processing may include a storage component and a processor, wherein a computer executable instruction set is stored in the storage component, and when the computer executable instruction set is executed by the processor, the following steps are performed: obtaining time series features using the machine learning model in the above manner; generating machine learning samples corresponding to the current data to be processed, wherein the machine learning samples include the time series features.

[0161] Specifically, the computing device can be deployed in a server or client, or can be deployed on a node device in a distributed network environment. In addition, the computing device can be a PC, a tablet device, a personal digital assistant, a smart phone, a web application or other device capable of executing the above instruction set. In addition, the computing device can also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, a mouse, a touch input device, etc.). All components of the computing device can be connected to each other via a bus and / or a network.

[0162] Here, the computing device is not necessarily a single computing device, but may be any device or circuit collection that can execute the above instructions (or instruction sets) individually or jointly. The computing device may also be part of an integrated control system or system manager, or may be configured as a portable electronic device that is interconnected with a local or remote (e.g., via wireless transmission) interface.

[0163] In the computing device, the processor may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller or a microprocessor. By way of example and not limitation, the processor may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc. The processor may run instructions or codes stored in one of the storage components, wherein the storage component may also store data. Instructions and data may also be sent and received over a network via a network interface device, wherein the network interface device may use any known transmission protocol.

[0164] The storage component may be integrated with the processor, for example, RAM or flash memory is arranged within an integrated circuit microprocessor, etc. In addition, the storage component may include a separate device, such as an external disk drive, a storage array, or any other storage device that can be used by a database system. The storage component and the processor may be operatively coupled, or may communicate with each other, such as through an I / O port, a network connection, etc., so that the processor can read files stored in the storage component.

[0165] The above describes the exemplary embodiments of the present application. It should be understood that the above description is only exemplary and not exhaustive, and the present application is not limited to the disclosed exemplary embodiments. Without departing from the scope and spirit of the present application, many modifications and changes are obvious to those of ordinary skill in the art. Therefore, the scope of protection of the present application should be based on the scope of the claims.

Claims

1. A method of performing a machine learning process, the method comprising: Obtain the data to be processed that flows in in time sequence, and obtain the real result of the data to be processed if the data to be processed has a real result; According to the time sequence of the data to be processed, continuously updating the machine learning model using training data formed based on at least a portion of the data to be processed having real results; Using a parameter item related to at least one model parameter of the machine learning model currently being updated as a time series feature corresponding to the current data to be processed, wherein the at least one model parameter changes as the machine learning model is updated; Generate a machine learning sample corresponding to the current data to be processed, wherein the machine learning sample includes the time series feature; Using other machine learning models to perform prediction on the machine learning samples, or using the machine learning samples to train the other machine learning models, wherein the other machine learning models have the same prediction target as the machine learning model, The data to be processed is time-series data generated in any of the following scenarios: image processing scenario, speech recognition scenario, and natural language processing scenario.

2. The method of claim 1, further comprising: Monitor the changes in the distribution status of the data to be processed that flows in in time series; According to the monitoring results, setting the hyperparameters for updating the machine learning model, Among them, the step of updating the machine learning model includes: based on the set hyperparameters, using the training data to update the machine learning model.

3. The method of claim 2, wherein: The steps of setting the hyperparameters for updating the machine learning model include: When it is determined according to the monitoring results that a distribution state change exceeding a threshold value has occurred, all hyperparameters used to update the machine learning model are reset to replace the hyperparameters currently used to update the machine learning model; When it is determined based on the monitoring results that no distribution state change exceeding the threshold occurs, the hyperparameters currently used to update the machine learning model are partially adjusted.

4. The method of claim 2, wherein: The monitoring step includes: monitoring the distribution status of the data to be processed that flows in in time series and / or the model effect of the machine learning model.

5. The method of claim 4, wherein: The method further comprises: selecting the at least a portion of the to-be-processed data having real results according to the monitored distribution state and / or model effect.

6. The method of claim 1, wherein: The parameter items related to at least one model parameter of the machine learning model currently being updated include the model parameters themselves, the calculation results between the model parameters and / or the statistical information of the model parameters during the updating process of the machine learning model.

7. The method of claim 1, wherein: The machine learning model includes multiple machine learning models, and the algorithm type of each machine learning model is the same or different.

8. The method of claim 1, wherein: The characteristics of the machine learning sample also include: statistical information of the training data based on a time window.

9. A computer-readable medium for performing a machine learning process, wherein: A computer program for executing the method according to any one of claims 1 to 8 is recorded on the computer readable medium.

10. A computing device for performing machine learning processing, comprising a storage component and a processor, wherein: The storage component stores a computer executable instruction set, and when the computer executable instruction set is executed by the processor, the processor is prompted to execute the method according to any one of claims 1 to 8.

11. A system for performing a machine learning process, the system comprising: A data acquisition unit is configured to acquire the data to be processed that flows in in time sequence, and acquire the real result of the data to be processed if the data to be processed has a real result; A machine learning model updating unit is configured to continuously update the machine learning model using training data formed based on at least a portion of the data to be processed having real results according to the time sequence of the data to be processed; a time series feature acquisition unit, configured to use a parameter item related to at least one model parameter of the machine learning model currently being updated as a time series feature corresponding to the current data to be processed, wherein the at least one model parameter changes as the machine learning model is updated; A machine learning sample generating device is configured to generate a machine learning sample corresponding to the current data to be processed, wherein the machine learning sample includes the time series feature, Wherein, the system further comprises: A prediction device configured to use other machine learning models to perform prediction on the machine learning samples; or A training device is configured to use the machine learning sample to train the other machine learning model, wherein the other machine learning model has the same prediction target as the machine learning model, The data to be processed is time-series data generated in any of the following scenarios: image processing scenario, speech recognition scenario, and natural language processing scenario.

12. The system of claim 11, wherein: The system further comprises: A monitoring unit, configured to monitor a change in a distribution state of the data to be processed that flows in in a time sequence; A hyperparameter setting unit is configured to set a hyperparameter for updating the machine learning model according to the monitoring result, Among them, the machine learning model updating unit is configured to update the machine learning model using the training data based on the set hyperparameters.

13. The system of claim 12, wherein: The hyperparameter setting unit is configured as: When it is determined according to the monitoring results that a distribution state change exceeding a threshold value has occurred, all hyperparameters used to update the machine learning model are reset to replace the hyperparameters currently used to update the machine learning model; When it is determined based on the monitoring results that no distribution state change exceeding the threshold occurs, the hyperparameters currently used to update the machine learning model are partially adjusted.

14. The system of claim 12, wherein: The monitoring unit is configured to monitor the distribution status of the data to be processed that flows in in time series and / or the model effect of the machine learning model.

15. The system of claim 14, wherein: The system further comprises: a data selection unit configured to select at least a portion of the to-be-processed data having real results according to the monitored distribution state and / or model effect.

16. The system of claim 11, wherein: The parameter items related to the model parameters of the machine learning model currently being updated include the model parameters themselves, the calculation results between the model parameters and / or the statistical information of the model parameters during the updating process of the machine learning model.

17. The system of claim 11, wherein: The machine learning model includes multiple machine learning models, and the algorithm type of each machine learning model is the same or different.

18. The system of claim 11, wherein: The characteristics of the machine learning sample also include: statistical information of the training data based on a time window.