Object-Based Data Science Platform

The platform addresses memory limitations and custom code needs in AI training by using data package objects to manage large datasets efficiently, enhancing scalability and flexibility in AI training systems.

JP2024538379APending Publication Date: 2024-10-18LIVELINE TECHNOLOGIES INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2024528471
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-11-17
Filing Date
2022-11-18
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing artificial intelligence training systems face challenges with memory limitations and the need for custom code when handling large datasets, making it inefficient and resource-intensive.

Method used

A platform with reusable data package objects that organize data into manageable batches, allowing efficient memory use and reducing the need for custom code through a state-based interface and object-based management.

Benefits of technology

Facilitates efficient training of machine learning models by optimizing memory usage and minimizing the need for custom code, enabling scalable and flexible AI training across various data sources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024538379000001_ABST
    Figure 2024538379000001_ABST
Patent Text Reader

Abstract

The plurality of data package objects each include signal data indicating time series values ​​of a parameter, organize the signal data into a plurality of batches of a size smaller than the memory, identify the plurality of batches according to an index, and in response to a request, provide an output identifying the randomly shuffled or arbitrarily ordered indexes, load one of the plurality of batches into memory such that signal data features of the one batch can be used to train a machine learning model that predicts time series parameter output from time series parameter input, and remove the one batch from memory to prevent the one batch and other batches from completely occupying all of the memory at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] (CROSS-REFERENCE TO RELATED APPLICATIONS) This application claims priority to Application No. 18 / 056,391, filed November 17, 2022. This application claims priority to Application No. 18 / 056,391, filed November 17, 2022, which claims the benefit of Provisional Application No. 63 / 281,433, filed November 19, 2021, both of which are incorporated herein by reference in their entireties.

[0002] This disclosure relates to artificial intelligence learning and associated memory management. [Background technology]

[0003] Machine intelligence can take the form of agents that make predictions from streams of data values ​​that describe various phenomena. For example, an intelligent model can attempt to predict future stock prices or manufacturing production volumes from a variety of data. Such models are often trained on large amounts of data. Summary of the Invention

[0004] The computer system includes a memory and a processor. The processor is programmed to construct and utilize a plurality of data package objects. Each data package object includes signal data describing time-series values ​​of a parameter, organizes the signal data into a plurality of batches smaller than the memory, and identifies the plurality of batches according to an index. Each data package object is further configured to, in response to a request, provide an output identifying the randomly shuffled or arbitrarily ordered index, load one of the plurality of batches into memory for training a machine learning model that predicts time-series parameter outputs from time-series parameter inputs using features of the signal data of the one of the plurality of batches, and remove the loaded one of the batches from memory so that the one batch and other batches do not completely occupy all of the memory at the same time.

[0005] The embedded system includes a hardware registry and a microcontroller. The microcontroller is programmed to construct and use multiple data package objects. Each data package object includes signal data describing time-series values ​​of a parameter, organizes the signal data into multiple batches smaller than the hardware registry, and identifies the multiple batches according to an index. Each data package object is further configured to, in response to a request, provide an output identifying a randomly shuffled or arbitrarily ordered index, load one of the multiple batches into the hardware registry to train a machine learning model that predicts time-series parameter outputs from time-series parameter inputs using features of the signal data of the one batch, and remove the loaded one batch from the hardware registry so that the one batch and other batches do not simultaneously completely occupy the entire hardware registry. [Brief explanation of the drawings]

[0006] [Figure 1] Schematic diagram showing the relationships between various objects in an object-based data science platform. DETAILED DESCRIPTION OF THE INVENTION

[0007] Embodiments are described herein. However, it should be understood that the disclosed embodiments are merely exemplary, and that other embodiments may take various alternative forms. The figures are not necessarily to scale. Some features may be exaggerated or minimized to show details of specific components. Therefore, specific structural and functional details disclosed herein should not be construed as limiting, but merely as a representative basis for teaching those skilled in the art.

[0008] Various features illustrated or described with reference to any one example may be combined with features illustrated or described in one or more other examples to create embodiments not explicitly illustrated or described. The illustrated combinations of features provide representative embodiments for typical applications. However, various combinations and modifications of features consistent with the teachings of this disclosure may be desired for particular applications or implementations.

[0009] Training artificial intelligence (AI), such as machine learning models (e.g., sequence-to-sequence models), is often custom-built. For example, data scientists write custom code to load and preprocess the data used to train the machine learning model. However, introducing different models or different data can require additional custom code. Furthermore, the amount of data used to train the AI ​​can exceed available memory. This article introduces a platform with reusable objects to reduce the need for custom code and large amounts of memory when training AI.

[0010] There are several types of objects possible: project objects, experiment package objects, data package objects, pipeline objects, and model package objects. When instantiated from their corresponding classes, they inherit the functionality described below. They are all distinct and serializable, and can be saved as files or versioned. These objects then cooperate to facilitate model training when executed, for example, by a processor or microcontroller.

[0011] An example would be a state-based interface (seq2seq) with multiple functions to a software physics package (physics). These functions constitute a high-level project application programming interface (API) for setting up and running something called a project. Using a project API is generally preferred over an object API when possible. Project API Example # Import state-based interface; Project API is now available From physics import seq2seq as pjt # Extract data from a source pjt.extract_data(source='manufacturing plant', run_id=140, search='files')

[0012] Conceptually, a state-based interface maintains relationships between key object classes, as shown in Figure 1. Some project-level functions are shown. In this way, a state-based interface can be understood as a collection of convenience functions that call various object APIs. This approach allows project objects to be treated as distinct "packages" that can be saved, reused, and recombined in useful ways. For example, a model trained in one experiment can be validated against new data by simply swapping out the data package object and calling the experiment's validation method again. Similarly, a feature engineering pipeline that works well with data from a machine that produces one product can be saved and applied to data from other machines that produce the same product.

[0013] The various objects are briefly introduced below with reference to Figure 1. The project object 10 can manage a stateful registry of various other objects 12-34 and defines a high-level project API. The data loader object 12 retrieves data from the cloud, database, or other file sources, ingests the data into data package objects 14, 16, 18, and 20, and registers them with the project object 10. The cleaner object 22 preprocesses the data package objects 14, 16, 18, and 20 (e.g., inspects the data for completeness and attempts to correct or exclude problematic parts), selects signals from the data, and provides machine learning functions for creating features. The data package objects 14, 16, 18, and 20 provide custom containers for data and corresponding metadata, visualization tools, resampling utilities, etc. The pipeline objects 24 and 26 transform the data in the data package objects 14, 16, 18, and 20 and create new features. Processing steps are defined by adding pipeline operation objects. The model packages 28 and 30 define the model architecture for training and include utilities for binarizing and exporting the model. Experiment package objects 32, 34 define a trainable setup after necessary objects such as data package objects, pipeline objects, and model package objects have been assigned to them. Objects assigned to a given experiment package object, such as data package objects 14, 16, can be reused across various experiment package objects. They can also be saved for reuse in other experiment package objects, similar to entire project objects. As briefly mentioned above, a processor and memory 36 (or alternatively, a microcontroller and hardware registry for embedded systems) can be programmed to execute objects 10-34 and store the corresponding data and metadata therein.

[0014] In addition to the project API, various objects can be exposed directly using their own object API, although this may not be generally useful in production environments. However, it may be convenient to use the object API for specific tasks, such as visualizing raw data in a data package object, or running speed benchmark tests on the signal processing operations contained in a pipeline object. Object API Example from physics import seq2seq as pjt # Extract data using Project API pjt.extract_data(source='manufacturing plant', run_id=140, search='files') # Expose the DataPackage just created and visualize raw data with Object API dpk = pjt.get_datapackage() dpk.plot_data() # Create a feature transformation Pipeline using Project API pjt.create_pipeline() # Expose the Pipeline just created and add an operation with Object API p = pjt.get_pipeline() p.add_operation( transformation_obj='StandardScaler', ) # Onboard (bring into memory) DataPackage contents dpk.onboard() # Fit Pipeline operations to data, and benchmark execution speed p.fit_to_dataframe(df = dpk.source.data) p.benchmark(df=dpk.source.data)

[0015] More generally, a data package object can contain raw signal data (e.g., time series values ​​of parameters such as temperature sensors or motor currents on operating manufacturing equipment) and corresponding metadata (e.g., data describing administrative constraints such as the operating temperature range or power limits of the manufacturing equipment). A data package object can also have several administrative functions related to the data it contains. These functions include knowing the size of the data, constructing and indexing batches (e.g., subsets) from the data (each batch typically has a size smaller than the size of available memory), shuffling the batch index, loading requested batches into memory, and deleting batches from memory.

[0016] A pipeline object contains a predefined, configurable series of data processing operations (e.g., frequency analysis, statistical analysis) to generate interesting features from data, and can be run across any number of data package objects. These operations can be saved as a single object that can be recalled and reused, with each operation defining the signal it targets. As a result, you can save a set of steps to prepare data from a source (e.g., a factory), and then whenever you want to use data from that source to update the training of the corresponding model, you can recall the same set of steps to prepare the data by loading the corresponding pipeline object. Examples of a set of operations defined by a pipeline object include generating a moving average for temperature data, scaling the data so that it is all zero-mean, and performing frequency analysis on a pressure signal to create wavelets.

[0017] A model package can contain a machine learning model (e.g., a sequence-to-sequence model) and a taxonomy of all the parameters needed to reconstruct the machine learning model after training (e.g., sequence length, number of neural network layers, number of inputs and outputs, trained weights of neural network elements, etc.), with the ability to serialize, save, and reload them. Once loaded, the model can be reconstructed in memory and used or trained.

[0018] The experiment package object can provide functional tools for using the various subpackages together. It is serializable, contains all the data necessary to reconstruct it at different run times, can run training, validation, simulations, and plot model performance. It is the orchestrator of model training.

[0019] The memory management capabilities associated with data package objects allow the platform to use any number of data package objects for a particular model, even if all data sources do not fit in memory simultaneously. As described above, the data package object has knowledge of important characteristics of the data, such as the size of the data and how many batches (e.g., subsets) can be constructed from the data, and can index such batches. A corresponding experiment package can reference the data package, even if the data is not yet in memory, generate a request for the data package to randomly shuffle it and report the indexes of available batches. For every data package, the experiment package can randomly select a batch. The data package that stores the selected batch loads the batch's data and corresponding metadata into memory, which the experiment package uses to train a model, for example, to predict the time-series parameter output of a manufacturing device from the time-series parameter input to the manufacturing device according to the control limits defined by the metadata. In this way, the experiment package can randomly iterate through all batches in the data package over multiple epochs of model training, which is advantageous for efficiently training machine learning models.

[0020] The algorithms, methods, or processes disclosed herein can be delivered to or executed by a computer, controller, or processing device, including any dedicated or programmable electronic control unit. Similarly, the algorithms, methods, or processes can be stored in many forms as data and instructions executable by a computer or controller, including, but not limited to, information permanently stored on a non-writable storage medium such as a read-only memory device, and information revocably stored on a writable storage medium such as a compact disc, random access memory device, or other magnetic and optical medium. The algorithms, methods, or processes can also be implemented in software executable objects. Alternatively, the algorithms, methods, or processes can be embodied, in whole or in part, using suitable hardware components, such as application-specific integrated circuits, field-programmable gate arrays, state machines, or other hardware components or devices, or a combination of firmware, hardware, and software components.

[0021] While exemplary embodiments have been described above, it is not intended that these embodiments describe all possible forms encompassed by the scope of the claims. The words used herein are words of description rather than limitation, and it is understood that various changes may be made without departing from the spirit and scope of the present disclosure. For example, the terms processor and processors may be used interchangeably, and the terms microcontroller and microcontrollers may be used interchangeably.

[0022] As noted above, features of various embodiments can be combined to form additional embodiments of the present invention not explicitly described or illustrated. While various embodiments may be described as offering advantages or being preferred over other or prior art embodiments with respect to one or more desired characteristics, those skilled in the art will recognize that one or more features or characteristics may be compromised to achieve desired overall system attributes depending on the particular application and embodiment. These attributes include, but are not limited to, cost, strength, durability, life cycle cost, marketability, appearance, packaging, size, maintainability, weight, manufacturability, ease of assembly, and the like. Thus, embodiments described as being less desirable than other or prior art embodiments with respect to one or more characteristics are not outside the scope of this disclosure and may be desirable for particular applications.

Claims

1. Memory, a processor programmed to construct and utilize a plurality of data package objects; Each of the data package objects is signal data indicating time series values ​​of a plurality of parameters; Organizing the signal data into a number of batches of a size smaller than the memory; Identifying said batch according to an index; a computer system that, in response to a request, provides an output identifying the randomly shuffled or arbitrarily ordered indexes; loads one of the batches into the memory for training a machine learning model that predicts time series parameter output from time series parameter input using features of the signal data of the one of the batches; and removes the one of the batches from the memory such that the one and other batches do not completely occupy all of the memory at the same time.

2. The computer system of claim 1 , wherein the signal data describes a time series of values ​​of a parameter of a manufacturing device.

3. The computer system of claim 1 , wherein the machine learning model is a sequence to sequence model.

4. 2. The computer system of claim 1, wherein the processor is further programmed to construct and utilize an experiment package object that generates the request based on an output identifying the index from the data package object such that the batches sequentially loaded into and removed from the memory are from different data package objects.

5. The computer system of claim 1 , wherein each of the data package objects further includes metadata describing control limits.

6. 6. The computer system of claim 5, wherein each of the data package objects, in response to the request, further loads the metadata into the memory such that the machine learning model trains according to the control limits.

7. 2. The computer system of claim 1, wherein the processor is further programmed to construct and utilize an experiment package object that generates the requests such that all the batches from all the data package objects are loaded into and removed from the memory in random order over multiple epochs of model training.

8. 2. The computer system of claim 1, wherein the processor is further programmed to construct and utilize pipeline objects that perform a predefined, configurable series of data processing operations on the signal data to generate features for modeling.

9. 2. The computer system of claim 1, wherein the processor is further programmed to construct and utilize a model package object that includes the machine learning model and a taxonomy of all parameters required to reconstruct the machine learning model after machine learning.

10. 2. The computer system of claim 1, wherein the processor is further programmed to save the data package object, experiment package object, pipeline object, or model package object as a serialized file object that can be stored and loaded into the memory for reuse.

11. A hardware registry; a microcontroller programmed to construct and utilize a plurality of data package objects; Each of the data package objects is signal data indicating time series values ​​of a plurality of parameters; Organizing the signal data into a number of batches of a size smaller than the hardware registry; Identifying said batch according to an index; and, in response to a request, providing an output identifying the randomly shuffled or arbitrarily ordered indexes; loading one of the batches into the hardware registry for training a machine learning model that predicts time series parameter outputs from time series parameter inputs using features of the signal data of the one batch; and removing the one batch from the hardware registry such that the one batch and other batches do not simultaneously fully occupy all of the hardware registry.

12. The embedded system of claim 11 , wherein the signal data describes a time series of values ​​of a parameter of a manufacturing device.

13. The embedded system of claim 11 , wherein the machine learning model is a sequence to sequence model.

14. 12. The embedded system of claim 11, wherein the microcontroller is further programmed to construct and utilize an experiment package object that generates the request such that the batches sequentially loaded into and removed from the hardware registry are from different data package objects based on an output identifying the index from the data package object.

15. The embedded system of claim 11 , wherein each data package object further includes metadata describing control limits.

16. 16. The embedded system of claim 15, wherein each data package object, in response to the request, further loads the metadata into the hardware registry such that the machine learning model trains according to the control limits.

17. 12. The embedded system of claim 11, wherein the microcontroller is further programmed to construct and utilize an experiment package object that generates the requests such that all the batches from all the data package objects are loaded into and removed from the hardware registry in random order over multiple epochs of model training.

18. 12. The embedded system of claim 11, wherein the microcontroller is further programmed to construct and utilize pipeline objects that perform a predefined, configurable series of data processing operations on the signal data to generate features for modeling.

19. 12. The embedded system of claim 11, wherein the microcontroller is further programmed to construct and utilize a model package object that contains the machine learning model and a taxonomy of all parameters required to reconstruct the machine learning model after machine learning.

20. 12. The embedded system of claim 11, wherein the microcontroller is further programmed to save the data package object, experiment package object, pipeline object, or model package object as a serialized file object that can be stored and loaded into the hardware registry for reuse.