A method for configuring an interface device connected to a control device and at least one field device, the method comprising a. receiving, by a configuration tool, a first machine learning application comprising a plurality of logical components (420, 430, 440, 450) connected in a pipeline, wherein the first machine learning application is for analysing at least one signal from the at least one field device (150, 155) using a first machine learning model; b. generating, by the configuration tool, a plurality of code blocks (332, 334, 336, 348) using a translator, based on the plurality of logical components (420, 430, 440, 450) of the first machine learning application, wherein each code block is associated with a particular logical component from the plurality of logical components (420, 430, 440, 450); c. connecting, by the configuration tool, the plurality of code blocks (332, 334, 336, 348) in accordance with the pipeline of the first machine learning application, to generate a first output from the at least one signal from the at least one field device; and d. deploying, by the configuration tool, the connected code blocks (332, 334, 336, 348) on a firmware of the interface device; wherein deploying the connected code blocks comprises creating at least one virtual port connectable to the control device, the at least one virtual port for transmitting the first output to the control device, wherein the method further comprises e. generating a capability file associated with the interface device, wherein the capability file comprises a definition of the at least one virtual port and f. transmitting the generated capability file associated with the interface device to an engineering tool for linking the at the least one virtual port with the control device. a. receiving, by a configuration tool, a first machine learning application comprising a plurality of logical components (420, 430, 440, 450) connected in a pipeline, wherein the first machine learning application is for analysing at least one signal from the at least one field device (150, 155) using a first machine learning model; b. generating, by the configuration tool, a plurality of code blocks (332, 334, 336, 348) using a translator, based on the plurality of logical components (420, 430, 440, 450) of the first machine learning application, wherein each code block is associated with a particular logical component from the plurality of logical components (420, 430, 440, 450); c. connecting, by the configuration tool, the plurality of code blocks (332, 334, 336, 348) in accordance with the pipeline of the first machine learning application, to generate a first output from the at least one signal from the at least one field device; and d. deploying, by the configuration tool, the connected code blocks (332, 334, 336, 348) on a firmware of the interface device; wherein deploying the connected code blocks comprises creating at least one virtual port connectable to the control device, the at least one virtual port for transmitting the first output to the control device, e. generating a capability file associated with the interface device, wherein the capability file comprises a definition of the at least one virtual port and f. transmitting the generated capability file associated with the interface device to an engineering tool for linking the at the least one virtual port with the control device.