CN112363695B - PMML file and integration method of runtime environment and industrial software thereof - Google Patents

PMML file and integration method of runtime environment and industrial software thereof Download PDF

Info

Publication number
CN112363695B
CN112363695B CN202011246924.1A CN202011246924A CN112363695B CN 112363695 B CN112363695 B CN 112363695B CN 202011246924 A CN202011246924 A CN 202011246924A CN 112363695 B CN112363695 B CN 112363695B
Authority
CN
China
Prior art keywords
information
file
pmml
mapping rule
opc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011246924.1A
Other languages
Chinese (zh)
Other versions
CN112363695A (en
Inventor
李戎
孙继超
朱珂
胡振亚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hollysys Automation Co Ltd
Original Assignee
Hangzhou Hollysys Automation Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hollysys Automation Co Ltd filed Critical Hangzhou Hollysys Automation Co Ltd
Priority to CN202011246924.1A priority Critical patent/CN112363695B/en
Publication of CN112363695A publication Critical patent/CN112363695A/en
Application granted granted Critical
Publication of CN112363695B publication Critical patent/CN112363695B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The application discloses a PMML file and an integration method of a runtime environment and industrial software thereof, wherein the method comprises the following steps: determining a PMML file to be integrated, extracting key information from an XML description file, and extracting an OPC UA information model and instantiation information from target industrial software; OPC UA information model information and PMML file key information, searching a matched information model element mapping rule in a rule knowledge base, and generating a mapping rule configuration file by combining the obtained instantiation information; and loading the mapping rule configuration file into the PMML running environment to realize data integration of the PMML file and target industrial software. The application can automatically realize the rapid integration of industrial software and PMML files, avoid the customization operation of the traditional integration and reduce the cost of manual configuration.

Description

PMML file and integration method of runtime environment and industrial software thereof
Technical Field
The present application relates to the field of industrial digitizing technology, and more particularly, to a PMML file, and a method and apparatus for integrating a runtime environment and industrial software thereof, and an electronic device and a computer readable storage medium.
Background
As the degree of digitization and intellectualization of intelligent factories is higher, industrial algorithm integration and multiplexing are more and more important. On one hand, industrial algorithms have been widely accumulated in enterprises and institutions and scientific research institutes, and are basically developed and completed by mature business or open source software; on the other hand, the industrial system is basically standardized, the intelligent requirements are higher and higher, and the requirements on industrial algorithm integration are higher and higher.
Traditional data modeling and industrial software integration are generally performed in a customized manner. The first common scheme is that commercial data modeling software adopts a standard communication protocol to communicate when interfacing with an industrial control system, so that after modeling factory engineering input, output, configuration and monitoring point items are required to correspond to an information model of the communication protocol, the information model is also required to interface with a target field model. This approach employs custom development or manual-to-point to achieve semantic interoperability between software systems, resulting in an exponential increase in custom development costs when integrating multiple different business and industrial software, resulting in very inefficient system integration. A second common approach is for the individual data models to integrate the individual industrial software using OPC UA communication protocols and metamodel capabilities. However, in the scheme, the industrial field information model is unified by utilizing the OPC UA meta-model, but the corresponding mapping of the semantics is needed to be manually realized when different businesses develop software, so that the integration efficiency of realizing the software semantic interoperability is still low, and the risk of mistakes is faced. A third common approach is that individual data modeling software has basically supported exporting PMML software and parsing and integrating point-to-point implementations with existing software models in a unified runtime environment through PMML model expression capabilities. However, the data modeling software and the industrial field information model cannot be directly semantically compatible, and when the data modeling software and the industrial field information model are integrated with the industrial software, the realization of semantic interoperability still needs to be manually finished one by one, and the data modeling software and the industrial field information model have no universal applicability and reusability.
The industrial software comprises independent C/S software and service components in an SOA form, and the industrial software is required to be provided with the standard which accords with IEC62541-5, namely OPC UA information model, and supports the operations of importing, exporting, legitimacy checking and the like of OPC UA standard meta information and standard field information models supported by the OPC UA standard meta information; including but not limited to the implementation of parts below the information model of a specific OPC UA standard, such as specific implementation techniques of communication protocols, etc.; the industrial soft method software can be used as a client, a server or has two functions.
The PMML runtime environment may be a business software provided or open source software runtime environment conforming to PMML standards, and may be encapsulated twice as needed to provide a call interface function for state transition.
How to quickly integrate existing industrial mechanism algorithm models into industrial software in a cost-effective manner is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a PMML file, an integration method and device of a runtime environment and industrial software of the PMML file, electronic equipment and a computer readable storage medium, so that the customization operation of a traditional integration mode is avoided, and the manual configuration cost is reduced.
In order to achieve the above object, the present application provides a PMML file and an integration method of a runtime environment and industrial software thereof, including:
determining a PMML file to be integrated, and extracting key information from an XML description file of the PMML file, wherein the key information comprises any one or a combination of any several of head information, a data dictionary, a mining mode, a mining task, a target variable set and an output result element, and a calling interface function is provided in a PMML runtime environment;
extracting OPC UA information model and instantiation information in target industrial software in a file importing or real-time reading mode, wherein the OPC UA information model and instantiation information comprise any one or a combination of any of industry standards, object identifications, variables, characteristics and methods;
searching a mapping rule knowledge base for a corresponding mapping rule by combining the key information, the OPC UA information model and the instantiation information, and generating a mapping rule configuration file for realizing mapping between the PMML file and the OPC UA information model according to the mapping rule;
and loading the mapping rule configuration file into a PMML running environment so that the PMML running environment can integrate the PMML file with the target industrial software through analytic compiling or dynamic loading.
Optionally, the mapping rule configuration file includes: PMML file and instantiation identification, OPC UA information model and instantiation identification.
Optionally, the acquiring the OPC UA information model and the instantiation information in the target industrial software includes:
receiving an imported data file through a preset transmission interface, and extracting an OPC UA information model and instantiation information extracted in advance from the data file;
or, the OPC UA information model and the instantiation information are read from the target industrial software in real time.
Optionally, the header information includes an information version and a model annotation; the data dictionary is used for defining the name, the measurement type and the data type of the original field required by the data model; the mining mode is used for defining variables required by the mining model; the mining task is used for defining relevant information of model training; the target variable set is used for defining target variables in the mining model; the output result element is used for recording a scoring result value set, and comprises an output variable name, a type and a calculation rule.
Optionally, the mapping rule knowledge base includes: identification information for performing OPC UA information model matching; identification, name and type information of the industry standard information, objects, variables and method node classes which are met; file marks, data dictionary variable names, measurement types, data types, parameter variables, target variables and output variable information for PMML file feature matching; determining mapping information of the elements based on the OPC UA information model identification and the PMML file identification; a data dictionary of unified semantics; the semantic mapping rule information between the OPC UA information model object, the variable, the method node and the PMML described data model, and between the input, the input variable and the running environment interface function.
Optionally, the searching the mapping rule in the mapping rule knowledge base by combining the key information, the OPC UA information model and the instantiation information includes:
searching a matched mapping rule in a preset mapping rule knowledge base in an identification matching mode according to the OPC UA information model identification, the industry standard information and the PMML file identification;
or searching semantic matching mapping rules in a preset mapping rule knowledge base according to the naming of the object, the variable and the method of the OPC UA information model and the naming information of the input, output, variable, parameter and other information in the PMML file.
Optionally, the method further comprises:
receiving an editing instruction issued by a user terminal aiming at the mapping rule knowledge base, wherein the editing instruction is used for adding, deleting and modifying the mapping rule;
and updating the mapping rules pre-stored in the mapping rule knowledge base according to the editing instruction.
Optionally, if the PMML operating environment cannot be modified, after generating a mapping rule configuration file for implementing mapping between the PMML file and the OPC UA information model according to the mapping rule, the method further includes:
and loading the mapping rule configuration file into a proxy running environment, and integrating the PMML file and the target industrial software by using the proxy running environment based on the mapping rule configuration file.
To achieve the above object, the present application provides a PMML file and an integrated device of a runtime environment and industrial software thereof, including:
the first extraction module is used for determining a PMML file to be integrated and extracting key information in an XML description file of the PMML file, wherein the key information comprises any one or a combination of any several of head information, a data dictionary, a mining mode, a mining task, a target variable set and an output result element, and a calling interface function is provided in a PMML runtime environment;
the second extraction module is used for extracting an OPC UA information model and instantiation information from target industrial software in a file importing or real-time reading mode, wherein the OPC UA information model and instantiation information comprises any one or a combination of a plurality of industry standards, object identifications, variables, characteristics and methods;
the file generation module is used for searching a corresponding mapping rule in a mapping rule knowledge base by combining the key information, the OPC UA information model and the instantiation information, and generating a mapping rule configuration file for realizing mapping between the PMML file and the OPC UA information model according to the mapping rule;
and the loading integration module is used for loading the mapping rule configuration file into a PMML running environment so that the PMML running environment can integrate the PMML file with the target industrial software through analytic compiling or dynamic loading.
To achieve the above object, the present application provides an electronic device including:
a memory for storing a computer program;
a processor for implementing the steps of any of the PMML files disclosed above and the method of integrating its runtime environment with industrial software when executing the computer program.
To achieve the above object, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of any of the PMML files disclosed above and their integration method of runtime environment and industrial software.
According to the scheme, the PMML file and the integration method of the runtime environment and industrial software thereof provided by the application comprise the following steps: determining a PMML file to be integrated, and extracting key information from an XML description file of the PMML file, wherein the key information comprises any one or a combination of any several of head information, a data dictionary, a mining mode, a mining task, a target variable set and an output result element, and a calling interface function is provided in a PMML runtime environment; extracting OPC UA information model and instantiation information in target industrial software in a file importing or real-time reading mode, wherein the OPC UA information model and instantiation information comprise any one or a combination of any of industry standards, object identifications, variables, characteristics and methods; searching a mapping rule knowledge base for a corresponding mapping rule by combining the key information, the OPC UA information model and the instantiation information, and generating a mapping rule configuration file for realizing mapping between the PMML file and the OPC UA information model according to the mapping rule; and loading the mapping rule configuration file into a PMML running environment so that the PMML running environment can integrate the PMML file with the target industrial software through analytic compiling or dynamic loading.
It can be seen from the above that the PMML file and the method for integrating the environment and the industrial software during operation provided by the application can extract key information from the PMML file, extract OPC UA information model and instantiation information from the target industrial software, and search corresponding mapping rules in the mapping rule knowledge base, so as to generate corresponding mapping rule configuration files.
The application also discloses a PMML file, an integrated device of the runtime environment and industrial software thereof, an electronic device and a computer readable storage medium, and the technical effects can be realized.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a PMML file and a method for integrating a runtime environment and industrial software thereof disclosed in an embodiment of the present application;
FIG. 2 is a system architecture diagram corresponding to an integrated method of industrial software and a PMML file and a runtime environment thereof according to an embodiment of the present application;
FIG. 3 is a flow chart of yet another method for integrating PMML files and their runtime environments with industrial software, according to an embodiment of the present application;
FIG. 4 is a system architecture diagram corresponding to an integration method of industrial software and a PMML file and a runtime environment thereof according to an embodiment of the present application;
FIG. 5 is a block diagram of a PMML file and an integrated device of a runtime environment and industrial software thereof according to an embodiment of the present application;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present application;
fig. 7 is a block diagram of another electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In order to facilitate understanding of the solution disclosed in the embodiments of the present application, the following first describes relevant terms and background knowledge such as nouns.
OPC UA is a widely accepted industry protocol in the industry that provides both information communication protocols and the ability to build meta-information models, and currently has very good compatibility support for existing industry-area information models.
The PMML (Predictive Model Markup Language) standard is an open industry standard that standardizes the above data mining tasks in XML as a carrier, and can apply the data mining scheme created by a product to any other PMML compliant product or platform, regardless of the specific implementation details in the analysis and prediction process. The PMML standard is an instantiation standard of the data mining process, and according to the execution process of the data mining task, related information of different stages of data mining is orderly defined: header information, data dictionary, data conversion, model representation, predictive rating. The data mining task mainly comprises the following steps: defining a data dictionary, defining data variables valuable to the analysis problem; preprocessing data, and generating variables suitable for modeling through operations such as derivatization, mapping, merging and the like of the existing variables; formulating an excavation mode, and designating a strategy for processing abnormal values and missing values in a data excavation modeling process; representing a data mining model, and recording information such as the structure, parameters and the like of the model; predictive evaluation, applying a test dataset to the obtained model, obtaining performance evaluation with various criteria.
The industrial software is mutually invoked to realize interoperation based on a standard information model, such as an FDT standard model, a MOM standard model, a PLCOpen standard model and the like, and is usually expressed in an XML form and distinguished by using identification ids after instantiation. The communication standard protocol of OPC UA not only realizes interconnection and intercommunication among different systems, but also supports the information model in various fields of the existing industry, supports inter-system interoperation, and has good compatibility to the original system.
The embodiment of the application discloses a PMML file and an integration method of a runtime environment and industrial software thereof, which avoid the customization operation of the traditional integration mode and reduce the manual configuration cost. Referring to fig. 1, an integrated method of PMML file and runtime environment and industrial software thereof disclosed in the embodiment of the present application includes:
s101: determining a PMML file to be integrated, and extracting key information from an XML description file of the PMML file, wherein the key information comprises any one or a combination of any several of head information, a data dictionary, a mining mode, a mining task, a target variable set and an output result element, and a calling interface function is provided in a PMML runtime environment;
in the embodiment of the application, the PMML file which needs to be integrated into industrial software can be determined, the XML description file in the PMML file can be obtained, and key information can be extracted from the XML description file. The key information may include, but is not limited to, header information, a data dictionary, a mining pattern, a mining task, a set of target variables, and output result elements. The PMML file running environment adopts a state machine mode to provide stateful services, and externally provides callable file loading, parameter setting, state query and state conversion interface functions.
In a specific implementation, the header information includes an information version and a model annotation; the data dictionary is used for defining the name, the measurement type and the data type of the original field required by the data model; the mining modes are used for defining variables required by the mining model; the mining task is used for defining relevant information of model training; the target variable set is used for defining target variables in the mining model; the output result element is used for recording a scoring result value set, and comprises an output variable name, a type and a calculation rule.
S102: extracting OPC UA information model and instantiation information in target industrial software in a file importing or real-time reading mode, wherein the OPC UA information model and instantiation information comprise any one or a combination of any of industry standards, object identifications, variables, characteristics and methods;
in this step, OPC UA information model and instantiation information may be extracted from the target industrial software. In particular, key information may be extracted from OPC UA model files, which may include, but is not limited to, industry standards, object identification, variables, characteristics, and methods.
It can be understood that when the information is obtained, the embodiment of the application can be directly imported in a file importing manner, and can also read the information in real time. That is, the imported data file can be received through a preset transmission interface, and an OPC UA information model and instantiation information extracted in advance in the data file are extracted; or OPC UA information model and instantiation information can be read from the target industrial software in real time.
It should be noted that the execution sequence of the steps S101 and S102 is not limited, that is, the step S101 may be executed first and then the step S102 may be executed, or the step S102 may be executed first and then the step S101 may be executed, or the step S101 and the step S101 may be executed synchronously, so as to shorten the working time.
S103: searching a mapping rule knowledge base for a corresponding mapping rule by combining the key information, the OPC UA information model and the instantiation information, and generating a mapping rule configuration file for realizing mapping between the PMML file and the OPC UA information model according to the mapping rule;
it can be understood that after the two types of information are obtained, the key information, the OPC UA information model and the instantiation information can be combined, the corresponding mapping rule is searched in the mapping rule knowledge base according to the semantics or the identification, and the mapping rule configuration file is generated according to the searched mapping rule, so that the mapping between the PMML file and the OPC UA information model can be realized by the configuration file. For example, according to the OPC UA information model identifier, industry standard information and PMML file identifier, a matched mapping rule is searched in a preset mapping rule knowledge base in an identifier matching mode; or searching semantic matching mapping rules in a preset mapping rule knowledge base according to the naming of the object, the variable and the method of the OPC UA information model and the naming information of the input, output, variable, parameter and other information in the PMML file.
Specifically, the mapping rule configuration file may include, but is not limited to: PMML file and instantiation identification, OPC UA information model and instantiation identification, PMML variable and OPC UA information model element mapping table and PMML operation environment standard function and OPC UA information model method call mapping table.
The mapping rule knowledge base may specifically include: identification information for performing OPC UA information model matching; identification, name and type information of the industry standard information, objects, variables and method node classes which are met; file marks, data dictionary variable names, measurement types, data types, parameter variables, target variables and output variable information for PMML file feature matching; determining mapping information of the elements based on the OPC UA information model identification and the PMML file identification; a data dictionary of unified semantics; the semantic mapping rule information between the OPC UA information model object, the variable, the method node and the PMML described data model, and between the input, the input variable and the running environment interface function. . In implementations, the user may pre-create a mapping rule knowledge base and edit it later. Specifically, an editing instruction issued by the user terminal aiming at the mapping rule knowledge base can be received, wherein the editing instruction is used for adding, deleting and modifying the mapping rule; and updating the mapping rules pre-stored in the mapping rule knowledge base according to the editing instruction.
Further, if the mapping rule is not found in the mapping rule knowledge base, a corresponding visual interface can be returned to the user terminal, and the user can manually configure the rules through the interface and update the rules into the mapping rule knowledge base after the configuration is completed so as to be reused later.
S104: and loading the mapping rule configuration file into a PMML running environment so that the PMML running environment can integrate the PMML file with the target industrial software through analytic compiling or dynamic loading.
After the mapping rule configuration file is generated, the file can be loaded into the PMML operation environment, and the PMML operation environment can realize the dynamic loading integration of the PMML operation environment according to the configuration parameters of the communication protocol by analyzing, compiling or dynamic loading, and simultaneously, the point-to-point and interface call mapping is rapidly completed.
It can be seen from the above that the PMML file and the method for integrating the environment and the industrial software during operation provided by the application can extract key information from the XML description file of the PMML file, extract OPC UA information model and instantiation information from the target industrial software, and search corresponding mapping rules in the mapping rule knowledge base, so as to generate a corresponding mapping rule configuration file, and the PMML operation environment can realize the integration of the PMML file and the target industrial software based on the mapping rule configuration file, and can automatically realize the rapid integration of the industrial software and the PMML file, thereby avoiding the customization operation of the traditional integration mode and further reducing the manual configuration cost.
Fig. 2 is a system architecture diagram corresponding to the above PMML file and its runtime environment and the integration method of industrial software. The embodiment takes industrial software as a main part, and realizes the dynamic integration of the PMML operation instance under the condition of not responding to the original operation state and engineering configuration of the industrial software. At this time, it is required that the PMML runtime environment can implement customized modification by parsing the mapping rule configuration file, and other PMML runtime environments remain unchanged. Specifically: the mapping tool obtains an OPC UA information model and instantiation information from industrial software; the mapping tool extracts XML files from the integrated PMML files and analyzes key information, such as version and model annotation in Header (Header) information, information related to model training in mining task (MiningBuildTask) information, names, measurement types, data types and the like of original fields required by a data model in data dictionary (DataDictionary) information, variables required for constructing the mining model are defined in mining mode Miningschema, target variable set Targets elements are target variables in all mining models, and scoring result value sets in Output information of result elements are Output, wherein the scoring result value sets comprise information such as names, types and calculation rules of each Output variable; the mapping tool searches matched rules from the mapping rule knowledge base according to the information obtained in the steps, if the matched rules do not exist, the rules can be manually configured by a user, and meanwhile, the rules are updated into the mapping rule knowledge base for later multiplexing; the mapping tool automatically or manually loads the mapping rule configuration file into the PMML running environment; the PMML running environment realizes the dynamic loading integration of the PMML running environment through the analysis compiling or dynamic loading mode and the communication protocol configuration parameters, and simultaneously, the point-to-point and interface calling mapping is completed rapidly. The embodiment can be applied to the dynamic loading of the functional operating environment of the data model and the machine learning model aiming at the industrial software, and is commonly used for control optimization, flow optimization and the like.
Compared with the previous embodiment, the embodiment of the application is particularly applied to the situation that neither the industrial software nor the PMML running environment can be subjected to customized modification, and the mapping conversion between the industrial software and the PMML running environment is completed by running proxy software, so that the rapid integration of the system is completed through rule-based mapping configuration. See fig. 3 for details:
s201: determining a PMML file to be integrated, and extracting key information from an XML description file of the PMML file, wherein the key information comprises any one or a combination of any several of head information, a data dictionary, a mining mode, a mining task, a target variable set and an output result element, and a calling interface function is provided in a PMML runtime environment;
s202: extracting OPC UA information model and instantiation information in target industrial software in a file importing or real-time reading mode, wherein the OPC UA information model and instantiation information comprise any one or a combination of any of industry standards, object identifications, variables, characteristics and methods;
s203: searching a mapping rule knowledge base for a corresponding mapping rule by combining the key information, the OPC UA information model and the instantiation information, and generating a mapping rule configuration file for realizing mapping between the PMML file and the OPC UA information model according to the mapping rule;
s204: and loading the mapping rule configuration file into a proxy running environment, and integrating the PMML file and the target industrial software by using the proxy running environment based on the mapping rule configuration file.
In the embodiment of the application, if the industrial software and the PMML running environment cannot be customized and modified, the rule configuration file can be loaded by using the proxy running environment after the rule configuration file is generated, so that the mapping configuration is loaded by using the proxy running environment, and the dynamic integration of the industrial software running environment and the PMML running is realized.
Fig. 4 shows a system architecture diagram according to an embodiment of the present application. Specifically, the mapping tool acquires an OPC UA information model and instantiation information from industrial software; the mapping tool obtains key information of the PMML from the integrated PMML and analyzes the key information; the mapping tool searches matched rules from the mapping rule knowledge base, if the matched rules do not exist, the rules can be manually configured by a user, and meanwhile, the rules are updated into the mapping rule knowledge base so as to be reused later; the mapping tool automatically or manually loads the matching rules into the agent running environment; the proxy running environment loads mapping configuration running, and realizes dynamic integration of industrial software running environment and PMML running. The embodiment is suitable for the condition that the industrial software and PMML running software are inconvenient to modify but have higher standardization level, and can realize the rapid integration of the software by utilizing the rule-based mapping.
The system architecture of the PMML file and the integration scheme of the runtime environment and industrial software for implementing the embodiment of the present application will be described in a specific scenario. In particular, the present system may include a mapping rule knowledge base, a mapping rule editing tool, and a mapping rule configuration file.
Specifically, the mapping rule knowledge base may include an XML file base, a mapping rule file, etc. in an OPC UA standard field model file, a PMML standard data model file, etc. for maximizing multiplexing of existing knowledge results. The mapping rule editing tool can adopt a friendly visual editing tool, and can realize the following functions: extracting key information such as industry standard, object identification, variable, characteristic, method and the like according to the OPC UA model file; extracting key information from XML description information of a PMML engineering file, such as a data dictionary, an excavation mode/architecture, data conversion, model definition, output, targets, model interpretation, model verification and the like; the mapping rule configuration file can be generated for a calling party to use by carrying out identification configuration on the mapping rule knowledge base according to the information collected in the two processes and searching the mapping rules in the knowledge base according to the matching result; supporting manual editing of a mapping rule file, wherein the mapping rule file comprises mapping rules of information model semantics and mapping rules of method call; supporting to generate an OPC UA standard field model file according to XML and mapping rule files in PMML; the standard consistency check function is carried out on the model files in the OPC UA standard field. The mapping rule configuration file can specifically comprise a PMML file and an instantiation identifier, an OPC UA standard field information model and an instantiation identifier, a mapping table of variables and OPC UA model elements in PMML, and a mapping table of PMML operation environment standard functions and OPC UA information model method calls.
The industrial software establishes a field information model, and realizes the mapping between XML files and the information model in PMML and the mapping between the method call and the PMML running environment function call by the rule configuration mechanism method; the information model is built in the industrial software through the configuration rules, the standard requirements of the specific field of the information model are met, and the interoperability of the industrial software and the PMML is met. In addition, the industrial software does not establish an information model interacted with the PMML yet, the establishment of the information model in the industrial software is realized through configuration rules, and meanwhile, the standard requirements of the specific field of the information model are met, and the interoperability of the industrial software is met; including default automatically generating information models and invoking rules in the case of default rules.
In the embodiment of the application, the unified technology of model semantics is realized for the models in various fields of industry by adopting an OPC UA information model, the data processing model and the machine learning model developed by the data model software in the market are compatible by utilizing the data model file conforming to the PMML standard and the realization of the PMML running environment, the automatic correspondence between the OPC UA information model and the PMML is realized by adopting the editable corresponding rule, and the normalized call of the PMML running environment is realized by adopting a method in the OPC UA information model.
By the scheme, a large number of customization operations are needed when industrial software integrates different data modeling software, the cost of manual configuration is reduced, and the dynamic pre-configuration work of the existing data model is realized according to the reusable rule.
The following describes an integrated device of a PMML file and a runtime environment thereof and industrial software provided by an embodiment of the present application, and the integrated device of a PMML file and a runtime environment thereof and industrial software described below and the integrated method of a PMML file and a runtime environment thereof and industrial software described above may be referred to each other.
Referring to fig. 5, an integrated device for PMML files and runtime environments and industrial software thereof provided by an embodiment of the present application includes:
a first extraction module 301, configured to determine a PMML file to be integrated, and extract key information in an XML description file of the PMML file, where the key information includes any one or a combination of any several of header information, a data dictionary, a mining mode, a mining task, a target variable set, and an output result element, and provide a call interface function in a PMML runtime environment;
the second extraction module 302 is configured to extract, in a target industrial software, an OPC UA information model and instantiation information by means of file import or real-time reading, where the OPC UA information model and instantiation information include any one or a combination of any several of industry standards, object identifiers, variables, characteristics, and methods;
the file generating module 303 is configured to combine the key information, the OPC UA information model and the instantiation information, find a corresponding mapping rule in a mapping rule knowledge base, and generate a mapping rule configuration file for implementing mapping between a PMML file and the OPC UA information model according to the mapping rule;
and the loading integration module 304 is configured to load the mapping rule configuration file into a PMML operation environment, so that the PMML operation environment implements integration of the PMML file and the target industrial software through parsing, compiling or dynamic loading.
For the specific implementation of the modules 301 to 304, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
The application also provides an electronic device, referring to fig. 6, and the electronic device provided by the embodiment of the application includes:
a memory 100 for storing a computer program;
the processor 200, when executing the computer program, may implement the steps provided in the above embodiments.
Specifically, the memory 100 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer readable instructions, and the internal memory provides an environment for the operating system and the execution of the computer readable instructions in the non-volatile storage medium. The processor 200 may be a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor or other data processing chip in some embodiments, and provides computing and control capabilities for the electronic device, and when executing the computer program stored in the memory 100, the PMML file and the method for integrating the runtime environment and the industrial software disclosed in any of the foregoing embodiments may be implemented.
On the basis of the above embodiment, as a preferred implementation manner, referring to fig. 7, the electronic device further includes:
an input interface 300, coupled to the processor 200, for obtaining externally imported computer programs, parameters and instructions, which are stored in the memory 100 under control of the processor 200. The input interface 300 may be coupled to an input device for receiving parameters or instructions manually entered by a user. The input device can be a touch layer covered on a display screen, can also be a key, a track ball or a touch pad arranged on a terminal shell, and can also be a keyboard, a touch pad or a mouse, etc.
And a display unit 400 connected to the processor 200 for displaying data processed by the processor 200 and for displaying a visualized user interface. The display unit 400 may be an LED display, a liquid crystal display, a touch-control type liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like.
The network port 500 is connected to the processor 200 and is used for communication connection with external terminal devices. The communication technology adopted by the communication connection can be a wired communication technology or a wireless communication technology, such as a mobile high definition link technology (MHL), a Universal Serial Bus (USB), a High Definition Multimedia Interface (HDMI), a wireless fidelity technology (WiFi), a Bluetooth communication technology with low power consumption, a communication technology based on IEEE802.11s, and the like.
Fig. 7 illustrates only an electronic device having assemblies 100-500, and it will be appreciated by those skilled in the art that the configuration illustrated in fig. 7 is not limiting of the electronic device and may include fewer or more components than illustrated, or may combine certain components, or a different arrangement of components.
The present application also provides a computer-readable storage medium, which may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes. The storage medium stores a computer program which when executed by a processor implements the PMML file and the method for integrating the environment and industrial software when running disclosed in any of the foregoing embodiments.
The PMML file and the integration method of the environment and the industrial software during operation thereof provided by the application can extract key information from the XML description file of the PMML file, extract OPC UA information model and instantiation information from the target industrial software, search corresponding mapping rules in the mapping rule knowledge base, and further generate corresponding mapping rule configuration files, and the PMML operation environment can realize the integration of the PMML file and the target industrial software based on the mapping rule configuration files, thereby automatically realizing the rapid integration of the industrial software and the PMML file, avoiding the customization operation of the traditional integration mode and further reducing the manual configuration cost.
In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the application can be made without departing from the principles of the application and these modifications and adaptations are intended to be within the scope of the application as defined in the following claims.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (11)

1. A PMML file and a method for integrating a runtime environment thereof with industrial software, comprising:
determining a PMML file to be integrated, and extracting key information from an XML description file of the PMML file, wherein the key information comprises any one or a combination of any several of head information, a data dictionary, a mining mode, a mining task, a target variable set and an output result element, and a calling interface function is provided in a PMML runtime environment;
extracting OPC UA information model and instantiation information in target industrial software in a file importing or real-time reading mode, wherein the OPC UA information model and instantiation information comprise any one or a combination of any of industry standards, object identifications, variables, characteristics and methods;
searching a mapping rule knowledge base for a corresponding mapping rule by combining the key information, the OPC UA information model and the instantiation information, and generating a mapping rule configuration file for realizing mapping between the PMML file and the OPC UA information model according to the mapping rule;
and loading the mapping rule configuration file into a PMML running environment so that the PMML running environment can integrate the PMML file with the target industrial software through analytic compiling or dynamic loading.
2. The integration method according to claim 1, wherein the mapping rule configuration file includes: PMML file and instantiation identification, OPC UA information model and instantiation identification.
3. The method of claim 1, wherein extracting OPC UA information model and instantiation information in the target industrial software comprises:
receiving an imported data file through a preset transmission interface, and extracting an OPC UA information model and instantiation information extracted in advance from the data file;
or, the OPC UA information model and the instantiation information are read from the target industrial software in real time.
4. The integration method according to claim 1, wherein the header information includes an information version and a model annotation; the data dictionary is used for defining the name, the measurement type and the data type of the original field required by the data model; the mining mode is used for defining variables required by the mining model; the mining task is used for defining relevant information of model training; the target variable set is used for defining target variables in the mining model; the output result element is used for recording a scoring result value set, and comprises an output variable name, a type and a calculation rule.
5. The integration method according to claim 1, wherein the mapping rule knowledge base comprises: the method comprises identification information for performing OPC UA information model matching, identification, name and type information of industry standard information, objects, variables and method node classes which are matched, file marks for performing PMML file feature matching, data dictionary variable names, measurement types, data types, parameter variables, target variables and output variable information, mapping information for determining elements based on OPC UA information model identification and PMML file identification, a data dictionary for unifying semantics, and semantic mapping rule information among OPC UA information model objects, variables, parameters, input variables and running environment interface functions among data models described by method nodes and PMML.
6. The method of integration according to claim 5, wherein the searching for the corresponding mapping rule in the mapping rule knowledge base by combining the key information, the OPC UA information model and the instantiation information includes:
searching a matched mapping rule in a preset mapping rule knowledge base in an identification matching mode according to the OPC UA information model identification, the industry standard information and the PMML file identification;
or searching semantic matching mapping rules in a preset mapping rule knowledge base according to the naming of the object, the variable and the method of the OPC UA information model and the naming information of the input, output, variable, parameter and other information in the PMML file.
7. The integration method of claim 1, further comprising:
receiving an editing instruction issued by a user terminal aiming at the mapping rule knowledge base, wherein the editing instruction is used for adding, deleting and modifying the mapping rule;
and updating the mapping rules pre-stored in the mapping rule knowledge base according to the editing instruction.
8. The integration method of any one of claims 1-7, wherein if the PMML runtime environment cannot be modified, after generating a mapping rule configuration file for mapping between a PMML file and an OPC UA information model according to the mapping rule, further comprising:
and loading the mapping rule configuration file into a proxy running environment, and integrating the PMML file and the target industrial software by using the proxy running environment based on the mapping rule configuration file.
9. A PMML file and its runtime environment and industrial software integrated device, comprising:
the first extraction module is used for determining a PMML file to be integrated and extracting key information in an XML description file of the PMML file, wherein the key information comprises any one or a combination of any several of head information, a data dictionary, a mining mode, a mining task, a target variable set and an output result element, and a calling interface function is provided in a PMML runtime environment;
the second extraction module is used for extracting an OPC UA information model and instantiation information from target industrial software in a file importing or real-time reading mode, wherein the OPC UA information model and instantiation information comprises any one or a combination of a plurality of industry standards, object identifications, variables, characteristics and methods;
the file generation module is used for searching a corresponding mapping rule in a mapping rule knowledge base by combining the key information, the OPC UA information model and the instantiation information, and generating a mapping rule configuration file for realizing mapping between the PMML file and the OPC UA information model according to the mapping rule;
and the loading integration module is used for loading the mapping rule configuration file into a PMML running environment so that the PMML running environment can integrate the PMML file with the target industrial software through analytic compiling or dynamic loading.
10. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the PMML file according to any one of claims 1 to 8 and the method of integrating its runtime environment with industrial software when executing said computer program.
11. A computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, which when executed by a processor, implements the steps of the PMML file and the method of integrating its runtime environment with industrial software according to any one of claims 1 to 8.
CN202011246924.1A 2020-11-10 2020-11-10 PMML file and integration method of runtime environment and industrial software thereof Active CN112363695B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011246924.1A CN112363695B (en) 2020-11-10 2020-11-10 PMML file and integration method of runtime environment and industrial software thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011246924.1A CN112363695B (en) 2020-11-10 2020-11-10 PMML file and integration method of runtime environment and industrial software thereof

Publications (2)

Publication Number Publication Date
CN112363695A CN112363695A (en) 2021-02-12
CN112363695B true CN112363695B (en) 2023-09-08

Family

ID=74508572

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011246924.1A Active CN112363695B (en) 2020-11-10 2020-11-10 PMML file and integration method of runtime environment and industrial software thereof

Country Status (1)

Country Link
CN (1) CN112363695B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022205153A1 (en) * 2021-03-31 2022-10-06 西门子股份公司 Information processing method and apparatus, and computing device and storage medium
CN113190513A (en) * 2021-05-14 2021-07-30 广联达科技股份有限公司 Data integration system and method
CN113268888B (en) * 2021-06-23 2022-09-27 上海交通大学 Control and information model fusion method in industrial automation system
CN115576593B (en) * 2022-12-12 2023-07-14 广州市易鸿智能装备有限公司 Industrial interconnection software operation method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104011750A (en) * 2011-12-28 2014-08-27 西门子公司 Processing a technical system
WO2017024242A1 (en) * 2015-08-05 2017-02-09 Equifax Inc. Model integration tool
CN108369404A (en) * 2015-12-10 2018-08-03 西门子股份公司 The distributed embedded data and Knowledge Management System of integrated PLC historical records
CN109144007A (en) * 2018-09-12 2019-01-04 机械工业仪器仪表综合技术经济研究所 A kind of automatic construction system for integrating and interconnecting towards digitlization workshop manufacturing equipment
CN110708240A (en) * 2019-09-26 2020-01-17 机械工业仪器仪表综合技术经济研究所 Internet of things universal gateway based on OPC UA

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11616839B2 (en) * 2019-04-09 2023-03-28 Johnson Controls Tyco IP Holdings LLP Intelligent edge computing platform with machine learning capability

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104011750A (en) * 2011-12-28 2014-08-27 西门子公司 Processing a technical system
WO2017024242A1 (en) * 2015-08-05 2017-02-09 Equifax Inc. Model integration tool
CN108369404A (en) * 2015-12-10 2018-08-03 西门子股份公司 The distributed embedded data and Knowledge Management System of integrated PLC historical records
CN109144007A (en) * 2018-09-12 2019-01-04 机械工业仪器仪表综合技术经济研究所 A kind of automatic construction system for integrating and interconnecting towards digitlization workshop manufacturing equipment
CN110708240A (en) * 2019-09-26 2020-01-17 机械工业仪器仪表综合技术经济研究所 Internet of things universal gateway based on OPC UA

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于 OPC UA 协议的数据采集系统 设计与实现;柏继华;中国优秀硕士论文电子期刊(第8期);全文 *

Also Published As

Publication number Publication date
CN112363695A (en) 2021-02-12

Similar Documents

Publication Publication Date Title
CN112363695B (en) PMML file and integration method of runtime environment and industrial software thereof
CN108628947B (en) Business rule matching processing method, device and processing equipment
US8438190B2 (en) Generating web services from business intelligence queries
US20190129734A1 (en) Data collection workflow extension
CN110716715B (en) Application program development method, device, equipment and medium
CN112363694B (en) Integration method of FMU file, solver running environment and industrial software
CN108038045B (en) Android user behavior data acquisition method based on non-buried point
US8701087B2 (en) System and method of annotating class models
US9043757B2 (en) Identifying differences between source codes of different versions of a software when each source code is organized using incorporated files
US8255883B2 (en) Translating late bound LINQ expressions into database queries
Fill SeMFIS: a flexible engineering platform for semantic annotations of conceptual models
CN111784108B (en) Modeling method and device of main data management platform
CN105574070A (en) System and method for reporting multiple objects in enterprise content management
CN103905231A (en) Method and device for unified management of device types
US10693962B1 (en) Language and mechanism for modeling and exporting storage platform topologies, attributes, and behaviors
CN113987337A (en) Search method, system, equipment and storage medium based on componentized dynamic arrangement
Frey et al. MAMBA: A measurement architecture for model-based analysis
CN110889013A (en) Data association method, device, server and storage medium based on XML
CN113687827B (en) Data list generation method, device and equipment based on widget and storage medium
CN116450723A (en) Data extraction method, device, computer equipment and storage medium
CN115469860A (en) Method and system for automatically generating demand-to-software field model based on instruction set
CN111767406A (en) Knowledge representation method and device for PLC engineering
CN115543428A (en) Simulated data generation method and device based on strategy template
CN111711605B (en) Data protocol active analysis method for Internet of things platform
US9268533B2 (en) Method and apparatus for enabling layered property definition in traditional and cloud computing environments

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant