Computer-implemented method and system for the automated processing of tasks on the basis of artificial intelligence on an edge device

The method addresses inefficiencies in edge systems by generating parameterized processing templates for AI/ML tasks on edge devices, enhancing automation and efficiency in handling dynamic workloads and client-specific contexts, thus enabling scalable and customizable federated learning solutions.

WO2024188804A1PCT designated stage expired Publication Date: 2024-09-19SIEMENS AG
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
PCT/EP2024/056015
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-13
Filing Date
2024-03-07
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

Current edge systems struggle to efficiently handle dynamic workloads and provide scalable, customizable federated learning solutions for industrial applications, leading to inefficiencies and errors in AI/ML processing, particularly in handling diverse client contexts and data requirements.

Method used

A method that generates processing templates with specific parameters for edge devices, allowing for automated execution of AI/ML tasks, including dynamic workload management and customization, which enables efficient processing and control of technical devices, and supports scalable federated learning by adapting to local conditions and resources.

Benefits of technology

This approach enhances automation, reduces processing errors, improves efficiency, and enables flexible, customer-specific federated learning solutions that can be integrated into edge-based applications, effectively managing the lifecycle of AI/ML models and handling diverse client contexts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure EP2024056015_19092024_PF_FP_ABST
    Figure EP2024056015_19092024_PF_FP_ABST
Patent Text Reader

Abstract

The invention relates to a computer-implemented method for the automated processing of processing tasks on the basis of artificial intelligence or machine learning on an edge device which is connected to a computing device, wherein the following steps are processed: a) providing to the computing device a set of processing tasks with processing data, comprising program codes, models, training data and / or test data, and associated execution parameters which describe the execution of the processing data on the edge device, b) the computing device determining at least one processing parameter for the respective processing data from the execution parameters, said processing parameter taking into account the execution of the set of processing tasks by an edge device, c) the computing device generating respective processing templates for a respective processing task, comprising respective processing data and the respective at least one processing parameter, d) the computing device providing the processing templates to the edge device, e) the edge device executing the processing templates by means of the respective processing parameters, and obtaining processing results from the processing templates, f) the edge device controlling at least one technical device connected to the edge device, using the processing results.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Computer-implemented method and system for automated processing of tasks based on artificial intelligence at an edge device

[0002] Regardless of the grammatical gender of a particular term, persons with male, female or other gender identities are included.

[0003] The invention relates to a computer-implemented method and a system for the automated processing of processing tasks based on artificial intelligence or machine learning at an edge device connected to a computing device.

[0004] The invention further relates to a computer program product and a computer-implemented data structure.

[0005] Edge devices are often used in a manufacturing context to collect data and perform data analysis and machine learning (ML) or artificial intelligence (AI) tasks.

[0006] For quick and efficient processing, templates are used, often in the form of Python code, which maps a complete AI / ML pipeline for both training tasks and prediction tasks. This includes all the program code required to train an AI / ML model, as well as the loading and preprocessing of the data and the program code required to execute the prediction.

[0007] In the current state of the art, a data scientist prepares a template, for example, by developing a complete Jupyter Notebook (a very popular development tool for data scientists). The template is compiled using the template builder and published through a VQI backend, which automatically integrates the template into a Visual Quality Inspection (VQI) application and makes it available to a domain expert.

[0008] The domain expert is the person who uses the application and is responsible for providing the training data. The domain expert is also responsible for initiating the training of a dataset using a template.

[0009] An automation engineer distributes the now trained model to the edge device.

[0010] It can often be the case that the role of domain expert and that of automation engineer are performed by the same person.

[0011] However, the manual execution of these roles can lead to monotonous and time-consuming activities, which can lead to unwanted errors that may only be noticed after resource-intensive training and can therefore result in high follow-up costs.

[0012] Furthermore, when these roles are performed manually, it can happen that several ML tasks are passed on to hardware resources for processing in an uncoordinated manner and the hardware does not process the tasks optimally in terms of time.

[0013] So-called "workloads" are computing processes that perform a task. Workloads can vary in size and serve different purposes.

[0014] Workloads can be smaller processes or larger batch processes, such as training a class model.

[0015] State-of-the-art systems can be broadly categorized into static and dynamic workloads.

[0016] Static workloads remain relatively constant over a long period of time and use very similar amounts of computing resources on a fixed schedule. The hardware at an edge can be selected according to the expected static workload. There is no need to reconfigure the system during runtime.

[0017] Dynamic workloads, however, adapt dramatically as demands increase. They are also called transient workloads. A dynamic workload requires more flexibility and availability to run efficiently. An example of a dynamic workload is retraining an AI model at an edge. New data may be available that requires the model to be updated. These tasks are difficult or impossible to plan for when designing a system. The user may also want more flexibility to move certain workloads from the cloud to the edge.

[0018] Currently available edge systems cannot adequately handle dynamic workloads in edge or operational technology (OT) environments. However, with the proliferation of AI and ML at an edge in large environments, it will be essential to handle such workloads more efficiently.

[0019] In the area of ​​applications based on industrial federated learning (abbreviated to "I FL" or just "FL"), there are still many challenges in the state of the art in providing FL services on a large scale and in integrating applications that successfully solve industrial use cases such as condition monitoring (abbreviated to "CM") of technical devices (abbreviated to "assets").

[0020] Models resulting from FL should preferably serve many customers. Therefore, a scalable deployment of FL-powered applications is intended.

[0021] However, not all clients work in the same context.

[0022] For example, data structure, data quality and requirements for the integration of models into applications and

[0023] Services may vary.

[0024] Therefore, adaptation is required before the model is trained, such as custom preprocessing to align the input data with the global model.

[0025] Furthermore, it should be noted in the state of the art that the development and deployment of scalable yet adaptable I FL-based solutions is a multi-stage process involving several professions such as data scientists, IT experts and operators.

[0026] So-called "ModelOps" approaches support the operationalization of models by executing a lifecycle with automated pipelines that cover, for example, data processing, (re-)training, validation, and deployment. This allows multiple steps in the value chain to be taken into account, from model development to model operation in production.

[0027] To make these approaches available for federated learning, clients at the edge layer must also be included in the lifecycle.

[0028] However, the state of the art does not provide for the management of the life cycle of an FL model in such a way that customer-specific adaptation and adaptation to the local context are possible.

[0029] Furthermore, state-of-the-art FL tasks are usually defined centrally to compute a global model, but do not consider customer-specific configurations and context, such as local data quality, data structure, or hyperparameters used in local training, or individual customer criteria for collaboration with other customers, such as a required minimum number of collaborating customers, as well as different computational resources.

[0030] Furthermore, state-of-the-art FL systems cannot simply chain FL tasks with multiple stages.

[0031] In current FL systems, the focus is on model training, which must be defined centrally and performed decentrally on each client. However, the pre- and post-processing of local data and prediction results is not considered adapted to local client applications.

[0032] It is therefore an object of the invention to provide a method with which the degree of automation in the execution of AI / ML processing pipelines can be improved, errors caused by human processing can be reduced or even avoided, and the dynamic efficiency in processing can be improved.

[0033] The object of the invention is to provide a solution for applications based on federated learning in which a scalable and at the same time an application of flexible models can be carried out.

[0034] In this context, a flexible model is understood to be an FL model that is individually adapted to a particular solution.

[0035] The object of the invention is achieved by a method of the type mentioned above, wherein the following steps are processed: a) Providing a set of processing tasks with processing data, comprising program codes and models, and training data and / or test data, and associated execution parameters which describe the execution of the processing data on the edge device, to the computing device, b) Determining at least one processing parameter for the respective processing data from the execution parameters, which takes into account the execution of the set of processing tasks by an edge device, by the computing device, c) Generating respective processing templates for a respective processing task, comprising respective processing data and the respective, at least one processing parameter, by the computing device,d) Providing the processing templates to the edge device by the computing device, e) Executing the processing templates using the respective processing parameters by the edge device, and obtaining processing results from the processing templates, f) Controlling at least one technical device connected to the edge device with the processing results by the edge device.

[0036] In the solution, a technical device on an edge device is controlled with data processed according to the invention.

[0037] In this context, processing data refers to the data required to perform a processing task. These include, for example, program code for AI / ML tasks that describe a processing task, one or more AI / ML models that describe, for example, a technical device or a sensor device, as well as associated training data and / or test data.

[0038] In other words, the processing data serves, for example, to efficiently and specifically adapt program code to a technical device. The specific adaptation is achieved by incorporating processing parameters for the respective processing data from the execution parameters when processing tasks are executed by an edge device.

[0039] In the present context, execution parameters are understood to be parameters that describe, specify or predetermine the execution of the processing tasks or the processing data at the edge device, for example by defining limit values ​​or operating values ​​for a connected technical device or sensor device, or also, for example, to describe joint processing of a set of processing tasks at the edge device, such as by applying priorities during processing, or the use of special resources at the edge device.

[0040] The technical device can be, for example, a CNC milling machine, a pump, or the like. It is controlled using a model based on artificial intelligence or machine learning.

[0041] A processing task can, for example, be the execution of a milling operation by a CNC milling machine, whereby the application of an AI / ML model enables the efficient completion of the processing task.

[0042] A processing task can, for example, be the predictive operation of a pump with the aim of optimizing maintenance intervals by applying an AI / ML model.

[0043] Control commands for the technical device, predicted or optimized by applying the model, are generated and obtained as processing results and further applied. The AI ​​codes can include ML / AI models, training data, or analysis data that are applied to a trained model, for example, for prediction, or data for machine learning, such as in federated systems.

[0044] The application of program codes for machine learning or for artificial intelligence is considered equivalent in this context.

[0045] The method achieves that a compact data structure is formed by a processing template, which allows a processing execution unit adapted for this purpose at the edge device to execute several processing templates and to carry out Kl calculations in a simple and efficient manner, which are adapted to the environmental conditions at the edge device.

[0046] A template is a common data set of several different data elements, for example of the same type. Data elements refer to independent data, i.e., data that cannot be aggregated, for example, using static methods.

[0047] Processing errors caused by incorrect user input can be reduced because the adaptation of processing to the edge device can be automated.

[0048] The procedure achieves a very easy-to-implement definition of process pipelines, which takes into account the technical properties of edge devices.

[0049] Both AI / ML training tasks and ML / AI inference tasks can be processed efficiently.

[0050] The method can take into account operational-specific parameters and corresponding constraints of an edge device by linking meta-information with machine learning or artificial intelligence functions within a processing template, such as pre-processing and post-processing, training and prediction.

[0051] By performing such processing on an edge device, non-linear optimization methods can be used to optimally operate the edge device with regard to its resources.

[0052] Furthermore, processing tasks can be carried out in a configuration-specific manner by taking configuration information or data aggregation information into account in processing templates.

[0053] A model can be used for prediction and custom post-processing can be applied before the output is delivered to applications.

[0054] By combining scalable deployments with the aforementioned customization, multiple customers can be served with a specific AI solution while still taking local client contexts into account, and process properties and process parameters can also be considered.

[0055] In other words, an end-to-end lifecycle management of software artifacts, which for this purpose include context-sensitive processing steps of the customer, can be addressed.

[0056] Subsequently, a customer-specific and extensible "federated learning as a service", or "FLaaS" for short, can be enabled, which can be integrated into edge-based client applications.

[0057] Furthermore, chained FL tasks can be easily defined by applying federated clustering to unlabeled data, federated learning and classification using self-labeled and self-supervised outputs, and federated validation, such as through aggregated performance metrics. The described solution provides a corresponding solution to the aforementioned disadvantages of the state of the art.

[0058] In a further development of the invention, it is provided that sensor data is acquired by a sensor device which is connected to the edge device, and the acquired sensor data are included in step a) when providing a set of processing tasks and associated execution parameters.

[0059] In this solution, sensor data from a sensor device is processed on an edge device according to the invention.

[0060] The sensor device can be, for example, an optical sensor, a video sensor of a system for "visual quality inspection" of manufactured products on a conveyor belt of a production system, a temperature sensor of a milling head of a CNC milling machine, a speed sensor of a pump or the like, wherein the sensor device, for example, detects properties of manufactured or processed products as sensor data.

[0061] Inferences in the sensor data can be detected by applying an AI / ML model to the corresponding processing task.

[0062] Both solutions serve the same inventive technical task, namely the efficient processing of processing tasks at an edge device through the application of processing templates. Accordingly, the same advantages of the method apply.

[0063] In a further development of the invention, it is provided that the computing device is located at an edge device of a client of a client-server system.

[0064] This allows for efficient calculation. In a further development of the invention, the processing templates are transmitted from the server to the client using a Message Queuing Telemetry Transport protocol.

[0065] This allows for efficient distribution of templates.

[0066] In a further development of the invention, it is provided that the at least one processing parameter is formed by a function decoration as a Python design pattern.

[0067] This makes it easy to achieve an implementation that Python supports through so-called "decorators".

[0068] In a further development of the invention, it is provided that the at least one processing parameter comprises at least one piece of information regarding a data structure during the generation of the model and / or a data quality during the generation of the model and / or a requirement for the integration of one or more models into an application and a service.

[0069] To describe the data structure, for example, a description of the model already used in the target application can be used, such as through corresponding meta data for a model, associated input parameters and / or the form of the training data.

[0070] The following metrics can be used, for example, to determine the data quality, for which such a determined quality parameter is used in the further process:

[0071] Normalization of metric results: This allows data to be interpreted and compared. • Cardinal scaling: This makes it possible to track the development curve of metric results and derive appropriate economic measures.

[0072] • Sensitizability: The data quality can be measured and evaluated for a specific application and objective.

[0073] • Aggregatability: This creates the ability to measure data quality at the attribute value, tuple, relation, and database levels. This allows metric results to be aggregated at all levels.

[0074] • Operationalizability using measurement methods: Measurement methods such as definition or value range make metrics applicable in practice.

[0075] • Technical interpretability: Metric results should be reproducible by third parties. This enables technical interpretation and reproduction.

[0076] To describe the integration of one or more models into an application and a service, for example, a runtime parameter can be used which contains information about the execution of the application or service, such as information about execution as a background process or access rights to special data records during execution.

[0077] This can improve the integration of models into applications.

[0078] In a further development of the invention, it is provided that the at least one processing parameter comprises at least one piece of information regarding the training and / or validation of the model and / or the provision of the model to an application or a service.

[0079] This can improve the use of models in applications. In a further development of the invention, the at least one processing parameter includes temporal information, for example, a processing priority, a predetermined start time or end time for processing, a processing time range, or a processing repetition.

[0080] This ensures that the timing of the processing at the edge device can be advantageously adjusted and the edge device can operate more efficiently overall.

[0081] In a further development of the invention, it is provided that the at least one processing parameter comprises information regarding a triggering criterion for the processing at the edge device, for example a logical or manual triggering condition, or the receipt of a triggering message which is received by the edge device by a corresponding, included receiving device.

[0082] This ensures that the timing of the processing at the edge device can be advantageously adjusted and the edge device can operate more efficiently overall.

[0083] A trigger message can be transmitted, for example, via the MQTT protocol (Message Queuing Telemetry Transport) or ZeroMQ.

[0084] MQTT is an open network protocol for machine-to-machine communication that enables the transmission of telemetry data in the form of messages between devices, despite high latency or limited networks.

[0085] ZeroMQ is an asynchronous message exchange library for high-throughput computing, specifically designed for distributed systems or concurrent execution across multiple systems. It is a message queue, but unlike message-oriented middleware, it does not require a dedicated message broker.

[0086] In a further development of the invention, it is provided that the at least one processing parameter comprises information regarding a resource condition for the processing at the edge device, for example a processor type at the edge device such as a GPU or a special CPU, a required memory requirement or memory access such as local memory or cloud storage.

[0087] This ensures that the execution of processing at the edge device can be advantageously adapted in terms of resources and that the edge device can operate more efficiently overall.

[0088] In a further development of the invention, it is provided that the at least one processing parameter comprises information regarding a configuration for the processing at the edge device, for example a combination of Kl code, software and resources at the edge device.

[0089] This ensures that the execution of processing at the edge device can be advantageously adapted with regard to the configuration of software and hardware and that the edge device can operate more efficiently overall.

[0090] By appropriately combining two, three, four, five or more connection parameters from the categories of the previous processing parameters, synergistic effects can also occur, which can further increase the efficiency of the process and the edge device.

[0091] The object according to the invention is also achieved by a system for the automated processing of processing tasks based on artificial intelligence or machine learning on an edge device, comprising a computing device with a processor and a memory and a connected technical device, wherein the system is set up to carry out the method according to the invention.

[0092] In a further development of the invention, it is provided that a sensor device is also included, and the system is set up to carry out the method according to the invention.

[0093] This makes it possible, for example, for sensor data to be recorded by a corresponding sensor device during operation of a technical device and for further processing to be carried out in a particularly simple manner using the templates.

[0094] In a further development of the invention, it is provided that the computing device is comprised by the edge device.

[0095] This simplifies the system for executing the procedure and reduces complexity.

[0096] The object according to the invention is also achieved by a computer program product having machine-readable instructions stored therein which, when executed by a processing unit, cause the latter to carry out the method according to the invention.

[0097] The object of the invention is also achieved by a computer-implemented data structure for the automated processing of processing tasks based on artificial intelligence or machine learning at an edge device in the form of a processing template for use in the method according to the invention, comprising processing data, having program codes and models, and training data and / or test data, and associated execution parameters, and at least one processing parameter that describes the execution of a set of processing tasks by an edge device. In a further development of the invention, it is provided that the data structure contains at least one, preferably at least two or three, particularly preferably at least four or five of the following parameters:

[0098] Data for orchestrating processing templates at the edge device,

[0099] Artifacts related to a processing task, meta-data related to processing data,

[0100] Information on the temporal course of a processing task,

[0101] Information about messages for controlling a processing task

[0102] Edge device resources,

[0103] Information about resources of the edge device, and / or the connected technical device, and / or the sensor device

[0104] Includes information on data structure and / or data quality and / or requirements for integrating the models into applications and services.

[0105] Information on data processing and / or training and / or validation and / or provision in applications and services.

[0106] The invention is explained in more detail below with reference to an embodiment shown in the accompanying drawings. In the drawings:

[0107] Fig. 1 shows an example of a flow diagram of the method according to the invention,

[0108] Fig. 2 shows a first embodiment of the system according to the invention,

[0109] Fig. 3 shows a second exemplary embodiment of the system according to the invention. Fig. 4 shows an exemplary embodiment of a template in the form of a Python program code.

[0110] Fig. 5 shows an example template for applying an AI / ML pipeline to sensor data,

[0111] Fig. 6 shows an exemplary embodiment of a schematic flow diagram for the method according to the invention,

[0112] Fig. 7 shows an exemplary embodiment of a block diagram with sequences for the system and method according to the invention,

[0113] Fig. 1 shows an example of a flow diagram of the method according to the invention.

[0114] The method is used for the automated processing of processing tasks based on artificial intelligence on an edge device E which is connected to a computing device CPU.

[0115] The method is computer-implemented in at least one step.

[0116] The procedure can be presented in two variants.

[0117] In the first form, a technical device TD, which is connected to the edge device E, is controlled by the edge device E with determined processing results PR.

[0118] The following steps are carried out: a) providing a set of processing tasks with processing data, comprising program codes, models, training data and / or test data, and associated execution parameters which describe the execution of the processing data at the edge device, to the computing device CPU, b) determining at least one processing parameter for the respective processing data from the execution parameters, which takes into account the execution of the set of processing tasks by an edge device E, by the computing device CPU, c) generating respective processing templates TP for a respective processing task, comprising respective processing data and the respective, at least one processing parameter, by the computing device CPU, d) providing the processing templates to the edge device E, by the computing device CPU,e) Executing the processing templates using the respective processing parameters by the edge device E, and obtaining processing results PR from the processing templates TP, f) Controlling at least one technical device TD, which is connected to the edge device E, with the processing results PR, by the edge device E.

[0119] In the second form, sensor data is acquired by a sensor device SD connected to the edge device E, and the sensor data is provided to the computing device CPU for further processing.

[0120] The following steps are carried out: a) Acquisition of sensor data D by a sensor device SD, which is connected to the edge device E, and provision of the sensor data to the computing device CPU, b) Provision of a set of processing tasks with processing data, comprising program codes and models, and training data and / or test data, and associated execution parameters, which describe the execution of the processing data on the edge device, to the computing device CPU, c) Determination of at least one processing parameter for the respective processing data from the execution parameters, which takes into account the execution of the set of processing tasks by an edge device E, by the computing device CPU, d) Generation of respective processing templates for a respective processing task, comprising respective processing data, the sensor data and the respective,at least one processing parameter, by the computing device CPU, e) providing the processing templates to the edge device E, by the computing device CPU, f) executing the processing templates using the respective processing parameters PP by the edge device E, and obtaining processing,

[0121] PR results for the sensor data from the processing templates.

[0122] In the method, a data structure for the automated processing of processing tasks based on artificial intelligence or machine learning on an edge device E is used in the form of the processing template.

[0123] The data structure is computer-implemented and includes processing data, comprising program codes and models, and training data and / or test data, and associated execution parameters and processing parameters.

[0124] The processing template can, for example, include the following data in the form of a corresponding data structure:

[0125] • Data for orchestrating multiple processing templates at the edge device E ,

[0126] Artifacts relating to an AI / ML task, i.e. relating to a processing task, • Information on data that is generated, such as for controlling a technical device TD, or which is processed, such as sensor data D, i.e. meta-data on processing data,

[0127] • Information on the temporal course of a processing task, such as information on the start or termination of an instance or processing task,

[0128] • Information on messages for controlling an instance or processing task,

[0129] • Information about resources of the edge device E ,

[0130] • Information on resources of the edge device E , and / or the connected technical device TD, and / or the sensor device SD,

[0131] • Information on data structure and / or data quality and / or requirements for the integration of the models in applications and services,

[0132] • Information on data processing and / or training and / or validation and / or provision in applications and services.

[0133] The data structure may contain at least one, preferably at least two or three, particularly preferably at least four or five of the parameters.

[0134] In addition, the processing template may provide optimizations for execution by the edge device E:

[0135] • A processing template identifier can be used to enable easy identification and assignment to the edge device E.

[0136] • A flag can be used to allow the edge device E to be easily assigned to a specific processor, such as a GPU. • A start time can be used to allow the edge device E to be easily assigned to process at a predetermined time. This can also be in the form of an "earliest possible start time".

[0137] • An end time can be used to allow the edge device E to be easily assigned to process at a predetermined time to ensure timely completion at the desired end time.

[0138] • A time period (“slack”) can be provided to allow the edge device E to flexibly schedule processing of two connected, consecutive processing templates, where both processing templates require common access to resources, and appropriate optimization strategies can be applied to resolve such conflicts.

[0139] • A conflict statement can, for example, include a conflict matrix, through which the behavior in an access conflict to a shared resource is defined, for example by using priorities or optimization strategies to resolve conflicts.

[0140] • information regarding a data structure when creating the model and / or a data quality when creating the model and / or a requirement for the integration of one or more models into applications and services.

[0141] • Information regarding training and / or validation and / or deployment in applications and services. For optimization purposes, a generalized reduced gradient (GRG) method can be applied to the edge device E, for example.

[0142] The GRG method is an extension of the reduced gradient method to account for nonlinear inequality constraints. This method finds a search direction such that, for any small movement, the currently active constraints remain exactly active.

[0143] Other optimization methods are also possible, such as the evolution algorithm, which is a generic population-based metaheuristic optimization algorithm.

[0144] Fig. 2 shows a first embodiment of the system according to the invention according to claim 1, wherein the technical device TD, which is connected to the edge device E, is controlled by the edge device E with the processing results PRES.

[0145] The computing device CPU may be included in the edge device E.

[0146] The comments on Fig. 5 also apply.

[0147] Fig. 3 shows a second embodiment of the system according to the invention according to claim 2, wherein sensor data D are acquired by the sensor device SD, which is connected to the edge device E, and the sensor data D are provided to the computing device CPU.

[0148] The computing device CPU may be included in the edge device E.

[0149] The comments on Fig. 5 also apply.

[0150] Fig. 4 shows an example of an IFL template

[0151] (industrial federated learning, IFL for short) in the form of a Python program code for a client-server environment.

[0152] The adaptability of FL solutions with distributed clients and their respective contexts, such as client data, can be improved by using templates.

[0153] In the example shown, the decorator t . exec is defined to execute corresponding functions for execution devices, i.e. runtime modules of the server and client.

[0154] The server tier is implemented in lines 1-3, which executes FL services provided by an I FL core.

[0155] The training stage is implemented in lines 5-8, which are executed locally on clients. Local data about the function to be used in the FL training rounds is provided in line 8. The client context can be used to incorporate local configurations and, for example, to store models to be used in a prediction, see lines 10-13.

[0156] Building on this, data scientists can now, for example, improve a template by taking into account client context and post-processing behavior.

[0157] The template can then be packaged and uploaded to a server for scalable use across multiple applications.

[0158] Fig. 5 shows an example template for applying an AI / ML pipeline to sensor data following the example in the previous figure.

[0159] The template is a deployable artifact (DA) and contains code for applying an AI / ML pipeline to sensor data. The figure depicts two data flows: one for a training phase (TR) and one for a prediction phase (PR), which apply a configuration (CONFIG).

[0160] The grayed steps are used for training TR and prediction PR.

[0161] Both data flows first parse data PD, extract features in step ED (extract features) and output a model in step MO (model output).

[0162] In model training TM, data is generated for a prediction, and in the PRUM step (predict using model, PRUM for short), the prediction is calculated using AI / ML methods using the model.

[0163] An evaluation (EV) or analysis (EV for short) of the training model or a prediction (PRE) is carried out using the prediction model.

[0164] The generated template also serves as a basis for execution on a client.

[0165] Fig. 6 shows an embodiment of a schematic flow diagram for the method according to the invention, in which an IFL lifecycle method is depicted.

[0166] The IFL template lifecycle for end-to-end IFL template support represents development through continuous operation.

[0167] In detail, the template lifecycle includes the development, testing, and packaging of templates in a data scientist's development environment.

[0168] These phases are supported by a template framework that includes function decorators, as well as a template runtime module for executing developed templates on an execution device. The next step is to publish the packaged template to a server, such as via a file upload, which is then triggered to deploy a template instance to a template runtime hosted on the server.

[0169] This server runs the server phase and therefore uses the IFL core.

[0170] To execute the corresponding client phase, the server could either make the template available to execution devices or runtime modules of clients connected to the server ("push"), or clients could download the template on demand ("pull").

[0171] This allows the control of FL participation to be centralized using the push approach, or participation can be selected by the decentralized clients using the pull approach.

[0172] The push approach can be used to train a global model with data that is not accessible, for example, by a data scientist working on the server side.

[0173] In contrast, the pull approach is more suitable for data scientists or operators who work on the edge client side and explicitly want to consume FlaaS (federated learning as a service, FLaaS).

[0174] To improve the extensibility of scalable edge-based client applications using FL, an integration step is considered.

[0175] To do this, the application consumes models from FL templates after executing the training phase with the client runtime.

[0176] As new templates are constantly being added and existing ones updated with new

[0177] Deployments can be updated, the application is continuously updated, e.g. with model training or pre- and post-processing logic.

[0178] Finally, template execution results in new model deployments that can be used in continuously running predictions to deliver results to the client (i.e., the application) during operation

[0179] Specifically, the process steps run in a development environment DEV_ENV, on a server S and one or more clients K.

[0180] After starting ST, development DEV, testing TEST and packaging PACK are carried out within the development environment DEV_ENV

[0181] Publishing (PUB), distribution (DEP) and execution (EXE_SS) take place on server S (execute at server stage).

[0182] Running on the server EXE_SS starts the server with the IFL kernel IFL_C.

[0183] The distribution is made to client C for integration INT, which is executed on the client for training in the step EXE_TS and the result is registered in the step REG within the core of industrial federated learning IFL_C, which executes IFL core workflows IFL_WF (English "execute workflow") and creates training extensions TE, which can be saved on the server.

[0184] The IFL kernel IFL_C provides input data for a model deployment MDEP, which in turn feeds a prediction PRED.

[0185] An ongoing operation OPS provides feedback to prediction PRED until it ends in step EN. Fig. 7 shows an exemplary embodiment of a block diagram with sequences for the system and method according to the invention.

[0186] An operation monitoring display IFL_LCC is implemented using operation monitoring applications CM1, CM2, which apply FL-trained models to IoT sensor data Dl, D2.

[0187] For example, the IFL template lifecycle can be integrated to facilitate FL (i.e., FedClust) for IoT data, such as through an I IoT-based application for operational health monitoring CM1 and CM1.

[0188] It is a task of operating condition monitors CM1, CM2 to execute templates of the templates to recorded sensor data Dl, D2 (ie cluster pump conditions) on each client Cl, C2 using the IFL kernel.

[0189] The CM system CM1, CM2 provides an "IFL Lifecycle Cockpit" to publish templates and distribute them to a fleet of client devices.

[0190] The client devices C1, C2 host a corresponding CM app for collecting sensor data D1, D2, creating datasets, and starting training via a respective runtime module in order to finally use the resulting model for the continuous prediction of conditions based on streaming data.

[0191] Steps 1-7 are now planned to integrate the IFL template lifecycle.

[0192] In step 1, a data scientist DS develops a FedClust template T_FC by calling the algorithm shown in Fig. 1, as provided by the IFL core IFL_C. To make FedClust available to multiple clients C1, C2, the template is published in step 2 via file upload in the IFL lifecycle cockpit, the IFL Lifecycle Cockpit web application IFL_LCC.

[0193] To execute the server phase, which uses lines 11 to 15 in the algorithm of Fig. 1, template provisioning is started in step 3a.

[0194] This results in the IFL Lifecycle Cockpit IFL_LCC providing the corresponding template T_FC_S to the runtime module RT on the server S in step 3b.

[0195] An FL-MQTT client broker MQTT_FLB based on the Message Queuing Telemetry Transport protocol, or MQTT for short, communicates the templates between server S and the clients C1, C2.

[0196] Accordingly, the processing templates can be transferred from the server to clients using the Message Queuing Telemetry Transport protocol.

[0197] An operator OP of the local operation monitoring process performs step 4a with the onboarding of sensor devices or sensors SD (see Fig. 7; define MQTT topic for upstreaming sensor data D1, D2) and the assignment of the data stream to a logical entity, namely an asset, which represents, for example, a pump.

[0198] When executing the scenarios, the recording of sensor data Dl or D2 by the corresponding sensors SD to the respective MQTT client brokers MTBB_B1, MQTT_B2 is started in step 4b, using a Python script that simulates the data upstream of pumps.

[0199] This is important so that the CM application CM1, CM2 can acquire a dataset for training, which is provided in step 4c. To apply clustering to the data as defined in the client part of the template (calling lines 1-9 of the algorithm shown in Fig. 1), a template download to the client device is initiated in step 5, and training is started in step 6a.

[0200] This triggers the respective CM app CM1, CM2 to provide the dataset as a template T_FC_T for federated group formation at the client for training for the associated runtime module RT1, RT2 in step 6b and to start the template execution.

[0201] Finally, in step 7, the FedClust knowledge exchange is carried out by federation between the clients.

[0202] The resulting global models are returned to the participating client CM app deployments. Validation is performed on the template, and the respective CM app CM1, CM2 stores the resulting purity metrics.

[0203] List of reference symbols:

[0204] 1-7 process steps

[0205] C, Cl, C2 Client

[0206] CM1, CM2 condition monitoring application

[0207] CONFIG Configuration

[0208] D, Dl, D2 sensor data

[0209] DA Deployable artifact DEP Deployment

[0210] DEV Development

[0211] DEV_ENV development environment

[0212] DS Data scientist

[0213] E Edge device

[0214] EF feature extraction (extract features)

[0215] EN End of EV evaluation

[0216] EXEJSS Execute at server stage

[0217] EXE_TS Execute at training stage. EXEC_WF Execute at IFLC.

[0218] IFL_C Core of Industrial Federated Learning

[0219] IFL_LCC Operational monitoring display (IFL lifecycle cockpit) INT Integration

[0220] MDEP model deployment

[0221] MO model output MQTT_FLB MQTT_B1,

[0222] MQTT_B2 message broker

[0223] OP operator

[0224] OPS operation

[0225] PACK packaging

[0226] PD Parsing data

[0227] PR, PRED prediction

[0228] PRES processing result

[0229] PRUM prediction using model

[0230] PUB Publish

[0231] REG Register

[0232] RT, RT1, RT2 execution device, runtime module

[0233] (English: "runtime")

[0234] S Server

[0235] SD sensor device

[0236] ST Start

[0237] T_FC template federated clustering

[0238] T_FC_S template federated group formation on the server

[0239] T_FC_T Template federated group formation on the client for training

[0240] TD technical device

[0241] TE trainer extensions

[0242] TEST Testing

[0243] TM Modell-Training (engl. „train model")

[0244] TR Training

Claims

Patent claims 1. Computer-implemented method for the automated processing of processing tasks based on artificial intelligence or machine learning at an edge device (E) connected to a computing device (CPU), wherein the following steps are processed: a) providing a set of processing tasks with processing data, comprising program codes and models, and training data and / or test data, and associated execution parameters that describe the execution of the processing tasks at the edge device, to the computing device (CPU), b) determining at least one processing parameter for the respective processing data from the execution parameters, which takes into account the execution of the set of processing tasks by an edge device (E), by the computing device (CPU), c) generating respective processing templates for a respective processing task,comprising respective processing data and the respective, at least one processing parameter, by the computing device (CPU), d) providing the processing templates to the edge device (E) by the computing device (CPU), e) executing the processing templates using the respective processing parameters by the edge device (E), and obtaining processing results from the processing templates, f) controlling at least one technical device (TD) connected to the edge device (E) with the processing results by the edge device (E).

2. Method according to the preceding claim, wherein the computing device (CPU) is located at an edge device of a client of a client-server system.

3. Method according to one of the preceding claims, wherein the processing templates are transmitted from the server to the client using a Message Queuing Telemetry Transport Protocol.

4. Method according to one of the preceding claims, wherein the at least one processing parameter comprises at least one piece of information regarding a data structure during the generation of the model and / or a data quality during the generation of the model and / or a requirement for the integration of one or more models into an application and a service.

5. Method according to one of the preceding claims, wherein the at least one processing parameter comprises at least one item of information regarding training and / or validation and / or provision in applications and services.

6. Method according to one of the preceding claims, wherein the at least one processing parameter comprises at least one temporal information, for example a processing priority, a predetermined start time or end time for the processing, a processing time range or a processing repetition.

7. Method according to one of the preceding claims, wherein the at least one processing parameter comprises at least one piece of information regarding a triggering criterion for the processing at the edge device (E), for example a logical or manual triggering condition, or the receipt of a triggering message which is received from the edge device (E) by a corresponding, included receiving device.

8. Method according to one of the preceding claims, wherein the at least one processing parameter comprises at least one piece of information regarding a resource condition for the processing at the edge device (E), for example a processor type at the edge device (E) such as a GPU or a special CPU, a required memory requirement or memory access such as local memory or cloud memory.

9. The method according to any one of the preceding claims, wherein the at least one processing parameter comprises information regarding a configuration for processing at the edge device (E), for example a combination of processing data, software and resources at the edge device (E). 10 . Method according to one of the preceding claims, wherein a detection of sensor data by a sensor Device (SD) which is connected to the edge device (E), and the acquired sensor data in step a) are included in the provision of a set of processing tasks and associated execution parameters.

11. System for the automated processing of processing tasks based on artificial intelligence at an edge device (E), comprising a computing device (CPU) with a processor and a memory and a connected technical device (TD), wherein the system is configured to carry out the method according to one of claims 1 to 9.

12. System according to the preceding claim, further comprising a sensor device (SD), and the system is configured to carry out the method according to claim 10.

13. A computer program product having machine-readable instructions stored therein which, when executed by a processing unit, cause the processing unit to carry out the method according to any one of claims 1 to 9.

14. Computer-implemented data structure for the automated processing of processing tasks based on artificial intelligence or machine learning at an edge device (E) in the form of a processing template for use in the method according to one of claims 1 to 9, comprising processing data, having program codes and models, and training data and / or test data, and associated execution parameters, and at least one processing parameter which describes the execution of a set of processing tasks by an edge device (E).

15. Data structure according to the preceding claim, wherein at least one, preferably at least two or three, particularly preferably at least four or five of the following parameters are included: Data for orchestrating processing templates at the edge device (E), artifacts related to a processing task, metadata related to processing data, Information on the temporal course of a processing task, Information about messages for controlling a processing task, Information on resources of the edge device (E) and / or the connected technical device (TD) and / or the sensor device (SD) Information on data structure and / or data quality and / or requirements for the integration of the models into applications and services, Information on data processing and / or training and / or validation and / or provision in applications and services.

Citation Information

Patent Citations

  • Machine learning model scaling system with energy efficient network data transfer for power aware hardware

    US20220036123A1

  • Dynamic weight updates for neural networks

    US20220366220A1