Reconfigurable digital twinborn model construction method and system
Through the reconfigurable digital twin model construction method, we analyze production factors and data types, build model architecture, customize attributes and generate data models, solving the data collection and storage problems of traditional data management systems in complex production lines and multi-protocol environments. Achieve flexibility and scalability of data management.
Patent Information
- Application Number
- CN202410646829.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-09-06
AI Technical Summary
When faced with complex production lines and multi-communication protocol environments, traditional data management systems are difficult to cope with data collection and interaction, leading to problems of information islands and poor data availability.
Provide a reconfigurable digital twin model construction method that analyzes production factors and data types, builds a model architecture, customizes individual attributes, generates data models, and achieves flexible data collection through flexible data transmission protocol conversion and dynamic storage configuration. and storage.
It improves the flexibility and scalability of the data management process, solves the problem of data islands, realizes the flexibility of multi-protocol data collection and storage, and adapts to production line changes.
Smart Images

Figure CN118607183A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of digital twins, and in particular relates to a hairstyle recommendation method and system based on big data. Background Art
[0002] Digitalization and informatization construction is the first step to realize the intelligent transformation of manufacturing industry, and production process data management is the foundation for realizing the digitalization and informatization of intelligent manufacturing process. Without reliable data support, the upper architecture of intelligent manufacturing will lose its original function or fail to complete the corresponding function. Digital twin is to make full use of physical models, sensor updates, operation history and other data, integrate multi-disciplinary, multi-physical quantity, multi-scale, multi-probability simulation process, complete mapping in virtual space, so as to reflect the whole life cycle process of corresponding physical equipment. Digital twin is a concept beyond reality and can be regarded as a digital mapping system of one or more important and interdependent equipment systems.
[0003] However, as the flexibility of production lines continues to increase, traditional data management systems have poor reconfigurability due to their customized development model, making it difficult to respond to changes in production lines; and there are generally equipment and systems from different manufacturers on the production site, and the coexistence of multiple communication protocols makes data collection and interaction difficult, and the phenomenon of information islands is serious; at the same time, with the increasing complexity of the production process, production data has shown big data characteristics, and traditional data management methods are difficult to respond effectively, resulting in poor data availability. Summary of the invention
[0004] In view of the above-mentioned deficiencies in the prior art, the present invention provides a reconfigurable digital twin model construction method and system to solve the above-mentioned technical problems.
[0005] In a first aspect, the present invention provides a reconfigurable digital twin model construction method, comprising: Analyze the production factors of the production line and the data types of the production factors, and build a model architecture based on the production factors and the data types; Customize individual attributes for each production factor, and fill the individual attributes into the model framework to generate a data model of the production line; Generate a configuration file for driving data transmission protocol conversion to drive the data model to perform flexible data collection; Acquire storage configuration information of the data model, and complete the storage of production data by dynamically establishing tables and attributes based on the storage configuration information; Configure application scenario models, data flows, and unified docking interfaces with application services.
[0006] In an optional implementation, parsing the production factors of the production line and the data types of the production factors, and building a model architecture based on the production factors and the data types, includes: Analyze the production factors of the production line, which include equipment, tooling, personnel and materials; Parse the data types of production factors. The data types of the equipment include basic information, operation information, composition information and maintenance information; the data types of the tooling include basic information, operation information and maintenance information; the data types of the personnel include basic position information and basic work information; the data types of the materials include basic information, inventory information, status information and quality inspection information; The data types of production factors are divided into static information sets and dynamic information sets, and the attributes of production factors are described based on the static information sets and dynamic information sets. Attribute elements are set to describe the attributes in depth, and a sub-model of production factors is obtained. The sub-models are integrated into a model architecture by expressing the association relationships between the sub-models.
[0007] In an optional implementation, individual attributes are customized for each production factor, and the individual attributes are filled into the model architecture to generate a data model of the production line, including: The information structure in the model architecture is uniformly defined as a four-tuple structure, wherein the four-tuple structure includes a unique global variable, inherent attributes, dynamic attributes, and relationship description of the information; Customize basic information description attributes, equipment processing capability description attributes, operating parameter description attributes and combination relationship description attributes for the equipment; Adding unique attributes of various types of tooling to the work sub-model, and building meta-models of various types of tooling based on the unique attributes, the types of tooling include tools, fixtures and gauges; Adding state attributes of the material to the material sub-model, wherein the state items of the state attributes include blank state and processing state; Assign values to the attribute elements of all attributes to obtain a data model of device instantiation, and convert the file of the data model into XML format according to the mapping rule.
[0008] In an optional implementation, assigning values to attribute elements of all attributes includes: Fixed values are assigned to the attribute elements of static information, and data collection related parameters are assigned to the attribute elements of dynamic information. The data collection related parameters include data address, type, scaling amount and sampling interval.
[0009] In an optional implementation, the basic information description attributes, the equipment processing capability description attributes, the operating parameter description attributes and the combination relationship description attributes are customized for the equipment, including: Customize and expand basic information attributes, transportation capacity attributes, and operating parameter attributes for logistics equipment; Customize basic information attributes, processing capability attributes, and operating parameter attributes for robotic arm devices.
[0010] In an optional implementation, generating a configuration file for driving data transmission protocol conversion to drive the data model to perform flexible data collection includes: Parsing data acquisition configuration information from the data model, wherein the data acquisition configuration information includes acquisition point information and a communication protocol used by an acquisition device; Perform multi-protocol adaptive analysis on the communication protocols used by each acquisition device, and parse the multi-driver dynamic loading of the third-party API of the data model, and obtain the dynamic data collected by the acquisition device based on the parsed communication protocol information and API information; Dynamic data is mapped into the OPC UA address space through unified mapping rules.
[0011] In an optional implementation, obtaining storage configuration information of the data model, and completing the storage of production data by dynamically establishing tables and attributes based on the storage configuration information, includes: Constructing a configuration information description table, wherein the configuration information description table is used to store configuration information of the data storage architecture of the data model; When the data model of the production line is updated, the configuration information of the data storage architecture is parsed from the new data model, and a new configuration information description table is generated. The consistency of the new configuration information description table and the original configuration information description table is compared to locate the update elements with differences, and the data storage architecture of the new data model is adjusted based on the update elements. In the data storage architecture, a message queue is created for the OPC UA interface to push the dynamic data obtained by the OPC UA interface to the corresponding message queue, and the dynamic data cached in the message queue is preprocessed to obtain clean data; the clean data is stored in the first database, and the data in the first database is synchronously backed up to the second database.
[0012] In an optional implementation, configuring the application scenario model, the data flow, and the unified docking interface with the application service includes: Constructing multiple application scenario models, wherein the application scenario models include application data requirements, customized processing strategies, and data analysis algorithms; Build a data flow based on the application data requirements of the application scenario model to retrieve the required input data for the application scenario model; A unified interactive interface is developed based on the RESTful API to distribute the data analysis results of each application scenario model to the corresponding application service through the unified interactive interface.
[0013] In an optional implementation, a data stream is constructed based on the application data requirements of the application scenario model to retrieve the required input data for the application scenario model, including: Spark Streaming is used to connect to Kafka, which caches real-time collected data, receive real-time input data streams, divide continuous data streams into multiple discrete data streams according to time windows, and transmit discrete data streams to the Spark computing engine in the form of RDD queues. According to the description of the application scenario model, the corresponding algorithm is called for real-time computing; The data in the HBase database is loaded into the DataFrame through the Spark-HBase connector, and the data is transmitted to the Spark computing engine in the form of a two-dimensional table. According to the description of the application scenario model, the relevant algorithms are called for offline computing.
[0014] In a second aspect, the present invention provides a reconfigurable digital twin model construction system, comprising: A framework building module, used to analyze the production factors of the production line and the data types of the production factors, and to build a model framework based on the production factors and the data types; An attribute customization module is used to customize individual attributes for each production factor, and fill the individual attributes into the model architecture to generate a data model of the production line; A collection design module, used to generate a configuration file for driving data transmission protocol conversion, so as to drive the data model to perform flexible data collection; A storage design module, used to obtain storage configuration information of the data model, and to complete the storage of production data by dynamically establishing tables and attributes based on the storage configuration information; The application configuration module is used to configure the application scenario model, data flow and the unified docking interface with the application service.
[0015] The beneficial effect of the present invention is that the reconfigurable digital twin model construction method and system provided by the present invention can construct a reconfigurable digital twin model for a discrete manufacturing production line, thereby improving the flexibility and scalability of the data management process.
[0016] In addition, the invention has a reliable design principle, a simple structure and a very broad application prospect. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0018] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention.
[0019] Figure 2 It is a data model architecture device information classification of a method according to an embodiment of the present invention.
[0020] Figure 3 It is a data model architecture of tooling information classification of a method according to an embodiment of the present invention.
[0021] Figure 4 It is a schematic diagram of the data model architecture of a method according to an embodiment of the present invention.
[0022] Figure 5 It is a schematic diagram of the production factor unit structure of a method according to an embodiment of the present invention.
[0023] Figure 6 It is a schematic diagram of a general unit structure of a device class of a method according to an embodiment of the present invention.
[0024] Figure 7 It is a schematic diagram of a general unit structure of a tooling type of a method according to an embodiment of the present invention.
[0025] Figure 8 It is a schematic diagram of a general unit structure of materials of a method according to an embodiment of the present invention.
[0026] Fig. 9 It is a schematic diagram of a universal unit structure of a personnel class in a method according to an embodiment of the present invention.
[0027] Fig.10 It is a schematic diagram of the personalized lathe data model structure of a method according to an embodiment of the present invention.
[0028] Fig.11 The figure is an overall flow chart of flexible data collection of a method according to an embodiment of the present invention.
[0029] Fig.12 It is a configuration information description table of a method according to an embodiment of the present invention.
[0030] Fig.13 The present invention is a flowchart of flexible data storage of a method according to an embodiment of the present invention.
[0031] Fig.14 It is a data application solution diagram based on an application scenario model of a method according to an embodiment of the present invention.
[0032] Fig.15 is a schematic block diagram of a system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0033] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0034] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0035] The reconfigurable digital twin model construction method provided in the embodiment of the present invention is executed by a computer device, and accordingly, the reconfigurable digital twin model construction system runs in the computer device.
[0036] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention. Figure 1 The execution subject can be a reconfigurable digital twin model building system. According to different requirements, the order of the steps in the flowchart can be changed, and some can be omitted.
[0037] like Figure 1 As shown, the method includes: Step 110, parsing the production factors of the production line and the data types of the production factors, and building a model architecture based on the production factors and the data types; Step 120, customizing individual attributes for each production factor, and filling the individual attributes into the model architecture to generate a data model of the production line; Step 130, generating a configuration file for driving data transmission protocol conversion to drive the data model to perform flexible data collection; Step 140, obtaining storage configuration information of the data model, and completing the storage of production data by dynamically establishing tables and attributes based on the storage configuration information; Step 150: configure the application scenario model, data flow and unified docking interface with the application service.
[0038] To facilitate understanding of the present invention, the following is a further description of the reconfigurable digital twin model construction method provided by the present invention based on the principle of the reconfigurable digital twin model construction method of the present invention and the process of constructing a reconfigurable digital twin model in the embodiment.
[0039] The specific, reconfigurable digital twin model construction method includes: S1. Analyze the production factors of the production line and the data types of the production factors, and build a model architecture based on the production factors and the data types.
[0040] Analyze the production factors of the production line, which include equipment, tooling, personnel and materials; analyze the data types of the production factors, which include basic information, operation information, composition information and maintenance information; the data types of the tooling include basic information, operation information and maintenance information; the data types of the personnel include basic position information and basic work information; the data types of the materials include basic information, inventory information, status information and quality inspection information; divide the data types of the production factors into static information sets and dynamic information sets, describe the attributes of the production factors based on the static information sets and the dynamic information sets, and set attribute elements to describe the attributes in depth to obtain sub-models of the production factors; integrate the sub-models into a model architecture by expressing the association relationships between the sub-models.
[0041] Specifically, a discrete manufacturing production line is a complex entity collection system, including multiple production factors. Before modeling, it is necessary to clarify the source of production line information and classify it reasonably to clarify the modeling content. According to the physical entity objects in the manufacturing process, production resources are divided into four types of production factors: equipment, tooling, personnel, and materials.
[0042] Equipment is an important component of discrete manufacturing production lines. A complete production line consists of multiple functional equipment, including but not limited to processing equipment, logistics equipment, robotic arms, testing equipment, etc. The common information of the above equipment is summarized into four categories: basic information, operation information, composition information and maintenance information, such as Figure 2 As shown, each category can contain multiple types of information, among which extended information can be defined and recorded according to the needs and special requirements of the device.
[0043] As a necessary auxiliary component of the production process of the production line, tooling includes various types such as tools, fixtures, gauges, molds, inspection tools, and workstation tools. The common information is summarized as follows: Figure 3 shown.
[0044] Personnel include production and processing personnel and management personnel, etc. Each person has basic information such as work number, name, job type, and workshop, as well as work-related information such as status and work content. Material information can be divided into basic information, inventory information, status information and quality inspection information. Among them, basic information includes number, material, type, etc.; inventory information includes current inventory, in and out records, etc.; status information reflects the material processing progress, transportation status, processing status, etc.; quality inspection information records quality inspection methods and test results.
[0045] After clarifying the modeling objects and their information content, based on object-oriented thinking, the production line composition is described using concepts such as class, object, attribute, and relationship. The designed data model architecture is as follows: Figure 4 As shown in the figure. The production line data model is divided into four sub-modules: equipment, tooling, personnel, and materials, and the sub-modules are integrated through "external association relationships". Within each sub-module, the attributes are classified and organized from the perspectives of static information sets and dynamic information sets. At the same time, in order to cover the configuration information required for collection and storage, the attributes are described in more depth through attribute elements. Finally, the nesting and hierarchical relationships within the sub-model are described through "internal composition relationships".
[0046] S2. Customize individual attributes for each production factor, and fill the individual attributes into the model architecture to generate a data model of the production line.
[0047] The information structure in the model architecture is uniformly defined as a quaternary structure, which includes unique global variables, inherent attributes, dynamic attributes and relationship descriptions of information; basic information description attributes, equipment processing capability description attributes, operating parameter description attributes and combination relationship description attributes are customized for equipment; unique attributes of various types of tooling are added to the work sub-model, and meta-models of various types of tooling are constructed based on the unique attributes, and the categories of tooling include tools, fixtures and measuring tools; the state attributes of materials are added to the material sub-model, and the state items of the state attributes include blank state and processing state; the attribute elements of all attributes are assigned values to obtain the data model of the device instantiation, and the file of the data model is converted into XML format according to the mapping rules. The assignment method includes: assigning fixed values to the attribute elements of static information, and assigning data acquisition related parameters to the attribute elements of dynamic information, and the data acquisition related parameters include data address, type, scaling amount and sampling interval.
[0048] Specifically, when establishing an information model, the creation of the data model can be completed by inheriting a specified class and filling in attribute element information, and the model can be converted into XML format according to the mapping rules.
[0049] According to the designed data model architecture, the production factors of the production line are divided into the following four production factor units: equipment unit (E), tooling unit (T), personnel unit (W), and material unit (M). Therefore, the production line data model can be described as shown in formula (1): (1).
[0050] At the same time, in order to ensure the consistency of various information structures, the internal structure is uniformly defined as the four-tuple structure shown in formula (2): (2); Among them, N is the only global variable representing the information, and the association relationship between each class is established later based on the ID; S_info is used to describe the inherent attributes of the class, including but not limited to the class name, processing function, etc.; D_info is used to describe dynamic attributes, including but not limited to operation data, order information, etc.; R_info is used to describe various relationships between classes.
[0051] On this basis, the basic common attributes of each class are organized to form equipment class, tooling class, personnel class and material class respectively. In addition, the association relationship between each abstract class needs to be established to realize the abstract integration of the production line resource information model. The association relationship between each class also needs to be defined. For example, the equipment is the main body for executing production tasks, and the tooling is used to assist the equipment to complete production and processing. One device can be loaded with multiple toolings, and the same tooling can also be installed on different devices. There is a many-to-many relationship between the two. The association type and association ID are recorded in the R_info of the equipment and tooling respectively. After the above steps, the creation of the production factor unit is completed, such as Figure 5 shown.
[0052] Equipment units are divided into processing equipment, logistics equipment, robotic arms, and testing equipment according to their uses. On the basis of inheriting the production factor unit, the existing attributes are improved, and the unique attributes of various types of equipment are added to complete the construction of specific equipment, as shown in Figure 6.
[0053] On the basis of the general attributes of equipment production factors, the following information needs to be supplemented and expanded: basic information description (BI); description of equipment processing capability (PC); description of operating parameters (RP); description of combination relationship (comp). Therefore, the processing equipment class can be described as follows: (3).
[0054] Logistics equipment is responsible for the transportation of materials between various processing equipment to ensure the normal progress of the processing process. When modeling logistics equipment, in addition to inheriting the general attributes of production factors, the following extensions and refinements are required: expansion of basic information; transportation capacity; operating parameters.
[0055] In the automated production scenario, the robot arm is responsible for performing operations such as assembly, grinding, and spraying. After inheriting the common attributes of production factors, the following extensions are made: basic information (BI); processing capability (TC); operating parameters (CI); Therefore, the robot arm class can be described as formula (4): (4).
[0056] As shown in Figure 7, tooling units can be subdivided into multiple types according to their different uses. By inheriting the production factor tooling unit and adding various tooling-specific attributes, metamodels such as tools, fixtures, and gauges are constructed. The specific process is shown in the equipment metamodel and will not be elaborated here.
[0057] As shown in Figure 8, as the production and processing proceeds, the material will be converted from a blank to a processed workpiece. The two have different requirements for the required information. Therefore, the production factor material unit is inherited to construct the blank class and the workpiece class respectively. The specific process is shown in the equipment unit and will not be expanded in detail here.
[0058] Personnel units, such as Fig. 9 As shown, according to the division of work, personnel are divided into operators and managers. By inheriting the production factor unit, and by improving the basic information and adding work information, the operator class and the manager class are constructed respectively. The specific process is shown in the equipment unit, which will not be elaborated here.
[0059] Finally, if Fig.10 As shown in the figure, taking a CNC lathe in the production line as an example, by inheriting the processing equipment class in the equipment metamodel, the attribute elements of each attribute are assigned values to achieve the description and constraint of the attribute. For static attributes, fixed values need to be assigned to them; for dynamic attributes, their values need to be obtained through data collection later, so it is necessary to define data collection related attribute elements, such as data address, type, scaling, sampling interval, etc. The equipment instantiation information model is obtained.
[0060] S3. Generate a configuration file for driving data transmission protocol conversion to drive the data model to perform flexible data collection.
[0061] Parse data acquisition configuration information from the data model, the data acquisition configuration information including acquisition point information and a communication protocol used by an acquisition device; perform multi-protocol adaptive parsing on the communication protocol used by each acquisition device, and parse multi-driver dynamic loading of a third-party API of the data model, and acquire dynamic data collected by the acquisition device based on the parsed communication protocol information and API information; and map the dynamic data to an OPC UA (Open Production Control and Unified Architecture, a communication protocol) address space through a unified mapping rule.
[0062] Specifically, based on the data model, a unified mapping specification is defined to map the required information to the OPC UA address space to complete the construction of the OPC UA information model. This construction method is highly flexible and configurable. When production information changes, only the production resource information model needs to be changed, and the OPC UA information model can be updated by remapping, which greatly reduces the difficulty of the OPC UA interface unification process.
[0063] In order to solve the difficulties in developing data acquisition drivers and interactive interfaces caused by the coexistence of multiple communication protocols in discrete manufacturing production lines, the data acquisition configuration information is obtained by parsing the constructed data model (XML), and based on the configuration and plug-in development ideas, flexible acquisition and unified interaction of multi-protocol data are carried out. The overall process is as follows Fig.11 As shown, it includes two aspects: raw data acquisition and communication interface unification.
[0064] (1) First, by parsing the data model, the communication information and collection point information of the equipment are obtained, and dynamic data acquisition is achieved by using multi-protocol adaptive parsing based on data messages and multi-driver dynamic loading parsing based on third-party APIs. When the discrete manufacturing production line changes, only the relevant configuration information needs to be changed or the corresponding message description / parsing driver needs to be added, without major modifications to the source code, which enhances the flexibility and scalability of data collection in a low-code programming way. (2) Unified data interaction After acquiring data from multiple sources, in order to achieve unified data interaction, the different communication protocol interfaces need to be converted into a unified data interface. Through unified mapping rules, dynamic production data is synchronously mapped to the OPC UA address space. When interacting with data, you only need to focus on developing OPC UA related interfaces without paying attention to the specific communication specifications of the equipment, thereby effectively solving the difficulties in developing and maintaining data interaction interfaces caused by the coexistence of multiple protocols.
[0065] S4. Acquire storage configuration information of the data model, and complete the storage of production data by dynamically establishing tables and attributes based on the storage configuration information.
[0066] Construct a configuration information description table, wherein the configuration information description table is used to store the configuration information of the data storage architecture of the data model; when the data model of the production line is updated, parse the configuration information of the data storage architecture from the new data model, and generate a new configuration information description table, compare the consistency of the new configuration information description table with the original configuration information description table, locate the update elements with differences, and adjust the data storage architecture of the new data model based on the update elements; in the data storage architecture, create a message queue for the OPC UA interface to push the dynamic data obtained by the OPC UA interface to the corresponding message queue, pre-process the dynamic data cached in the message queue to obtain clean data; store the clean data in the first database, and synchronously back up the data in the first database to the second database.
[0067] Specifically, considering that the data storage architecture needs to have the ability to quickly reconfigure, and the key to reconfiguration is to clarify the difference between the previous and subsequent configuration information. Fig.12The "configuration information description table" shown is used to store the configuration information used in the data storage architecture generation process. This table can be used to achieve flexible construction and reconstruction of the data storage model. By traversing the table, all the meta-configuration information required for the data system construction process is obtained, and according to certain mapping rules, it is converted into data storage architecture information. By calling the corresponding instructions, the data storage table is constructed; when the production line changes, the new configuration information is stored in the configuration information description table by updating and re-parsing the information model. By comparing the information differences between the previous and next versions in the configuration information description table, the specific changed elements can be quickly located and corresponding adjustments can be made.
[0068] In order to quickly adapt to changes in application scenario data storage requirements, Fig.13 The flexible storage of massive data shown includes three steps: flexible construction of data storage architecture, data storage and preprocessing, and data storage.
[0069] (1) Flexible construction of configurable data storage model In order to quickly adapt to the frequent changes in application scenarios, the generated data model is parsed to obtain storage configuration information, and on this basis, the production data is stored by dynamically establishing tables and attributes. When changes occur, only the data model needs to be modified, and the data storage model can be quickly reconstructed by reloading and parsing the model.
[0070] (2) Data transmission and preprocessing In order to realize the real-time storage of dynamically collected data, it is necessary to realize the connection between application scenario data and data storage platform. Use OPC UA client to obtain production line operation data, then use data push program to push dynamic data to Kafka message queue, and use data preprocessing module to subscribe to data in Kafka queue to realize data preprocessing.
[0071] (3) Data persistence storage The processed clean data is stored in the corresponding data storage table of HBase in real time, and the data is synchronized to HDFS regularly according to preset conditions to achieve persistent storage of data and provide data support for subsequent data analysis.
[0072] S5. Configure application scenario models, data flows, and unified docking interfaces with application services.
[0073] Construct multiple application scenario models, which include application data requirements, customized processing strategies, and data analysis algorithms. Construct data streams based on the application data requirements of the application scenario models to retrieve the required input data for the application scenario models, specifically including using Spark Streaming to connect to Kafka, which caches real-time collected data, receive real-time input data streams, and divide the continuous data stream into multiple discrete data streams according to the time window, and transmit the discrete data streams to the Spark computing engine in the form of RDD queues. According to the description of the application scenario model, call the corresponding algorithm for real-time calculation; load the data in the HBase database into the DataFrame through the Spark-HBase connector, and transmit the data to the Spark computing engine in the form of a two-dimensional table. According to the description of the application scenario model, call the relevant algorithm for offline calculation. Develop a unified interactive interface based on RESTful API to distribute the data analysis results of each application scenario model to the corresponding application service through the unified interactive interface.
[0074] Specifically, the data application technology route based on application scenario model and Spark stream / batch processing technology is as follows: Fig.14 As shown in the figure, in this solution, the implementation logic of the common processes of various applications is encapsulated, and the specific parameters are provided by the application scenario model, thereby improving the configurability and standardization of the data application process. It mainly includes the following three contents: (1) Construction of application scenario model The data in different application scenarios are complex, diverse and highly coupled. In order to quickly extract data subsets that meet application requirements from massive data and conduct relevant analysis, it is necessary to build application scenario models for each application, standardize the data content, data organization and processing methods required by the application, and provide unified configuration for subsequent data processing processes. The application scenario model (ACM) is divided into three parts: application data requirements (ADR), customized processing strategy (CPS), and data analysis algorithm (ALG). In order to realize the sharing and parsing of the application scenario model, XML is selected as its expression carrier.
[0075] (2) Data stream / batch processing strategy The scene data is mainly divided into real-time collection data and historical archive data. Spark stream processing and batch processing frameworks are introduced. Under the guidance of the application scenario model, the selection of application data, customized data processing, and data analysis and calculation are realized in turn, and the analysis results are persistently stored to facilitate the call of each top-level application. The processing process of real-time collection data has high real-time requirements. It is completed based on the stream processing framework, using Spark Streaming to connect to Kafka, receive real-time input data streams, and divide the continuous data stream into multiple discrete data streams according to the time window, and transmit them to the Spark computing engine in the form of RDD queues. According to the description of the application scenario model, the corresponding algorithm is called for real-time calculation.
[0076] (3) Interactive interface design After the analysis results are stored, a unified data interaction interface is designed to support various application services to call the analysis results. All application analysis results are stored in the database. To ensure the stability of the database and the unified call of the analysis results, an interaction interface will be developed based on the RESTful API.
[0077] The process of application services obtaining data using the RESTful API interface is as follows: various application services initiate GET requests to the database with unified specifications, the server receives the request and converts it into information such as " / table name / row key / column cluster: column name" in the data system, and calls the corresponding data retrieval instructions to query the data, and returns the query results to the client in JSON format together with the operation status code, thereby realizing the unified call of various application analysis results.
[0078] In some embodiments, the reconfigurable digital twin model construction system may include multiple functional modules composed of computer program segments. The computer programs of each program segment in the reconfigurable digital twin model construction system may be stored in the memory of a computer device and executed by at least one processor to perform (see Figure 1 Description) Capabilities for building reconfigurable digital twin models.
[0079] In this embodiment, the reconfigurable digital twin model construction system can be divided into multiple functional modules according to the functions it performs, such as Fig.15 As shown. The functional modules of the system 1500 may include: an architecture establishment module 1510, an attribute customization module 1520, a collection design module 1530, a storage design module 1540 and an application configuration module 1550. The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.
[0080] A framework building module, used to analyze the production factors of the production line and the data types of the production factors, and to build a model framework based on the production factors and the data types; An attribute customization module is used to customize individual attributes for each production factor, and fill the individual attributes into the model architecture to generate a data model of the production line; A collection design module, used to generate a configuration file for driving data transmission protocol conversion, so as to drive the data model to perform flexible data collection; A storage design module, used to obtain storage configuration information of the data model, and to complete the storage of production data by dynamically establishing tables and attributes based on the storage configuration information; The application configuration module is used to configure the application scenario model, data flow and the unified docking interface with the application service.
[0081] Optionally, as an embodiment of the present invention, the production factors of the production line and the data types of the production factors are parsed, and a model architecture is constructed based on the production factors and the data types, including: Analyze the production factors of the production line, which include equipment, tooling, personnel and materials; Parse the data types of production factors. The data types of the equipment include basic information, operation information, composition information and maintenance information; the data types of the tooling include basic information, operation information and maintenance information; the data types of the personnel include basic position information and basic work information; the data types of the materials include basic information, inventory information, status information and quality inspection information; The data types of production factors are divided into static information sets and dynamic information sets, and the attributes of production factors are described based on the static information sets and dynamic information sets. Attribute elements are set to describe the attributes in depth, and a sub-model of production factors is obtained. The sub-models are integrated into a model architecture by expressing the association relationships between the sub-models.
[0082] Optionally, as an embodiment of the present invention, individual attributes are customized for each production factor, and the individual attributes are filled into the model architecture to generate a data model of the production line, including: The information structure in the model architecture is uniformly defined as a four-tuple structure, wherein the four-tuple structure includes a unique global variable, inherent attributes, dynamic attributes, and relationship description of the information; Customize basic information description attributes, equipment processing capability description attributes, operating parameter description attributes and combination relationship description attributes for the equipment; Adding unique attributes of various types of tooling to the work sub-model, and building meta-models of various types of tooling based on the unique attributes, the types of tooling include tools, fixtures and gauges; Adding state attributes of the material to the material sub-model, wherein the state items of the state attributes include blank state and processing state; Assign values to the attribute elements of all attributes to obtain a data model of device instantiation, and convert the file of the data model into XML format according to the mapping rule.
[0083] Optionally, as an embodiment of the present invention, assigning values to attribute elements of all attributes includes: Fixed values are assigned to the attribute elements of static information, and data collection related parameters are assigned to the attribute elements of dynamic information. The data collection related parameters include data address, type, scaling amount and sampling interval.
[0084] Optionally, as an embodiment of the present invention, basic information description attributes, equipment processing capability description attributes, operating parameter description attributes and combination relationship description attributes are customized for the equipment, including: Customize and expand basic information attributes, transportation capacity attributes, and operating parameter attributes for logistics equipment; Customize basic information attributes, processing capability attributes, and operating parameter attributes for robotic arm devices.
[0085] Optionally, as an embodiment of the present invention, generating a configuration file for driving data transmission protocol conversion to drive the data model to perform flexible data collection includes: Parsing data acquisition configuration information from the data model, wherein the data acquisition configuration information includes acquisition point information and a communication protocol used by an acquisition device; Perform multi-protocol adaptive analysis on the communication protocols used by each acquisition device, and parse the multi-driver dynamic loading of the third-party API of the data model, and obtain the dynamic data collected by the acquisition device based on the parsed communication protocol information and API information; Dynamic data is mapped into the OPC UA address space through unified mapping rules.
[0086] Optionally, as an embodiment of the present invention, obtaining storage configuration information of the data model, and completing the storage of production data by dynamically establishing tables and attributes based on the storage configuration information, includes: Constructing a configuration information description table, wherein the configuration information description table is used to store configuration information of the data storage architecture of the data model; When the data model of the production line is updated, the configuration information of the data storage architecture is parsed from the new data model, and a new configuration information description table is generated. The consistency of the new configuration information description table and the original configuration information description table is compared to locate the update elements with differences, and the data storage architecture of the new data model is adjusted based on the update elements. In the data storage architecture, a message queue is created for the OPC UA interface to push the dynamic data obtained by the OPC UA interface to the corresponding message queue, and the dynamic data cached in the message queue is preprocessed to obtain clean data; the clean data is stored in the first database, and the data in the first database is synchronously backed up to the second database.
[0087] Optionally, as an embodiment of the present invention, configuring an application scenario model, a data stream, and a unified docking interface with an application service includes: Constructing multiple application scenario models, wherein the application scenario models include application data requirements, customized processing strategies, and data analysis algorithms; Build a data flow based on the application data requirements of the application scenario model to retrieve the required input data for the application scenario model; A unified interactive interface is developed based on the RESTful API to distribute the data analysis results of each application scenario model to the corresponding application service through the unified interactive interface.
[0088] Optionally, as an embodiment of the present invention, a data stream is constructed based on the application data requirement of the application scenario model to retrieve the required input data for the application scenario model, including: Spark Streaming is used to connect to Kafka, which caches real-time collected data, receive real-time input data streams, divide continuous data streams into multiple discrete data streams according to time windows, and transmit discrete data streams to the Spark computing engine in the form of RDD queues. According to the description of the application scenario model, the corresponding algorithm is called for real-time computing; The data in the HBase database is loaded into the DataFrame through the Spark-HBase connector, and the data is transmitted to the Spark computing engine in the form of a two-dimensional table. According to the description of the application scenario model, the relevant algorithms are called for offline computing.
[0089] Although the present invention has been described in detail with reference to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person of ordinary skill in the art may easily think of changes or substitutions within the technical scope disclosed by the present invention, and these shall be within the scope of protection of the present invention.
Claims
1. A reconfigurable digital twin model construction method, It is characterized in that include: Analyze the production factors of the production line and the data types of the production factors, and build a model architecture based on the production factors and the data types; Customize individual attributes for each production factor, and fill the individual attributes into the model framework to generate a data model of the production line; Generate a configuration file for driving data transmission protocol conversion to drive the data model to perform flexible data collection; Acquire storage configuration information of the data model, and complete the storage of production data by dynamically establishing tables and attributes based on the storage configuration information; Configure application scenario models, data flows, and unified docking interfaces with application services.
2. The method according to claim 1, It is characterized in that Parse the production factors of the production line and the data types of the production factors, and build a model architecture based on the production factors and the data types, including: Analyze the production factors of the production line, which include equipment, tooling, personnel and materials; Parse the data types of production factors. The data types of the equipment include basic information, operation information, composition information and maintenance information; the data types of the tooling include basic information, operation information and maintenance information; the data types of the personnel include basic position information and basic work information; the data types of the materials include basic information, inventory information, status information and quality inspection information; The data types of production factors are divided into static information sets and dynamic information sets, and the attributes of production factors are described based on the static information sets and dynamic information sets. Attribute elements are set to describe the attributes in depth, and a sub-model of production factors is obtained. The sub-models are integrated into a model architecture by expressing the association relationships between the sub-models.
3. The method according to claim 1, It is characterized in that Customize individual attributes for each production factor, and fill the individual attributes into the model architecture to generate a data model of the production line, including: The information structure in the model architecture is uniformly defined as a four-tuple structure, wherein the four-tuple structure includes a unique global variable, inherent attributes, dynamic attributes, and relationship description of the information; Customize basic information description attributes, equipment processing capability description attributes, operating parameter description attributes and combination relationship description attributes for the equipment; Adding unique attributes of various types of tooling to the work sub-model, and building meta-models of various types of tooling based on the unique attributes, the types of tooling include tools, fixtures and gauges; Adding state attributes of the material to the material sub-model, wherein the state items of the state attributes include blank state and processing state; Assign values to the attribute elements of all attributes to obtain a data model of device instantiation, and convert the file of the data model into XML format according to the mapping rule.
4. The method according to claim 3, It is characterized in that Assign values to the property elements of all properties, including: Fixed values are assigned to the attribute elements of static information, and data collection related parameters are assigned to the attribute elements of dynamic information. The data collection related parameters include data address, type, scaling amount and sampling interval.
5. The method according to claim 3, It is characterized in that Customize basic information description attributes, equipment processing capability description attributes, operating parameter description attributes and combination relationship description attributes for the equipment, including: Customize and expand basic information attributes, transportation capacity attributes, and operating parameter attributes for logistics equipment; Customize basic information attributes, processing capability attributes, and operating parameter attributes for robotic arm devices.
6. The method according to claim 1, It is characterized in that Generate a configuration file for driving data transmission protocol conversion to drive the data model to perform flexible data collection, including: Parsing data acquisition configuration information from the data model, wherein the data acquisition configuration information includes acquisition point information and a communication protocol used by an acquisition device; Perform multi-protocol adaptive analysis on the communication protocols used by each acquisition device, and parse the multi-driver dynamic loading of the third-party API of the data model, and obtain the dynamic data collected by the acquisition device based on the parsed communication protocol information and API information; Dynamic data is mapped into the OPC UA address space through unified mapping rules.
7. The method according to claim 1, It is characterized in that Acquiring storage configuration information of the data model, and completing the storage of production data by dynamically establishing tables and attributes based on the storage configuration information, including: Constructing a configuration information description table, wherein the configuration information description table is used to store configuration information of the data storage architecture of the data model; When the data model of the production line is updated, the configuration information of the data storage architecture is parsed from the new data model, and a new configuration information description table is generated. The consistency of the new configuration information description table and the original configuration information description table is compared to locate the update elements with differences, and the data storage architecture of the new data model is adjusted based on the update elements. In the data storage architecture, a message queue is created for the OPC UA interface to push the dynamic data obtained by the OPC UA interface to the corresponding message queue, and the dynamic data cached in the message queue is preprocessed to obtain clean data; the clean data is stored in the first database, and the data in the first database is synchronously backed up to the second database.
8. The method according to claim 1, It is characterized in that Configure application scenario models, data flows, and unified docking interfaces with application services, including: Constructing multiple application scenario models, wherein the application scenario models include application data requirements, customized processing strategies, and data analysis algorithms; Build a data flow based on the application data requirements of the application scenario model to retrieve the required input data for the application scenario model; A unified interactive interface is developed based on the RESTful API to distribute the data analysis results of each application scenario model to the corresponding application service through the unified interactive interface.
9. The method according to claim 8, It is characterized in that Based on the application data requirements of the application scenario model, a data flow is constructed to retrieve the required input data for the application scenario model, including: Spark Streaming is used to connect to Kafka, which caches real-time collected data, receive real-time input data streams, divide continuous data streams into multiple discrete data streams according to time windows, and transmit discrete data streams to the Spark computing engine in the form of RDD queues. According to the description of the application scenario model, the corresponding algorithm is called for real-time computing; The data in the HBase database is loaded into the DataFrame through the Spark-HBase connector, and the data is transmitted to the Spark computing engine in the form of a two-dimensional table. According to the description of the application scenario model, the relevant algorithms are called for offline computing.
10. A reconfigurable digital twin model construction system, It is characterized in that include: An architecture building module, used to analyze the production factors of the production line and the data types of the production factors, and to build a model architecture based on the production factors and the data types; An attribute customization module is used to customize individual attributes for each production factor, and fill the individual attributes into the model architecture to generate a data model of the production line; A collection design module, used to generate a configuration file for driving data transmission protocol conversion, so as to drive the data model to perform flexible data collection; A storage design module, used to obtain storage configuration information of the data model, and to complete the storage of production data by dynamically establishing tables and attributes based on the storage configuration information; The application configuration module is used to configure the application scenario model, data flow and the unified docking interface with the application service.
Citation Information
Cited By
Digital element mother set construction method, digital twinning system and electronic equipment
CN120523532A
Digital element master building method, digital twin system and electronic device
CN120523532B
