A method library management method and device for industrial software

By determining the combination of target scene information and packaging method numbers in the industrial software platform, and constructing a combination set description table, the problem of poor scalability of the industrial software platform is solved, and the efficiency and scalability of method library management are achieved.

CN117389659BActive Publication Date: 2024-09-10SUZHOU SHUSHE TECH CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202311147043.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-06
Publication Date
2024-09-10
Estimated Expiration
2043-09-06

AI Technical Summary

Technical Problem

Industrial software platforms embed multiple methods into each execution process, resulting in system complexity and poor scalability, which hinders effective accumulation and convenient invocation.

Method used

By determining the target scenario information of industrial software, encapsulating and verifying method number combinations, building a combination set description table of the method library, decoupling industrial methods and execution codes, and improving scalability.

Benefits of technology

It effectively improves the scalability and development efficiency of the industrial software platform, making method library management simple and easy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117389659B
    Figure CN117389659B
Patent Text Reader

Abstract

The present invention provides a method and device for method library management for industrial software, the method comprising: determining target scenario information corresponding to the industrial software; determining a first method number combination corresponding to the industrial software based on the target scenario information; one number in the first method number combination corresponds to an industrial method, and the industrial method is encapsulated in a method library; verifying the first method number combination based on the indicator constraint conditions carried by the target scenario information, and determining a new first method number combination if the verification fails; if the verification passes, adding the first combination information corresponding to the industrial software to a combination set description table of the method library based on the target scenario information, the first method number combination, and the method parameters corresponding to the first method number combination, so that when the industrial software under the target scenario information is run, the target data is obtained based on the first combination information, the target method is called, and the software execution result is obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of industrial software development, and more specifically, to a method and device for managing a method library for industrial software. Background Art

[0002] The industrial software platform integrates industrial software at various stages such as design, manufacturing, operation and maintenance, and management. Compared with the traditional production model, the industrial software platform can unify all production factors and promote the integrated and integrated development of industrial software. However, each industrial software in the industrial software platform has its own independent execution process, and each execution process is embedded with one or more methods, which makes the industrial software platform system complex and has poor scalability. Summary of the invention

[0003] The present invention provides a method and device for managing a method library of industrial software, a computer-readable storage medium and an electronic device, so as to solve the technical problem of poor scalability of the industrial software platform in the prior art.

[0004] According to a first aspect of the present invention, there is provided a method for managing a method library for industrial software, comprising:

[0005] Determine the target scenario information corresponding to the industrial software;

[0006] Based on the target scenario information, a first method number combination corresponding to the industrial software is determined; one number in the first method number combination corresponds to an industrial method, and the industrial method is encapsulated in a method library;

[0007] Based on the indicator constraints carried by the target scenario information, the first method number combination is verified, and if the verification fails, a new first method number combination is determined; if the verification passes, based on the target scenario information, the first method number combination, and the method parameters corresponding to the first method number combination, the first combination information corresponding to the industrial software is added to the combination set description table of the method library, so that when the industrial software under the target scenario information is run, the target data is obtained based on the first combination information, the target method is called, and the software execution result is obtained.

[0008] Optionally, determining a first method number combination corresponding to the industrial software based on the target scenario information includes:

[0009] Filtering out third combination information matching the target scene information from the second combination information stored in the combination set description table of the method library;

[0010] Based on the second method number combination carried by the third combination information, a first method number combination corresponding to the industrial software is determined.

[0011] Optionally, when there is no third combination information matching the target scenario information in the second combination information, or when the first method number combination determined based on the second method number combination carried by the third combination information fails to pass verification, determining the first method number combination corresponding to the industrial software based on the target scenario information includes:

[0012] Based on the target scenario information, determining a current industrial method among various industrial methods encapsulated in the method library;

[0013] Determining a recommended method based on the target scenario information, the current industrial method and the second combination information;

[0014] Based on the recommended method, determining the next current industrial method until all industrial methods required for the industrial software are determined;

[0015] Based on a method description table obtained by describing each industrial method in the method library, a first method number combination corresponding to all industrial methods required by the industrial software is determined.

[0016] Optionally, the determining a recommendation method based on the target scenario information, the current industrial method and the second combination information includes:

[0017] In the second combination information, third combination information including the target scene information and the current industrial method, and fourth combination information including similar scene information associated with the target scene information and the current industrial method are determined;

[0018] A recommended method is determined based on the third method number combination corresponding to the third combination information and the fourth method number combination corresponding to the fourth combination information.

[0019] Optionally, the verifying the first method number combination based on the indicator constraint condition carried by the target scene information includes:

[0020] Acquiring test data in a database based on method parameters corresponding to the first method number combination;

[0021] In the simulation environment constructed in the method library, based on the test data, calling the target method corresponding to the first method number combination to determine the test execution result;

[0022] If the test execution result does not meet the indicator constraint condition, the verification result is determined to be verification failure; if the test execution result meets the indicator constraint condition, the verification result is determined to be verification pass.

[0023] Optionally, when the verification fails, determining a new first method number combination includes:

[0024] Based on the verification result that failed the verification, the method number to be replaced is determined;

[0025] Determine a new method number based on an industrial method in the method library that belongs to the same method type as the method number to be replaced;

[0026] In the first method number combination, the method number to be replaced is replaced with the new method number to obtain a new first method number combination.

[0027] Optionally, before the step of determining a new method number based on the industrial method in the method library that belongs to the same method type as the method number to be replaced, the method further includes:

[0028] Determine the method type corresponding to each industrial method in the method library; the method type includes data preprocessing, feature processing, model calculation and result display.

[0029] According to a second aspect of the present invention, there is provided a method library management device for industrial software, comprising:

[0030] An information determination module, used to determine the target scene information corresponding to the industrial software;

[0031] A number determination module, used to determine a first method number combination corresponding to the industrial software based on the target scenario information; one number in the first method number combination corresponds to an industrial method, and the industrial method is encapsulated in a method library;

[0032] An information adding module is used to verify the first method number combination based on the indicator constraint conditions carried by the target scenario information, and determine a new first method number combination if the verification fails; if the verification passes, based on the target scenario information, the first method number combination and the method parameters corresponding to the first method number combination, add the first combination information corresponding to the industrial software in the combination set description table of the method library, so that when the industrial software under the target scenario information is run, the target data is obtained based on the first combination information, the target method is called, and the software execution result is obtained.

[0033] According to a third aspect of the present invention, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is used to execute the above-mentioned method library management method for industrial software.

[0034] According to a fourth aspect of the present invention, there is provided an electronic device, the electronic device comprising:

[0035] processor;

[0036] a memory for storing instructions executable by the processor;

[0037] The processor is used to read the executable instructions from the memory and execute the instructions to implement the above-mentioned method library management method for industrial software.

[0038] Compared with the prior art, the method library management method, device, computer-readable storage medium and electronic device for industrial software provided by the present invention have at least the following beneficial effects:

[0039] The technical solution of the present invention determines the target scenario information corresponding to the industrial software; then based on the target scenario information, determines the first method number combination corresponding to the industrial software; one number in the first method number combination corresponds to an industrial method, and the industrial method is encapsulated in the method library; further based on the indicator constraint conditions carried by the target scenario information, the first method number combination is verified, and if the verification fails, a new first method number combination is determined, and then a new round of verification environment is performed until the verification passes; if the verification passes, based on the target scenario information, the first method number combination, and the method parameters corresponding to the first method number combination, the first combination information corresponding to the industrial software is added to the combination set description table of the method library, so that when the industrial software under the target scenario information is run, the target data is obtained based on the first combination information, the target method is called, and the software execution result is obtained. The technical solution provided by the present invention encapsulates the industrial method in the method library, and constructs a combination set description table in the method library, the combination set description table is used to describe the combination information of the industrial software, and the combination information can provide method information related to the industrial software when running the industrial software, so as to obtain the target data, call the target method, and obtain the software execution result. The method library decouples industrial methods from industrial execution codes, effectively improving the scalability of the industrial software platform. The combined set description table makes the expansion of the industrial software platform simple and easy, effectively improving development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0041] Figure 1 The following is a flow chart of a method library management method for industrial software provided by an exemplary embodiment of the present invention. Figure 1 ;

[0042] Figure 2 It is a structural schematic diagram of a method description table and a combination set description table in a method library management method for industrial software provided by an exemplary embodiment of the present invention;

[0043] Figure 3 It is a flow chart of a method combination in a method library management method for industrial software provided by an exemplary embodiment of the present invention;

[0044] Figure 4 The following is a flow chart of a method library management method for industrial software provided by an exemplary embodiment of the present invention. Figure 2 ;

[0045] Figure 5 It is a structural schematic diagram of a method library management device for industrial software provided by an exemplary embodiment of the present invention;

[0046] Figure 6 is a structural diagram of an electronic device provided by an exemplary embodiment of the present invention. DETAILED DESCRIPTION

[0047] The following will be combined with the accompanying drawings in the present invention to clearly and completely describe the technical solutions in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this embodiment.

[0048] The industrial software platform integrates industrial software at various stages such as design, manufacturing, operation and maintenance, and management. Compared with the traditional production model, the industrial software platform can unify all production factors and promote the integrated and integrated development of industrial software. Therefore, it has higher requirements for the scalability of the industrial software platform.

[0049] However, for each stage, each industrial software has its own independent execution process. During the operation of the industrial software platform, a large amount of work knowledge and practical experience have been accumulated, and finally a large number of methods have been formed, and most of them exist in the form of embedded programs, that is, each execution process embeds one or more methods, which makes the data of the industrial software platform complex and the scalability poor. For example, in the equipment status monitoring and life prediction represented by steam turbines, rail transit, and machine tools, there are multiple industrial processes such as equipment information management, operation status monitoring, alarm analysis, life prediction, and production efficiency evaluation. Each process will correspond to different algorithms and processing procedures for different usage scenarios. The data is complex, which seriously hinders the effective accumulation and convenient calling on the industrial software platform. In addition, in the actual production process, there are similar operations on data between different industrial software and different stages, such as data outlier filtering, missing value filling, feature screening, and even algorithm models, which leads to poor method reusability and low development efficiency of industrial software.

[0050] Exemplary Methods

[0051] Figure 1 1 is a flow chart of a method library management method for industrial software provided by an exemplary embodiment of the present invention, which at least includes the following steps:

[0052] Step 11, determine the target scene information corresponding to the industrial software.

[0053] Among them, industrial software is software applied in the industrial field, which is the internalization and embodiment of industrial processes and technological processes. Target scenario information is used to indicate the application scenarios of industrial software, such as machine tool scenarios, steam turbine scenarios, rail transit scenarios, etc.

[0054] Specifically, different industrial software will correspond to different data operation processes in different application scenarios. Therefore, in order to accurately configure relevant method information for industrial software, it is necessary to first determine the target scenario information corresponding to the industrial software.

[0055] Step 12: Based on the target scenario information, determine a first method number combination corresponding to the industrial software; one number in the first method number combination corresponds to an industrial method, and the industrial method is encapsulated in a method library.

[0056] Among them, the method library is used to store various encapsulated industrial methods. The various industrial methods are algorithms used in the industrial field, involving algorithms required by various industrial software, and each industrial method corresponds to a number.

[0057] Each industrial software will have different data processing stages, and different data processing stages correspond to different industrial methods. Therefore, each industrial software requires multiple industrial methods. Each industrial method required by the industrial software corresponds to a method number, and these method numbers constitute the first method number combination, that is, the first method number combination is composed of the method numbers of the industrial methods required by the industrial software under the target scenario information. The industrial methods required by the industrial software refer to the industrial methods that are indispensable for achieving the execution purpose of the industrial software.

[0058] In one possible implementation, industrial methods are pre-packaged into a method library, that is, various algorithms, process flows, execution codes and other method source programs are packaged, and a unified interface is defined for calling, so as to avoid embedding the methods into the industrial software code, decouple the algorithms involved in the industrial software from the industrial software code, reduce the data complexity of the industrial software, and effectively increase the scalability of the industrial software platform.

[0059] In a possible implementation, various industrial methods encapsulated in the method library are described in advance to obtain a method description table, such as Figure 2 As shown, the method description table stores the local information of the method, including the method name, method type, method number, address of the method source program, and input and output parameter information. Therefore, after determining the industrial methods required by the industrial software, the numbers corresponding to the methods required by each industrial software can be determined according to the method description table to form the first method number combination.

[0060] In one embodiment, based on the target scenario information, at least two target methods are selected from the various industrial methods encapsulated in the method library, and the target method numbers corresponding to the at least two target methods are determined based on the method description table to obtain a first method number combination including at least two target method numbers. In this embodiment, the user can select from various industrial methods, select the target method, and then determine the target method number to obtain the first method number combination, that is, in this embodiment, the user is allowed to manually select the method and construct the first method number combination.

[0061] In one embodiment, step 12 includes:

[0062] Step 121, filtering out third combination information matching the target scene information from the second combination information stored in the combination set description table of the method library.

[0063] The combination set description table is used to store the constructed combination information, and the combination information may include applicable scenarios, first method number combinations, and method parameters corresponding to the first method number combinations. Figure 2As shown, the combination information may also include a scoring score for the first method number combination. The higher the scoring score, the higher the performance of the first method number combination, the more worthy of being widely used, and the higher the recommendation degree.

[0064] The second combination information stored in the combination set description table is the historical combination information that has been constructed in the combination set description table.

[0065] Specifically, when configuring related method information for a certain industrial software, the combination set description of the method library may already contain combination information corresponding to other industrial software, namely, the second combination information. Therefore, the historical combination information can be used to determine the first method number combination. That is, the second combination information is screened to select the third combination information that matches the target scenario information.

[0066] Furthermore, the target scene information may include scene name, scene type, optimization index, and constraint information (for example: machine tool scene—door fault classification type—classification accuracy index—fault type constraint), and the second combination information in the method library is matched and searched based on this information. Specifically, the system first searches for the second combination information corresponding to the scene name and scene type, and then checks whether the final output parameter requirements of these combination information match the scene target and whether the constraint information is satisfied. If it matches the scene target and the constraint information is satisfied, it is determined to be the third combination information.

[0067] Step 122: Determine a first method number combination corresponding to the industrial software based on the second method number combination carried by the third combination information.

[0068] Specifically, if the number of the third combination information is one, the second method number combination carried by the third combination information is determined as the first method number combination corresponding to the industrial software. If the number of the third combination information is at least two, a selection is made from the second method number components carried by each third combination information, and the second method number combination with the highest score is selected, and the second method number combination with the highest score is determined as the first method number combination. In this embodiment, a confirmation method for the first method number combination is provided, that is, automatic determination is performed based on historical combination information, and the determination efficiency is high.

[0069] In one embodiment, when there is no third combination information matching the target scene information in the second combination information, or when the first method number combination determined based on the second method number combination carried by the third combination information fails to pass the verification, that is, it cannot be determined through the historical combination information, then step 12 further includes:

[0070] Step 123: Based on the target scenario information, determine the current industrial method from among the various industrial methods encapsulated in the method library.

[0071] Specifically, the user determines the current industrial method among various industrial methods based on the target scenario information. The current industrial method refers to the currently selected industrial method. The current industrial method is not fixed, but changes continuously as the process proceeds.

[0072] Step 124, determining a recommended method based on the target scenario information, the current industrial method and the second combination information.

[0073] Specifically, after the user selects the current industrial method, a method recommendation can be made based on the second combination information. When making a method recommendation, the target scene information needs to be considered, that is, the recommended method is determined based on the target scene information, the current industrial method and the second combination information.

[0074] In one embodiment, step 124 includes:

[0075] Step 1241: Determine, in the second combination information, third combination information including the target scene information and the current industrial method, and fourth combination information including similar scene information associated with the target scene information and the current industrial method.

[0076] Step 1242: Determine a recommended method based on the third method number combination corresponding to the third combination information and the fourth method number combination corresponding to the fourth combination information.

[0077] Specifically, the second combination information stores all the method number combinations that have been formed, so the second combination information is screened to screen out the third combination information of the same scene and the fourth combination information of the similar scene. The same scene includes the third combination information of the target scene information and the current industrial method, and the similar scene uses the semantic association method to input the target scene information, determine the similar scene information associated with the target scene information, and determine the fourth combination information including the similar scene information and the current industrial method in the second combination information.

[0078] Further, the recommended method is determined according to the method number located after the current industrial method in the third method number combination corresponding to the third combination information and the method number located after the current industrial method in the fourth method number combination corresponding to the fourth combination information.

[0079] Step 125, based on the recommended method, determine the next current industrial method until all industrial methods required by the industrial software are determined.

[0080] Specifically, after determining the recommended method, when the number of recommended methods is one, the recommended method is determined as the next current industrial method, and then it is determined whether the method combination is completed, that is, all the industrial methods required for the industrial software are determined, if so, step 126 is executed, if not, step 124 is executed. When the number of recommended methods is a plurality of methods arranged in sequence, the last industrial method of the recommended method is determined as the next current industrial method, and then it is determined whether the method combination is completed, that is, all the industrial methods required for the industrial software are determined, if so, step 126 is executed, if not, step 124 is executed.

[0081] For example, Figure 3 As shown, after determining the target scene information (corresponding to Figure 3 After determining the scenario in Figure 3 In the second combination information, a query is made to determine whether there is combination information including the current industrial method. If not, the next current industrial method is manually selected, and then it is determined whether the combination is completed. If it is completed, all industrial methods required by the industrial software are determined (corresponding to Figure 3 If the method combination scheme in the middle is not completed, enter the next round of searching for the second combination information, that is, search according to the new current industrial method; if there is combination information containing the current industrial method, query the method number combination corresponding to the combination information containing the current industrial method, determine the method combination scheme in the same scenario (corresponding to the third method number combination) and the method combination scheme in similar scenarios (corresponding to the fourth method number combination), and determine the recommended method for the next or next positions based on the method combination scheme in the same scenario and the method combination scheme in similar scenarios. Among the recommended methods, select the next current industrial method and determine whether the combination is completed. If completed, determine all industrial methods required for the industrial software (corresponding to Figure 3 If the method combination scheme is not completed, enter the next round of searching for the second combination information, that is, search according to the new current industrial method, so as to pass the loop program until all the industrial methods required for the industrial software are determined and the construction is completed.

[0082] Step 126, based on the method description table obtained by describing each industrial method in the method library, determine the first method number combination corresponding to all the industrial methods required by the industrial software.

[0083] Specifically, each industrial method in the method library is described in advance to obtain a method description table, which is used to store the ontological information of the method, including the method name, method type, method number, address of the method source program, and input and output parameter information. Therefore, after determining all the industrial methods required for the industrial software, the first method number combination is determined according to the method number in the method description. Of course, for the industrial methods required for the industrial software determined based on the recommended method, the method number can be determined according to the relevant third method number combination or fourth method number combination.

[0084] In one embodiment, after the first method number combination is constructed, the system will preliminarily verify whether the method combination order is feasible (data flow between methods is normal), whether key steps are missing (some method input parameters are missing), whether there is redundancy and conflict (output the same result, data operation is excluded) based on the input-output relationship of the method, and then make corresponding adjustments (replacement, reversing the order, adding methods). If the preliminary verification fails, a new first method number combination is determined.

[0085] In one embodiment, according to the data processing process, the method is divided into four major steps: data preprocessing, feature processing, model calculation, and result display. Each step corresponds to many different methods. Therefore, when selecting the industrial method required for each industrial software, it can be screened step by step according to the steps, that is, the method is selected according to the process of data preprocessing-feature processing-model calculation. In each selection process, personalized recommendation is performed. Personalized recommendation refers to the method recommendation based on the third method number combination of the same scenario or the fourth method number combination of similar scenarios with semantic associations; specifically, when the user selects a current industrial method, the system gives the next method or method group that can be connected to it according to the corresponding relationship between the input and output of the current industrial method, and further selects the method with the best effect (related to the evaluation score) and the highest frequency according to the historical combination information for recommendation, so as to quickly and accurately determine the first method number combination.

[0086] Step 13, based on the indicator constraints carried by the target scenario information, verify the first method number combination, and if the verification fails, determine a new first method number combination; if the verification passes, based on the target scenario information, the first method number combination, and the method parameters corresponding to the first method number combination, add the first combination information corresponding to the industrial software to the combination set description table of the method library, so that when the industrial software under the target scenario information is run, the target data is obtained based on the first combination information, the target method is called, and the software execution result is obtained.

[0087] The target scene information not only carries the scene name, but also carries an indicator constraint condition, which is used to verify the first method number combination obtained. The indicator constraint condition is a preset parameter, and the user can set its content according to the actual application scenario. The indicator constraint condition can be a classification accuracy indicator.

[0088] The combination set description table is a table constructed in the method library to record the combination information corresponding to each industrial software. The combination information corresponding to the industrial software is used to describe the relevant information of the first method number combination of the industrial software, and is used to indicate the content related to the industrial software method. Exemplarily, the combination information may include target scenario information, the first method number combination, and method parameters, and the method parameters refer to the input and output parameters corresponding to the industrial methods in the first method number combination.

[0089] Specifically, after obtaining the first method number combination, the first method number combination is verified to verify whether the first method number combination meets the indicator constraint condition. If it meets the condition, the verification is passed, and the target scene information, the first method number combination, and the method parameters corresponding to the first method number combination are used as the first combination information of the industrial software. The first combination information is added to the combination set description table of the method library, and an association relationship between the first combination information and the industrial software is established in the combination set description table. Thus, when running the industrial software under the target scene information, the method library is called to obtain the target data in the database based on the method parameters in the first combination information, and the target method is called based on the method number in the first method number combination to obtain the software execution result.

[0090] In one embodiment, the first combination information includes not only the target scene information, the first method number combination, and the method parameters corresponding to the first method number, but also the scoring score. If the verification is passed, the scoring score of the first method number combination is determined based on the verification result and the indicator constraint condition, and the target scene information, the first method number combination, the method parameters corresponding to the first method number combination, and the scoring score are added as the first combination information to the combination set description table of the method library.

[0091] In one embodiment, the step 13 of verifying the first method number combination based on the indicator constraint condition carried by the target scene information includes:

[0092] Step 131 : acquiring test data from a database based on the method parameters corresponding to the first method number combination.

[0093] Specifically, each method number in the first method number combination corresponds to an industrial method, and the industrial method corresponds to input and output parameters, namely method parameters. According to the method parameters corresponding to the first method number combination, the test data corresponding to the method parameters in the database are obtained.

[0094] Step 132, in the simulation environment constructed in the method library, based on the test data, calling the target method corresponding to the first method number combination to determine the test execution result.

[0095] Specifically, in this embodiment, a simulation environment is built in the method library for simulation testing, that is, to verify the first method number combination. In the simulation environment, the test data is passed to the target method corresponding to the first method number combination, and the target methods are called in sequence according to the number sequence in the first method number combination until the target method corresponding to the last method number is calculated and the test execution result is obtained.

[0096] For example, considering that industrial methods in the industrial field may be developed in different languages, it is necessary to build a unified algorithm service framework based on the .net core compilation environment and cross-language compilation support tools represented by Iron Python to support model calls and running tests in multiple languages.

[0097] Step 133, when the test execution result does not meet the indicator constraint condition, determine the verification result as verification failure; when the test execution result meets the indicator constraint condition, determine the verification result as verification pass.

[0098] Specifically, it is determined whether the test execution structure meets the indicator constraint conditions. If so, the verification is passed; if not, the verification is failed.

[0099] In one embodiment, in step 13, if the verification fails, determining a new first method number combination includes:

[0100] Step 134: Based on the verification result that failed the verification, determine the method number to be replaced.

[0101] Specifically, when the verification fails, it indicates that there is a problem with the determined first method number combination and adjustment is required, so the verification result is analyzed to determine the method number to be replaced that has a problem in the first method number combination. For example, the verification result may be that it is filtered out as an outlier during data preprocessing, and a new outlier filtering method needs to be selected. At this time, the outlier filtering method in the first method number combination is the method to be replaced, and the number corresponding to the outlier filtering method is the method number to be replaced.

[0102] Step 135 , determining a new method number based on the industrial methods in the method library that belong to the same method type as the method number to be replaced.

[0103] Specifically, each industrial method in the method library corresponds to its own method type. Therefore, after determining the method type of the method number to be replaced, a new method number is determined from the industrial methods in the method library that belong to the same method type as the method number to be replaced.

[0104] Step 136: In the first method number combination, the method number to be replaced is replaced with the new method number to obtain a new first method number combination.

[0105] Specifically, the method number to be replaced in the first method number combination is replaced with the new method number, thereby obtaining a new first method number combination. In this embodiment, data feedback is performed through the verification result, which is conducive to quickly establishing an accurate first method number combination.

[0106] For example, Figure 4 As shown, there are two tables in the method library, one is a method description table, and the other is a combination set description table. When configuring relevant method information for industrial software, the method combination scheme can be determined by user selection and personalized recommendation. The method combination scheme is all the industrial methods required by the determined industrial software, and then the method combination scheme is preliminarily verified. If the preliminary verification passes, the first method number combination is determined, and based on the method parameters corresponding to the first method number combination, test data is obtained in the database to perform simulation verification in a simulation environment, determine the verification result, and if the verification result shows that the verification has not passed, feedback update is performed according to the verification result until the verification result shows that the verification has passed, and the first combination information corresponding to the first method number combination is added to the combination set description table.

[0107] In one embodiment, the method further comprises:

[0108] Step 14, determining the method type corresponding to each industrial method in the method library; the method type includes data preprocessing, feature processing, model calculation and result display.

[0109] Specifically, the method types corresponding to each industrial method in the method library are determined in advance. In a possible implementation, different method types are classified and stored, so that the method type corresponding to each industrial method can be determined quickly and accurately, which is conducive to the selection of new method numbers.

[0110] In one embodiment, the method library includes a source code module, a description table module, a function set construction module, and a simulation verification module. The industrial methods in the method library are encapsulated in Python language and uniformly represented as files in py format, which are saved in the source code module of the method library. The description table module stores the method description table and the function set description table as well as the query call interface. The function set construction module is responsible for combining and preliminarily verifying the industrial methods, and the simulation verification module verifies and provides feedback on the combination results.

[0111] In a possible application scenario, taking the two industrial processes of fault classification and life prediction of machine tools as an example, the methods involved are classified and stored according to the four major types of data preprocessing, feature processing, model operation, and result display. As shown in the following table, data preprocessing includes data merging, missing value filling, outlier filtering, and data splitting methods; feature processing includes maximum likelihood factor analysis, principal component analysis, singular value decomposition, Apriori association rule, and maximum frequent item mining algorithm; model operation includes Bayesian network classification, gradient boosting classification, long short-term memory neural network classification, random forest classification, nearest neighbor regression, and support vector machine regression methods; and result display includes line chart display, bar chart display, matrix display and other methods.

[0112]

[0113] In order to facilitate the management of each method, a method description table and a combination set description table are designed to describe the method information. For example, the isolated forest outlier filtering method in the method description table is expressed as: isolated forest outlier filtering (method name) - data preprocessing (type) - 01031 (number) - %url (source program address) - dataparam variable (input and output parameter information); in the combination set description table, a certain combination information is expressed as: machine tool fault classification (applicable scenario) - 01031.01043.02011.03002.01001 (combination set number group) - 0.9874 (scoring score) - param variable (input and output information).

[0114] When configuring method information for a certain industrial software in the machine tool fault classification scenario, the evaluation criteria are mainly the accuracy of classification, and the constraint factors are mainly the fault type constraints, that is, all faults must be retained. After determining the target scenario information, industrial method combination is required. At this time, the system will recommend the third combination information corresponding to the machine tool fault classification scenario. First, check whether the input fault data outputs the fault classification result, and then check whether a certain fault type is missing. Finally, select the second method number combination with the highest evaluation score (such as 01031.01043.02011.03002.01001 method number group) from the results that meet the output and constraints as the first method number combination.

[0115] If the user conditions are not met, a custom selection is performed. First, the Isolation Forest Outlier Filtering Method is selected from the data preprocessing method. The system will then search for the third method number combination containing this method number from the combination information in this scenario, and select one or more number groups with the highest evaluation scores for reference to recommend the next industrial method. In order to avoid the problem of repeated recommendations due to too small a sample size, the system will also obtain the fourth method number combination from other scenarios (i.e. similar scenarios, such as old traffic fault classification) for heuristic recommendations, and then gradually recommend all the industrial methods required by the industrial software.

[0116] It is difficult to ensure the effectiveness of the method combination through custom selection, so preliminary verification of its feasibility is also required. The preliminary verification is mainly achieved by the corresponding relationship between input and output, and there are three main processes: analyzing whether the data flow between the methods is smooth, whether the method combination sequence is feasible, whether the analysis method lacks key parameters, whether the key steps are missing, whether the analysis method will generate the same results or the data operations are mutually exclusive, and whether the methods are redundant or conflicting; after the detection is completed, corresponding adjustments are made, including replacing methods, changing the execution order, adding new methods, etc.

[0117] Next, the method function set is verified by building a simulation environment in the method library, and the first method number combination is further adjusted through the simulation results. After the test is correct, it is added to the method library and the combination set description table is updated. In the system's simulation environment, the data changes between methods can be displayed and the output results can be graphically displayed, which facilitates the adjustment of the method.

[0118] In the above embodiment, by determining the target scenario information corresponding to the industrial software; then based on the target scenario information, determining the first method number combination corresponding to the industrial software; one number in the first method number combination corresponds to an industrial method, and the industrial method is encapsulated in the method library; further based on the indicator constraint conditions carried by the target scenario information, the first method number combination is verified, and if the verification fails, a new first method number combination is determined, and then a new round of verification environment is performed until the verification passes; if the verification passes, based on the target scenario information, the first method number combination, and the method parameters corresponding to the first method number combination, the first combination information corresponding to the industrial software is added to the combination set description table of the method library, so that when the industrial software under the target scenario information is run, the target data is obtained based on the first combination information, the target method is called, and the software execution result is obtained. The technical solution provided by the present invention encapsulates the industrial method in the method library, and constructs a combination set description table in the method library, the combination set description table is used to describe the combination information of the industrial software, and the combination information can provide method information related to the industrial software when running the industrial software, so as to obtain the target data, call the target method, and obtain the software execution result. The method library decouples industrial methods from industrial execution codes, effectively improving the scalability of the industrial software platform. The combination set description table makes the expansion of the industrial software platform simple and easy.

[0119] Exemplary Devices

[0120] Based on the same concept as the method embodiment of the present invention, the embodiment of the present invention also provides a method library management device for industrial software.

[0121] Figure 5 A schematic diagram of the structure of a method library management device for industrial software provided by an exemplary embodiment of the present invention is shown, comprising:

[0122] An information determination module 51 is used to determine target scene information corresponding to the industrial software;

[0123] A number determination module 52 is used to determine a first method number combination corresponding to the industrial software based on the target scenario information; one number in the first method number combination corresponds to an industrial method, and the industrial method is encapsulated in a method library;

[0124] The information adding module 53 is used to verify the first method number combination based on the indicator constraint conditions carried by the target scenario information, and determine a new first method number combination if the verification fails; if the verification passes, based on the target scenario information, the first method number combination and the method parameters corresponding to the first method number combination, the first combination information corresponding to the industrial software is added to the combination set description table of the method library, so that when the industrial software under the target scenario information is run, the target data is obtained based on the first combination information, the target method is called, and the software execution result is obtained.

[0125] In an exemplary embodiment of the present invention, the number determination module includes:

[0126] A combination information screening unit, configured to screen out third combination information matching the target scene information from the second combination information stored in the combination set description table of the method library;

[0127] The first coding determination unit is used to determine a first method number combination corresponding to the industrial software based on the second method number combination carried by the third combination information.

[0128] In an exemplary embodiment of the present invention, the number determination module further includes:

[0129] an industrial method selection unit, configured to determine a current industrial method from among the industrial methods encapsulated in the method library based on the target scene information when there is no third combination information matching the target scene information in the second combination information, or when the first method number combination determined based on the second method number combination carried by the third combination information fails to pass verification;

[0130] a recommended method determination unit, configured to determine a recommended method based on the target scenario information, the current industrial method and the second combination information;

[0131] A loop construction processing unit is used to determine the next current industrial method based on the recommended method until all industrial methods required by the industrial software are determined;

[0132] The second coding determination unit is used to determine the first method number combination corresponding to all the industrial methods required by the industrial software based on the method description table obtained by describing each industrial method in the method library.

[0133] In an exemplary embodiment of the present invention, the recommended method determination unit is also used to determine, in the second combination information, third combination information including the target scene information and the current industrial method, and fourth combination information including similar scene information associated with the target scene information and the current industrial method; and determine the recommended method based on the third method number combination corresponding to the third combination information and the fourth method number combination corresponding to the fourth combination information.

[0134] In an exemplary embodiment of the present invention, the information adding module includes:

[0135] A test data acquisition unit, configured to acquire test data from a database based on method parameters corresponding to the first method number combination;

[0136] A test result determination unit, configured to call a target method corresponding to the first method number combination based on the test data in a simulation environment constructed in the method library to determine a test execution result;

[0137] The verification result determination unit is used to determine that the verification result is a failed verification if the test execution result does not meet the indicator constraint condition; and to determine that the verification result is a passed verification if the test execution result meets the indicator constraint condition.

[0138] In an exemplary embodiment of the present invention, the information adding module includes:

[0139] A replacement code determination unit, comprising determining a method number to be replaced based on a verification result that failed the verification;

[0140] A new code selection unit, used to determine a new method number based on an industrial method in the method library that belongs to the same method type as the method number to be replaced;

[0141] The coding replacement processing unit is used to replace the method number to be replaced with the new method number in the first method number combination to obtain a new first method number combination.

[0142] In an exemplary embodiment of the present invention, the method library management device for industrial software further includes:

[0143] The method type determination module is used to determine the method type corresponding to each industrial method in the method library; the method type includes data preprocessing, feature processing, model calculation and result display.

[0144] Exemplary Electronic Devices

[0145] Figure 6 A block diagram of an electronic device according to an embodiment of the present invention is illustrated.

[0146] like Figure 6 As shown, the electronic device 60 includes one or more processors 61 and a memory 62 .

[0147] The processor 61 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 60 to perform desired functions.

[0148] The memory 62 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 61 may run the program instructions to implement the method library management method for industrial software and / or other desired functions of the various embodiments of the present invention described above.

[0149] In one example, the electronic device 60 may further include: an input device 63 and an output device 64, and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0150] Of course, to simplify, Figure 6 Only some of the components related to the present invention in the electronic device 60 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application conditions, the electronic device 60 may also include any other appropriate components.

[0151] Exemplary computer program products and computer-readable storage media

[0152] In the sixth aspect, in addition to the above-mentioned methods and devices, an embodiment of the present invention may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the method library management method for industrial software according to various embodiments of the present invention described in the above "Exemplary Method" section of this specification.

[0153] The computer program product may be written in any combination of one or more programming languages ​​to write program code for performing the operations of the embodiments of the present invention, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0154] In addition, an embodiment of the present invention may also be a computer-readable storage medium having computer program instructions stored thereon, wherein when the computer program instructions are executed by a processor, the processor executes the steps of the method library management method for industrial software according to various embodiments of the present invention described in the above “Exemplary Method” section of this specification.

[0155] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0156] The basic principle of the present invention is described above in conjunction with specific embodiments. However, it should be pointed out that the advantages, strengths, effects, etc. mentioned in the present invention are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. must be possessed by each embodiment of the present invention. In addition, the specific details of the above invention are only for the purpose of illustration and facilitation of understanding, rather than limitation, and the above details do not limit the present invention to being implemented by adopting the above specific details.

[0157] The block diagrams of the devices, apparatuses, equipment, and systems involved in the present invention are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The word "such as" used here refers to the phrase "such as but not limited to", and can be used interchangeably with it.

[0158] It should also be noted that in the device, apparatus and method of the present invention, each component or each step can be decomposed and / or reassembled, and such decomposition and / or reassembly should be regarded as an equivalent solution of the present invention.

[0159] The above description of the invented aspects is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present invention. Therefore, the present invention is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features of the present invention.

[0160] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present invention to the form invented herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A method library management method for industrial software, characterized in that: include: Determine the target scenario information corresponding to the industrial software; Based on the target scenario information, a first method number combination corresponding to the industrial software is determined; one number in the first method number combination corresponds to an industrial method, and the industrial method is encapsulated in a method library; Based on the indicator constraint conditions carried by the target scenario information, the first method number combination is verified, and if the verification fails, a new first method number combination is determined; if the verification passes, based on the target scenario information, the first method number combination, and the method parameters corresponding to the first method number combination, the first combination information corresponding to the industrial software is added to the combination set description table of the method library, so that when the industrial software under the target scenario information is run, the target data is obtained based on the first combination information, the target method is called, and the software execution result is obtained; The determining, based on the target scenario information, a first method number combination corresponding to the industrial software includes: Filtering out third combination information matching the target scene information from the second combination information stored in the combination set description table of the method library; Based on the second method number combination carried by the third combination information, determining a first method number combination corresponding to the industrial software; The step of determining a new first method number combination when the verification fails comprises: Based on the verification result that failed the verification, the method number to be replaced is determined; Determine a new method number based on an industrial method in the method library that belongs to the same method type as the method number to be replaced; In the first method number combination, the method number to be replaced is replaced with the new method number to obtain a new first method number combination.

2. The method according to claim 1, characterized in that When there is no third combination information matching the target scenario information in the second combination information, or when the first method number combination determined based on the second method number combination carried by the third combination information fails to pass verification, determining the first method number combination corresponding to the industrial software based on the target scenario information includes: Based on the target scenario information, determining a current industrial method among various industrial methods encapsulated in the method library; Determining a recommended method based on the target scenario information, the current industrial method and the second combination information; Based on the recommended method, determining the next current industrial method until all industrial methods required for the industrial software are determined; Based on a method description table obtained by describing each industrial method in the method library, a first method number combination corresponding to all industrial methods required by the industrial software is determined.

3. The method according to claim 2, characterized in that The determining of a recommendation method based on the target scenario information, the current industrial method and the second combination information includes: In the second combination information, third combination information including the target scene information and the current industrial method, and fourth combination information including similar scene information associated with the target scene information and the current industrial method are determined; A recommended method is determined based on the third method number combination corresponding to the third combination information and the fourth method number combination corresponding to the fourth combination information.

4. The method according to claim 1, characterized in that: The verifying the first method number combination based on the indicator constraint condition carried by the target scene information includes: Acquiring test data in a database based on method parameters corresponding to the first method number combination; In the simulation environment constructed in the method library, based on the test data, calling the target method corresponding to the first method number combination to determine the test execution result; If the test execution result does not meet the indicator constraint condition, the verification result is determined to be verification failure; if the test execution result meets the indicator constraint condition, the verification result is determined to be verification pass.

5. The method according to claim 1, characterized in that Before the step of determining a new method number in the industrial method of the same method type as the method number to be replaced in the method library, the method further comprises: Determine the method type corresponding to each industrial method in the method library; the method type includes data preprocessing, feature processing, model calculation and result display.

6. A method library management device for industrial software, characterized in that: include: An information determination module, used to determine the target scene information corresponding to the industrial software; A number determination module, used to determine a first method number combination corresponding to the industrial software based on the target scenario information; one number in the first method number combination corresponds to an industrial method, and the industrial method is encapsulated in a method library; An information adding module is used to verify the first method number combination based on the indicator constraint conditions carried by the target scenario information, and determine a new first method number combination if the verification fails; if the verification passes, based on the target scenario information, the first method number combination, and the method parameters corresponding to the first method number combination, add the first combination information corresponding to the industrial software in the combination set description table of the method library, so that when the industrial software under the target scenario information is run, the target data is obtained based on the first combination information, the target method is called, and the software execution result is obtained; The number determination module is specifically used to screen out third combination information matching the target scene information from the second combination information stored in the combination set description table of the method library; and determine the first method number combination corresponding to the industrial software based on the second method number combination carried by the third combination information; The information adding module is specifically used to determine the method number to be replaced based on the verification result that failed the verification; determine the new method number based on the industrial methods in the method library that belong to the same method type as the method number to be replaced; in the first method number combination, replace the method number to be replaced with the new method number to obtain a new first method number combination.

7. A computer-readable storage medium storing a computer program, wherein the computer program is used to execute the method library management method for industrial software according to any one of claims 1 to 5.

8. An electronic device, comprising: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method library management method for industrial software as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Recommending method and recommending system based on internet

    CN103324619A

  • User work scene fast recovery method and device in video monitoring system

    CN105068788A

  • Business scene-based accounting method and device

    CN107392744A

  • Workflow-based decision-making method, control equipment and storage medium

    CN112163830A

  • Millimeter wave radar detection system and detection method based on visual information

    CN112946627A