Computer-implemented method and system for operating a technical device
The method addresses the scalability and customization needs of Industrial Federated Learning by employing the k-means and elbow methods for data grouping and the FedClust algorithm for collaborative clustering, ensuring privacy and adaptability in industrial condition monitoring, enhancing asset classification and anomaly detection within a flexible and efficient FLaaS framework.
Patent Information
- Application Number
- PCT/EP2024/057003
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-27
- Filing Date
- 2024-03-15
- Publication Date
- 2024-10-31
AI Technical Summary
Industrial Federated Learning (IFL) faces challenges in providing scalable, privacy-compliant, flexible, and collaborative solutions for condition monitoring in industrial settings, particularly due to varying data structures, quality, and requirements across different applications, as well as the need for model customization and frequent updates to adapt to changing operating conditions and business needs.
A computer-implemented method using federated learning with a server and client system that employs the k-means method and elbow method for data grouping, allowing for customizable preprocessing and post-processing, and the FedClust algorithm for collaborative clustering, enabling privacy-compliant and scalable model training and deployment across edge clients.
The solution provides a flexible, scalable, and privacy-compliant FLaaS that can adapt to diverse industrial contexts, improving asset condition classification and anomaly detection by enabling efficient data processing and model updates, while maintaining data protection and operational efficiency.
Smart Images

Figure EP2024057003_31102024_PF_FP_ABST
Abstract
Description
[0001] Computer-implemented method and system for operating a technical device
[0002] The invention relates to a computer-implemented method and a system for operating a technical device, and a computer program product therefor, as well as a computer-readable storage medium or a computer-readable data carrier, and a data carrier signal.
[0003] Federated learning (FL) allows the training of a central (global) model with data stored on multiple devices, without the need to share the data itself. Each device trains a local model with its own data and then sends updates to a server, which incorporates the updates into the global model, such as parameters for averaging. This approach preserves privacy and minimizes data transmission over networks.
[0004] A server can also provide federated learning as a service (FL as a Service, FLaaS for short) to multiple devices by allowing them to participate in collaborative model building.
[0005] Deploying FLaaS-based approaches to multiple customers in the industry ( e.g . factories) with different environmental and operating conditions of the monitored machines (assets ) is called Industrial Federated Learning ( I FL ).
[0006] In IFL, there are still many challenges to be able to offer FL services on a large scale and to integrate applications that enable industrial use cases such as condition monitoring (CM). First, models resulting from FL are generally intended to serve many clients. Therefore, a scalable deployment of FL-based applications is envisaged.
[0007] However, not all customers operate in the same context. For example, data structure, data quality, and requirements for integrating models in different applications and services may vary.
[0008] Therefore, there is a need for customization, such as custom preprocessing, before the model is trained for execution with input data using the global model.
[0009] In addition, a model, which is typically used in prediction and custom post-processing, can be applied before the output is made available to applications.
[0010] When combining scalable deployments with customization, the goal should be to address as many customers as possible with one AI solution while still addressing local customer contexts.
[0011] Second, the development and deployment of scalable and IFL-based solutions are multi-step processes that often involve data scientists, IT experts, and operators.
[0012] This is partly addressed by ModelOps approaches, which support the operationalization of models by executing a lifecycle with automated pipelines, such as data processing, (re-)training, validation and deployment.
[0013] This closes the gap between model development and modeling of operations in production.
[0014] To provide this for FL, clients at the edge layer are also included in the lifecycle. The resulting lifecycle management of an FL model does not address customer-specific customization and adaptation to the local context.
[0015] There is therefore a need for end-to-end lifecycle management of software artifacts that considers client-context-sensitive processing steps for this purpose.
[0016] This enables a customized and extensible FLaaS, which in turn can be integrated into edge-based client applications.
[0017] Third, running analytical edge applications such as CM in manufacturing requires repeated updates to respond to changing operating modes or new business requirements.
[0018] Assuming that edge apps use FL to, for example, improve the classification of asset conditions, FL features may also need to be updated
[0019] This can include algorithmic updates to client or server training to optimize model performance, updates to communication patterns and protocols for security reasons, or simply changes in the format of input data or resulting predictions.
[0020] To this end, operators in FLaaS scenarios must have the flexibility to either explicitly request updated artifacts or have them pushed by the central authorities managing the service.
[0021] Fourth, in industrial scenarios, labels are often completely missing, so that unsupervised problems such as clustering occur.
[0022] For example, to cluster operating conditions in production processes, one can use a group or cluster model trained on data from other sites to improve the detection of previously unseen anomalies.
[0023] Similar to supervised learning scenarios, one cannot assume that one has access to third-party data to improve local models.
[0024] Therefore, it is necessary to deploy a privacy-preserving FL artifact and apply a collaborative clustering algorithm to provide FLaaS to edge clients.
[0025] The object of the invention is to provide an FL solution that is data protection compliant, flexible, collaborative and scalable.
[0026] The object is achieved by a computer-implemented method for operating a technical device by a system comprising a server and at least one connected client, and the server provides a global model based on artificial intelligence and the principle of federated learning for operating the device, wherein the following steps are carried out by the at least one client:
[0027] Kl ) Providing training data and respective, associated disclosure parameters for data protection,
[0028] K2 ) Performing at least one grouping of the training data using the k-means method and the elbow method, and determining a group counter by the required iterations when executing the elbow method,
[0029] K3 ) Selecting data points from the at least one group randomly and according to the respective disclosure parameter, and adding them to a disclosed data set,
[0030] K4 ) Transferring the disclosed data set and the group counter to the server, and the following steps are performed by the server:
[0031] 51 ) Providing client data and respective group counters,
[0032] 52 ) Calculating the optimal number of groups using the elbow method based on the client data of all clients,
[0033] 53 ) Check if the group count is less than or equal to 1 , then use the maximum number of groups as the group count ,
[0034] 54 ) Training the global model by applying k-means grouping to the client data using the determined number of groups and obtaining a trained global model ,
[0035] 55 ) Providing the trained global model to the at least one client, and further the following step is carried out by the at least one client which is connected to the technical device:
[0036] K5 ) Receiving the trained global model and controlling the technical device with the trained global model .
[0037] This provides a solution for federated learning that is privacy-compliant, flexible, collaborative and scalable.
[0038] In a further development of the invention, it is provided that the provision of the disclosed data set and the group counter from the respective client to the server takes place using predefined templates which describe properties with regard to the processing of respective data by a client and / or the server and / or the technical device.
[0039] This makes it easy to take into account the processing parameters of the devices involved for a task and to further improve the efficiency of the system.
[0040] The object according to the invention is also achieved by a system for operating a technical device by the system, comprising a server and at least one connected client, and the system is set up to carry out the method according to the invention.
[0041] The object according to the invention is also achieved by a computer program product having machine-readable instructions stored therein which, when executed by the system according to the invention, cause the system to carry out the method according to the invention.
[0042] The object of the invention is also achieved by a computer-readable storage medium or computer-readable data carrier, comprising instructions which, when executed by a computer, cause the computer to carry out the method according to the invention or the method steps according to the method claims according to the invention.
[0043] The object of the invention is also achieved by a computer-readable data carrier on which the computer program product is stored.
[0044] The object of the invention is also achieved by a data carrier signal that transmits the computer program product. The invention is explained in more detail below with reference to an exemplary embodiment shown in the accompanying drawings. In the drawings:
[0045] Fig. 1 System for operating a technical device,
[0046] Fig . 2 an embodiment of an FL template in
[0047] Python,
[0048] Fig. 3 Examples of FL functions based on IFL templates,
[0049] Fig. 4 an example of an IFL template
[0050] life cycle,
[0051] Fig . 5 an embodiment of a
[0052] FedClust algorithm executed by clients,
[0053] Fig . 6 an embodiment of a
[0054] Server-running FedClust algorithm,
[0055] Fig. 7 shows an embodiment of a flow diagram of the method according to the invention,
[0056] Fig . 8a-8d a first scenario for the FedClust-
[0057] Algorithm with clients,
[0058] Fig . 9 an operating status monitoring system for
[0059] Execution of the method according to the invention,
[0060] Fig . 10a-10f another scenario for the FedClust-
[0061] Algorithm with clients.
[0062] The following entities are used in an IFL lifecycle:
[0063] A template is a software artifact, such as a Python module or a Jupyter notebook with dependencies, that can be created to implement ML / FL models in dedicated functions that handle, for example, data preprocessing, training, aggregation, validation, and prediction. A template can be packaged and published to a server.
[0064] On this basis, the template can be released to clients for distributed execution of FL.
[0065] To do this, the server executes the server stage part of the template as defined in a dedicated function.
[0066] This function contains logic to run the FL services using the I FL core.
[0067] The I FL core is a library and framework that covers a significant part of the FL lifecycle, namely a client registry (REGY), local training, model and knowledge aggregation, and distributed model validation.
[0068] Clients also use the library during client phases.
[0069] These phases are specific to client parts of FL life cycles and therefore implement local data preprocessing, registration requests to the server, training or validation based on local test datasets.
[0070] Clients download the templates from the template registry and complete the appropriate phases to participate in FL .
[0071] In both the server phase and the client phase, the template runtime executes the corresponding functions.
[0072] The template runtime provides interfaces to load data (training data) as input to the templates, return trained models for local use, and apply model inference (prediction) using the trained model based on captured features.
[0073] To allow the adaptability of FL solutions with distributed client contexts (i.e. client data), templates for a distributed FL deployment can be defined.
[0074] Fig . 1 shows a system for operating a technical device TD with a server S and two connected clients CI , C2 .
[0075] The server S maintains a global model GM based on artificial intelligence and the principle of federated learning for the operation of the device.
[0076] Fig. 2 shows an example of a simple FL template implemented in Python.
[0077] To identify server and client phases, i.e., training and prediction, the t . exec decorator is defined accordingly.
[0078] This is required so that the server and client can run tent-related functions.
[0079] The server tier is implemented in lines 1-3, where the FL services provided by the I FL core are executed.
[0080] The client's training phase is defined in lines 5-8.
[0081] Since this is executed at client sites, local data is passed to the function to be used in FL training rounds in line 8.
[0082] The client context can be used to inject local configurations, for example, to store models to be applied in the prediction ( lines 10-13 ).
[0083] Based on this, data scientists can, for example, enrich the template with client-context-sensitive pre- and post-processing behavior. Finally, the template can be packaged and uploaded to a server for scalable use across multiple deployments and applications.
[0084] Fig. 3 shows FL functions on which IFL templates IFL_T are based and provided by a modular and extensible architecture.
[0085] The library is not limited to being used only by templates.
[0086] With an IFL client IFL_C and an IFL server IFL_S, an application programming interface API provides general access for client participation in FL rounds or for hosting FL services.
[0087] This addresses the need for flexibility in FL collaboration by either defining an FL solution centrally, i.e. as a template that can be deployed on a distributed fleet of edge clients, or by hosting a server and providing the IFL client application programming interface API for various applications for the collaborative solution of ML tasks (machine learning, ML for short, or artificial intelligence, AI for short).
[0088] To start, the client calls the function for a server level SS by calling start_FL (...) S_FL and provides information about the task that the system must perform.
[0089] This includes the data, the FL algorithm to be used, collaboration criteria (e.g. the minimum number of FL clients) and a model MOD to be trained.
[0090] The MOD model is passed from a function F_TS for a training stage to a function F_PS for a prediction stage. To define the communication medium (e.g., MQTT) used for the client-server interaction, a corresponding communicator COM must be selected or adapted and started accordingly via a function F_SS by calling start_Server (...) S_S.
[0091] For this purpose, an I FL core I FL_Core provides MQTT support out-of-the-box by defining host, port, and potential credentials for a specific MQTT broker.
[0092] An application has an application programming interface API and includes an FL program code on the client I FL_C and FL program code on the server I FL_S .
[0093] The registry REGY is an internal store of metadata used by the server to manage submitted tasks.
[0094] According to these tasks, the server executes the corresponding collaboration protocol, which is called Flow F.
[0095] In particular, the FL Flow FF covers basic supervised FL execution with FedAvg, which averages the weights of parametric models and shares the resulting global model with clients.
[0096] A FedClust Flow FCF solves distributed grouping / clustering problems by facilitating knowledge exchange between clients, which will be discussed in more detail below.
[0097] For example, flows F can be composed of chained commands CMD to cover, for example, a registration REG of clients, a training TR of local models, an upload of local training results UPLTR, a global training of a global model GTR, a sharing of the global model with the global model update GMUP and a validation VAL.
[0098] A trainer module TR provides interfaces and corresponding standard implementations that are called by the commands to realize a client training DCT (default client trainer), a model aggregation and a global model training DST (default server trainer).
[0099] The trainer interfaces provide extensibility for the I FL core users, as individual implementations can be passed to override the behavior in the defined flows F .
[0100] In addition, communication protocols can be integrated into the communicator COM interfaces to address potential security and performance issues specific to an edge client's environment.
[0101] On this basis, the need for extensible and modifiable FL functions required by industrial operators is addressed.
[0102] Fig. 4 represents an I FL template lifecycle to provide end-to-end support for I FL templates I FL_T from development to continuous operation.
[0103] As previously explained, the first steps in the template lifecycle I FL_T include developing DEV, testing TEST and packaging PKG templates in a data scientist's development environment DEVENV.
[0104] These phases are supported by the template framework, which includes function decorators, as shown in Fig. 2, and the template runtime for executing developed templates. The next step, PUB, consists of publishing the packaged template to a server (e.g., via file upload), which is then triggered to deploy a template instance to a server-hosted template runtime, more specifically, the distribution step, DEPL.
[0105] This executes the server stage in the step EXE_SS and therefore uses the I FL core I FL_core by applying a trigger SS .
[0106] I FL workflows I FL_C_WF_EXE are executed by the I FL core I FL_core , whereby functional extensions for training T_EXT can be provided .
[0107] To execute the corresponding client phase through an integration step INT, the server can either provide the template during runtimes of clients connected to the server (push) or clients can download the template I FL_T on demand (pull).
[0108] This allows the control of FL participation to be centralized using the push approach, or participation can be chosen by the decentralized clients using the pull approach.
[0109] The push approach can be used to train a global model with data that, for example, cannot be accessed by a data scientist working on the server side.
[0110] In contrast, the pull approach is more suitable for data scientists or operators who work on the edge client side and want to explicitly use FLaaS.
[0111] To consider the extensibility of scalable edge-based client applications using FL, the figure considers an integration step INT. For this purpose, the application uses models of FL-
[0112] Templates IFL_T after executing the training phase with the client runtime.
[0113] Since new templates can be added and existing ones continuously updated with new distributions / deployments, the application is continuously updated, such as through model training EXE_TS or pre- and post-processing logic.
[0114] Finally, template execution results in new model deployments MOD_DEPL that can be used in continuously running predictions FRED to provide results to the client (application) during operation OP .
[0115] Fig. 5 and Fig. 6 show an embodiment of the aforementioned FedClust algorithm.
[0116] For distributed industrial edge clients, labels are often not present at every customer site.
[0117] By applying clustering algorithms in a multi-client collaboration, cluster models can be shared and used to improve local cluster identification.
[0118] To address this type of FL and to present a concrete algorithm implemented in IFL Core to be used in IFL templates IFL_T, the FedClust algorithm is introduced.
[0119] FedClust consists of a client part (lines 1-10) in Fig. 5 and a server part (lines 11-16) in Fig. 6.
[0120] Fig. 5 shows the FedClust client part (lines 1-10) which is executed by the client and requires as input data training data TRAIN and a privacy
[0121] Information (English “privacy disclosure” PD E [0, 1]).
[0122] The client begins with local clustering using k-means and the elbow method.
[0123] The k-means algorithm is a method for grouping data points into a fixed number of clusters based on minimizing the variance within each cluster.
[0124] The elbow method is used to determine the optimal number of clusters by applying kmeans iteratively with increasing values of k and stopping when the improvement in group optimization is no longer significant.
[0125] For each group obtained with k-means, the client calculates its centroid ( line 5 ) and adds it to the dataset to be disclosed to the server ( line 6 ).
[0126] Then, the client randomly selects some data points from the group / cluster according to the privacy disclosure parameter PD and adds them to the disclosed dataset (line 7).
[0127] The number of samples can be controlled with PD and ranges from 0% (preserving privacy) to 100% (disclosing all data samples).
[0128] When sharing 0% of the data samples, only the focal points are shared.
[0129] In line 9, the client sends the disclosed data to the server and receives a trained global model.
[0130] Thus, the resulting clusters are the same for all clients, which is referred to as cluster alignment. With aligned groups / clusters, a specific group / cluster designation can be interpreted equally at each client location.
[0131] This facilitates the scalable use of applications deployed at multiple client sites, each potentially based on group / cluster results provided by a template.
[0132] The method is thus carried out on the server S and at least one connected client C1, C2.
[0133] The server S provides a global model GM, which is generated and trained according to the principles of federated learning, to the clients Cl , C2 .
[0134] In other words, the procedure for a respective client Cl, C2 can be represented as follows:
[0135] Kl ) Providing training data TRAIN and respective, associated disclosure parameters PD for data protection,
[0136] K2 ) Performing at least one grouping of the training data TRAIN using the k-means method and the elbow method, and determining a group counter k through the required iterations when executing the elbow method,
[0137] K3 ) Selecting data points from the at least one group randomly and according to the respective disclosure parameter PD, and adding them to a disclosed data set D,
[0138] K4 ) Transferring the disclosed data set D and the group counter k to the server S .
[0139] Fig. 6 shows the FedClust server part (lines 11-16) which is executed by the server and requires as input data the client data CD <-U^ Di as well as group / cluster
[0140] Counter K <-U^ ki . On the server side, the algorithm first calculates the optimal number kglobal of groups / clusters using the elbow method on the disclosed data received from all clients (line 11).
[0141] If the kglobal parameter is less than or equal to 1 , the server defaults to using the maximum number of clusters provided by a client ( line 13 ).
[0142] This avoids trivial grouping / clustering with a single group / cluster, especially when there are already groups / clusters identified by at least one of the clients.
[0143] Then, the server applies k-means clustering to the disclosed data, using the determined number of clusters to obtain the global model (line 15), which is shared with all clients (line 16).
[0144] In other words, the process on server S can be represented as follows:
[0145] 51 ) Providing client data CD and respective group counter k,
[0146] 52 ) Calculate the optimal number kglobal of groups using the elbow method based on the client data CD of all clients Cl , C2 ,
[0147] 53 ) Check if the number kglobal is less than or equal to 1 , then use the maximum number of groups as the number kglobal ,
[0148] 54 ) Training the global model GM by applying the k-means grouping to the client data CD, using the determined number kglobal of groups, and obtaining a trained global model TGM, S5 ) Providing the trained global model TGM to the at least one client Cl , C2 .
[0149] The following step is then carried out by at least one client Cl, C2:
[0150] K5 ) Receiving the trained global model TGM and controlling the technical device TD with the trained global model TGM .
[0151] The provision of the disclosed data set D and the group counter k from the respective client C1, C2 to the server S is carried out using predefined templates.
[0152] These templates describe, for example, the format and / or scope of properties regarding the processing of respective data by a client Cl, C2 and / or the server S and / or the technical device TD.
[0153] The following figures show how the FedClust algorithm is executed as a template in the I FL life cycle, which is integrated into an industrial condition monitoring (CM) system.
[0154] The applicability of the overall system and the impact of the collaboration on an unsupervised problem with real pump vibration time series data is evaluated.
[0155] The scenarios cover a different number of clients and privacy settings.
[0156] Experimental settings
[0157] The experiments are run on a server and several clients, each running on a Linux machine with a 3.3 GHz Intel Xeon Scalable processor with 2 CPU cores and 4 GB RAM.
[0158] Server and client applications are implemented with Python using a common MQTT broker for asynchronous message exchange. Data
[0159] To perform data preprocessing, clustering, model sharing and validation, the implemented FedClust template and the invoked I FL kernel use PyTorch2 .
[0160] The template code is developed in a Jupyter notebook, then compiled into a corresponding Python class containing all implemented functions and stages, and finally packaged with all dependencies to be made available for distributed execution.
[0161] The FedClust template is applied to a real dataset that considers time series vibration data measured from four pumps.
[0162] Several measurements were performed using an Industrial Internet of Things (I loT) sensor called S ITRANS Multisensor.
[0163] The sensor provides three-dimensional acceleration data at 512 samples per minute.
[0164] The dataset considers six conditions ( healthy and abnormal ) of the underlying pump .
[0165] The healthy conditions include a healthy steady state normal load , a healthy steady state partial load and an idle state ( pump is switched off ) .
[0166] In contrast, hydraulic blockage (rotation in the pump is not possible), dry running fault (air in the pump) and cavitation fault (pumped water being evaporated at low pressure) are the anomalous conditions.
[0167] The pump use case is suitable for demonstrating IFL scenarios supporting industrial collaboration because there are multiple conditions that need to be grouped / clustered and assets that generate relatively similar data. Clients can improve local condition clustering by using the global model resulting from the IFL lifecycle.
[0168] However, the described approach is not limited to pumps, but can also be applied to other data, since dataset-specific processing can be covered in templates and trainer functions.
[0169] Scenarios and experimental design
[0170] Two scenarios, each with a different number of clients involved, will be considered to test collaboration on a small (4 clients) and a larger (33 clients) scale.
[0171] Fig. 7 shows an embodiment of a flow diagram of the method according to the invention.
[0172] Fig. 8a to Fig. 8f represent first scenarios 1, which include four clients with data from a measurement of a pump to which four sensors are attached at different locations.
[0173] Each sensor corresponds to a client.
[0174] The distribution of conditions (labels) is similar across all clients.
[0175] However, we consider two sub-scenarios with six conditions each, where scenario 1a) has an unbalanced dataset with a dominant label (healthy stationary part load) in Fig. 8a and additionally with unnoticed labels in Fig. 8b, while scenario 1b) considers a balanced dataset in Fig. 8c and additionally with unnoticed labels in Fig. 8d.
[0176] This is relevant to investigate the impact of label distribution per customer. In this scenario, we exclude the extension of treating a default value k , as defined in line 12 of the algorithm of Fig. 6.
[0177] Clients train with 20% of the local data and validate the clustering models with 80% of the local data. The data is randomly split to ensure a similar data distribution between the training and test sets.
[0178] A second, larger scenario 2 is now compiled, which is based on 33 clients with heterogeneous label distributions in order to reflect real processes in different environments.
[0179] For this purpose, all four pumps are involved in eleven measurements, with three sensors being used for each measurement.
[0180] Three sub-scenarios are considered to compare the effects of balancing datasets and a variation of the clustering algorithm.
[0181] The latter considers setting a default number of clusters to be identified in the server's global clustering if the elbow method does not find an optimal k .
[0182] With this change, not all samples should be assigned to a cluster anymore.
[0183] For each of the above scenarios, we further investigate how the FedClust algorithm affects the group / cluster formation of (unnoticed / invisible) classes that are not part of the training set.
[0184] In Scenario 1, 50% (three out of six) of the labels, including the input data, are removed from the training set. In Scenario 2, only 16.6% (one out of six) of the labels are used, because some of the 33 clients have no more than three conditions in the dataset.
[0185] In addition, the impact of privacy disclosure (i.e., customers uploading raw data samples to the server) is investigated at multiple levels, considering 10%, 20%, 50%, and 100% of data sample uploads.
[0186] To compare the executions of scenarios as they are executed in the IFL lifecycle, performance metrics are calculated in the validation phase of the IFL core.
[0187] To do this, the FedClust template uses the purity metric defined by
[0188] With
[0189] N is the number of samples, k is the number of groups / clusters, c £ i-th cluster / group, lj set of elements, j ground truth.
[0190] The purity is calculated on each client based on local test data and shared with the server to calculate the average purity.
[0191] We now compare individual clustering with global clustering sharing centroids and global clustering that shares additional data samples.
[0192] For individual clustering, purity is calculated based on the individually trained model, while for the other two approaches, the global model is used to calculate purity. To enable generalizable conclusions, all scenarios are run three times, and the average of the collected (average) purities is reported.
[0193] Execution of scenarios using an IFL template lifecycle
[0194] The following describes the process of executing the scenarios with an implemented I IoT-based application for CM.
[0195] Fig. 9 shows an operating condition monitoring / CM system that carries out the mentioned method.
[0196] To facilitate FL for IoT data, the lifecycle of the IFL template IFL_T can be integrated, for example, with the FedClust algorithm of Fig. 5 and Fig. 6.
[0197] The task of the CM system is to execute templates for recorded sensor data (i.e., group / cluster pump conditions) on each client using the IFL kernel.
[0198] The CM system provides an IFL Lifecycle Cockpit to publish templates and distribute them to a fleet of client devices.
[0199] The client devices C1, C2 host the CM app CM_A1, CM_A2 to collect sensor data, create datasets and start training over runtime to finally determine the resulting model for continuous prediction of conditions based on streaming data.
[0200] As shown in step 1 of the figure, in the role of a data scientist DS, the FedClust template is to be developed, which calls the algorithm of Fig. 5 as provided by the IFL core IFL_core. To make FedClust available to multiple clients C1, C2, in step 2 the template is published via file upload in the IFL Lifecycle Cockpit web application IFL_LC_C. To execute the server phase, the template deployment is started in step 3a, which uses lines 11 to 15 in the algorithm of Fig. 6.
[0201] This causes the IFL Lifecycle Cockpit IFL_LC_C to deploy the template FC_SS for a runtime environment RT1, RT2 to the server S in step 3b. The template is further distributed by an FL-MQTT broker MQTT.
[0202] In the role of the operator of the local condition monitoring process CM_A1 (or CM_A2 ), step 4a begins with the onboarding of the sensors (define MQTT topic for upstreaming sensor data) and the assignment of the data stream to a logical entity, namely an asset in the form of a pump .
[0203] When executing the scenarios, sensor data acquisition to the respective client MQTT brokers MQTT1, MQTT2 is started in step 4b, using a Python script that simulates the data before pumping.
[0204] This is relevant so that the CM application CM_A1, CM_A2 can collect a dataset for training.
[0205] To apply clustering to the data as defined in the client part C1, C2 of the template (calling lines 1-9 of algorithm of Fig. 5), the template download to the client device is initiated in step 5 and the training is started in step 6a.
[0206] This triggers the CM application to provide the dataset to the runtime environment RT1, RT2 in step 6b and starts the template execution FC_TS of the respective training stage. Finally, the FedClust knowledge exchange between the clients is performed (step 7: Federating), and the resulting global models are returned to the distributions of the participating client CM applications.
[0207] Validation is performed in the template, and the CM application stores the resulting purity metrics, which are presented in the next section.
[0208] Results
[0209] The resulting purity metrics of the FedClust template execution are now presented for each of the defined scenarios to demonstrate the impact of collaboration on local cluster problems facilitated by the IFL lifecycle.
[0210] As a result, the purity of individual training (clients train with their own data without federation), centroid sharing (federation, where only client centroids are shared), and federation with different factor disclosures are compared.
[0211] 1 ) S scenario on a small scale :
[0212] Fig . 8a and Fig . 8b show a small-scale scenario with four clients : The average purity of the federated clustering with center of gravity sharing is close to that of the individual training .
[0213] This is because there is no new data in the validation dataset.
[0214] Furthermore, for individual training there is no cluster alignment across the participating clients, as is the case with shared foci.
[0215] In the scenarios of Fig. 8b and Fig. 8d, a higher (unbalanced case) and a slightly higher purity (balanced case) for the center of gravity division can be observed compared to the individual training.
[0216] Since 50% of the labels (including corresponding input data) were randomly removed from the training set, clients require the knowledge of the employees to correctly group test data samples with unseen conditions.
[0217] This can improve condition monitoring scenarios that use clustering, as not all conditions may be present at one location.
[0218] Disclosing more data does not necessarily lead to better results; disclosing priorities is sufficient for collaborative clustering.
[0219] As shown in Fig. 8a and Fig. 8b, data that discloses more data (disclosure factor greater than 0) may result in lower purity than simply sharing the centroid.
[0220] This is because the data is randomly selected for disclosure and the data items may come from the most dominant cluster.
[0221] As can be seen, the results for higher disclosure factors are similar to those for sharing centroids in the case of a balanced dataset according to Fig. 8c and Fig. 8d.
[0222] However, the problem that the elbow method fails to find a correct k on the server (see line 11 in the algorithm of Fig. 6) still exists for some lower privacy disclosure levels.
[0223] Therefore, only one cluster was constructed globally, and purity decreases dramatically as the global model is validated for the clients. We now investigate the effects of using a minimal default value k.
[0224] 2 ) Larger S scenario :
[0225] Fig. 10a and Fig. 10f show a scenario 3 with 33 clients.
[0226] Scenario 3a shows unbalanced data sets at each client location in Fig. 10a and additionally with unnoticed labels in Fig. 10b.
[0227] Scenario 3b shows in Fig . 10c and additionally with unnoticeable labels in Fig . 10d the algorithmic extension using the standard number k of groups / clusters .
[0228] Scenario 3c shows balanced data and the standard number k of groups / clusters in Fig. lOe and additionally with unnoticed labels in Fig. lOf.
[0229] We now evaluate the FedClust algorithm with 33 clients to investigate a larger CM setup for clustering and the impact of the default k on the server with unbalanced and balanced data.
[0230] According to Fig . 10a and Fig . 10b , collaborative runs ( Centroid Sharing and Privacy Disclosure ) lead to relatively poor results compared to individual training .
[0231] This changes when the default value k is used, as shown in Fig. 10c to Fig. 10f.
[0232] Otherwise, only one global group / cluster will be created in the global model, which reduces purity.
[0233] Furthermore, balancing data does not further increase purity if the default value k is already set.
[0234] This is sufficient for the dataset used, but in cases where more conditions exist, the default value k may only be a lower bound, and balancing could help to identify more clusters.
[0235] The centroid-sharing approach shows competitive performance, especially in cases with invisible labels in test data.
[0236] In Fig. 10F, sharing centroids outperforms individual training, which was more difficult than in the four-client scenario because we now only consider one invisible label.
[0237] This underlines the positive effects of knowledge sharing in a collaborative approach.
[0238] Using the default value k, we see that increasing the privacy disclosure factor does not significantly increase purity.
[0239] Therefore, in the presented scenario, releasing the center of gravity is sufficient and no raw data is passed on to the server.
[0240] Therefore, there is no natural trade-off between privacy and performance.
[0241] The results of the sharing of centroids from scenario 3 with 33 clients and unbalanced data according to Fig . 10a and Fig . 10b are now compared with scenario 1 with four clients and unbalanced data according to Fig . 8a and Fig . 8b .
[0242] As can be seen, scenario 1 with four clients provides higher purities in sharing centroids than scenario 3 with 33 clients.
[0243] Although there are more employees in the latter scenario, it is difficult to fully exploit the potential due to the heterogeneous data distribution. Both the unbalanced data at the client sites and data distributions that are relatively non-IID (identically and independently distributed) among the clients involved can have an impact.
[0244] The phenomenon of non-IID data is a general problem in FL, and the presented results show that this also applies to FedClust.
[0245] In particular, for a group of many clients with similar data distributions, the group can dominate global clustering with its shared cluster centroids (and potentially shared data samples).
[0246] Therefore, clusters of clients that have different data distributions can be considered as outliers on the server and are not considered as separate clusters.
[0247] Therefore, increasing the number of collaborators requires non-IID-aware approaches, such as grouping clients with similar data distributions into cohorts and restricting global model training to only within cohorts.
[0248] Regardless of the grammatical gender of a particular term, persons with male, female or other gender identities are included.
[0249] List of reference symbols:
[0250] API Application Programming Interface
[0251] AVGP Average Purity
[0252] CMD command
[0253] COM Communicator
[0254] Cl, C2 Client
[0255] CS Dividing centroids
[0256] DEV Development
[0257] DEVENV development environment
[0258] DEPL Distribute
[0259] DCT Default Client Trainer
[0260] DST Default Server Trainer
[0261] EXE_SS Execute Server Level
[0262] EXE_TS Execute Training Level
[0263] F River
[0264] F_PS Function Prediction Level
[0265] F_SS Function Server Level
[0266] F_TS Function Training Level
[0267] FCF FedClust flow
[0268] FF FL-River
[0269] GM global model
[0270] GMUP Global Model Update
[0271] GTR Global Training
[0272] IFL CI FL Client
[0273] IFL_C_WF_EXE Workflow execution on the IFL core
[0274] IFL Core I FL Core
[0275] IFLJS I FL Server
[0276] IFL_T I FL template
[0277] INT Integration
[0278] IT Individual Training
[0279] MOD model
[0280] MOD_DEPL Model distribution
[0281] OP Operation of a technical device PD Disclosure of privacy
[0282] PKG packaging
[0283] PRED forecast
[0284] PUB Publish
[0285] REG Register
[0286] REGY registration
[0287] S Server
[0288] S_FL Start FL
[0289] S_S Start Server
[0290] T Trainer
[0291] T_EXT Trainer extension
[0292] TD technical device
[0293] TEST Testing
[0294] TGM trained global model
[0295] TR Training
[0296] UPLTR Upload local training results
[0297] VAL Validation
Claims
Patent claims 1. A computer-implemented method for operating a technical device by a system comprising a server (S) and at least one connected client (C1, C2), and the server provides a global model (GM) based on artificial intelligence and the principle of federated learning for operating the device, wherein the following steps are carried out by the at least one client (C1, C2): Kl) Providing training data (TRAIN) and respective associated disclosure parameters (PD) for data protection, K2 ) Performing at least one grouping of the training data (TRAIN) using the k-means method and the elbow method, and determining a group counter (k) by the required iterations when executing the elbow method, K3) Selecting data points from the at least one group randomly and according to the respective disclosure parameter (PD) and adding them to a disclosed data set (D), K4 ) Transferring the disclosed data set (D) and the group counter (k) to the server (S), and the following steps are carried out by the server (S): 51) Providing client data (CD) and respective group counters (k), 52) Calculate the optimal number (kglobal) of groups using the elbow method based on the client data (CD) of all clients (Cl, C2) , S3) Check if the group count (kglobal) is less than or equal to 1, then use the maximum number of groups as the group count (kglobal), 54) Training the global model (GM) by applying k-means grouping to the client data (CD) using the determined number of groups (kglobal) and obtaining a trained global model (TGM), 55) Providing the trained global model (TGM) to the at least one client (Cl, C2), and further the following step is carried out by the at least one client (Cl, C2) which is connected to the technical device (TD): K5) Receiving the trained global model (TGM) and controlling the technical device (TD) with the trained global model (TGM).
2. Method according to the preceding claim, wherein the provision of the disclosed data set (D) and the group counter (k) from the respective client (Cl, C2) to the server (S) is carried out using predefined templates which describe properties with regard to the processing of respective data by a client (Cl, C2) and / or the server (S) and / or the technical device.
3. System for operating a technical device by a system comprising a server (S) and at least one connected client (C1, C2), and the system is configured to carry out the method according to one of the preceding claims.
4. A computer program product having machine-readable instructions stored therein which, when executed by the system according to any one of the preceding claims, cause it to carry out the method according to one of the preceding claims.
5. Computer-readable storage medium or computer-readable data carrier, comprising instructions which, when executed by a computer, cause the computer to carry out the method or the method steps according to one of the preceding method claims.
6. A computer-readable data carrier on which the computer program product according to claim 4 is stored.
7. A data carrier signal that transmits the computer program product according to claim 4.
