WO2023193458A1 - Digital twin-based production line optimization method and apparatus, electronic device, and medium - Google Patents

Digital twin-based production line optimization method and apparatus, electronic device, and medium Download PDF

Info

Publication number
WO2023193458A1
WO2023193458A1 PCT/CN2022/136469 CN2022136469W WO2023193458A1 WO 2023193458 A1 WO2023193458 A1 WO 2023193458A1 CN 2022136469 W CN2022136469 W CN 2022136469W WO 2023193458 A1 WO2023193458 A1 WO 2023193458A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
production
factory
benefit value
production line
Prior art date
Application number
PCT/CN2022/136469
Other languages
French (fr)
Chinese (zh)
Inventor
陈录城
诸葛慧玲
张成龙
周靖超
王勇
孟祥秀
李晓璐
Original Assignee
卡奥斯工业智能研究院(青岛)有限公司
海尔数字科技(青岛)有限公司
海尔卡奥斯物联生态科技有限公司
海尔智家股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 卡奥斯工业智能研究院(青岛)有限公司, 海尔数字科技(青岛)有限公司, 海尔卡奥斯物联生态科技有限公司, 海尔智家股份有限公司 filed Critical 卡奥斯工业智能研究院(青岛)有限公司
Publication of WO2023193458A1 publication Critical patent/WO2023193458A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/04Manufacturing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Definitions

  • This application relates to computer technology, for example, to production line optimization methods, devices, electronic equipment and media based on digital twins.
  • This application provides production line optimization methods, devices, electronic equipment and media based on digital twins to realize the optimization of factory production lines using production data, which can more accurately and effectively improve material utilization and product quality, and improve the overall efficiency of the factory. income.
  • this application provides a production line optimization method based on digital twins, which includes:
  • the production parameters corresponding to the virtual data model are mapped to the production line of the factory to perform data optimization on the production line of the factory.
  • this application also provides a production line optimization device based on digital twins, which includes:
  • the model training module is configured to obtain the historical production data of the factory, train the factory dynamic model based on the historical production data, and obtain a virtual data model;
  • the prediction acquisition module is configured to input the test production data of the factory into the virtual data model to obtain prediction results corresponding to the test production data;
  • a valid judgment module configured to determine the predicted benefit value corresponding to the prediction result, and determine whether the predicted benefit value meets the valid conditions
  • the production line optimization module is configured to map the production parameters corresponding to the virtual data model to the production line of the factory when the predicted benefit value meets the valid conditions, so as to perform data optimization on the production line of the factory.
  • embodiments of the present application also provide an electronic device, which includes:
  • processors one or more processors
  • a storage device configured to store one or more programs
  • the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the above-mentioned production line optimization method based on digital twins.
  • embodiments of the present application also provide a computer-readable storage medium on which a computer program is stored.
  • the program is executed by a processor, the above-mentioned production line optimization method based on digital twins is implemented.
  • Figure 1 is a schematic flow chart of a production line optimization method based on digital twins provided by an embodiment of the present application
  • Figure 2 is a schematic flow chart of another production line optimization method based on digital twins provided by an embodiment of the present application
  • Figure 3 is a schematic structural diagram of a digital twin-based production line optimization device provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Figure 1 is a schematic flowchart of a digital twin-based production line optimization method provided by an embodiment of the present application. This method can be executed by a digital twin-based production line optimization device provided by an embodiment of the present application.
  • the device can use software and/or Or implemented in hardware.
  • the apparatus may be integrated in an electronic device, such as a server. The following embodiments will be described by taking the device integrated in an electronic device as an example. Referring to Figure 1, the method may include the following steps:
  • a factory is a production line enterprise that can process raw materials to produce commercial products.
  • the factory's production process includes multiple production factors such as workers, equipment, materials, methods, environment and testing.
  • the historical production data of the factory can be the data information generated by the factory in the actual production process. It can be the big data of the factory's production process and the operating parameters of the actual production equipment.
  • the parameters include material information, personnel information, equipment information and Environmental information, the data information generated during the production process can be material data: it can be material ratio, corresponding input equipment, production time, experience links and output corresponding equipment, etc.
  • the material ratio in the historical production data can be the ratio of raw materials in the product production process, for example: making bread is the ratio of the weight of water, sugar, butter and various types of flour; the corresponding input device can be the production equipment model of the material.
  • the production time can be the production time of the material running in the production equipment, for example: the time to make bread can be 30 minutes;
  • the experience link can be the link that needs to be experienced to make product materials, for example: when making bread
  • the materials need to be mixed, fermented, shaped, baked and packaged first.
  • the set positions can be corresponding positions set in links that require manual intervention in the production process based on the machine's operating speed, such as: safety inspection posts, waste processing posts, operation monitoring posts, product packaging posts and other information data; the machine corresponding
  • the staffing ratio can be different types of machines. According to the actual link requirements, the staffing required for each position. For example, the staffing ratio of a production workshop can be 8 people.
  • the shift sequence can be the order of personnel in the factory during the operation of the machine, or it can be determined as 2 shifts or 3 shifts according to the product production speed.
  • the connection method of the equipment can be to determine the length of the production line according to the contract supply demand of the product. For the production line with a longer duration, choose the physical connection method to ensure the stability of the production line. For the production line with the shorter duration, choose the network connection. .
  • the equipment operation logic can be to determine the equipment operation principle based on the material proportions and links of the product. For example, for the production of fresh food, it is necessary to start the washing machine first and start the production link according to the degree of washing.
  • Equipment maintenance and equipment operation rules can include equipment maintenance time, maintenance procedures, and basic operating principles during equipment operation.
  • the factory dynamic model can be a basic factory operation model based on multiple equipment information, business logic structure and production process data on the actual production line of the factory. It can clearly display the production process of generating the corresponding products of the factory.
  • the virtual data model can be a simulation model obtained by optimizing the factory dynamic model using historical production data.
  • the factory dynamic model can be targeted and optimized based on actual needs and experimental data.
  • the historical production data of the factory is obtained from the factory to be optimized.
  • the obtained historical production data can be processed to improve the data quality of the historical production data, and the training data set in the historical production data can be screened out according to actual needs.
  • the training data set can be obtained by filtering samples of historical production data according to the random forest algorithm.
  • the factory dynamic model is trained according to the training data set to obtain a virtual data model, so that optimal production parameters can be determined from the production parameters of the virtual data model and the actual production parameters to optimize the factory production line.
  • historical production data is acquired through collecting and monitoring the factory control system to obtain equipment process parameters, material types and codes, multi-type Programmable Logic Controller (PLC) and sensor-collected equipment and codes for the entire production process.
  • Environmental parameters including data processing of historical production data, and formatting of historical production data to achieve corresponding formatting unification.
  • the training data set in the historical production data can be used as the input of the factory dynamic model to train the parameters of the neural network, learn the operating rules and internal relationships between multiple parameters in the training data set, and obtain the corresponding
  • the operating principle is used to obtain the virtual data model.
  • training can be based on a single factor in the historical production data, for example: marking the material ratio in the historical production data, inputting the material ratio and product quality into the factory dynamic model for training, and in the factory dynamic model
  • the neural network learns the intrinsic relationship between material ratio and product quality, and obtains a virtual data model for inputting product material ratio, in which a single factor can be any type of data in historical production data; when the training process Multiple factors in historical production data are used for training, that is, need prediction factors are marked according to actual demand, and the marked factors and other data are input into the factory dynamic model for training.
  • the neural network in the factory dynamic model learns the combination of marked factors and other data. The internal relationships among them are used to obtain a virtual data model of multiple factors. Among them, the virtual data model determines the information categories in the prediction results based on actual needs.
  • the factory dynamic model is trained based on historical production data, and during the training process of the virtual data model, the optimal solution of the material ratio in the historical production data is found during the simulation process through an enhanced algorithm, and the factory is optimized.
  • the parameters on the production line provide the efficiency of material use and product quality in the factory, combined with the waste generated during the production process.
  • the value stream map of the production line can be combined to optimize the production line production process, shorten the product development cycle, and improve production line production efficiency.
  • the training of the virtual data model realizes the accurate simulation of the geometry, physics, behavior, rules, status and other characteristics of the factory's production line, and realizes the digital reconstruction of the actual production line activities.
  • the test production data can be a data set for testing the virtual data model in historical production data, used to obtain prediction results corresponding to the test data output by the virtual data model, where the prediction results corresponding to the test production data can be used to obtain Calculate and evaluate the data of the predicted benefit value of the production parameters of the virtual data model.
  • the data type and data information content in the prediction results are consistent with the historical production data. They all correspond to multiple data information on the production line of the actual factory, and Determine the data type and data information in the prediction results based on actual needs.
  • the prediction results can include the output products corresponding to the input materials and the quantity of the output products.
  • the prediction results can also include the energy consumption corresponding to the output materials.
  • the test production data is selected from the factory's historical production data, and the test production data is input into the virtual data model to simulate the production of the factory production line.
  • the virtual data model is obtained.
  • the prediction results corresponding to the output test data are used to calculate the predicted benefit value corresponding to the prediction result based on the prediction results corresponding to the test data. Based on the predicted benefit value, it is judged whether the production parameters of the virtual data model are better than the actual production parameters of the factory, so that the judgment results can be Optimize the production parameters of the factory production line.
  • the predicted benefit value corresponding to the prediction result can be the benefit value of the product corresponding to the factory calculated based on the data information in the prediction result, where the benefit value is generated through the input value of the material, energy consumption, and output from the prediction result.
  • the output value of the product is determined.
  • energy consumption is not only thermal energy consumed by materials on the factory production line for production line operations, but also includes employee labor costs, equipment consumption and other energy consumption.
  • the preset benefit threshold can be set in advance based on actual needs and experimental data, and the preset benefit value threshold can be used to determine whether the predicted benefit meets the effective conditions.
  • the predicted benefit value can be compared with the preset benefit threshold. If the predicted benefit value is greater than the preset benefit threshold, it is determined that the production parameters of the virtual data model corresponding to the predicted benefit value meet the factory's operating standards. According to the predicted benefit value Compare with the actual benefit value of the factory to determine whether the predicted benefit value meets the valid conditions. On the contrary, if the predicted benefit value is less than the preset benefit threshold, it is determined that the production parameters of the virtual data model corresponding to the predicted benefit value do not meet the factory's operating standards, then It is determined that the predicted benefit value does not meet the valid conditions, and the production parameters of the virtual data model cannot be mapped to the factory's production line.
  • the production parameters corresponding to the virtual data model can be parameters used to guide the virtual data model to simulate production line processing of test data.
  • the production parameters include parameters such as the running time of the production line, material proportions, and production behavior rules.
  • the data optimization of the factory's production line can be the optimization of the material ratio of the factory's production line, or the overall optimization of the factory's production line.
  • the pertinence of the optimization is mainly reflected in the data preprocessing. Screening of samples and training of machine learning algorithms.
  • the production parameters corresponding to the virtual data model may be data corresponding to factors in the training process based on the virtual data model. That is, if a single factor is trained, the production parameter may be a single factor in the marked historical production data. Data corresponding to factors, for example: when marking material ratios in historical production data, the production parameters corresponding to the virtual data model are the material ratios; when training multiple factors, the production parameters can be marked historical production data data information in.
  • the historical production data of the factory is obtained, and the dynamic model of the factory is trained according to the historical production data to obtain a virtual data model; the test production data of the factory is input into the virtual data model to obtain the prediction results corresponding to the test production data; Determine the predicted benefit value corresponding to the prediction result, and determine whether the predicted benefit value meets the valid conditions; when the predicted benefit value meets the valid conditions, map the production parameters corresponding to the virtual data model to the factory's production line, so as to predict the factory's production line. Perform data optimization.
  • the virtual data model is trained through historical production data to simulate the factory production line, and the benefit value calculated by borrowing the prediction results corresponding to the test data output by the model is used to determine whether the virtual data model satisfies the valid conditions, which will satisfy the valid conditions.
  • the production parameters in the conditional virtual data model are mapped to the factory production line to realize the optimization of the factory production line using production data, which can more accurately and effectively improve material utilization and product quality, and overall increase the factory's profitability.
  • the production line optimization method based on digital twins provided by the embodiment of the present application is described below. As shown in Figure 2, the method may include the following steps:
  • the equipment information of the factory can be the information of all electromechanical equipment used on the factory's production line, and can be information such as equipment model and equipment parameters, which is used to provide hardware unit information for the factory's production line.
  • the business logic structure can be the frame design information and functional module information of the factory's production line, which is used to arrange the correlation between the equipment locations and functional modules of the factory.
  • the production process flow can be the production information of the factory's production line and the implementation method of the production line. It can be the equipment parameters, material types, environmental parameters and other information during the factory's production line production.
  • the equipment pipeline can connect factory equipment through communication connections, wire connections, physical connections, etc., in order to form a complete framework design and corresponding functions corresponding to the business logic results.
  • the factory's equipment information, business logic structure, and production process flow are obtained from the factory's production line database, and the factory's equipment assembly line is built based on the factory's equipment information and business logic structure.
  • the construction of the factory's equipment assembly line can be a virtual construction on the application software based on the factory's equipment information and business logic structure, or a physical construction of different proportions in the laboratory based on the factory's equipment information and business logic structure, or it can be It can be a construction method that combines virtual and physical objects. Input the information from the production process into the built equipment assembly line to form a factory dynamic model based on the production process.
  • the action of obtaining historical production data can be real-time. It can be that after the factory's production line outputs products once, the historical production data is updated once, and the virtual data model is trained once based on the historical production data. Among them, the training of the virtual data model is constantly iterative based on data updates. Only when the update of historical production data is stopped will the training of the virtual data model in the target direction stop.
  • the factory dynamic model is trained based on historical production data to obtain a virtual data model, including:
  • the training data can be data for targeted training of the factory dynamic model, and data that can meet the training needs can be obtained through data preprocessing of historical production data.
  • the data preprocessing can be a single-factor analysis of historical production data. Screening can also be used to screen historical production data by multiple factors in order to obtain training data.
  • a single factor can be factors such as material ratio, or it can be multiple factors related to the factory's benefit value.
  • the historical production data of the factory is obtained from the factory to be optimized, and the obtained historical production data can be processed, that is, the training data set in the historical production data is screened out according to actual needs to improve the historical production data.
  • Quality can be obtained by filtering samples of historical production data according to the random forest algorithm to obtain a training data set.
  • the factory dynamic model is trained according to the training data set to obtain a virtual data model, so that optimal production parameters can be determined from the production parameters of the virtual data model and the actual production parameters to optimize the factory production line.
  • Training data including:
  • Data preprocessing includes eliminating redundant data and extracting data features; training data is filtered out from the clean data based on the data features of the clean data.
  • eliminating redundant data can be to eliminate duplicate data in historical production data, where redundant data refers to duplicate data in historical production data, and the same data can be stored in different data files.
  • Extracting data features can be based on training requirements to extract data features corresponding to any factors in historical production data. It can be data on motor rotors and assembly heat pipes in historical production data.
  • Cleaning data can be production data obtained by eliminating redundant data and extracting data features from historical production data.
  • the historical production data of the factory is obtained from the factory to be optimized, and the historical production data of the factory is preprocessed. Redundant data operations are eliminated on the historical production data of the factory, and duplicate data in the historical production data of the factory are deleted. , and then extract data features from the deduplicated historical production data, which can be to obtain the frequency in the motor rotor data, the assembly heat pipe data, and obtain the cleaning data corresponding to the historical production data. According to the data characteristics of the cleaning data, training data is selected from the cleaning data. This can be done by filtering out the frequency noise data in the data of the motor rotor and filtering out the training data without noise. It can also be done by filtering out the data on the assembly of heat pipes.
  • Data with abnormal heat dissipation and heat are filtered out, and training data with normal heat dissipation from the data of assembled heat pipes are screened out.
  • the corresponding data features can be extracted from the historical production data according to the optimization target direction of the factory dynamic model, and the factory dynamic model can be optimized and trained in the target direction to obtain a virtual data model.
  • S220 Input the factory's test production data into the virtual data model to obtain prediction results corresponding to the test production data.
  • the value of the input amount of materials can be calculated by testing the input amount of materials in the production data, the unit prices of multiple types, and the material proportions to calculate the value of the input materials corresponding to the output products.
  • Energy consumption can be the energy consumed by the production line from materials to output products. Energy consumption is not only the thermal energy consumed by the materials on the factory production line for production line operations, but also includes employee labor costs, equipment consumption, etc. Various energy consumption.
  • the output value of the output product in the prediction result can be the test production data input into the virtual data model for production line production simulation, and the data and the value of the produced product during the production line production simulation process of the virtual data model are obtained.
  • S240 Determine the predicted benefit value corresponding to the prediction result based on the input value of the material in the prediction result, energy consumption and the output value of the output product in the prediction result, and determine whether the predicted benefit value meets the valid conditions.
  • the test production data is input into the virtual data model for production line production simulation, and the data and output data during the production line production simulation process of the virtual data model are obtained, and the prediction results of the test production data by the virtual data model are obtained.
  • the prediction results of the test production data by the virtual data model are obtained.
  • energy consumption and the output value of the output product in the prediction result corresponding calculations are performed to obtain the predicted benefit value corresponding to the prediction result.
  • the difference between the output value of the output product and the value of energy consumption and material input can be used as the predicted benefit value based on the prediction results. Whether the effective conditions are met is determined based on the predicted benefit value, the preset benefit threshold and the actual benefit value.
  • the predicted benefit value corresponding to the prediction result is determined based on the input value of the material in the prediction result, energy consumption and the output value of the output product in the prediction result, including:
  • V is the predicted benefit value
  • I is the input amount of the material
  • S is the unit price of the material
  • E is the energy consumption in the production process
  • Y is the output of the output product
  • P is the market price of the output product
  • i is the i-th kind Output product
  • n is a positive integer greater than 1
  • Yi is the output of the i-th output product
  • Pi is the market price of the i-th output product.
  • the test production data is input into the virtual data model for production line production simulation, and the data and output data during the production line production simulation process of the virtual data model are obtained, and the prediction results of the test production data by the virtual data model are obtained.
  • the output price of the output product using the prediction results is subtracted from the input price of the material and energy consumption in sequence according to formula (1) to obtain the predicted benefit value corresponding to the test production data.
  • a preset benefit threshold can be set in advance based on actual needs and experimental data, and the preset benefit value threshold can be used to determine whether the production parameters of the virtual data model corresponding to the predicted benefit value meet the factory's production line operation standards. For example, the predicted benefit value can be compared with the preset benefit threshold. If the predicted benefit value is greater than the preset benefit threshold, it is determined that the production parameters of the virtual data model corresponding to the predicted benefit value meet the factory's production line operation standards. Otherwise, if the measured benefit value If the benefit value is less than the preset benefit threshold, it is determined that the production parameters of the virtual data model corresponding to the predicted benefit value do not meet the factory's production line operation standards.
  • the virtual data model corresponding to the predicted benefit value is determined.
  • the production parameters just meet the factory's production line operation standards, but do not meet the effective conditions.
  • the preset benefit threshold may be preset based on the operating standard data of the production parameters of the factory's production line, or may be determined based on the average of the actual benefit values of the factory's production line within a preset time period.
  • the actual benefit value can be the real value of the actual benefit obtained by testing the production data on the current factory's production line, which is used to compare with the predicted benefit value to determine the quality of the production parameters of the factory's production line and the production parameters of the virtual data model. It is also the data information for judging the effective conditions.
  • the predicted benefit value can be compared with the preset benefit threshold. If the predicted benefit value is greater than the preset benefit threshold, it is determined that the production parameters of the virtual data model corresponding to the predicted benefit value meet the factory's operating standards. Under standard conditions, the predicted benefit value is compared with the actual benefit value to determine whether the predicted benefit value meets the valid conditions. Among them, before judging the size of the predicted benefit value and the actual benefit value, the size between the actual benefit value and the preset benefit threshold can be determined in advance. If the actual benefit is less than the preset benefit threshold, there is no need to compare the predicted benefit value and the actual benefit value. The size is in line with the factory's operating standards, that is, it meets the effective conditions.
  • the actual benefit value is greater than the preset benefit threshold, you need to continue to judge and compare the size between the predicted benefit value and the actual benefit value. After the predicted benefit value is greater than the actual benefit value , determine that the predicted benefit value meets the valid conditions. If the predicted benefit value is less than the preset benefit threshold, it is determined that the production parameters of the virtual data model corresponding to the predicted benefit value do not meet the factory's operating standards, it is determined that the predicted benefit value does not meet the valid conditions, and the production parameters of the virtual data model cannot be mapped to Factory production line.
  • the historical production data of the factory is obtained, and the dynamic model of the factory is trained according to the historical production data to obtain a virtual data model; the test production data of the factory is input into the virtual data model to obtain the prediction results corresponding to the test production data; Determine the predicted benefit value corresponding to the prediction result, and determine whether the predicted benefit value meets the valid conditions; when the predicted benefit value meets the valid conditions, map the production parameters corresponding to the virtual data model to the factory's production line, so as to predict the factory's production line. Perform data optimization.
  • the virtual data model is trained through historical production data to simulate the factory production line, and the benefit value calculated by borrowing the prediction results corresponding to the test production data output by the model is calculated to determine that the virtual data model meets the effective conditions, which will satisfy
  • the production parameters in the virtual data model of effective conditions are mapped to the factory production line to realize the optimization of the factory production line using production data, which can more accurately and effectively improve material utilization and product quality, and overall increase the factory's profitability.
  • FIG 3 is a schematic structural diagram of a digital twin-based production line optimization device provided by an embodiment of the present application. As shown in Figure 3, the digital twin-based production line optimization device includes:
  • the model training module 310 is configured to obtain the historical production data of the factory, train the factory dynamic model according to the historical production data, and obtain a virtual data model;
  • the prediction acquisition module 320 is configured to input the test production data of the factory into the The virtual data model obtains the prediction results corresponding to the test production data;
  • the validity judgment module 330 is configured to determine the predicted benefit value corresponding to the prediction result, and determine whether the predicted benefit value meets the valid conditions;
  • the production line optimization module 340 is set so that when the predicted benefit value meets the valid conditions, the production parameters corresponding to the virtual data model are mapped to the production line of the factory to perform data optimization on the production line of the factory.
  • the model training module 310 trains the factory dynamic model based on the historical production data to obtain the virtual data model, which includes:
  • the model training module 310 performs data preprocessing on the historical production data to obtain clean data.
  • the data preprocessing includes eliminating redundant data and extracting data features; according to the data features of the clean data, The training data is filtered out from the cleaning data.
  • the validity judgment module 330 determines whether the predicted benefit value meets valid conditions, including:
  • the validity judgment module 330 determines the predicted benefit value corresponding to the prediction result, including:
  • the validity judgment module 330 determines the predicted benefit value V corresponding to the prediction result based on the input value of the material in the prediction result, energy consumption, and the output value of the output product in the prediction result, including:
  • V is the predicted benefit value
  • I is the input amount of the material
  • S is the unit price of the material
  • E is the energy consumption in the production process
  • Y is the output of the output product
  • P is the market price of the output product
  • i is the i-th kind Output products
  • n is a positive integer greater than 1
  • Y i is the output of the i-th output product
  • P i is the market price of the i-th output product.
  • model training module 310 before the model training module 310 obtains the historical production data of the factory, it also includes:
  • the device of the embodiment of this application obtains the historical production data of the factory, trains the dynamic model of the factory based on the historical production data, and obtains a virtual data model; inputs the test production data of the factory into the virtual data model to obtain prediction results corresponding to the test production data; Determine the predicted benefit value corresponding to the prediction result, and determine whether the predicted benefit value meets the valid conditions; when the predicted benefit value meets the valid conditions, map the production parameters corresponding to the virtual data model to the factory's production line, so as to predict the factory's production line. Perform data optimization.
  • the virtual data model is trained through historical production data to simulate the factory production line, and the benefit value calculated by borrowing the prediction results corresponding to the test data output by the model is used to determine whether the virtual data model satisfies the valid conditions, which will satisfy the valid conditions.
  • the production parameters in the conditional virtual data model are mapped to the factory production line to realize the optimization of the factory production line using production data, which can more accurately and effectively improve material utilization and product quality, and overall increase the factory's profitability.
  • FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. 4 illustrates a block diagram of an exemplary electronic device 12 suitable for implementing embodiments of the present application.
  • the electronic device 12 shown in FIG. 4 is only an example and should not bring any limitations to the functions and scope of use of the embodiments of the present application.
  • electronic device 12 is embodied in the form of a general-purpose computing device.
  • Components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, storage system memory 28, and a bus 18 connecting various system components including storage system memory 28 and processing unit 16.
  • Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics accelerated port, a processor, or a local bus using any of a variety of bus structures.
  • these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (Video Electronics Standards) Association, VESA) local bus and Peripheral Component Interconnect (PCI) bus.
  • Electronic device 12 includes a variety of computer system readable media. These media can be any available media that can be accessed by electronic device 12, including volatile and nonvolatile media, removable and non-removable media.
  • Storage system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and/or cache memory 32.
  • Electronic device 12 may include other removable/non-removable, volatile/non-volatile computer system storage media.
  • storage system 34 may be used to read and write to non-removable, non-volatile magnetic media (not shown in Figure 4, commonly referred to as a "hard drive”).
  • a disk drive may be provided for reading and writing to removable non-volatile disks (e.g., "floppy disks"), and for removable non-volatile optical disks (e.g., Compact Discs).
  • the storage system memory 28 may include at least one program product having a set of (eg, at least one) program modules configured to perform the functions of embodiments of the present application.
  • a program/utility 40 having a set (at least one) of program modules 42 including but not limited to an operating system, one or more application programs, other program modules, and Program data, each or a combination of these examples may include an implementation of a network environment.
  • Program modules 42 generally perform functions and/or methods in the embodiments described herein.
  • Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), may also communicate with one or more devices that enable a user to interact with electronic device 12, and/or with Any device (eg, network card, modem, etc.) that enables the electronic device 12 to communicate with one or more other computing devices. This communication may occur through input/output (I/O) interface 22.
  • the electronic device 12 can also communicate with one or more networks (such as a local area network (Local Area Network, LAN), a wide area network (Wide Area Network, WAN), and/or a public network, such as the Internet) through the network adapter 20. As shown, network adapter 20 communicates with other modules of electronic device 12 via bus 18 .
  • networks such as a local area network (Local Area Network, LAN), a wide area network (Wide Area Network, WAN), and/or a public network, such as the Internet
  • the processing unit 16 executes a variety of functional applications and data processing by running programs stored in the storage system memory 28, for example, implementing the digital twin-based production line optimization method provided by the embodiment of the present application, which method includes:
  • Obtain the historical production data of the factory train the factory dynamic model based on the historical production data, and obtain a virtual data model; input the test production data of the factory into the virtual data model, and obtain the prediction results corresponding to the test production data. ; Determine the predicted benefit value corresponding to the prediction result, and determine whether the predicted benefit value meets the valid conditions; when the predicted benefit value meets the valid conditions, map the production parameters corresponding to the virtual data model to the factory in the production line to perform data optimization on the production line of the factory.
  • the implementation of this application also provides a computer-readable storage medium on which a computer program is stored, wherein when the program is executed by a processor, the digital twin-based production line optimization method is implemented, and the method includes:
  • Obtain the historical production data of the factory train the factory dynamic model based on the historical production data, and obtain a virtual data model; input the test production data of the factory into the virtual data model, and obtain the prediction results corresponding to the test production data. ; Determine the predicted benefit value corresponding to the prediction result, and determine whether the predicted benefit value meets the valid conditions; when the predicted benefit value meets the valid conditions, map the production parameters corresponding to the virtual data model to the factory in the production line to perform data optimization on the production line of the factory.
  • the computer storage medium in the embodiment of the present application may be any combination of one or more computer-readable media.
  • the computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium.
  • the computer-readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. Examples of computer-readable storage media (a non-exhaustive list) include: electrical connections having one or more conductors, portable computer disks, hard drives, RAM, ROM, Erasable Programmable Read Only Memory , EPROM or flash memory), optical fiber, CD-ROM, optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device .
  • Program code embodied on a computer-readable medium can be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, radio frequency (Radio Frequency, RF), etc., or any suitable combination of the above.
  • any appropriate medium including but not limited to wireless, wire, optical cable, radio frequency (Radio Frequency, RF), etc., or any suitable combination of the above.
  • Computer program code for performing operations of the present application may be written in one or more programming languages, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedures, or a combination thereof. programming language such as "C" or a similar programming language.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. Where a remote computer is involved, the remote computer may be connected to the user's computer through any kind of network, including a LAN or WAN, or may be connected to an external computer (such as through the Internet using an Internet service provider).

Abstract

The present application provides a digital twin-based production line optimization method and apparatus, an electronic device, and a medium. The digital twin-based production line optimization method comprises: obtaining historical production data of a factory, and training a factory dynamic model according to the historical production data to obtain a virtual data model; inputting test production data of the factory into the virtual data model to obtain a prediction result corresponding to the test production data; determining a predicted benefit value corresponding to the prediction result, and determining whether the predicted benefit value meets an effective condition; and when the predicted benefit value meets the effective condition, mapping production parameters corresponding to the virtual data model into a production line of the factory so as to optimize data of the production line of the factory.

Description

基于数字孪生的产线优化方法、装置、电子设备及介质Production line optimization methods, devices, electronic equipment and media based on digital twins
本申请要求在2022年04月07日提交中国专利局、申请号为202210358331.7的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application with application number 202210358331.7, which was submitted to the China Patent Office on April 7, 2022. The entire content of this application is incorporated into this application by reference.
技术领域Technical field
本申请涉及计算机技术,例如涉及基于数字孪生的产线优化方法、装置、电子设备及介质。This application relates to computer technology, for example, to production line optimization methods, devices, electronic equipment and media based on digital twins.
背景技术Background technique
随着家用电器的畅销,洗衣机在家用电器中的地位与日俱增,成为必要电器,洗衣机的制造成为实业中一大工厂产业。在洗衣机生产过程中,由于生产物料品类多、形态多、数量多,因此生产物料成本的控制直接决定企业的时长竞争力。大数据企业对生产物料监控,仅是用企业管理系统和工业互联网系统,利用条码和数据采集的方式对生产物料进行跟踪,这些系统多数呈现的是生产物料出入、库存、生产和方位的数据,通过数据分析来控制和优化生产物料在生产过程中全流程的消耗、库位和剩余。虽然在一定程度上能够优化生产物料的使用,降低产线的生产成本,但是缺乏对产线生产全生命周期物料使用的深度嵌入,既无法衔接和关联产线的每个生产工序的生产数据,同时无法动态的适应不断变化的生产环境,实时的提供决策依据优化产线生产物料的使用及生产工艺流程,而且利用数据分析无法直观的展示生产线的运行状态、物料的使用情况。With the sales of household appliances, the status of washing machines in household appliances is increasing day by day, becoming a necessary appliance, and the manufacturing of washing machines has become a major factory industry in the industry. In the production process of washing machines, since there are many types, forms and quantities of production materials, the control of production material costs directly determines the company's time competitiveness. Big data companies only use enterprise management systems and industrial Internet systems to monitor production materials, using barcodes and data collection methods to track production materials. Most of these systems present data on the entry and exit, inventory, production and location of production materials. Use data analysis to control and optimize the consumption, storage locations and surplus of production materials throughout the production process. Although it is possible to optimize the use of production materials and reduce the production cost of the production line to a certain extent, it lacks deep embedding of the use of materials throughout the entire life cycle of the production line, and cannot connect and correlate the production data of each production process of the production line. At the same time, it cannot dynamically adapt to the changing production environment, provide real-time decision-making basis to optimize the use of production line production materials and production process flow, and use data analysis to intuitively display the operating status of the production line and the use of materials.
发明内容Contents of the invention
本申请提供基于数字孪生的产线优化方法、装置、电子设备及介质,以实现利用生产数据对工厂产线的优化,可以更精准有效的提高物料的使用率和产品质量,并整体提高工厂的收益。This application provides production line optimization methods, devices, electronic equipment and media based on digital twins to realize the optimization of factory production lines using production data, which can more accurately and effectively improve material utilization and product quality, and improve the overall efficiency of the factory. income.
第一方面,本申请提供了基于数字孪生的产线优化方法,该方法包括:In the first aspect, this application provides a production line optimization method based on digital twins, which includes:
获取工厂的历史生产数据,根据所述历史生产数据对工厂动态模型进行训练,得到虚拟数据模型;Obtain the historical production data of the factory, train the factory dynamic model based on the historical production data, and obtain a virtual data model;
将所述工厂的测试生产数据输入所述虚拟数据模型,得到所述测试生产数据对应的预测结果;Input the test production data of the factory into the virtual data model to obtain prediction results corresponding to the test production data;
确定所述预测结果对应的预测效益值,并确定所述预测效益值是否满足有 效条件;Determine the predicted benefit value corresponding to the prediction result, and determine whether the predicted benefit value meets the valid conditions;
当所述预测效益值满足有效条件,则将所述虚拟数据模型对应的生产参数映射到所述工厂的产线中,以对所述工厂的产线进行数据优化。When the predicted benefit value meets the valid conditions, the production parameters corresponding to the virtual data model are mapped to the production line of the factory to perform data optimization on the production line of the factory.
第二方面,本申请还提供了基于数字孪生的产线优化装置,该装置包括:In the second aspect, this application also provides a production line optimization device based on digital twins, which includes:
模型训练模块,设置为获取工厂的历史生产数据,根据所述历史生产数据对工厂动态模型进行训练,得到虚拟数据模型;The model training module is configured to obtain the historical production data of the factory, train the factory dynamic model based on the historical production data, and obtain a virtual data model;
预测获取模块,设置为将所述工厂的测试生产数据输入所述虚拟数据模型,得到所述测试生产数据对应的预测结果;The prediction acquisition module is configured to input the test production data of the factory into the virtual data model to obtain prediction results corresponding to the test production data;
有效判断模块,设置为确定所述预测结果对应的预测效益值,并确定所述预测效益值是否满足有效条件;A valid judgment module, configured to determine the predicted benefit value corresponding to the prediction result, and determine whether the predicted benefit value meets the valid conditions;
产线优化模块,设置为当所述预测效益值满足有效条件,则将所述虚拟数据模型对应的生产参数映射到所述工厂的产线中,以对所述工厂的产线进行数据优化。The production line optimization module is configured to map the production parameters corresponding to the virtual data model to the production line of the factory when the predicted benefit value meets the valid conditions, so as to perform data optimization on the production line of the factory.
第三方面,本申请实施例还提供了一种电子设备,该电子设备包括:In a third aspect, embodiments of the present application also provide an electronic device, which includes:
一个或多个处理器;one or more processors;
存储装置,设置为存储一个或多个程序;a storage device configured to store one or more programs;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现上述的基于数字孪生的产线优化方法。When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the above-mentioned production line optimization method based on digital twins.
第四方面,本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述的基于数字孪生的产线优化方法。In a fourth aspect, embodiments of the present application also provide a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned production line optimization method based on digital twins is implemented.
附图说明Description of the drawings
图1是本申请实施例提供的一种基于数字孪生的产线优化方法的流程示意图;Figure 1 is a schematic flow chart of a production line optimization method based on digital twins provided by an embodiment of the present application;
图2是本申请实施例提供的另一种基于数字孪生的产线优化方法的流程示意图;Figure 2 is a schematic flow chart of another production line optimization method based on digital twins provided by an embodiment of the present application;
图3是本申请实施例提供的一种基于数字孪生的产线优化装置的结构示意图;Figure 3 is a schematic structural diagram of a digital twin-based production line optimization device provided by an embodiment of the present application;
图4是本申请实施例提供的一种电子设备的结构示意图。FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图和实施例对本申请进行说明。此处所描述的具体实施例仅仅用于解释本申请。为了便于描述,附图中仅示出了与本申请相关的部分。The present application will be described below in conjunction with the drawings and embodiments. The specific embodiments described herein are merely illustrative of the application. For convenience of description, only parts relevant to the present application are shown in the drawings.
图1为本申请实施例提供的一种基于数字孪生的产线优化方法的流程示意图,该方法可以由本申请实施例提供的基于数字孪生的产线优化装置来执行,该装置可采用软件和/或硬件的方式实现。在一个实施例中,该装置可以集成在电子设备中,电子设备比如可以是服务器。以下实施例将以该装置集成在电子设备中为例进行说明,参考图1,该方法可以包括如下步骤:Figure 1 is a schematic flowchart of a digital twin-based production line optimization method provided by an embodiment of the present application. This method can be executed by a digital twin-based production line optimization device provided by an embodiment of the present application. The device can use software and/or Or implemented in hardware. In one embodiment, the apparatus may be integrated in an electronic device, such as a server. The following embodiments will be described by taking the device integrated in an electronic device as an example. Referring to Figure 1, the method may include the following steps:
S110、获取工厂的历史生产数据,根据历史生产数据对工厂动态模型进行训练,得到虚拟数据模型。S110. Obtain the historical production data of the factory, train the factory dynamic model based on the historical production data, and obtain a virtual data model.
示例地,工厂是进行产线生产的企业,可以对原始物料进行加工生产出商业产品的流水产线。其中,工厂的生产过程中具备工人、设备、物料、方法、环境和测试等多个生产因素。工厂的历史生产数据可以是工厂在实际生产过程中产生的数据信息,可以是工厂生产过程大数据和实际生产上设备运行的运行参数,该参数包括物料方面信息、人员方面信息、设备方面信息和环境方面信息,生产过程中产生的数据信息可以是物料方面的数据:可以是物料配比、对应输入设备、制作时间、经历环节和输出对应设备等,也可以是人员方面的数据:设置岗位、机器对应的人员配比和轮班次序等信息,还可以是设备方面的数据:设备连接方式、设备运行逻辑、设备维修和设备运转规律等信息,还可以是环境方面的数据:不同环境对应的产线的运行参数调整幅度等数据。其中,历史生产数据中的物料配比可以是产品生产过程中原料的比值,比如:制造面包是水、糖、黄油和多类面粉的重量之比;对应输入设备可以是制作物料的制作设备型号、功能等方面的信息;制作时间可以是物料在制作设备中运行的生产时间,比如:制造面包的时间可以是30分钟;经历环节可以是制造产品物料所需要经历的环节,比如:制造面包时需要先对物料进行混合、发酵、造型、烤制和包装。设置岗位可以是根据机器的运转速度确定的生产过程中需要人工介入的环节中设置的对应的岗位,比如:安全巡查岗、废料处理岗、运行监测岗和产品包装岗等信息数据;机器对应的人员配比可以是不同型号的机器根据实际环节需求,每个岗位需要设置的人员,比如:一个生产车间的人员配比可以是8人。轮班次序可以是工厂在机器运转过程中人员的排班次序,可以是根据产品生产速度确定为2班倒和3班倒。设备的连接方式可以是根据产品的合同供给的需求确定该产线的时长,对于持续时间较长的产线选择物理连接方式,保证产线的稳定,对于持续时间较短的产线选择网络连接。设备运行逻辑可以是根据产品的物料比例和环节确定设备运行原理,比如:对于生鲜的制作需要先启动洗涤机器和根据洗涤程度开启制作环节。设备维修和设备运转规律可以是设备维修时间、维修流程、设备运转过程中的运转基础原理。工厂动态模型 可以是基于工厂实际生产线上的多个设备信息、业务逻辑结构和生产工艺流程数据等构架的基础的工厂运作模型,可以清晰的展示生成工厂对应产品的生产过程。虚拟数据模型可以是利用历史生产数据对工厂动态模型进行优化得到的模拟模型,根据实际需求和实验数据对工厂动态模型进行目标性的优化。For example, a factory is a production line enterprise that can process raw materials to produce commercial products. Among them, the factory's production process includes multiple production factors such as workers, equipment, materials, methods, environment and testing. The historical production data of the factory can be the data information generated by the factory in the actual production process. It can be the big data of the factory's production process and the operating parameters of the actual production equipment. The parameters include material information, personnel information, equipment information and Environmental information, the data information generated during the production process can be material data: it can be material ratio, corresponding input equipment, production time, experience links and output corresponding equipment, etc. It can also be personnel data: setting positions, Information such as the personnel ratio and shift sequence corresponding to the machine can also be equipment data: equipment connection methods, equipment operation logic, equipment maintenance and equipment operation rules, etc. It can also be environmental data: products corresponding to different environments. Line operating parameters adjustment range and other data. Among them, the material ratio in the historical production data can be the ratio of raw materials in the product production process, for example: making bread is the ratio of the weight of water, sugar, butter and various types of flour; the corresponding input device can be the production equipment model of the material. , function and other aspects of information; the production time can be the production time of the material running in the production equipment, for example: the time to make bread can be 30 minutes; the experience link can be the link that needs to be experienced to make product materials, for example: when making bread The materials need to be mixed, fermented, shaped, baked and packaged first. The set positions can be corresponding positions set in links that require manual intervention in the production process based on the machine's operating speed, such as: safety inspection posts, waste processing posts, operation monitoring posts, product packaging posts and other information data; the machine corresponding The staffing ratio can be different types of machines. According to the actual link requirements, the staffing required for each position. For example, the staffing ratio of a production workshop can be 8 people. The shift sequence can be the order of personnel in the factory during the operation of the machine, or it can be determined as 2 shifts or 3 shifts according to the product production speed. The connection method of the equipment can be to determine the length of the production line according to the contract supply demand of the product. For the production line with a longer duration, choose the physical connection method to ensure the stability of the production line. For the production line with the shorter duration, choose the network connection. . The equipment operation logic can be to determine the equipment operation principle based on the material proportions and links of the product. For example, for the production of fresh food, it is necessary to start the washing machine first and start the production link according to the degree of washing. Equipment maintenance and equipment operation rules can include equipment maintenance time, maintenance procedures, and basic operating principles during equipment operation. The factory dynamic model can be a basic factory operation model based on multiple equipment information, business logic structure and production process data on the actual production line of the factory. It can clearly display the production process of generating the corresponding products of the factory. The virtual data model can be a simulation model obtained by optimizing the factory dynamic model using historical production data. The factory dynamic model can be targeted and optimized based on actual needs and experimental data.
实现中,从待优化的工厂中获取工厂的历史生产数据,可以对获取到的历史生产数据进行数据处理,提高历史生产数据的数据质量,并根据实际需求筛选出历史生产数据中的训练数据集,可以是根据随机森林算法对历史生产数据进行样本筛选得到训练数据集。根据训练数据集对工厂动态模型进行训练,得到虚拟数据模型,以便于从虚拟数据模型的生产参数和实际生产参数中确定出较优的生产参数对工厂产线进行优化。其中,历史生产数据的获取,通过采集和监视工厂控制系统,获取生产全流程的设备工艺参数、物料种类与编码、多类可编程逻辑控制器(Programmable Logic Controller,PLC)和传感器采集的设备与环境参数,其中,对历史生产数据进行数据处理,还可以是对历史生产数据进行格式化实现相应的格式化的统一。In the implementation, the historical production data of the factory is obtained from the factory to be optimized. The obtained historical production data can be processed to improve the data quality of the historical production data, and the training data set in the historical production data can be screened out according to actual needs. , the training data set can be obtained by filtering samples of historical production data according to the random forest algorithm. The factory dynamic model is trained according to the training data set to obtain a virtual data model, so that optimal production parameters can be determined from the production parameters of the virtual data model and the actual production parameters to optimize the factory production line. Among them, historical production data is acquired through collecting and monitoring the factory control system to obtain equipment process parameters, material types and codes, multi-type Programmable Logic Controller (PLC) and sensor-collected equipment and codes for the entire production process. Environmental parameters, including data processing of historical production data, and formatting of historical production data to achieve corresponding formatting unification.
本申请实施例中,可以是将历史生产数据中的训练数据集作为工厂动态模型的输入对神经网络的参数进行训练,学习训练数据集中多个参数之间的运行规律和内在联系,得到相应的运行原理,得到虚拟数据模型。在训练的过程中可以是根据历史生产数据中的单个因素进行训练,比如:对历史生产数据中的物料配比进行标记,将物料配比和产品质量输入工厂动态模型进行训练,工厂动态模型中的神经网络学习物料配比和产品质量之间的内在联系,得到用于输入产品物料配比的虚拟数据模型,其中,单个因素可以是历史生产数据中的任意一种类型的数据;当训练过程中使用历史生产数据中的多个因素进行训练,即根据实际需求标记需要预测因素,并将标记因素和其他数据输入工厂动态模型进行训练,工厂动态模型中的神经网络学习标记因素和其他数据之间的内在联系,得到多个因素的虚拟数据模型。其中,虚拟数据模型根据实际需求确定预测结果中的信息类别。In the embodiment of this application, the training data set in the historical production data can be used as the input of the factory dynamic model to train the parameters of the neural network, learn the operating rules and internal relationships between multiple parameters in the training data set, and obtain the corresponding The operating principle is used to obtain the virtual data model. During the training process, training can be based on a single factor in the historical production data, for example: marking the material ratio in the historical production data, inputting the material ratio and product quality into the factory dynamic model for training, and in the factory dynamic model The neural network learns the intrinsic relationship between material ratio and product quality, and obtains a virtual data model for inputting product material ratio, in which a single factor can be any type of data in historical production data; when the training process Multiple factors in historical production data are used for training, that is, need prediction factors are marked according to actual demand, and the marked factors and other data are input into the factory dynamic model for training. The neural network in the factory dynamic model learns the combination of marked factors and other data. The internal relationships among them are used to obtain a virtual data model of multiple factors. Among them, the virtual data model determines the information categories in the prediction results based on actual needs.
本申请实施例中,根据历史生产数据对工厂动态模型进行训练,得到虚拟数据模型的训练过程中,通过强化算法在模拟的过程中找到历史生产数据中的物料配比的最优解,优化工厂的产线上的参数,提供工厂物料的使用效率和产品质量,结合生产过程中产生的废料。在优化生产参数的基础上,可以结合产线的价值流图,优化产线生产工艺流程,缩短产品开发周期,提供产线生产效率。其中,对虚拟数据模型的训练实现了对工厂的产线上的几何、物理、行为、规则、状态等特征进行精确的模拟,实现了实际生产线活动的数字化重建。In the embodiments of this application, the factory dynamic model is trained based on historical production data, and during the training process of the virtual data model, the optimal solution of the material ratio in the historical production data is found during the simulation process through an enhanced algorithm, and the factory is optimized. The parameters on the production line provide the efficiency of material use and product quality in the factory, combined with the waste generated during the production process. On the basis of optimizing production parameters, the value stream map of the production line can be combined to optimize the production line production process, shorten the product development cycle, and improve production line production efficiency. Among them, the training of the virtual data model realizes the accurate simulation of the geometry, physics, behavior, rules, status and other characteristics of the factory's production line, and realizes the digital reconstruction of the actual production line activities.
S120、将工厂的测试生产数据输入虚拟数据模型,得到测试生产数据对应 的预测结果。S120. Input the factory's test production data into the virtual data model to obtain prediction results corresponding to the test production data.
示例地,测试生产数据可以是历史生产数据中对虚拟数据模型进行测试的数据集,用于获取虚拟数据模型输出的测试数据对应的预测结果,其中,测试生产数据对应的预测结果可以是用来计算评价虚拟数据模型的生产参数的预测效益值的数据,其中,预测结果中的数据类型和数据信息内容与历史生产数据中的一致,均是与实际工厂的生产线上多个数据信息对应,并根据实际需求确定预测结果中的数据类型和数据信息。比如:如果以物料的产出效益作为预测目标,其中,预测结果中可以包括输入物料对应的输出产品和输出产品的数量,预测结果中也可以包括输出物料对应的能源消耗量。For example, the test production data can be a data set for testing the virtual data model in historical production data, used to obtain prediction results corresponding to the test data output by the virtual data model, where the prediction results corresponding to the test production data can be used to obtain Calculate and evaluate the data of the predicted benefit value of the production parameters of the virtual data model. Among them, the data type and data information content in the prediction results are consistent with the historical production data. They all correspond to multiple data information on the production line of the actual factory, and Determine the data type and data information in the prediction results based on actual needs. For example, if the output efficiency of materials is used as the prediction target, the prediction results can include the output products corresponding to the input materials and the quantity of the output products. The prediction results can also include the energy consumption corresponding to the output materials.
实现中,从工厂的历史生产数据中选取测试生产数据,将测试生产数据输入虚拟数据模型模拟工厂产线的生产,当根据测试生产数据以及虚拟数据模型进行模拟工厂生产结束后,得到虚拟数据模型输出的测试数据对应的预测结果,以便于根据测试数据对应的预测结果计算预测结果对应的预测效益值,根据预测效益值判断虚拟数据模型的生产参数是否优于工厂实际生产参数,以便根据判断结果对工厂产线的生产参数进行优化。In the implementation, the test production data is selected from the factory's historical production data, and the test production data is input into the virtual data model to simulate the production of the factory production line. When the factory production is simulated based on the test production data and the virtual data model, the virtual data model is obtained. The prediction results corresponding to the output test data are used to calculate the predicted benefit value corresponding to the prediction result based on the prediction results corresponding to the test data. Based on the predicted benefit value, it is judged whether the production parameters of the virtual data model are better than the actual production parameters of the factory, so that the judgment results can be Optimize the production parameters of the factory production line.
S130、确定预测结果对应的预测效益值,并确定预测效益值是否满足有效条件。S130. Determine the predicted benefit value corresponding to the prediction result, and determine whether the predicted benefit value meets the valid conditions.
示例地,预测结果对应的预测效益值可以是根据预测结果中的数据信息计算出的工厂对应的产品的效益值,其中,效益值的产生通过物料的输入量价值、能源消耗和预测结果中输出产物的输出价值进行确定。其中,能量的消耗不仅是工厂产线上物料进行产线操作消耗的热能类的能量,还包括员工的劳务成本、设备的消耗等多种能源消耗。可以根据实际需求和实验数据预先设置预设效益阈值,通过预设效益值阈值确定预测效益是否满足有效条件。For example, the predicted benefit value corresponding to the prediction result can be the benefit value of the product corresponding to the factory calculated based on the data information in the prediction result, where the benefit value is generated through the input value of the material, energy consumption, and output from the prediction result. The output value of the product is determined. Among them, energy consumption is not only thermal energy consumed by materials on the factory production line for production line operations, but also includes employee labor costs, equipment consumption and other energy consumption. The preset benefit threshold can be set in advance based on actual needs and experimental data, and the preset benefit value threshold can be used to determine whether the predicted benefit meets the effective conditions.
实现中,可以将预测效益值与预设效益阈值进行比较,如果预测效益值大于预设效益阈值,则确定预测效益值对应的虚拟数据模型的生产参数符合工厂的运行标准,可以根据预测效益值与工厂的实际效益值进行比较确定预测效益值是否满足有效条件,反之,如果预测效益值小于预设效益阈值,则确定预测效益值对应的虚拟数据模型的生产参数不符合工厂的运行标准,则确定预测效益值不满足有效条件,不能将虚拟数据模型的生产参数映射到工厂的产线。During implementation, the predicted benefit value can be compared with the preset benefit threshold. If the predicted benefit value is greater than the preset benefit threshold, it is determined that the production parameters of the virtual data model corresponding to the predicted benefit value meet the factory's operating standards. According to the predicted benefit value Compare with the actual benefit value of the factory to determine whether the predicted benefit value meets the valid conditions. On the contrary, if the predicted benefit value is less than the preset benefit threshold, it is determined that the production parameters of the virtual data model corresponding to the predicted benefit value do not meet the factory's operating standards, then It is determined that the predicted benefit value does not meet the valid conditions, and the production parameters of the virtual data model cannot be mapped to the factory's production line.
S140、当预测效益值满足有效条件,则将虚拟数据模型对应的生产参数映射到工厂的产线中,以对工厂的产线进行数据优化。S140. When the predicted benefit value meets the valid conditions, map the production parameters corresponding to the virtual data model to the factory's production line to perform data optimization on the factory's production line.
实现中,虚拟数据模型对应的生产参数可以是用于指导虚拟数据模型对测试数据进行模拟产线加工的参数,其中,生产参数包括产线的运行时间、物料 配比、生产行为规则等参数。当预测效益值与预测效益阈值和实际效益值进行比较,确定出预测效益值满足有效条件,则说明虚拟数据模型的生产参数优于工厂实际使用的生产参数,则将虚拟数据模型的生产参数映射到工厂的产线中,映射后工厂的产线的生产参数为虚拟数据模型的生产参数,使得工厂的产线的生产参数进行更新,以对工厂的产线进行数据优化。其中,对工厂的产线进行数据优化可以是工厂的产线的物料配比方面的优化,也可以是对工厂的产线的整体优化,优化的针对性主要体现在数据预处理时,对数据样本的筛选和机器学习算法的训练。In implementation, the production parameters corresponding to the virtual data model can be parameters used to guide the virtual data model to simulate production line processing of test data. The production parameters include parameters such as the running time of the production line, material proportions, and production behavior rules. When the predicted benefit value is compared with the predicted benefit threshold and the actual benefit value, and it is determined that the predicted benefit value meets the valid conditions, it means that the production parameters of the virtual data model are better than the production parameters actually used by the factory, then the production parameters of the virtual data model are mapped To the factory's production line, the production parameters of the factory's production line are mapped to the production parameters of the virtual data model, so that the production parameters of the factory's production line are updated to optimize the data of the factory's production line. Among them, the data optimization of the factory's production line can be the optimization of the material ratio of the factory's production line, or the overall optimization of the factory's production line. The pertinence of the optimization is mainly reflected in the data preprocessing. Screening of samples and training of machine learning algorithms.
本申请实施例中,虚拟数据模型对应的生产参数可以是基于虚拟数据模型进行训练过程中的因素对应的数据,即如果对单个因素进行训练时,生产参数可以是标记的历史生产数据中的单个因素对应的数据,比如:对历史生产数据中的物料配比进行标记时,虚拟数据模型对应的生产参数即是物料配比;对多个因素进行训练时,生产参数可以是标记的历史生产数据中的数据信息。In the embodiment of the present application, the production parameters corresponding to the virtual data model may be data corresponding to factors in the training process based on the virtual data model. That is, if a single factor is trained, the production parameter may be a single factor in the marked historical production data. Data corresponding to factors, for example: when marking material ratios in historical production data, the production parameters corresponding to the virtual data model are the material ratios; when training multiple factors, the production parameters can be marked historical production data data information in.
本申请实施例中,通过获取工厂的历史生产数据,根据历史生产数据对工厂动态模型进行训练,得到虚拟数据模型;将工厂的测试生产数据输入虚拟数据模型,得到测试生产数据对应的预测结果;确定预测结果对应的预测效益值,并确定预测效益值是否满足有效条件;当预测效益值满足有效条件,则将虚拟数据模型对应的生产参数映射到工厂的产线中,以对工厂的产线进行数据优化。即,本申请实施例,通过历史生产数据训练虚拟数据模型对工厂产线进行模拟,并借用模型输出的测试数据对应的预测结果计算出的效益值确定虚拟数据模型是否满足有效条件,将满足有效条件的虚拟数据模型中的生产参数映射到工厂产线中,实现利用生产数据对工厂产线的优化,可以更精准有效的提高物料的使用率和产品质量,并整体提高工厂的收益。In the embodiment of this application, the historical production data of the factory is obtained, and the dynamic model of the factory is trained according to the historical production data to obtain a virtual data model; the test production data of the factory is input into the virtual data model to obtain the prediction results corresponding to the test production data; Determine the predicted benefit value corresponding to the prediction result, and determine whether the predicted benefit value meets the valid conditions; when the predicted benefit value meets the valid conditions, map the production parameters corresponding to the virtual data model to the factory's production line, so as to predict the factory's production line. Perform data optimization. That is, in the embodiment of this application, the virtual data model is trained through historical production data to simulate the factory production line, and the benefit value calculated by borrowing the prediction results corresponding to the test data output by the model is used to determine whether the virtual data model satisfies the valid conditions, which will satisfy the valid conditions. The production parameters in the conditional virtual data model are mapped to the factory production line to realize the optimization of the factory production line using production data, which can more accurately and effectively improve material utilization and product quality, and overall increase the factory's profitability.
下面描述本申请实施例提供的基于数字孪生的产线优化方法,如图2所示,该方法可以包括如下步骤:The production line optimization method based on digital twins provided by the embodiment of the present application is described below. As shown in Figure 2, the method may include the following steps:
S210、获取工厂的历史生产数据,根据历史生产数据对工厂动态模型进行训练,得到虚拟数据模型。S210. Obtain the historical production data of the factory, train the factory dynamic model based on the historical production data, and obtain a virtual data model.
获取工厂的历史生产数据之前,还包括:Before obtaining the historical production data of the factory, it also includes:
获取工厂的设备信息、业务逻辑结构和生产工艺流程;根据设备信息和业务逻辑结构搭架工厂的设备流水线;根据设备流水线和生产工艺流程形成工厂的工厂动态模型。Obtain the equipment information, business logic structure and production process flow of the factory; build the equipment assembly line of the factory based on the equipment information and business logic structure; form a factory dynamic model of the factory based on the equipment assembly line and production process flow.
示例地,工厂的设备信息可以是工厂的产线上所有使用的机电器械设备信 息,可以是设备型号和设备参数等信息,用于给工厂的产线提供硬件单元信息。业务逻辑结构可以是工厂的产线的框架设计信息和功能模块信息,用于布置工厂的设备位置和功能模块之间的关联性。生产工艺流程可以是工厂的产线的生产信息和产线生产的实施方法,可以是工厂的产线生产时的设备参数、物料种类、环境参数等信息。设备流水线可以是通过通信连接、导线连接和物理连接等方式将工厂的设备进行连接,以便于形成业务逻辑结果对应的完整的框架设计及对应的功能。For example, the equipment information of the factory can be the information of all electromechanical equipment used on the factory's production line, and can be information such as equipment model and equipment parameters, which is used to provide hardware unit information for the factory's production line. The business logic structure can be the frame design information and functional module information of the factory's production line, which is used to arrange the correlation between the equipment locations and functional modules of the factory. The production process flow can be the production information of the factory's production line and the implementation method of the production line. It can be the equipment parameters, material types, environmental parameters and other information during the factory's production line production. The equipment pipeline can connect factory equipment through communication connections, wire connections, physical connections, etc., in order to form a complete framework design and corresponding functions corresponding to the business logic results.
实现中,从工厂的产线数据库中获取工厂的设备信息、业务逻辑结构和生产工艺流程,根据工厂的设备信息和业务逻辑结构进行工厂的设备流水线的搭建。其中,工厂的设备流水线的搭建可以是根据工厂的设备信息和业务逻辑结构在应用软件上的虚拟搭建,也可以是根据工厂的设备信息和业务逻辑结构在实验室的不同比例的实物搭建,还可以是虚拟和实物结合的搭建方式。对搭建的设备流水线中输入生产工艺流程中的信息,以便于根据生产工艺流程形成工厂动态模型。During implementation, the factory's equipment information, business logic structure, and production process flow are obtained from the factory's production line database, and the factory's equipment assembly line is built based on the factory's equipment information and business logic structure. Among them, the construction of the factory's equipment assembly line can be a virtual construction on the application software based on the factory's equipment information and business logic structure, or a physical construction of different proportions in the laboratory based on the factory's equipment information and business logic structure, or it can be It can be a construction method that combines virtual and physical objects. Input the information from the production process into the built equipment assembly line to form a factory dynamic model based on the production process.
本申请实施例中,获取历史生产数据的动作可以是实时的,可以是工厂的产线进行一次输出产物后,对历史生产数据进行一次更新,并根据历史生产数据对虚拟数据模型进行一次训练,其中,对虚拟数据模型的训练根据数据更新不断在迭代,停止历史生产数据的更新才会停止目标方向上虚拟数据模型的训练。In the embodiment of this application, the action of obtaining historical production data can be real-time. It can be that after the factory's production line outputs products once, the historical production data is updated once, and the virtual data model is trained once based on the historical production data. Among them, the training of the virtual data model is constantly iterative based on data updates. Only when the update of historical production data is stopped will the training of the virtual data model in the target direction stop.
根据历史生产数据对工厂动态模型进行训练,得到虚拟数据模型,包括:The factory dynamic model is trained based on historical production data to obtain a virtual data model, including:
将历史生产数据进行数据预处理,得到训练数据;根据训练数据对工厂动态模型进行训练,得到虚拟数据模型。Perform data preprocessing on historical production data to obtain training data; train the factory dynamic model based on the training data to obtain a virtual data model.
示例地,训练数据可以是对工厂动态模型进行针对性训练的数据,通过历史生产数据进行数据预处理得到可以满足训练需求的数据,其中,对数据预处理可以是对历史生产数据进行单个因素的筛选,也可是对历史生产数据进行多个因素的筛选,以便于获得训练数据。单个因素可以是物料配比等因素,也可以是和工厂的效益值相关的多个因素。For example, the training data can be data for targeted training of the factory dynamic model, and data that can meet the training needs can be obtained through data preprocessing of historical production data. The data preprocessing can be a single-factor analysis of historical production data. Screening can also be used to screen historical production data by multiple factors in order to obtain training data. A single factor can be factors such as material ratio, or it can be multiple factors related to the factory's benefit value.
实现中,从待优化的工厂中获取工厂的历史生产数据,可以对获取到的历史生产数据进行数据处理,即根据实际需求筛选出历史生产数据中的训练数据集,以提高历史生产据的数据质量,可以是根据随机森林算法对历史生产数据进行样本筛选得到训练数据集。根据训练数据集对工厂动态模型进行训练,得到虚拟数据模型,以便于从虚拟数据模型的生产参数和实际生产参数中确定出较优的生产参数对工厂产线进行优化。In implementation, the historical production data of the factory is obtained from the factory to be optimized, and the obtained historical production data can be processed, that is, the training data set in the historical production data is screened out according to actual needs to improve the historical production data. Quality can be obtained by filtering samples of historical production data according to the random forest algorithm to obtain a training data set. The factory dynamic model is trained according to the training data set to obtain a virtual data model, so that optimal production parameters can be determined from the production parameters of the virtual data model and the actual production parameters to optimize the factory production line.
将历史生产数据进行数据预处理,得到训练数据,包括:Perform data preprocessing on historical production data to obtain training data, including:
将历史生产数据进行数据预处理,得到清洗数据,数据预处理包括消冗余数据和提取数据特征;根据清洗数据的数据特征从清洗数据中筛选出训练数据。Perform data preprocessing on historical production data to obtain clean data. Data preprocessing includes eliminating redundant data and extracting data features; training data is filtered out from the clean data based on the data features of the clean data.
示例地,消冗余数据可以是将历史生产数据中重复的数据进行消除,其中,冗余数据指历史生产数据中的重复数据,可以是同一数据存储在不同的数据文件中。提取数据特征可以是根据训练需求对历史生产数据进行任意因素对应的数据特征进行提取,可以是历史生产数据中的电机转子的数据、装配热管的数据。清洗数据可以是对历史生产数据进行消冗余数据和提取数据特征操作后,得到的生产数据。For example, eliminating redundant data can be to eliminate duplicate data in historical production data, where redundant data refers to duplicate data in historical production data, and the same data can be stored in different data files. Extracting data features can be based on training requirements to extract data features corresponding to any factors in historical production data. It can be data on motor rotors and assembly heat pipes in historical production data. Cleaning data can be production data obtained by eliminating redundant data and extracting data features from historical production data.
实现中,从待优化的工厂中获取工厂的历史生产数据,对工厂的历史生产数据进行数据预处理,可是对工厂的历史生产数据消除冗余数据操作,删除工厂的历史生产数据中的重复数据,再对去重的历史生产数据提取数据特征,可以是获取电机转子的数据中的频率、装配热管的数据,得到历史生产数据对应的清洗数据。根据清洗数据的数据特征从清洗数据中刷选出训练数据,可以是对电机转子的数据中频率的噪音数据进行过滤掉,筛选出不含噪音的训练数据,也可以是将装配热管的数据中散热和热量不正常的数据进行过滤掉,筛选出装配热管的数据中散热正常的训练数据。其中,可以根据工厂动态模型的优化目标方向对历史生产数据提取对应的数据特征,对工厂动态模型进行目标方向的优化训练,得到虚拟数据模型。In the implementation, the historical production data of the factory is obtained from the factory to be optimized, and the historical production data of the factory is preprocessed. Redundant data operations are eliminated on the historical production data of the factory, and duplicate data in the historical production data of the factory are deleted. , and then extract data features from the deduplicated historical production data, which can be to obtain the frequency in the motor rotor data, the assembly heat pipe data, and obtain the cleaning data corresponding to the historical production data. According to the data characteristics of the cleaning data, training data is selected from the cleaning data. This can be done by filtering out the frequency noise data in the data of the motor rotor and filtering out the training data without noise. It can also be done by filtering out the data on the assembly of heat pipes. Data with abnormal heat dissipation and heat are filtered out, and training data with normal heat dissipation from the data of assembled heat pipes are screened out. Among them, the corresponding data features can be extracted from the historical production data according to the optimization target direction of the factory dynamic model, and the factory dynamic model can be optimized and trained in the target direction to obtain a virtual data model.
S220、将工厂的测试生产数据输入虚拟数据模型,得到测试生产数据对应的预测结果。S220: Input the factory's test production data into the virtual data model to obtain prediction results corresponding to the test production data.
S230、确定预测结果中物料的输入量价值、能源消耗和预测结果中输出产物的输出价值。S230. Determine the input value of the material in the prediction result, the energy consumption, and the output value of the output product in the prediction result.
实现中,物料的输入量价值可以是测试生产数据中物料的输入量、多种类单价和物料配比计算出输出产物对应的输入物料的价值。能源消耗可以是从物料到输出产物进行产线消耗的能量,其中,能量的消耗不仅是工厂产线上物料进行产线操作消耗的热能类的能量,还包括员工的劳务成本、设备的消耗等多种能源消耗。预测结果中的输出产物的输出价值可以是测试生产数据输入虚拟数据模型中进行产线生产模拟,并获得虚拟数据模型进行产线生产模拟过程中的数据和生产出产品的价值。将测试生产数据输入虚拟数据模型中进行产线生产模拟,并获得虚拟数据模型进行产线生产模拟过程中的数据和输出数据,得到虚拟数据模型对测试生产数据的预测结果,以便于根据预测结果中物料的输入量价值、能源消耗和预测结果中输出产物的输出价值计算预测效益值,确定虚拟数据模型的生产参数是否可以映射工厂的产线上。In implementation, the value of the input amount of materials can be calculated by testing the input amount of materials in the production data, the unit prices of multiple types, and the material proportions to calculate the value of the input materials corresponding to the output products. Energy consumption can be the energy consumed by the production line from materials to output products. Energy consumption is not only the thermal energy consumed by the materials on the factory production line for production line operations, but also includes employee labor costs, equipment consumption, etc. Various energy consumption. The output value of the output product in the prediction result can be the test production data input into the virtual data model for production line production simulation, and the data and the value of the produced product during the production line production simulation process of the virtual data model are obtained. Input the test production data into the virtual data model for production line production simulation, and obtain the data and output data of the virtual data model during the production line production simulation process, and obtain the prediction results of the test production data by the virtual data model, so as to facilitate the prediction results based on Calculate the predicted benefit value based on the input value of the material, energy consumption, and output value of the output product in the prediction result, and determine whether the production parameters of the virtual data model can be mapped to the factory's production line.
S240、根据预测结果中物料的输入量价值、能源消耗和预测结果中输出产物的输出价值确定预测结果对应的预测效益值,并确定预测效益值是否满足有效条件。S240. Determine the predicted benefit value corresponding to the prediction result based on the input value of the material in the prediction result, energy consumption and the output value of the output product in the prediction result, and determine whether the predicted benefit value meets the valid conditions.
实现中,将测试生产数据输入虚拟数据模型中进行产线生产模拟,并获得虚拟数据模型进行产线生产模拟过程中的数据和输出数据,得到虚拟数据模型对测试生产数据的预测结果。根据预测结果中物料的输入量价值、能源消耗和预测结果中输出产物的输出价值进行相应的计算,得到预测结果对应的预测效益值。可以根据预测结果输出产物的输出价值与能源消耗和物料的输入量价值之间的差值作为预测效益值,在根据预测效益值与预设效益阈值和实际效益值的大小确定是否满足有效条件。During implementation, the test production data is input into the virtual data model for production line production simulation, and the data and output data during the production line production simulation process of the virtual data model are obtained, and the prediction results of the test production data by the virtual data model are obtained. According to the input value of the material in the prediction result, energy consumption and the output value of the output product in the prediction result, corresponding calculations are performed to obtain the predicted benefit value corresponding to the prediction result. The difference between the output value of the output product and the value of energy consumption and material input can be used as the predicted benefit value based on the prediction results. Whether the effective conditions are met is determined based on the predicted benefit value, the preset benefit threshold and the actual benefit value.
根据预测结果中物料的输入量价值、能源消耗和预测结果中输出产物的输出价值确定预测结果对应的预测效益值,包括:The predicted benefit value corresponding to the prediction result is determined based on the input value of the material in the prediction result, energy consumption and the output value of the output product in the prediction result, including:
Figure PCTCN2022136469-appb-000001
Figure PCTCN2022136469-appb-000001
其中,V为预测效益值,I为物料的输入量,S为物料的单位价格,E为生产过程中能源消耗,Y为输出产物的产量,P为输出产物的市场价格,i为第i种输出产物,n为大于1正整数,Y i为第i种输出产物的产量,P i为第i种输出产物的市场价格。 Among them, V is the predicted benefit value, I is the input amount of the material, S is the unit price of the material, E is the energy consumption in the production process, Y is the output of the output product, P is the market price of the output product, and i is the i-th kind Output product, n is a positive integer greater than 1, Yi is the output of the i-th output product, and Pi is the market price of the i-th output product.
实现中,将测试生产数据输入虚拟数据模型中进行产线生产模拟,并获得虚拟数据模型进行产线生产模拟过程中的数据和输出数据,得到虚拟数据模型对测试生产数据的预测结果。根据预测结果中输出产物的产量、输出产物的市场价格和输出产物种类计算出预测结果中输出产物的输出价值,并根据物料的输入量和物料的单位价格计算出物料的输入量价值。利用预测结果输出产物的输出价格依据公式(1)依次减去物料的输入价格和能源消耗,得到测试生产数据对应的预测效益值。During implementation, the test production data is input into the virtual data model for production line production simulation, and the data and output data during the production line production simulation process of the virtual data model are obtained, and the prediction results of the test production data by the virtual data model are obtained. Calculate the output value of the output product in the prediction result based on the output of the output product, the market price of the output product, and the type of output product, and calculate the input volume value of the material based on the input volume of the material and the unit price of the material. The output price of the output product using the prediction results is subtracted from the input price of the material and energy consumption in sequence according to formula (1) to obtain the predicted benefit value corresponding to the test production data.
确定预测效益值是否满足有效条件,包括:Determine whether the predicted benefit value meets valid conditions, including:
确定预测效益值是否大于预设效益阈值;当预测效益值大于预设效益阈值,确定预设效益阈值是否大于实际效益值;当预设效益阈值不大于实际效益值时,确定预测效益值是否大于实际效益值;当预测效益值大于实际效益值,则预测效益值满足有效条件。Determine whether the predicted benefit value is greater than the preset benefit threshold; when the predicted benefit value is greater than the preset benefit threshold, determine whether the preset benefit threshold is greater than the actual benefit value; when the preset benefit threshold is not greater than the actual benefit value, determine whether the predicted benefit value is greater than Actual benefit value; when the predicted benefit value is greater than the actual benefit value, the predicted benefit value meets the valid conditions.
示例地,可以根据实际需求和实验数据预先设置预设效益阈值,通过预设效益值阈值确定预测效益值对应的虚拟数据模型的生产参数是否满足工厂的产 线运行标准。比如,可以将预测效益值与预设效益阈值进行比较,如果预测效益值大于预设效益阈值,则确定预测效益值对应的虚拟数据模型的生产参数满足工厂的产线运行标准,反之,如果测效益值小于预设效益阈值,则确定预测效益值对应的虚拟数据模型的生产参数不满足工厂的产线运行标准,如果预测效益值等于预设效益阈值,则确定预测效益值对应的虚拟数据模型的生产参数刚好满足工厂的产线运行标准,但是不满足有效条件。预设效益阈值可以是根据工厂的产线的生产参数的运行标准数据预设的,也可以根据预设时间段内工厂的产线的实际效益值的均值确定出的。实际效益值可以是测试生产数据在当前工厂的产线上获得到的实际效益的真实值,用于与预测效益值进行比较判断工厂的产线的生产参数与虚拟数据模型的生产参数的优劣性,也是判断有效条件的数据信息。For example, a preset benefit threshold can be set in advance based on actual needs and experimental data, and the preset benefit value threshold can be used to determine whether the production parameters of the virtual data model corresponding to the predicted benefit value meet the factory's production line operation standards. For example, the predicted benefit value can be compared with the preset benefit threshold. If the predicted benefit value is greater than the preset benefit threshold, it is determined that the production parameters of the virtual data model corresponding to the predicted benefit value meet the factory's production line operation standards. Otherwise, if the measured benefit value If the benefit value is less than the preset benefit threshold, it is determined that the production parameters of the virtual data model corresponding to the predicted benefit value do not meet the factory's production line operation standards. If the predicted benefit value is equal to the preset benefit threshold, then the virtual data model corresponding to the predicted benefit value is determined. The production parameters just meet the factory's production line operation standards, but do not meet the effective conditions. The preset benefit threshold may be preset based on the operating standard data of the production parameters of the factory's production line, or may be determined based on the average of the actual benefit values of the factory's production line within a preset time period. The actual benefit value can be the real value of the actual benefit obtained by testing the production data on the current factory's production line, which is used to compare with the predicted benefit value to determine the quality of the production parameters of the factory's production line and the production parameters of the virtual data model. It is also the data information for judging the effective conditions.
实现中,可以将预测效益值与预设效益阈值进行比较,如果预测效益值大于预设效益阈值,则确定预测效益值对应的虚拟数据模型的生产参数符合工厂的运行标准,在符合工厂的运行标准的条件下,再将预测效益值与实际效益值的进行比较,确定预测效益值是否满足有效条件。其中,判断预测效益值与实际效益值大小之前,可以预先确定实际效益值和预设效益阈值之间的大小,如果实际效益小于预设效益阈值,则无须比较预测效益值和实际效益值之间的大小,符合工厂的运行标准,即满足有效条件,如果实际效益值大于预设效益阈值,则需要继续判断比较预测效益值和实际效益值之间的大小,在预测效益值大于实际效益值之后,确定预测效益值满足有效条件。如果预测效益值小于预设效益阈值,则确定预测效益值对应的虚拟数据模型的生产参数不符合工厂的运行标准,则确定预测效益值不满足有效条件,不能将虚拟数据模型的生产参数映射到工厂的产线。During implementation, the predicted benefit value can be compared with the preset benefit threshold. If the predicted benefit value is greater than the preset benefit threshold, it is determined that the production parameters of the virtual data model corresponding to the predicted benefit value meet the factory's operating standards. Under standard conditions, the predicted benefit value is compared with the actual benefit value to determine whether the predicted benefit value meets the valid conditions. Among them, before judging the size of the predicted benefit value and the actual benefit value, the size between the actual benefit value and the preset benefit threshold can be determined in advance. If the actual benefit is less than the preset benefit threshold, there is no need to compare the predicted benefit value and the actual benefit value. The size is in line with the factory's operating standards, that is, it meets the effective conditions. If the actual benefit value is greater than the preset benefit threshold, you need to continue to judge and compare the size between the predicted benefit value and the actual benefit value. After the predicted benefit value is greater than the actual benefit value , determine that the predicted benefit value meets the valid conditions. If the predicted benefit value is less than the preset benefit threshold, it is determined that the production parameters of the virtual data model corresponding to the predicted benefit value do not meet the factory's operating standards, it is determined that the predicted benefit value does not meet the valid conditions, and the production parameters of the virtual data model cannot be mapped to Factory production line.
S250、当预测效益值满足有效条件,则将虚拟数据模型对应的生产参数映射到工厂的产线中,以对工厂的产线进行数据优化。S250. When the predicted benefit value meets the valid conditions, map the production parameters corresponding to the virtual data model to the factory's production line to perform data optimization on the factory's production line.
本申请实施例中,通过获取工厂的历史生产数据,根据历史生产数据对工厂动态模型进行训练,得到虚拟数据模型;将工厂的测试生产数据输入虚拟数据模型,得到测试生产数据对应的预测结果;确定预测结果对应的预测效益值,并确定预测效益值是否满足有效条件;当预测效益值满足有效条件,则将虚拟数据模型对应的生产参数映射到工厂的产线中,以对工厂的产线进行数据优化。即,本申请实施例,通过历史生产数据训练虚拟数据模型对工厂产线进行模拟,并借用模型输出的测试生产数据对应的预测结果计算出的效益值计算确定虚拟数据模型满足有效条件,将满足有效条件的虚拟数据模型中的生产参数映射到工厂产线中,实现利用生产数据对工厂产线的优化,可以更精准有效的提高物料的使用率和产品质量,并整体提高工厂的收益。In the embodiment of this application, the historical production data of the factory is obtained, and the dynamic model of the factory is trained according to the historical production data to obtain a virtual data model; the test production data of the factory is input into the virtual data model to obtain the prediction results corresponding to the test production data; Determine the predicted benefit value corresponding to the prediction result, and determine whether the predicted benefit value meets the valid conditions; when the predicted benefit value meets the valid conditions, map the production parameters corresponding to the virtual data model to the factory's production line, so as to predict the factory's production line. Perform data optimization. That is, in the embodiment of this application, the virtual data model is trained through historical production data to simulate the factory production line, and the benefit value calculated by borrowing the prediction results corresponding to the test production data output by the model is calculated to determine that the virtual data model meets the effective conditions, which will satisfy The production parameters in the virtual data model of effective conditions are mapped to the factory production line to realize the optimization of the factory production line using production data, which can more accurately and effectively improve material utilization and product quality, and overall increase the factory's profitability.
图3是本申请实施例提供的一种基于数字孪生的产线优化装置的结构示意图,如图3所示,该基于数字孪生的产线优化装置包括:Figure 3 is a schematic structural diagram of a digital twin-based production line optimization device provided by an embodiment of the present application. As shown in Figure 3, the digital twin-based production line optimization device includes:
模型训练模块310,设置为获取工厂的历史生产数据,根据所述历史生产数据对工厂动态模型进行训练,得到虚拟数据模型;预测获取模块320,设置为将所述工厂的测试生产数据输入所述虚拟数据模型,得到所述测试生产数据对应的预测结果;有效判断模块330,设置为确定所述预测结果对应的预测效益值,并确定所述预测效益值是否满足有效条件;产线优化模块340,设置为当所述预测效益值满足有效条件,则将所述虚拟数据模型对应的生产参数映射到所述工厂的产线中,以对所述工厂的产线进行数据优化。The model training module 310 is configured to obtain the historical production data of the factory, train the factory dynamic model according to the historical production data, and obtain a virtual data model; the prediction acquisition module 320 is configured to input the test production data of the factory into the The virtual data model obtains the prediction results corresponding to the test production data; the validity judgment module 330 is configured to determine the predicted benefit value corresponding to the prediction result, and determine whether the predicted benefit value meets the valid conditions; the production line optimization module 340 , is set so that when the predicted benefit value meets the valid conditions, the production parameters corresponding to the virtual data model are mapped to the production line of the factory to perform data optimization on the production line of the factory.
一实施例中,所述模型训练模块310根据所述历史生产数据对所述工厂动态模型进行训练,得到所述虚拟数据模型,包括:In one embodiment, the model training module 310 trains the factory dynamic model based on the historical production data to obtain the virtual data model, which includes:
将所述历史生产数据进行数据预处理,得到训练数据;根据所述训练数据对所述工厂动态模型进行训练,得到所述虚拟数据模型。Perform data preprocessing on the historical production data to obtain training data; train the factory dynamic model according to the training data to obtain the virtual data model.
一实施例中,所述模型训练模块310将所述历史生产数据进行数据预处理,得到清洗数据,所述数据预处理包括消冗余数据和提取数据特征;根据所述清洗数据的数据特征从所述清洗数据中筛选出所述训练数据。In one embodiment, the model training module 310 performs data preprocessing on the historical production data to obtain clean data. The data preprocessing includes eliminating redundant data and extracting data features; according to the data features of the clean data, The training data is filtered out from the cleaning data.
一实施例中,所述有效判断模块330确定所述预测效益值是否满足有效条件,包括:In one embodiment, the validity judgment module 330 determines whether the predicted benefit value meets valid conditions, including:
确定所述预测效益值是否大于预设效益阈值;当所述预测效益值大于所述预设效益阈值,确定所述预设效益阈值是否大于实际效益值;当所述预设效益阈值不大于所述实际效益值时,确定所述预测效益值是否大于所述实际效益值;当所述预测效益值大于所述实际效益值,则所述预测效益值满足有效条件。Determine whether the predicted benefit value is greater than the preset benefit threshold; when the predicted benefit value is greater than the preset benefit threshold, determine whether the preset benefit threshold is greater than the actual benefit value; when the preset benefit threshold is not greater than the When the actual benefit value is stated, it is determined whether the predicted benefit value is greater than the actual benefit value; when the predicted benefit value is greater than the actual benefit value, the predicted benefit value satisfies the valid condition.
一实施例中,所述有效判断模块330确定所述预测结果对应的预测效益值,包括:In one embodiment, the validity judgment module 330 determines the predicted benefit value corresponding to the prediction result, including:
确定所述预测结果中物料的输入量价值、能源消耗和所述预测结果中输出产物的输出价值;根据所述预测结果中物料的输入量价值、能源消耗和所述预测结果中输出产物的输出价值确定所述预测结果对应的预测效益值。Determine the input value of the material in the prediction result, energy consumption and the output value of the output product in the prediction result; according to the input value of the material in the prediction result, energy consumption and the output of the output product in the prediction result The value determines the predicted benefit value corresponding to the predicted result.
一实施例中,所述有效判断模块330根据所述预测结果中物料的输入量价值、能源消耗和所述预测结果中输出产物的输出价值确定所述预测结果对应的预测效益值V,包括:In one embodiment, the validity judgment module 330 determines the predicted benefit value V corresponding to the prediction result based on the input value of the material in the prediction result, energy consumption, and the output value of the output product in the prediction result, including:
Figure PCTCN2022136469-appb-000002
Figure PCTCN2022136469-appb-000002
其中,V为预测效益值,I为物料的输入量,S为物料的单位价格,E为生产过程中能源消耗,Y为输出产物的产量,P为输出产物的市场价格,i为第i种输出产物,n为大于1正整数,Y i为第i种输出产物的产量P i为第i种输出产物的市场价格。 Among them, V is the predicted benefit value, I is the input amount of the material, S is the unit price of the material, E is the energy consumption in the production process, Y is the output of the output product, P is the market price of the output product, and i is the i-th kind Output products, n is a positive integer greater than 1, Y i is the output of the i-th output product, and P i is the market price of the i-th output product.
一实施例中,所述模型训练模块310获取工厂的历史生产数据之前,还包括:In one embodiment, before the model training module 310 obtains the historical production data of the factory, it also includes:
获取所述工厂的设备信息、业务逻辑结构和生产工艺流程;根据所述设备信息和所述业务逻辑结构搭架所述工厂的设备流水线;根据所述设备流水线和所述生产工艺流程形成所述工厂的工厂动态模型。Obtain the equipment information, business logic structure and production process flow of the factory; build the equipment assembly line of the factory based on the equipment information and the business logic structure; form the equipment assembly line based on the equipment assembly line and the production process flow. Factory dynamic model of the factory.
本申请实施例装置,通过获取工厂的历史生产数据,根据历史生产数据对工厂动态模型进行训练,得到虚拟数据模型;将工厂的测试生产数据输入虚拟数据模型,得到测试生产数据对应的预测结果;确定预测结果对应的预测效益值,并确定预测效益值是否满足有效条件;当预测效益值满足有效条件,则将虚拟数据模型对应的生产参数映射到工厂的产线中,以对工厂的产线进行数据优化。即,本申请实施例,通过历史生产数据训练虚拟数据模型对工厂产线进行模拟,并借用模型输出的测试数据对应的预测结果计算出的效益值确定虚拟数据模型是否满足有效条件,将满足有效条件的虚拟数据模型中的生产参数映射到工厂产线中,实现利用生产数据对工厂产线的优化,可以更精准有效的提高物料的使用率和产品质量,并整体提高工厂的收益。The device of the embodiment of this application obtains the historical production data of the factory, trains the dynamic model of the factory based on the historical production data, and obtains a virtual data model; inputs the test production data of the factory into the virtual data model to obtain prediction results corresponding to the test production data; Determine the predicted benefit value corresponding to the prediction result, and determine whether the predicted benefit value meets the valid conditions; when the predicted benefit value meets the valid conditions, map the production parameters corresponding to the virtual data model to the factory's production line, so as to predict the factory's production line. Perform data optimization. That is, in the embodiment of this application, the virtual data model is trained through historical production data to simulate the factory production line, and the benefit value calculated by borrowing the prediction results corresponding to the test data output by the model is used to determine whether the virtual data model satisfies the valid conditions, which will satisfy the valid conditions. The production parameters in the conditional virtual data model are mapped to the factory production line to realize the optimization of the factory production line using production data, which can more accurately and effectively improve material utilization and product quality, and overall increase the factory's profitability.
图4为本申请实施例提供的一种电子设备的结构示意图。图4示出了适于用来实现本申请实施方式的示例性电子设备12的框图。图4显示的电子设备12仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. 4 illustrates a block diagram of an exemplary electronic device 12 suitable for implementing embodiments of the present application. The electronic device 12 shown in FIG. 4 is only an example and should not bring any limitations to the functions and scope of use of the embodiments of the present application.
如图4所示,电子设备12以通用计算设备的形式表现。电子设备12的组件可以包括但不限于:一个或者多个处理器或者处理单元16,存储系统存储器28,连接不同系统组件(包括存储系统存储器28和处理单元16)的总线18。As shown in Figure 4, electronic device 12 is embodied in the form of a general-purpose computing device. Components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, storage system memory 28, and a bus 18 connecting various system components including storage system memory 28 and processing unit 16.
总线18表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(Industry Standard Architecture,ISA)总线,微通道体系结构(Micro Channel  Architecture,MAC)总线,增强型ISA总线、视频电子标准协会(Video Electronics Standards Association,VESA)局域总线以及外围组件互连(Peripheral Component Interconnect,PCI)总线。 Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics accelerated port, a processor, or a local bus using any of a variety of bus structures. For example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (Video Electronics Standards) Association, VESA) local bus and Peripheral Component Interconnect (PCI) bus.
电子设备12包括多种计算机系统可读介质。这些介质可以是任何能够被电子设备12访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。 Electronic device 12 includes a variety of computer system readable media. These media can be any available media that can be accessed by electronic device 12, including volatile and nonvolatile media, removable and non-removable media.
存储系统存储器28可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(Random Access Memory,RAM)30和/或高速缓存存储器32。电子设备12可以包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统34可以用于读写不可移动的、非易失性磁介质(图4未显示,通常称为“硬盘驱动器”)。尽管图4中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如光盘只读存储器(Compact Disc Read-Only Memory,CD-ROM),数字视盘只读存储器(Digital Video Disc-Read Only Memory,DVD-ROM)或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线18相连。存储系统存储器28可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本申请实施例的功能。 Storage system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and/or cache memory 32. Electronic device 12 may include other removable/non-removable, volatile/non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write to non-removable, non-volatile magnetic media (not shown in Figure 4, commonly referred to as a "hard drive"). Although not shown in FIG. 4, a disk drive may be provided for reading and writing to removable non-volatile disks (e.g., "floppy disks"), and for removable non-volatile optical disks (e.g., Compact Discs). Read-Only Memory (CD-ROM), Digital Video Disc-Read Only Memory (DVD-ROM) or other optical media) that reads and writes optical disc drives. In these cases, each drive may be connected to bus 18 through one or more data media interfaces. The storage system memory 28 may include at least one program product having a set of (eg, at least one) program modules configured to perform the functions of embodiments of the present application.
具有一组(至少一个)程序模块42的程序/实用工具40,可以存储在例如存储系统存储器28中,这样的程序模块42包括但不限于操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或一种组合中可能包括网络环境的实现。程序模块42通常执行本申请所描述的实施例中的功能和/或方法。A program/utility 40 having a set (at least one) of program modules 42, including but not limited to an operating system, one or more application programs, other program modules, and Program data, each or a combination of these examples may include an implementation of a network environment. Program modules 42 generally perform functions and/or methods in the embodiments described herein.
电子设备12也可以与一个或多个外部设备14(例如键盘、指向设备、显示器24等)通信,还可与一个或者多个使得用户能与该电子设备12交互的设备通信,和/或与使得该电子设备12能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口22进行。并且,电子设备12还可以通过网络适配器20与一个或者多个网络(例如局域网(Local Area Network,LAN),广域网(Wide Area Network,WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器20通过总线18与电子设备12的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备12使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、磁盘阵列(Redundant Arrays of Independent Disks,RAID)系统、磁带驱动器以及数据备份存储系统等。 Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), may also communicate with one or more devices that enable a user to interact with electronic device 12, and/or with Any device (eg, network card, modem, etc.) that enables the electronic device 12 to communicate with one or more other computing devices. This communication may occur through input/output (I/O) interface 22. Moreover, the electronic device 12 can also communicate with one or more networks (such as a local area network (Local Area Network, LAN), a wide area network (Wide Area Network, WAN), and/or a public network, such as the Internet) through the network adapter 20. As shown, network adapter 20 communicates with other modules of electronic device 12 via bus 18 . It should be understood that, although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, disk arrays (Redundant Arrays). of Independent Disks, RAID) systems, tape drives and data backup storage systems, etc.
处理单元16通过运行存储在存储系统存储器28中的程序,从而执行多种功能应用以及数据处理,例如实现本申请实施例所提供的基于数字孪生的产线优化方法,该方法包括:The processing unit 16 executes a variety of functional applications and data processing by running programs stored in the storage system memory 28, for example, implementing the digital twin-based production line optimization method provided by the embodiment of the present application, which method includes:
获取工厂的历史生产数据,根据所述历史生产数据对工厂动态模型进行训练,得到虚拟数据模型;将所述工厂的测试生产数据输入所述虚拟数据模型,得到所述测试生产数据对应的预测结果;确定所述预测结果对应的预测效益值,并确定所述预测效益值是否满足有效条件;当所述预测效益值满足有效条件,则将所述虚拟数据模型对应的生产参数映射到所述工厂的产线中,以对所述工厂的产线进行数据优化。Obtain the historical production data of the factory, train the factory dynamic model based on the historical production data, and obtain a virtual data model; input the test production data of the factory into the virtual data model, and obtain the prediction results corresponding to the test production data. ; Determine the predicted benefit value corresponding to the prediction result, and determine whether the predicted benefit value meets the valid conditions; when the predicted benefit value meets the valid conditions, map the production parameters corresponding to the virtual data model to the factory in the production line to perform data optimization on the production line of the factory.
本申请实施还提供了一种计算机可读存储介质,其上存储有计算机程序,其中,该程序被处理器执行时实现所述的基于数字孪生的产线优化方法,该方法包括:The implementation of this application also provides a computer-readable storage medium on which a computer program is stored, wherein when the program is executed by a processor, the digital twin-based production line optimization method is implemented, and the method includes:
获取工厂的历史生产数据,根据所述历史生产数据对工厂动态模型进行训练,得到虚拟数据模型;将所述工厂的测试生产数据输入所述虚拟数据模型,得到所述测试生产数据对应的预测结果;确定所述预测结果对应的预测效益值,并确定所述预测效益值是否满足有效条件;当所述预测效益值满足有效条件,则将所述虚拟数据模型对应的生产参数映射到所述工厂的产线中,以对所述工厂的产线进行数据优化。Obtain the historical production data of the factory, train the factory dynamic model based on the historical production data, and obtain a virtual data model; input the test production data of the factory into the virtual data model, and obtain the prediction results corresponding to the test production data. ; Determine the predicted benefit value corresponding to the prediction result, and determine whether the predicted benefit value meets the valid conditions; when the predicted benefit value meets the valid conditions, map the production parameters corresponding to the virtual data model to the factory in the production line to perform data optimization on the production line of the factory.
本申请实施例的计算机存储介质,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、RAM、ROM、可擦式可编程只读存储器(Erasable Programmable Read Only Memory,EPROM或闪存)、光纤、CD-ROM、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer storage medium in the embodiment of the present application may be any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. Examples of computer-readable storage media (a non-exhaustive list) include: electrical connections having one or more conductors, portable computer disks, hard drives, RAM, ROM, Erasable Programmable Read Only Memory , EPROM or flash memory), optical fiber, CD-ROM, optical storage device, magnetic storage device, or any suitable combination of the above. As used herein, a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用 或者与其结合使用的程序。A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、电线、光缆、射频(Radio Frequency,RF)等等,或者上述的任意合适的组合。Program code embodied on a computer-readable medium can be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, radio frequency (Radio Frequency, RF), etc., or any suitable combination of the above.
可以以一种或多种程序设计语言或其组合来编写用于执行本申请操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络包括LAN或WAN连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing operations of the present application may be written in one or more programming languages, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedures, or a combination thereof. programming language such as "C" or a similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. Where a remote computer is involved, the remote computer may be connected to the user's computer through any kind of network, including a LAN or WAN, or may be connected to an external computer (such as through the Internet using an Internet service provider).

Claims (10)

  1. 基于数字孪生的产线优化方法,包括:Production line optimization methods based on digital twins include:
    获取工厂的历史生产数据,根据所述历史生产数据对工厂动态模型进行训练,得到虚拟数据模型;Obtain the historical production data of the factory, train the factory dynamic model based on the historical production data, and obtain a virtual data model;
    将所述工厂的测试生产数据输入所述虚拟数据模型,得到所述测试生产数据对应的预测结果;Input the test production data of the factory into the virtual data model to obtain prediction results corresponding to the test production data;
    确定所述预测结果对应的预测效益值,并确定所述预测效益值是否满足有效条件;Determine the predicted benefit value corresponding to the prediction result, and determine whether the predicted benefit value meets the valid conditions;
    响应于所述预测效益值满足有效条件,将所述虚拟数据模型对应的生产参数映射到所述工厂的产线中,以对所述工厂的产线进行数据优化。In response to the predicted benefit value meeting the valid condition, the production parameters corresponding to the virtual data model are mapped to the production line of the factory to perform data optimization on the production line of the factory.
  2. 根据权利要求1所述的方法,其中,所述根据所述历史生产数据对所述工厂动态模型进行训练,得到所述虚拟数据模型,包括:The method according to claim 1, wherein said training the factory dynamic model according to the historical production data to obtain the virtual data model includes:
    对所述历史生产数据进行数据预处理,得到训练数据;Perform data preprocessing on the historical production data to obtain training data;
    根据所述训练数据对所述工厂动态模型进行训练,得到所述虚拟数据模型。The factory dynamic model is trained according to the training data to obtain the virtual data model.
  3. 根据权利要求2所述的方法,其中,所述对所述历史生产数据进行数据预处理,得到训练数据,包括:The method according to claim 2, wherein said performing data preprocessing on the historical production data to obtain training data includes:
    对所述历史生产数据进行数据预处理,得到清洗数据,其中,所述数据预处理包括消冗余数据和提取数据特征;Perform data preprocessing on the historical production data to obtain clean data, where the data preprocessing includes eliminating redundant data and extracting data features;
    根据所述清洗数据的数据特征从所述清洗数据中筛选出所述训练数据。The training data is filtered out from the cleaning data according to the data characteristics of the cleaning data.
  4. 根据权利要求1所述的方法,其中,所述确定所述预测效益值是否满足有效条件,包括:The method according to claim 1, wherein determining whether the predicted benefit value meets a valid condition includes:
    确定所述预测效益值是否大于预设效益阈值;Determine whether the predicted benefit value is greater than a preset benefit threshold;
    响应于所述预测效益值大于所述预设效益阈值,确定所述预设效益阈值是否大于实际效益值;In response to the predicted benefit value being greater than the preset benefit threshold, determining whether the preset benefit threshold is greater than the actual benefit value;
    响应于所述预设效益阈值不大于所述实际效益值,确定所述预测效益值是否大于所述实际效益值;In response to the preset benefit threshold not being greater than the actual benefit value, determining whether the predicted benefit value is greater than the actual benefit value;
    响应于所述预测效益值大于所述实际效益值,所述预测效益值满足有效条件。In response to the predicted benefit value being greater than the actual benefit value, the predicted benefit value satisfies a valid condition.
  5. 根据权利要求1所述的方法,其中,所述确定所述预测结果对应的预测效益值,包括:The method according to claim 1, wherein determining the predicted benefit value corresponding to the predicted result includes:
    确定所述预测结果中物料的输入量价值、能源消耗和所述预测结果中输出 产物的输出价值;Determine the input value of materials, energy consumption in the prediction results and the output value of the output products in the prediction results;
    根据所述预测结果中物料的输入量价值、能源消耗和所述预测结果中输出产物的输出价值确定所述预测结果对应的预测效益值。The predicted benefit value corresponding to the prediction result is determined based on the input value of the material in the prediction result, energy consumption and the output value of the output product in the prediction result.
  6. 根据权利要求5所述的方法,其中,所述根据所述预测结果中物料的输入量价值、能源消耗和所述预测结果中输出产物的输出价值确定所述预测结果对应的预测效益值,包括:The method according to claim 5, wherein the predicted benefit value corresponding to the prediction result is determined based on the input amount value of the material in the prediction result, energy consumption and the output value of the output product in the prediction result, including :
    Figure PCTCN2022136469-appb-100001
    Figure PCTCN2022136469-appb-100001
    其中,V为预测效益值,I为物料的输入量,S为物料的单位价格,E为生产过程中能源消耗,Y为输出产物的产量,P为输出产物的市场价格,i为第i种输出产物,n为大于1的正整数,Y i为第i种输出产物的产量,P i为第i种输出产物的市场价格。 Among them, V is the predicted benefit value, I is the input amount of the material, S is the unit price of the material, E is the energy consumption in the production process, Y is the output of the output product, P is the market price of the output product, and i is the i-th kind Output product, n is a positive integer greater than 1, Yi is the output of the i-th output product, and Pi is the market price of the i-th output product.
  7. 根据权利要求1所述的方法,其中,在所述获取工厂的历史生产数据之前,还包括:The method according to claim 1, wherein before obtaining the historical production data of the factory, it further includes:
    获取所述工厂的设备信息、业务逻辑结构和生产工艺流程;Obtain the equipment information, business logic structure and production process flow of the factory;
    根据所述设备信息和所述业务逻辑结构搭架所述工厂的设备流水线;Establish the equipment assembly line of the factory according to the equipment information and the business logic structure;
    根据所述设备流水线和所述生产工艺流程形成所述工厂的工厂动态模型。A factory dynamic model of the factory is formed based on the equipment assembly line and the production process flow.
  8. 基于数字孪生的产线优化装置,包括:Production line optimization devices based on digital twins include:
    模型训练模块,设置为获取工厂的历史生产数据,根据所述历史生产数据对工厂动态模型进行训练,得到虚拟数据模型;The model training module is configured to obtain the historical production data of the factory, train the factory dynamic model based on the historical production data, and obtain a virtual data model;
    预测获取模块,设置为将所述工厂的测试生产数据输入所述虚拟数据模型,得到所述测试生产数据对应的预测结果;The prediction acquisition module is configured to input the test production data of the factory into the virtual data model to obtain prediction results corresponding to the test production data;
    有效判断模块,设置为确定所述预测结果对应的预测效益值,并确定所述预测效益值是否满足有效条件;A valid judgment module, configured to determine the predicted benefit value corresponding to the prediction result, and determine whether the predicted benefit value meets the valid conditions;
    产线优化模块,设置为响应于所述预测效益值满足有效条件,将所述虚拟数据模型对应的生产参数映射到所述工厂的产线中,以对所述工厂的产线进行数据优化。The production line optimization module is configured to map the production parameters corresponding to the virtual data model to the production line of the factory in response to the predicted benefit value satisfying the valid condition, so as to perform data optimization on the production line of the factory.
  9. 一种电子设备,包括:An electronic device including:
    至少一个处理器;at least one processor;
    存储装置,设置为存储至少一个程序;a storage device configured to store at least one program;
    当所述至少一个程序被所述一个或多个处理器执行,使得所述至少一个处理器实现如权利要求1至7中任一所述的基于数字孪生的产线优化方法。When the at least one program is executed by the one or more processors, the at least one processor is caused to implement the digital twin-based production line optimization method as described in any one of claims 1 to 7.
  10. 一种计算机可读存储介质,存储有计算机程序,所述程序被处理器执行时实现如权利要求1至7中任一所述的基于数字孪生的产线优化方法。A computer-readable storage medium stores a computer program. When the program is executed by a processor, the digital twin-based production line optimization method as described in any one of claims 1 to 7 is implemented.
PCT/CN2022/136469 2022-04-07 2022-12-05 Digital twin-based production line optimization method and apparatus, electronic device, and medium WO2023193458A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210358331.7A CN114493049A (en) 2022-04-07 2022-04-07 Production line optimization method and device based on digital twin, electronic equipment and medium
CN202210358331.7 2022-04-07

Publications (1)

Publication Number Publication Date
WO2023193458A1 true WO2023193458A1 (en) 2023-10-12

Family

ID=81487754

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/136469 WO2023193458A1 (en) 2022-04-07 2022-12-05 Digital twin-based production line optimization method and apparatus, electronic device, and medium

Country Status (2)

Country Link
CN (1) CN114493049A (en)
WO (1) WO2023193458A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114493049A (en) * 2022-04-07 2022-05-13 卡奥斯工业智能研究院(青岛)有限公司 Production line optimization method and device based on digital twin, electronic equipment and medium
CN114998070B (en) * 2022-08-03 2022-11-08 广州远程教育中心有限公司 Immersive digital learning method and system for enterprise digital learning platform
CN115577488A (en) * 2022-08-17 2023-01-06 国网山东省电力公司营销服务中心(计量中心) Gateway electric energy metering device performance diagnosis system
CN115857460A (en) * 2023-02-16 2023-03-28 南京佳盛机电器材制造有限公司 Lean production method based on industrial simulation software digital analysis
CN115936262B (en) * 2023-02-20 2023-06-16 深圳普菲特信息科技股份有限公司 Yield prediction method, system and medium based on big data environment interference
CN116187729A (en) * 2023-05-04 2023-05-30 山东捷瑞数字科技股份有限公司 Resource scheduling method, device, equipment and storage medium based on digital twin

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933035A (en) * 2019-04-24 2019-06-25 中国科学院重庆绿色智能技术研究院 A kind of production line control system, method and the production system twin based on number
CN111597729A (en) * 2020-05-27 2020-08-28 北京天泽智云科技有限公司 Method and system for optimizing technological parameters of processing equipment
CN111898867A (en) * 2020-07-05 2020-11-06 西北工业大学 Airplane final assembly production line productivity prediction method based on deep neural network
CN112785111A (en) * 2019-11-11 2021-05-11 北京京邦达贸易有限公司 Production efficiency prediction method, device, storage medium and electronic equipment
US11067970B1 (en) * 2020-02-27 2021-07-20 Guangdong University Of Technology Method for designing production line based on digital twin
CN114493049A (en) * 2022-04-07 2022-05-13 卡奥斯工业智能研究院(青岛)有限公司 Production line optimization method and device based on digital twin, electronic equipment and medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11348048B2 (en) * 2018-02-23 2022-05-31 Tata Consultancy Services Limited Method and system for pre-emptive deviation detection for telecom process flow using digital twin
CN109625168A (en) * 2019-01-28 2019-04-16 北京机科国创轻量化科学研究院有限公司 A kind of multistation Synergistic method of boat segmental manufacture assembly line
CN111338300B (en) * 2020-02-27 2020-11-06 广东工业大学 Physical simulation method and system of production line based on digital twins
CN112486111B (en) * 2020-11-17 2021-12-14 湖南师范大学 Edible oil alkali refining process intelligent adjusting method based on data analysis
CN112995326A (en) * 2021-03-10 2021-06-18 中国电力科学研究院有限公司 Method and system for acquiring and uploading quality data of intelligent electric energy meter
CN113449463A (en) * 2021-06-09 2021-09-28 重庆锦禹云能源科技有限公司 LSTM-DNN-based equipment life prediction method and device
CN113850629A (en) * 2021-09-29 2021-12-28 河北中煤旭阳能源有限公司 Enterprise production benefit accounting system
CN113886973B (en) * 2021-10-25 2023-04-18 江苏远望仪器集团有限公司 Ship navigational speed processing method, device and processing equipment based on virtual-real mapping
CN114218763A (en) * 2021-11-26 2022-03-22 长春理工大学 Production line dynamic virtual recombination method based on digital twin
CN114219360A (en) * 2021-12-29 2022-03-22 北京淇瑀信息科技有限公司 Monitoring safety prediction method and system based on model optimization

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933035A (en) * 2019-04-24 2019-06-25 中国科学院重庆绿色智能技术研究院 A kind of production line control system, method and the production system twin based on number
CN112785111A (en) * 2019-11-11 2021-05-11 北京京邦达贸易有限公司 Production efficiency prediction method, device, storage medium and electronic equipment
US11067970B1 (en) * 2020-02-27 2021-07-20 Guangdong University Of Technology Method for designing production line based on digital twin
CN111597729A (en) * 2020-05-27 2020-08-28 北京天泽智云科技有限公司 Method and system for optimizing technological parameters of processing equipment
CN111898867A (en) * 2020-07-05 2020-11-06 西北工业大学 Airplane final assembly production line productivity prediction method based on deep neural network
CN114493049A (en) * 2022-04-07 2022-05-13 卡奥斯工业智能研究院(青岛)有限公司 Production line optimization method and device based on digital twin, electronic equipment and medium

Also Published As

Publication number Publication date
CN114493049A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
WO2023193458A1 (en) Digital twin-based production line optimization method and apparatus, electronic device, and medium
Zou et al. Review of 10 years research on building energy performance gap: Life-cycle and stakeholder perspectives
KR101935652B1 (en) System and Method of Smart Factory Operation Management Solution Service Using Big Data Platform
US10804700B2 (en) Method and system for optimizing and predicting demand response
Pan et al. Building energy simulation and its application for building performance optimization: A review of methods, tools, and case studies
CN112668237A (en) Digital twin model based on industrial internet cloud platform and construction method thereof
CN114048436A (en) Construction method and construction device for forecasting enterprise financial data model
CN114596693A (en) Method, system, medium, and program product for energy monitoring and management
CN115438726A (en) Device life and fault type prediction method and system based on digital twin technology
CN117196159A (en) Intelligent water service partition metering system based on Internet big data analysis
CN114897241A (en) Intelligent building energy efficiency supervision and prediction method based on digital twins
CN115238959A (en) User-side energy comprehensive utilization-oriented digital twinning system and method
CN115222284A (en) Digital twin system maturity evaluation method based on maturity model
Han et al. Agent-based model for simulation of the sustainability revolution in eco-industrial parks
CN111582588B (en) Building energy consumption prediction method based on triple convolution fusion GRU
CN115310923A (en) Energy management service system and method
Xu et al. Forecast of carbon emissions in China based on time lag MGM (1, m, N| τ) grey model
CN117171551B (en) Large-scale industrial equipment data analysis and intelligent management method
CN117808272B (en) Industrial system productivity optimization and scheduling method and system based on machine learning
CN114912846B (en) Comprehensive energy customer value mining energy efficiency evaluation method and device for online learning
CN117055509B (en) Method for predicting short-process steel process parameters based on artificial intelligence
CN111948992B (en) Method and system for performing multistage progressive modeling on industrial batch type big data
WO2023108953A1 (en) Air conditioning unit maintenance forecasting method and device, apparatus, and medium
US20240070160A1 (en) Data processing method and electronic device
Vaithilingam et al. Intelligent Air Conditioning Systems: Enhancing Energy Efficiency and Indoor Air Quality through IoT and Air Conditioning Unit Using Machine Learning

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22936384

Country of ref document: EP

Kind code of ref document: A1