Industrial control system logic optimization method and system based on natural language large model

Through the industrial control system logic optimization method based on natural language large models, industrial control logic is generated and optimized, and exclusive models for specific scenarios are used for logic optimization, which solves the problems of low efficiency and poor adaptability of traditional methods, and achieves efficient and intelligent control. Logic optimization.

CN118331152BActive Publication Date: 2024-10-11山东和信智能科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410640479.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-10-11
Estimated Expiration
2044-05-22

AI Technical Summary

Technical Problem

Traditional industrial control system logic optimization methods rely on engineers’ experience and manual adjustments, which are inefficient and difficult to adapt to rapidly changing production needs. Moreover, control links and modules are easily overlooked in complex logic structures, and there is a lack of effective tools and methods.

Method used

Adopt an industrial control system logic optimization method based on a large natural language model. By obtaining the keywords of the control logic to be optimized, a complete configuration logic language is generated, scored and fed back, the logic is optimized, and the optimized results are used for secondary training. , to obtain an exclusive large model for specific industrial scenarios for logic optimization.

Benefits of technology

It improves the adaptability and intelligence level of the control system, ensures the accuracy and reliability of the optimization results, meets the efficient and intelligent control logic optimization needs of modern industrial production, and solves the limitations of traditional methods in terms of efficiency and adaptability. sex.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118331152B_ABST
    Figure CN118331152B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of artificial intelligence and industrial control technology, and provides an industrial control system logic optimization method and system based on a natural language big model, including obtaining keywords of the control logic to be optimized, inputting the keywords into the natural language big model, generating a complete configuration logic language of the control logic to be optimized and scoring and feedback thereof, performing logic optimization on the generated complete configuration logic language of the control logic to be optimized according to the scoring and feedback, performing secondary training on the natural language big model using the complete configuration logic language after logic optimization to obtain an exclusive big model for a specific industrial scene, and performing logic optimization on the control logic to be optimized using the exclusive big model for a specific industrial scene. The present invention can enhance the adaptability and intelligence level of the control system, thereby meeting the urgent needs of modern industrial production for efficient and intelligent control logic optimization methods, and solving the problem that traditional optimization methods are limited in efficiency and adaptability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of artificial intelligence and industrial control technology, and in particular to a method and system for optimizing industrial control system logic based on a natural language large model. Background Art

[0002] The statements in this section merely provide background information related to the present disclosure and do not necessarily constitute prior art.

[0003] The control logic of industrial control systems is the core to ensure the smooth progress of the production process, and plays a vital role in improving production efficiency and ensuring the safe and stable operation of equipment. It involves multiple aspects such as monitoring of production equipment, generation and execution of operating instructions, and handling of abnormal situations. With the expansion of system scale and the increase of functions, the control logic has become more and more complex, and the difficulty of optimization has also increased. Traditional logic optimization methods rely on engineers' experience and manual adjustments, which are not only time-consuming and labor-intensive, but also difficult to adapt to rapidly changing production needs. Usually, engineers need to make reasonable control strategy improvement suggestions based on the characteristics of the existing production process and their familiarity with the control logic, and adjust a large number of control parameters to achieve the purpose of optimizing the control logic. However, due to the lack of effective tools and methods, this process often requires a lot of trial and error and manual intervention, which is inefficient and prone to errors. Especially when the logic structure is complex, engineers modify the logic based on their personal experience alone, and often ignore some control links and modules. Therefore, how to efficiently and intelligently optimize the control logic of industrial control systems has become a technical problem that needs to be solved in this field.

[0004] On the other hand, natural language processing (NLP) technology has made significant progress in recent years, especially in large pre-trained language models. These models can understand and generate natural language by learning massive text data, and are widely used in tasks such as machine translation, sentiment analysis, and text summarization. Industrial control logic is essentially described and specified by a type of normative programming language. The relevant languages ​​mainly follow the IEC 61131-3 standard, such as: Instruction List Diagram (ILD), Ladder Diagram (LD), Function Block Diagram (FBD), Structured Text Language (STL) and Sequential Function Chart (SFC).

[0005] The advantage of the large natural language model lies in its excellent semantic understanding and generation capabilities. Through deep learning technology, the model can capture the complex semantic relationships in natural language and perform logical reasoning on this basis. This is of great significance for understanding and optimizing the complex control logic in industrial control systems. Therefore, through the large natural language model, we can convert the control logic into a configuration logic language description and use the semantic understanding ability of the model to analyze and optimize the control strategy. In addition, large pre-trained models usually have good transfer learning capabilities and can also be fine-tuned for specific industrial scenarios to adapt to different control needs.

[0006] Although natural language large models have potential application value in the logical optimization of industrial control systems, how to effectively integrate them with industrial control systems, how to process and interpret large amounts of industrial data, and how to ensure the accuracy and reliability of optimization results are key technical issues that need to be solved. Summary of the invention

[0007] In response to the above-mentioned defects, the present invention proposes a method and system for industrial control system logic optimization based on a natural language large model, which can enhance the adaptability and intelligence level of the control system and meet the urgent needs of modern industrial production for efficient and intelligent control logic optimization methods.

[0008] In order to achieve the above objectives, the present disclosure adopts the following technical solutions:

[0009] The first aspect of the present disclosure provides a method for optimizing the logic of an industrial control system based on a natural language large model, comprising the following steps:

[0010] Obtain keywords for the control logic to be optimized;

[0011] Input keywords into the natural language large model, generate the complete configuration logic language of the control logic to be optimized, and give scoring and feedback;

[0012] Perform logic optimization on the complete configuration logic language of the generated control logic to be optimized according to the scores and feedback;

[0013] Use the complete configuration logic language after logic optimization to conduct secondary training on the natural language big model to obtain a dedicated big model for a specific industrial scenario;

[0014] Use the exclusive large model of the specific industrial scenario to perform logical optimization on the control logic to be optimized.

[0015] As a further implementation method, it also includes establishing a standard configuration logic language knowledge base, and the natural language large model generates a complete configuration logic language of the control logic to be optimized based on the input keywords and referring to the configuration logic language knowledge base.

[0016] As a further implementation method, keywords of the control logic to be optimized are obtained, specifically: using a natural language big model to extract keywords of the control logic from the material of the control logic to be optimized, the keywords include the names and mathematical parameters of the basic logic in the configuration logic.

[0017] As a further implementation method, the generated complete configuration logic language of the control logic to be optimized is scored and fed back. For the complete configuration logic language with a score lower than a set threshold, the natural language large model is re-generated until the score exceeds the set threshold.

[0018] As a further implementation method, according to the optimization needs and risk notifications fed back by users, the complete configuration logic language generated by the natural language large model is structurally optimized and parameter adjusted to obtain the complete configuration logic language after logic optimization.

[0019] As a further implementation method, the complete configuration logic language that has not been scored and whose score is not less than a set threshold is manually reviewed and confirmed to ensure feasibility and safety.

[0020] As a further implementation, the natural language large model has multimodal processing capabilities and can understand and interpret control logic pictures.

[0021] A second aspect of the present disclosure provides an industrial control system logic optimization system based on a natural language large model, comprising:

[0022] The data acquisition module is configured to: acquire keywords of the control logic to be optimized;

[0023] The logic language generation module is configured to: input keywords into the natural language large model, generate a complete configuration logic language of the control logic to be optimized, and score and provide feedback thereon;

[0024] The logic language optimization module is configured to: perform logic optimization on the complete configuration logic language of the generated control logic to be optimized according to the score and feedback;

[0025] The secondary training module is configured to: use the complete configuration logic language after logic optimization to perform secondary training on the natural language big model to obtain an exclusive big model for a specific industrial scenario;

[0026] The execution module is configured to perform logic optimization on the control logic to be optimized using a dedicated large model of a specific industrial scenario.

[0027] The third aspect of the present disclosure provides a medium on which a program is stored. When the program is executed by a processor, the steps in the industrial control system logic optimization method based on a natural language large model described in the first aspect of the present disclosure are implemented.

[0028] The fourth aspect of the present disclosure provides an electronic device, including a memory, a processor, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in the industrial control system logic optimization method based on a natural language large model described in the first aspect of the present disclosure are implemented.

[0029] Compared with the prior art, the present invention has the following beneficial effects:

[0030] The disclosed method and system for optimizing the logic of an industrial control system based on a natural language big model effectively integrates the natural language big model with the industrial control system, fully utilizes the excellent semantic understanding and generation capabilities of the natural language big model, optimizes the complex control logic in the industrial control system in combination with the optimization requirements and risk notifications fed back by users, and manually reviews and confirms the optimization results of the control logic to ensure the accuracy and reliability of the optimization results. The natural language big model is trained twice using the optimized high-quality training samples to obtain an exclusive big model for a specific industrial scenario, and then the exclusive big model for the specific industrial scenario is used to perform logic optimization on the control logic to be optimized, so as to better capture the language and logic characteristics of the specific industrial scenario. The disclosed method can enhance the adaptability and intelligence level of the control system, and meet the urgent needs of modern industrial production for efficient and intelligent control logic optimization methods. The problem of limitations of traditional optimization methods in terms of efficiency and adaptability is solved.

[0031] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The accompanying drawings constituting a part of the present disclosure are used to provide a further understanding of the present disclosure. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation on the present disclosure.

[0033] Figure 1 It is a framework diagram of the disclosed industrial control system logic optimization method based on the natural language big model;

[0034] Figure 2 is a flow chart of the industrial control system logic optimization method based on the natural language big model disclosed in the present invention;

[0035] Figure 3 It is a framework diagram of the secondary training of the large model disclosed in the present invention. DETAILED DESCRIPTION

[0036] The present disclosure is further described below in conjunction with the accompanying drawings and embodiments.

[0037] It should be noted that the following detailed descriptions are all illustrative and are intended to provide further explanation of the present disclosure. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present disclosure belongs.

[0038] In the absence of conflict, the embodiments in the present disclosure and the features in the embodiments may be combined with each other.

[0039] Embodiment 1

[0040] like Figure 1-3 As shown, the first embodiment of the present disclosure provides an industrial control system logic optimization method based on a natural language large model, comprising the following steps:

[0041] S1 obtains the keywords of the control logic to be optimized;

[0042] S2 inputs keywords into the natural language large model, generates the complete configuration logic language of the control logic to be optimized, and scores and provides feedback on it;

[0043] S3 performs logic optimization on the complete configuration logic language of the generated control logic to be optimized according to the scores and feedback;

[0044] S4 uses the complete configuration logic language after logic optimization to conduct secondary training on the natural language big model to obtain a dedicated big model for a specific industrial scenario;

[0045] S5 uses a large model dedicated to a specific industrial scenario to perform logical optimization on the control logic to be optimized.

[0046] Before using the disclosed industrial control system logic optimization method based on natural language big model to perform logic optimization, it is necessary to first establish a standard configuration logic language knowledge base. The natural language big model generates a complete configuration logic language of the control logic to be optimized based on the input keywords and with reference to the configuration logic language knowledge base.

[0047] Collect control logic cases described in a given configuration logic language as a knowledge base. The cases include but are not limited to the comparison of two control logics before and after optimization expressed in the language, or the comparison of the same control logic expressed in the configuration logic language described in other understandable languages. The cases appear in text, character or picture formats such as doc, docx, pdf, png, etc. A single file can contain multiple cases. Establish a knowledge base named after the configuration language, and build a keyword search engine and vector search engine for the knowledge base to achieve corpus segmentation of case files. Build a re-ranking engine to meet the model's re-ranking of multiple search results.

[0048] Each configuration logic language has its own uniquely identified knowledge base, and the knowledge base can be single-selected or multi-selected during the optimization of a specific control logic.

[0049] S1 obtains the keywords of the control logic to be optimized by using a large natural language model to extract keywords of the control logic from the material of the control logic to be optimized. The keywords include the names and mathematical parameters of the basic logic in the configuration logic. The specific process algorithm of extracting keywords using the large natural language model adopts the existing technology.

[0050] The material of the control logic to be optimized may be text information composed of understandable languages ​​such as natural language, formal language containing letters and special symbols, or a picture containing a configuration logic structure.

[0051] The natural language large model extracts control logic keywords from the above materials. Keywords include the names of basic logic in the configuration logic and mathematical parameters. After this step, the user needs to make manual judgments on the keywords and mathematical parameters. If errors occur in the generated results, the user can modify the extracted keywords and mathematical parameters at any time. The model extracts keywords in ways that include, but are not limited to, methods, means or technologies using natural language word segmentation or image recognition.

[0052] The complete configuration logic language of S2 control logic to be optimized is generated by the natural language large model through the existing neural network calculation process, including two schemes: one-time generation of the complete configuration logic language of the control logic to be optimized or incremental generation of the complete configuration logic language of the control logic to be optimized.

[0053] Among them, the complete configuration logic language of the control logic to be optimized is generated at one time, specifically: based on the control logic material to be optimized (understandable language text or pictures) input by the user and the keywords obtained by the model, the model generates the complete configuration logic language of the control logic to be optimized that conforms to the grammatical rules of the corresponding configuration language with reference to the knowledge base of the configuration logic language. The complete configuration logic language here includes the keywords and parameters of each control node, as well as the logical relationship between the control nodes.

[0054] The complete configuration logic language of the control logic to be optimized is generated progressively, specifically: first, including but not limited to using drag-and-drop or manually inputting the keywords and parameters of the control logic to be optimized into a module defined in a certain computer language, and the model gradually generates the corresponding configuration logic language for each module that has been input. Secondly, the connection between the modules is specified manually, and the connected modules automatically give the connection relationship expressed in the configuration logic language or other understandable language. Finally, the model integrates the information of each module and the manually specified connection method to generate the complete configuration logic language of the control logic to be optimized.

[0055] The complete configuration logic language of the control logic to be optimized formed by the two schemes is presented in the form of prompt words.

[0056] The results generated by the model need to be scored by the model itself (optional) and confirmed manually (required). The process of model self-scoring is to evaluate the correlation between the generated complete configuration logic language results and the material of the control logic to be optimized. The evaluation method uses text similarity calculation to compare the distance between the two ends of the text after vectorization and give a score. It can also be sent directly to the natural language model in the form of prompt words to let it evaluate the two. The higher the score, the more consistent the results generated by the model are with the material of the control logic to be optimized. If the score is lower than a threshold, then the model needs to regenerate the complete configuration logic language of the control logic to be optimized until the score exceeds the threshold.

[0057] The complete configuration logic language that has not been scored and whose score is not less than the set threshold needs to be manually reviewed and confirmed to ensure feasibility and safety. The confirmation process includes but is not limited to the understanding of the syntax, semantics, logic, and control logic of the generated results. For detailed errors in the configuration logic language of the control logic to be optimized, the manual confirmation process requires manual error correction until the expected results are generated.

[0058] The results generated by the model need to be logically optimized. The optimization process includes but is not limited to the optimization of the structure of the generated results, the optimization of the control logic, and the adjustment of the control parameters. The generation of the optimization plan needs to take into account factors such as the complexity of the control logic, the optimization target, the optimization method, the optimization range, the accuracy and reliability of the optimization results.

[0059] S3 performs logic optimization on the complete configuration logic language of the generated control logic to be optimized based on the scores and feedback.

[0060] First, the configuration logic language of the control logic to be optimized is presented to the model in the form of a prompt word context. The user submits the prompt word context and the optimization requirements to the model. The optimization requirements should include three parts: structural optimization target, parameter optimization direction, amplitude, etc., and post-optimization risk notification. The user can also propose general optimization goals, such as: "Can this control logic be optimized?", "The adjustment rate of this control logic is too slow, how to improve it?".

[0061] The description of control risk can also appear in the prompt word context, and after the "generated result scoring and confirmation" step is completed, it will be provided to the user as the prompt word context.

[0062] Secondly, for the control logic optimization solution initially generated by the model, users can continue to inquire about relevant details to obtain a more detailed optimization solution.

[0063] Finally, the user scores and evaluates the optimization solution given by the model. The higher the score, the more the optimization solution generated by the model meets the user's requirements.

[0064] In order to adapt to the complexity and diversity of industrial control systems, the S4 model needs to be trained twice for specific industrial scenarios, such as Figure 3 shown.

[0065] First, training samples are collected. The system collects high-quality training samples: cases where the optimization solution scores are above the second set threshold (higher than the set threshold), including the control logic material before optimization (understandable language or pictures) and the configuration logic language and optimization results generated for the control logic.

[0066] Secondly, model training and deployment. Based on the samples collected above, the natural language model is trained and fine-tuned again. The fine-tuned large model replaces the original model and is deployed in the production environment.

[0067] Finally, the big model may include but is not limited to the natural language big model and the multimodal big model. Among them: the multimodal big model is more suitable for interpreting and understanding the control logic picture.

[0068] S5 uses the above-mentioned trained large model for specific industrial scenarios to perform logical optimization on the control logic to be optimized.

[0069] Embodiment 2

[0070] Embodiment 2 of the present disclosure provides an industrial control system logic optimization system based on a natural language large model, including:

[0071] The data acquisition module is configured to: acquire keywords of the control logic to be optimized;

[0072] The logic language generation module is configured to: input keywords into the natural language large model, generate a complete configuration logic language of the control logic to be optimized, and score and provide feedback thereon;

[0073] The logic language optimization module is configured to: perform logic optimization on the complete configuration logic language of the generated control logic to be optimized according to the score and feedback;

[0074] The secondary training module is configured to: use the complete configuration logic language after logic optimization to perform secondary training on the natural language big model to obtain an exclusive big model for a specific industrial scenario;

[0075] The execution module is configured to perform logic optimization on the control logic to be optimized using a dedicated large model of a specific industrial scenario.

[0076] The more detailed steps are the same as those in the first embodiment and will not be repeated here.

[0077] Embodiment 3

[0078] Embodiment 3 of the present disclosure provides a medium on which a program is stored. When the program is executed by a processor, the steps in the industrial control system logic optimization method based on a natural language large model as described in Embodiment 1 of the present disclosure are implemented.

[0079] The more detailed steps are the same as those in the first embodiment and will not be repeated here.

[0080] Embodiment 4

[0081] Embodiment 4 of the present disclosure provides an electronic device, including a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, the steps in the method for optimizing industrial control system logic based on a natural language large model as described in Embodiment 1 of the present disclosure are implemented.

[0082] The more detailed steps are the same as those in the first embodiment and will not be repeated here.

[0083] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for optimizing the logic of industrial control systems based on a large natural language model, characterized in that: Obtain keywords for the control logic to be optimized; Input keywords into the natural language big model, generate the complete configuration logic language of the control logic to be optimized, and score and provide feedback on it, specifically: score the generated complete configuration logic language of the control logic to be optimized, and re-generate the complete configuration logic language with a score lower than the set threshold by using the natural language big model until the score exceeds the set threshold; manually review and confirm the complete configuration logic language that has not been scored and the score is not lower than the set threshold to ensure feasibility and safety; The complete configuration logic language of the generated control logic to be optimized is logically optimized according to the user's rating and feedback. The specific steps are as follows: the configuration logic language of the control logic to be optimized is presented to the model in the form of a prompt word context, and the user submits the prompt word context and the optimization requirements to the model. The optimization requirements include: structural optimization target, parameter optimization direction, amplitude, and notification of risks after optimization; according to the optimization requirements, the complete configuration logic language generated by the natural language large model is structurally optimized and parameter adjusted to obtain the complete configuration logic language after logic optimization; the user continues to inquire about the relevant details of the control logic optimization plan initially generated by the model to obtain a more detailed optimization plan; the user scores and evaluates the optimization plan given by the model. The higher the score, the more the optimization plan generated by the model meets the user's requirements; Use the complete configuration logic language after logic optimization to conduct secondary training on the natural language big model to obtain a dedicated big model for a specific industrial scenario; Use the exclusive large model of the specific industrial scenario to perform logical optimization on the control logic to be optimized.

2. The method for optimizing the logic of an industrial control system based on a natural language large model as described in claim 1, characterized in that: It also includes establishing a standard configuration logic language knowledge base. The natural language large model generates a complete configuration logic language of the control logic to be optimized based on the input keywords and referring to the configuration logic language knowledge base.

3. The method for optimizing the logic of an industrial control system based on a natural language large model as described in claim 1, characterized in that: Obtaining keywords of the control logic to be optimized, specifically: extracting keywords of the control logic from the material of the control logic to be optimized using a natural language big model, the keywords including the names and mathematical parameters of the basic logic in the configuration logic.

4. The method for optimizing the logic of an industrial control system based on a natural language large model as claimed in claim 1, characterized in that: The large natural language model has multimodal processing capabilities and can understand and interpret control logic pictures.

5. The industrial control system logic optimization system based on natural language large model is characterized by: include: The data acquisition module is configured to: acquire keywords of the control logic to be optimized; The logic language generation module is configured to: input keywords into the natural language big model, generate the complete configuration logic language of the control logic to be optimized and score and provide feedback, specifically: score and provide feedback on the generated complete configuration logic language of the control logic to be optimized, and for the complete configuration logic language with a score lower than a set threshold, re-generate it using the natural language big model until the score exceeds the set threshold; manually review and confirm the complete configuration logic language that has not been scored and the score is not lower than the set threshold to ensure feasibility and safety; The logic language optimization module is configured to: perform logic optimization on the complete configuration logic language of the generated control logic to be optimized according to the user's rating and feedback, and the specific steps are: the configuration logic language of the control logic to be optimized is presented to the model in the form of prompt word context, and the user submits the prompt word context and the optimization requirements to the model, and the optimization requirements include: structural optimization target, parameter optimization direction, amplitude, and notification of post-optimization risks; according to the optimization requirements, perform structural optimization and parameter adjustment on the complete configuration logic language generated by the natural language large model to obtain the complete configuration logic language after logic optimization; the user continues to ask about the relevant details of the control logic optimization plan initially generated by the model to obtain a more detailed optimization plan; the user scores and evaluates the optimization plan given by the model, and the higher the score, the more the optimization plan generated by the model meets the user's requirements; The secondary training module is configured to: use the complete configuration logic language after logic optimization to perform secondary training on the natural language big model to obtain an exclusive big model for a specific industrial scenario; The execution module is configured to perform logic optimization on the control logic to be optimized using a dedicated large model of a specific industrial scenario.

6. A medium having a program stored thereon, characterized in that: When the program is executed by a processor, the steps in the industrial control system logic optimization method based on a natural language large model as described in any one of claims 1 to 4 are implemented.

7. An electronic device comprising a memory, a processor, and a program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps in the industrial control system logic optimization method based on the natural language large model as described in any one of claims 1-4 are implemented.