Method for protecting use of machine learning modules, and protection system
Patent Information
- Application Number
- EP2022821942
- Authority / Receiving Office
- EP · EP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-12-17
- Filing Date
- 2022-11-22
- Publication Date
- 2024-08-21
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Training neural networks for controlling complex machines is time-consuming and requires significant resources and expert knowledge, and existing methods for protecting these models against unauthorized use are inadequate, as they often require access to neural weights and are vulnerable to unauthorized changes or theft.
A method that uses a transformation function dependent on a key specification to transform input signals for training and operating signals, ensuring that only authorized machine learning modules can control machines, by encapsulating the module and transformation function in a software container and using a key generator to create context-dependent key information, which is difficult for unauthorized users to access.
This approach effectively protects machine learning modules from unauthorized use by ensuring that only authorized modules control machines, while maintaining the structural patterns in operating signals accessible to the module, thus preventing malfunction and ensuring secure operation.
Smart Images

Figure 1.1
Abstract
Description
[0001] Description
[0002] Procedure for protecting the use of machine learning modules and protection system
[0003] Complex machines such as robots, engines, production plants, machine tools, gas turbines, wind turbines or motor vehicles generally require complex control and monitoring procedures for productive and stable operation.
[0004] For this purpose, machine learning techniques are often used in modern machine control systems. For example, a neural network can be trained as a control model to control a machine in an optimized manner.
[0005] However, training neural networks or other machine learning modules to control complex machines often proves to be very complex. Large amounts of training data, considerable computing resources, and a great deal of specific expert knowledge are generally required. Therefore, there is a great interest in protecting trained machine learning modules against uncontrolled or unauthorized distribution or use, detecting theft, and / or ensuring that a machine to be controlled is only controlled by authorized machine learning modules.
[0006] It is known to mark neural networks by providing their neural weights with a unique digital watermark before they are placed on the market. Using the watermark, an existing neural network can then be checked to see whether it originates from the user of the watermark. However, the above method requires access to the neural weights of the neural network. Furthermore, additional measures are often required to prevent or at least make it more difficult for unauthorized use of the neural network or modification of the watermark by unauthorized persons. The object of the present invention is to specify a method for protecting the use of a machine learning module and a corresponding protection system which offer better protection against use.
[0007] This object is achieved by a method having the features of patent claim 1, by a protection system having the features of patent claim 10, by a computer program product having the features of patent claim 11 and by a computer-readable storage medium having the features of patent claim 12.
[0008] According to the invention, in order to protect the use of a machine learning module by means of which control signals for controlling the machine are to be derived from operating signals of a machine, a transformation function is provided for carrying out a signal transformation dependent on a transformation parameter. Furthermore, a key specific to use of the machine learning module by a machine controller is read in. Input signals for training the machine learning module are thus transformed by the transformation function into transformed input signals, the key being used as a transformation parameter. The machine learning module is trained using the transformed input signals. The trained machine learning module is then transmitted to the machine controller.The machine controller transforms the machine's operating signals into transformed operating signals using the transformation function, with the key information being used as the transformation parameter. The transformed operating signals are fed to the trained machine learning module, and the machine is controlled using control signals derived from the transformed operating signals.
[0009] To carry out the method according to the invention, a protection system, a computer program product, and a computer-readable, preferably non-volatile storage medium are provided. The method according to the invention and the protection system according to the invention can be carried out or implemented, for example, using one or more computers, processors, application-specific integrated circuits (ASICs), digital signal processors (DSPs), and / or so-called "field programmable gate arrays" (FPGAs). Furthermore, the method according to the invention can be carried out at least partially in a cloud and / or in an edge computing environment.
[0010] A particular advantage of the invention is that a machine learning module to be protected can be easily linked to a use. In particular, the machine learning module can be trained or executed in a use-specific manner. This ensures, in many cases, that a machine is only controlled by an authorized machine learning module and / or that a machine learning module is only used by authorized users. Furthermore, the invention is flexibly applicable and, in particular, is not limited to artificial neural networks.
[0011] Advantageous embodiments and further developments of the invention are specified in the dependent claims.
[0012] According to a particularly advantageous embodiment of the invention, the transformation function can carry out a homomorphic and / or holomorphic signal transformation. In particular, the transformation function itself can be a homomorphic and / or holomorphic, preferably injective function. As is well known, a homomorphic function maps mathematical, numerical and / or logical operations on data to corresponding operations on the transformed data. In the case of a simple operation, the following applies in particular: f (x* y) = f (x) * f ( y) , where the "*" symbol on the left-hand side of the equation denotes a operation of the data to be transformed and on the right-hand side denotes a operation of the transformed data. Operation structures are therefore retained in homomorphic transformations. Holomorphic, i.e.Complex, differentiated transformations preserve essential structures of the data being transformed, e.g., in conformal mappings. Due to the structure-preserving properties of homomorphic and / or holomorphic transformations, many patterns in operational signals remain accessible to recognition and processing by machine learning modules even after transformation.
[0013] According to an advantageous embodiment of the invention, the key information can be information specific to the machine control system, to a control platform of the machine control system, and / or to a user of the machine control system. In this way, the transformation function and thus the training of the machine learning module can be customized specifically for the machine control system, the control platform, and / or the user.
[0014] In particular, the key information can include a digital fingerprint, a MAC address (MAC: Media Access Control), a user password, a hardware identifier, a serial number, a machine certificate, a parameterization and / or a system property of the machine control or can be derived therefrom by means of a key generator.
[0015] Preferably, an operating signal from the machine can be fed to the key generator. The key can then be generated by the key generator depending on the supplied operating signal. In particular, one or more operating signals which precede a current operating signal can be fed to the key generator in order to influence the generation of the key. In this way, the key can be generated in a context-dependent manner, making it much more difficult for unauthorized persons to deduce it. Furthermore, it has been found that training of the machine learning module is not significantly impaired in many cases by key generation which is dependent on the operating signal. According to an advantageous development of the invention, the success of the training of the machine learning module can preferably be determined continuously.The key generator can then be trained using a machine learning method to generate a key specification that optimizes the training success of the machine learning module. A given training success can be determined, for example, by measuring or simulating the performance of the machine controlled by output signals from the machine learning module. The measured or simulated performance can then be taken into account in a cost function for training the key generator. The machine learning module and the key generator can preferably be trained together.
[0016] According to a further advantageous embodiment of the invention, a preferably predetermined test input signal and a predetermined digital watermark can be read in. The test input signal can be transformed by the transformation function into a transformed test input signal. The machine learning module can then be trained to reproduce the digital watermark using the transformed test input signal. Furthermore, the machine control system can feed the transformed test input signal to the machine learning module. Accordingly, it can be checked whether a resulting output signal from the machine learning module contains the digital watermark. The machine can then be controlled depending on the test result. In particular, if the test result is negative, an alarm signal can be transmitted to a creator or user of the machine learning module.Preferably, the digital watermark can be checked in a hardware module separate from the machine control.
[0017] According to a further advantageous embodiment of the invention, the machine learning module and the transformation function can be encapsulated in a software container, in particular in a key- or signature-protected software container. The software container can preferably be designed such that the machine learning module or the transformation function loses its functionality when the software container is separated.
[0018] According to a further advantageous embodiment of the invention, the operating behavior of the machine can be monitored, and upon detection of a change in the operating behavior, an alarm signal can be issued, in particular to a creator or user of the machine learning module. Using the machine learning module without the transformation function, with an incorrect transformation function, or with an incorrect key specification generally results in the machine learning module receiving input signals which the machine learning module is not trained to process. Consequently, controlling the machine based on the resulting output signals would generally result in incorrect machine behavior. The above embodiment can prevent such incorrect controls in many cases.In addition, a creator or user of the machine learning module may be notified of the use of an unauthorized machine learning module.
[0019] An embodiment of the invention is explained in more detail below with reference to the drawings, each of which illustrates in schematic representation
[0020] Figure 1 shows a control of a machine using a machine learning module,
[0021] Figure 2 shows the operation of a machine learning module protected according to the invention and
[0022] Figure 3 shows an inventive protection system for a machine learning module.
[0023] Insofar as the same or corresponding reference symbols are used in the figures, these reference symbols designate the same or corresponding entities which can be implemented or configured in particular as described in connection with the relevant figure.
[0024] Figure 1 illustrates a control of a machine M by means of a trained machine learning module NN in a schematic representation. The machine M can be, in particular, a robot, a motor, a production system, a machine tool, a turbine, an internal combustion engine, and / or a motor vehicle, or can comprise such a machine. For the present exemplary embodiment, it is assumed that the machine M is a production robot.
[0025] The machine M is controlled by a machine control CTL coupled to it. The latter is shown in Figure 1 as external to the machine M. Alternatively, the machine control CTL can also be fully or partially integrated into the machine M.
[0026] The machine M has a sensor system S that continuously measures operating parameters of the machine M as well as other measured values. The measured values determined by the sensor system S are transmitted from the machine M to the machine control system CTL, together with other operating data of the machine M, in the form of operating signals BS.
[0027] The operating signals BS comprise, in particular, sensor data and / or measured values of the sensor system S, control signals of the machine M and / or status signals of the machine M. The status signals each specify an operating state of the machine M or of one or more of its components, preferably over time.
[0028] In particular, the operating signals BS can be used to quantify a power, a speed, a torque, a movement speed, an exerted or acting force, a temperature, a pressure, a current resource consumption, available resources, pollutant emissions, vibrations, wear and / or a load on the machine M or on components of the machine M. Preferably, the operating signals BS are each represented by one or more numerical data vectors and transmitted in this form to the machine control CTL.
[0029] The machine control CTL also has a trained machine learning module NN for controlling the machine M . The machine learning module NN is trained to output an output signal based on an input signal, by means of which the machine M can be controlled in an optimized manner . A variety of efficient machine learning methods are available for training such a machine learning module NN, in particular methods of reinforcement learning, which is often also referred to as reinforcement learning . The training of the machine learning module NN is discussed in more detail below . The machine learning module NN can in particular be implemented as an artificial neural network .
[0030] To control the machine M, output signals AS, e.g., in the form of numerical data vectors, are derived from the operating signals BS using the trained machine learning module NN. The output signals AS or signals derived therefrom are then transmitted to the machine M as control signals in order to control it in an optimized manner.
[0031] Figure 2 illustrates the operation of a machine learning module NN protected according to the invention for controlling the machine M. As already mentioned above, the machine M is controlled by the machine control CTL.
[0032] To protect the machine learning module NN, the machine control CTL has a transformation function F coupled to an input layer of the machine learning module NN, as well as a key generator KGEN. Furthermore, the machine control CTL has one or more processors PROC for executing method steps according to the invention, as well as one or more memories MEM for storing data to be processed.
[0033] In the present embodiment, the transformation function F performs a signal-changing homomorphic signal transformation. Preferably, the transformation function F itself is a homomorphic function. Alternatively or additionally, the transformation function F can comprise a signal-changing holomorphic function, ie, a complex differentiable function, or can itself be a holomorphic function. Preferably, the signal transformation to be performed is injective.
[0034] A variety of homomorphic and holomorphic functions are known for implementing such transformation functions. In particular, a linear function F = m*x + b =
[0035] F(x, (m,b) ) of a variable x with parameters m and b (m not equal to 0) can be used. Alternatively or additionally, the signal transformation can be or include a homogeneous transformation in which points in a 3-dimensional vector space, for example, are transformed in a structure-preserving manner through translation, rotation, and / or scaling. In particular, a Denavit-Hartenberg transformation, known from the field of robotics, can be used.
[0036] According to the invention, the homomorphic and / or holomorphic signal transformation performed by the transformation function F depends on a transformation parameter K, which is preferably passed to the transformation function F as an additional argument. In the above example of a linear function, the transformation parameter comprises the parameter pair (m,b).
[0037] As already mentioned above, the machine control system CTL, with the help of the trained machine learning module NN, derives control signals for optimized control of the machine M from the operating signals BS of the machine M. Output signals AS of the trained machine learning module NN or signals derived therefrom are used as control signals. For the sake of clarity, it is assumed for the present embodiment that the machine M is controlled by the output signals AS.
[0038] The transformation function F serves the purpose of transforming the operating signals BS into transformed operating signals BST in a manner that is incomprehensible or difficult to understand for unauthorized persons. Due to the homomorphism or holomorphism of the transformation function F, many connection patterns and correlations of the operating signals BS originating from the machine M are retained in the transformed operating signals BST. Consequently, these patterns and correlations can be learned by the machine learning module NN and mapped to correspondingly optimized control signals, here AS.
[0039] To individualize the signal transformation performed by the transformation function F, this is influenced by the transformation parameter K. In the present embodiment, the transformation parameter K is passed together with a respective operating signal BS as an additional argument to the transformation function F. A respective transformed operating signal BST is thus obtained as a function of the transformation parameter K according to BST = F (BS, K) as the return value of the transformation function F.
[0040] In order to individualize the signal transformation specifically for the use of the machine learning module NN by the machine controller CTL, a key specific to the machine controller CTL and / or its user is used as the transformation parameter K in the present exemplary embodiment. This key is derived by a key generator KGEN from, among other things, a digital fingerprint FP of the machine controller CTL. The digital fingerprint FP comprises data that is preferably unique to the machine controller CTL, its user and / or the machine M, for example a MAC address, a hardware identifier, a serial number, a machine certificate, configuration parameters, a user password, etc. To control the machine M, its operating signals BS(T) related to a current time T are recorded by the machine controller CTL and passed to the transformation function F as an argument.Furthermore, previous operating signals BS(T1), BS(T-2), BS(TN) are fed into the key generator KGEN together with the digital fingerprint FP, where N denotes a number of operating signals to be considered during key generation. In particular, N can be chosen as a value of 0, 1, 2, or 5.
[0041] From the digital fingerprint FP and the previous operating signals BS (Tl), BS (T-2), BS (TN) of the machine M, the key generator KGEN generates the key information K specific to the machine control CTL and / or its user and passes this as an additional argument to the transformation function F. The key generation can in particular use a logical operation, a numerical operation, a bit operation, a hash value generation and / or so-called one-way functions. The additional influence on the key generation by the previous operating signals BS (T-1), BS (T-2), ..., BS (TN) makes it more difficult for unauthorized persons to deduce the key information K. It has also been shown that in many cases the training of the machine learning module NN is not significantly impaired by this influence.
[0042] The transformation function F transforms a respective current operating signal BS (T) depending on the key information K into a respective current transformed operating signal BST = F(BS (T) , K) . The respective transformed operating signal BST is then fed into the trained machine learning module NN as an input signal. As explained in more detail below, the machine learning module NN is specifically trained to derive output signals AS from the operating signals BST transformed by the transformation function F for the optimized control of the machine M. In the present embodiment, these output signals AS of the trained machine learning module NN are transmitted to the machine M in order to control it.
[0043] In order to protect the interfaces between the machine learning module NN and the transformation function F, as well as between the transformation function F and the key generator KGEN, against unauthorized access, the machine learning module NN, together with the transformation function F and the key generator KGEN, is encapsulated in a software container SC, preferably with key and / or signature protection. The interfaces can be protected, for example, by encryption or obfuscation. The software container is preferably designed such that the machine learning module NN, the transformation function F, and / or the key generator KGEN lose their functions if the software container SC is opened.
[0044] Figure 3 illustrates a protection system according to the invention for a machine learning module NN .
[0045] The machine learning module NN, for example an artificial neural network, is trained in a training system TS to output an output signal AS by means of which the machine M can be controlled in an optimized manner. The training is carried out using a large amount of training data TD which is taken from a database DB. In the present exemplary embodiment, the training data TD contains pairs each consisting of a training operating signal TBS and an associated training output signal TAS, which are preferably each represented as numerical data vectors. Each training output signal TAS represents a control signal by means of which the machine M is controlled in an optimized manner when the associated training operating signal TBS is present. The training data TD can be determined, for example, from operation of the machine M, operation of a similar machine or from a simulation of the machine M.Training is generally understood to mean the optimization of a mapping of an input signal from a machine learning module to its output signal. This mapping is optimized during a training phase according to predetermined criteria that have been learned and / or are to be learned. The criterion used can be, particularly in control models, the success of a control action or, in prediction models, a prediction error. Through training, for example, the network structures of neurons in a neural network and / or the weights of connections between the neurons can be adjusted or optimized so that the predetermined criteria are met as closely as possible. Training can therefore be viewed as an optimization problem.
[0046] For such optimization problems in the field of machine learning, a variety of efficient optimization methods are available, in particular gradient-based optimization methods, gradient-free optimization methods, backpropagation methods, particle swarm optimization, genetic optimization methods, and / or population-based optimization methods. In particular, artificial neural networks, recurrent neural networks, convolutional neural networks, perceptrons, Bayesian neural networks, autoencoders, variational autoencoders, Gaussian processes, deep learning architectures, support vector machines, data-driven regression models, k-nearest-neighbor classifiers, physical models, and / or decision trees can be trained.
[0047] In the present case, in order to train the machine learning module NN, the transformation function F is preceded by it - as already indicated above. A key specification K generated by the key generator KGEN is fed to the transformation function F as an additional argument. To generate the key specification K, a digital fingerprint FP (CTL) of the machine controller, here CTL, which is intended to execute the trained machine learning module NN is fed to the key generator KGEN. Furthermore, as described above, training operating signals are fed to the key generator KGEN which precede a training operating signal currently to be transformed by the transformation function F. The key specification K is generated from the digital fingerprint FP (CTL) by the key generator KGEN depending on the earlier training operating signals TBS.
[0048] To train the machine learning module NN, the training operating signals TBS are fed to the transformation function F along with the key information K as arguments and transformed by the transformation function F into transformed training operating signals TBST. The transformed training operating signals TBST are fed to the machine learning module NN to be trained as input signals.
[0049] During training, neural weights of the machine learning module NN are preferably adjusted using one of the optimization methods mentioned above such that the machine M is controlled in an optimized manner using the output signals AS derived by the machine learning module NN from the transformed input signals TBST. For this purpose, in the present exemplary embodiment, the output signals AS are compared with the associated training output signals TAS, and a respective distance D between these signals is determined. The distance D can, for example, be a Euclidean distance between the representative data vectors, according to D = | AS - TAS |. The distances D determined in this way are fed back to the machine learning module NN, as indicated by a dotted arrow in Figure 3. Its neural weights are then adjusted so that the distance D is minimized.
[0050] Alternatively or additionally, a reinforcement learning method can also be used to train the machine learning module NN. Here, the machine M or a simulation of the machine M can be controlled by the output signals AS, with the performance of the machine M being continuously measured or determined in some other way. Performance can be determined, for example, as power, efficiency, throughput, execution speed or other parameters relevant to the operation of the machine M. The neural weights of the machine learning module NN are then adjusted so that performance is optimized.
[0051] Optionally, the key generator KGEN itself can be trained using a machine learning method to generate a key K that optimizes the training success of the machine learning module NN. The training success can be quantified, in particular, based on the distance D or the performance of the machine M.
[0052] Furthermore, the machine learning module NN can be additionally trained to reproduce a predefined digital watermark as the output signal AS when a test input signal is fed in that does not occur in the operating data of the machine M. This watermark can be used during subsequent use or examination of the trained machine learning module NN to determine the origin of the machine learning module NN.
[0053] The trained machine learning module NN is encapsulated in the training system TS together with the transformation function F and the key generator KGEN in a software container SC as described above. By connecting the machine learning module NN with the transformation function F and the key generator KGEN, as well as by the training specifically dependent on the digital fingerprint EP, the trained machine learning module NN is protected against unauthorized use or use outside the machine control system CTL.
[0054] The software container SC with the protected machine learning module NN is transferred from the training system TS to a cloud CL, specifically to an app store of the cloud CL, via an upload UL. The software container SC is downloaded from the cloud CL or its app store via a download DL by a user who wishes to control the machine M using the protected machine learning module NN.
[0055] For this purpose, the software container SC is installed by the machine controller CTL in an edge computing environment and executed in a runtime environment of the edge computing environment. A digital fingerprint EP (CTL) of the machine controller CTL is fed to the key generator KGEN contained in the software container SC. Furthermore, as described above, previous operating signals from the machine M to be controlled are fed to the key generator KGEN in order to influence the derivation of the key information K from the digital fingerprint EP (CTL).
[0056] To control machine M, current operating signals BS of machine M are fed into the transformation function F contained in the software container SC, to which the generated key information K is also passed as an additional argument. The operating signals BST transformed by the transformation function F are then fed as input signals to the trained machine learning module NN contained in the software container SC. The resulting output signals AS of the trained machine learning module NN are then transmitted from the machine control CTL to machine M as control signals, as also described above.
[0057] Insofar as the machine learning module NN is specifically trained to derive control signals AS from the transformed operating signals BST, it can be assumed that the machine learning module NN cannot derive any meaningful control signals from untransformed operating signals BS. Since the signal transformation is individually interleaved with the machine learning module CTL, it can generally be ensured that the machine learning module NN is only used by authorized users or in machine controls intended for this purpose. Due to the training-specific and application-specific interleaving of the machine learning module NN with the transformation function F, the ongoing mechanisms of action cannot be reconstructed or reversed by unauthorized persons, or only with great effort.
Claims
Patent claims 1. Computer-implemented method for protecting the use of a machine learning module (NN), by means of which control signals for controlling the machine (M) are derived from operating signals (BS) of a machine (M), wherein a) a transformation function (F) is provided for performing a signal transformation dependent on a transformation parameter (K), b) a key specification (K) specific for use of the machine learning module (NN) by a machine controller (CTL) is read in, c) input signals (TBS) for training the machine learning module (NN) are transformed by the transformation function (F) into transformed input signals (TBST), wherein the key specification (K) is used as a transformation parameter, d) the machine learning module (NN) is trained on the basis of the transformed input signals (TBST), e) the trained machine learning module (NN) is transmitted to the machine controller (CTL).f) the machine control (CTL) transforms the machine's (M) operating signals (BS) into transformed operating signals (BST) using the transformation function (F), with the key specification (K) being used as the transformation parameter, g) the transformed operating signals (BST) are fed to the trained machine learning module (NN), and h) the machine (M) is controlled using control signals derived from the transformed operating signals (BST).
2. Method according to claim 1, characterized in that the transformation function (F) performs a homomorphic and / or holomorphic signal transformation.
3. Method according to one of the preceding claims, characterized in that that the key specification (K) is a specification specific to the machine control (CTL ), to a control platform of the machine control (CTL ) and / or to a user of the machine control (CTL ).
4. Method according to one of the preceding claims, characterized in that the key specification (K) - a digital fingerprint (FP) , - a MAC address , - a user password, - a hardware identifier, - a serial number, - a machine certificate , - a parameterization and / or - a system property of the machine control (CTL) or is derived from it by means of a key generator (KGEN).
5. Method according to claim 4, characterized in that an operating signal from the machine (M) is supplied to the key generator (KGEN), and that the key information (K) is generated by the key generator (KGEN) depending on the supplied operating signal.
6. Method according to claim 4 or 5, characterized in that a training success of the machine learning module (NN) is determined, and that the key generator (KGEN) is trained by means of a machine learning method to generate a key specification by which the training success of the machine learning module (NN) is optimized.
7. Method according to one of the preceding claims, characterized in that a test input signal and a predetermined digital watermark are read in, that the test input signal is transformed by the transformation function (F) into a transformed test input signal, that the machine learning module (NN) is trained to reproduce the digital watermark based on the transformed test input signal, that the transformed test input signal is fed to the machine learning module (NN) by the machine control (CTL), that it is checked whether a resulting output signal (AS) of the machine learning module (NN) contains the digital watermark, and that the machine (M) is controlled depending on the test result.
8. Method according to one of the preceding claims, characterized in that the machine learning module (NN) and the transformation function (F) are encapsulated in a software container (SC).
9. Method according to one of the preceding claims, characterized in that the operating behavior of the machine (M) is monitored, and that an alarm signal is transmitted upon detection of a change in the operating behavior.
10. Protection system for the use protection of a machine learning module (NN) , configured for carrying out a method according to one of the preceding claims .
11. Computer program product configured to execute a method according to any one of claims 1 to 9.
12. Computer-readable storage medium with a computer program product according to claim 11.
