Tobacco leaf sorting and grading management method and system based on digital twinning

Through digital twin technology and event-driven architecture, the problem of tobacco leaf grading relying on manual judgment has been solved, efficient, accurate and reliable grading management of tobacco leaf grading has been achieved, and the real-time and scalability of the tobacco leaf grading system have been improved.

CN118643345AActive Publication Date: 2024-09-13SHIZHU BRANCH OF CHONGQING BRANCH OF CHINA NAT TOBACCO CORP
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202411019002.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-09-13
Estimated Expiration
2044-07-29

AI Technical Summary

Technical Problem

The existing tobacco leaf grading methods mainly rely on manual judgment, which is time-consuming and lacks uniform standards, making it difficult to improve the accuracy, objectivity and reliability of grading.

Method used

Adopting a tobacco leaf sorting and grading management method based on digital twins, by creating digital twin models of tobacco leaves and sorting and grading equipment, real-time data collection and processing, and using event-driven architecture for real-time updates and decision-making, to achieve efficient data processing and models quick response.

Benefits of technology

It improves the accuracy, reliability and efficiency of tobacco leaf grading, simplifies system integration and maintenance, improves the real-time, scalability and reliability of the system, and can quickly respond and update the model when data changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118643345A
    Figure CN118643345A
Patent Text Reader

Abstract

The invention relates to a tobacco leaf sorting and grading management method and device based on digital twinning, computer equipment, a storage medium and a computer program product. The method comprises the following steps: creating a digital twinborn model of tobacco leaves and preset sorting and grading equipment; event content obtained during sorting and grading is obtained; calling an event triggering program, transmitting the event content to the event triggering program, reading an event triggering condition corresponding to the event content after the event triggering program obtains the event content, and determining whether the event content is triggered or not based on the event content and the event triggering condition; if the event is triggered, an event consumption program corresponding to the event content is called for processing, and a data processing completion event is generated after processing is completed. According to the method, the event-driven architecture is used, so that the tobacco leaf grading management system can quickly respond and update the model when the data changes, the real-time performance, the expandability and the reliability of the system are improved, and the integration and maintenance work of the system is simplified at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of tobacco leaf sorting, and in particular to a tobacco leaf sorting and grading management method, device, equipment and storage medium based on digital twins. Background Art

[0002] Tobacco leaf grading is a basic work in the tobacco industry when purchasing tobacco. Due to the different qualities of tobacco leaves, the mixing of good and bad ungraded tobacco leaves will inevitably reduce the use value, cause resource waste, and greatly reduce economic benefits. Only through reasonable grading and the use of scientific formulas for different grades of tobacco leaves can cigarettes with different requirements be produced. Therefore, the purpose of grading is to separate tobacco leaves of different qualities so that each grade and each bunch of tobacco leaves have relatively consistent quality, which is of great significance in the tobacco purchasing stage.

[0003] For a long time, tobacco leaf grading methods have mostly adopted manual grading methods, which is a process of grading tobacco leaves based on certain tobacco leaf grading factors, using methods such as visual observation, hand touch, and nose smell. The ultimate goal of tobacco leaf grading is to define the internal and external quality of tobacco leaf grades.

[0004] However, the current tobacco leaf grading mostly adopts manual methods, which rely too much on the subjective feelings and personal judgment of graders, and has the limitations of being time-consuming and lacking in unified standards. Improving the accuracy, objectivity and reliability of tobacco leaf grading through new technologies has become an urgent need for tobacco production companies. Summary of the invention

[0005] Based on this, it is necessary to provide a tobacco sorting and grading management method, device, computer equipment, computer-readable storage medium and computer program product based on digital twins that can improve the efficiency of tobacco sorting in response to the above-mentioned technical problems.

[0006] In the first aspect, the present application provides a tobacco leaf sorting and grading management method based on digital twins. The method comprises: Creating a digital twin model of tobacco leaves and a preset sorting and grading device, wherein the digital twin model includes at least tobacco leaves and a simulation device corresponding to the sorting and grading device, wherein the simulation device is used to simulate data collection of the sorting and grading device; Acquiring event content obtained during sorting and grading, wherein the event content at least includes data collection of tobacco leaves; Calling an event triggering program and transmitting the event content to the event triggering program, after the event triggering program obtains the event content, reading the event triggering condition corresponding to the event content, and determining whether the event content is triggered based on the event content and the event triggering condition; If an event is triggered, the event consumer program corresponding to the event content is called for processing, and a data processing completion event is generated after completion.

[0007] In one of the embodiments, when the event consumption program is data processing, tobacco leaf data detected by a preset sorting and grading device is obtained; Calling a data triggering program and transmitting tobacco leaf data to an event triggering program, wherein the event triggering program obtains the tobacco leaf data; The event triggering condition corresponding to reading tobacco leaf data is that the sorting and grading equipment performs data collection operations; Data collection operations are performed based on tobacco leaf data and sorting and grading equipment, and data processing events are called to process the collected data until a data processing completion event is generated after the data processing event is completed.

[0008] In one of the embodiments, when the event consumer is updating the model, a data processing completion event is received; Acquire updated tobacco leaf data, where the updated tobacco leaf data is tobacco leaf data obtained after data processing of tobacco leaf data detected by the sorting and grading equipment; Build incremental digital models based on updated tobacco leaf data and perform incremental training; The incremental digital model is integrated with the digital twin model to generate an updated twin model.

[0009] In one of the embodiments, when the event consumption program is anomaly detection, tobacco leaf data is obtained; Compare tobacco leaf data with a preset standard variation range; If the tobacco leaf data is outside the preset standard variation range, obtaining detection environment data related to the tobacco leaf data; If the detection environment data is within the preset standard environment range, an abnormal detection event is generated.

[0010] In one embodiment, calling a data processing event to process collected data includes: The processing time of the collected data by the statistical data processing event; If the processing time is outside the critical time, the regional information corresponding to the tobacco leaf data is extracted; Perform the same processing operation on the collected data based on the regional information and generate accelerated processing data; When the processing time is within the critical time, the accelerated processing data is subjected to secondary verification; If the error between the verification data and the accelerated processing data is within a preset range, the verification data replaces the corresponding accelerated processing data; If the error between the verification data and the accelerated processing data is outside a preset range, an abnormal detection event is generated.

[0011] In one embodiment, the acceleration stability of different regions is counted, and the acceleration stability is the error between the verification data and the acceleration processing data corresponding to the target region; Based on the acceleration stability, tobacco leaf data corresponding to the areas with high acceleration stability are processed first; Optimize data processing in areas with low acceleration stability; If the acceleration stability of the optimized region is within the preset improvement range, the tobacco leaf data corresponding to the region with high acceleration stability will be processed first according to the acceleration stability; If the acceleration stability of the optimized area is outside the preset improvement range, the tobacco leaf data corresponding to the target area will be processed in the order of lowest priority.

[0012] In the second aspect, the present application also provides a tobacco leaf sorting and grading management device based on digital twins. The device includes: A digital model building module, used to create a digital twin model of tobacco leaves and a preset sorting and grading device, wherein the digital twin model at least includes tobacco leaves and a simulation device corresponding to the sorting and grading device, wherein the simulation device is used to simulate data collection of the sorting and grading device; An event configuration module, used to obtain event content obtained during sorting and grading, wherein the event content at least includes data collection of tobacco leaves; A data processing module is used to call an event triggering program and transmit the event content to the event triggering program. After the event triggering program obtains the event content, it reads the event triggering condition corresponding to the event content and determines whether the event content is triggered based on the event content and the event triggering condition; The completion event module is used to call the event consumer program corresponding to the event content for processing if an event is triggered, and generate a data processing completion event after completion.

[0013] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program: Creating a digital twin model of tobacco leaves and a preset sorting and grading device, wherein the digital twin model includes at least tobacco leaves and a simulation device corresponding to the sorting and grading device, wherein the simulation device is used to simulate data collection of the sorting and grading device; Acquiring event content obtained during sorting and grading, wherein the event content at least includes data collection of tobacco leaves; Calling an event triggering program and transmitting the event content to the event triggering program, after the event triggering program obtains the event content, reading the event triggering condition corresponding to the event content, and determining whether the event content is triggered based on the event content and the event triggering condition; If an event is triggered, the event consumer program corresponding to the event content is called for processing, and a data processing completion event is generated after completion.

[0014] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented: Creating a digital twin model of tobacco leaves and a preset sorting and grading device, wherein the digital twin model includes at least tobacco leaves and a simulation device corresponding to the sorting and grading device, wherein the simulation device is used to simulate data collection of the sorting and grading device; Acquiring event content obtained during sorting and grading, wherein the event content at least includes data collection of tobacco leaves; Calling an event triggering program and transmitting the event content to the event triggering program, after the event triggering program obtains the event content, reading the event triggering condition corresponding to the event content, and determining whether the event content is triggered based on the event content and the event triggering condition; If an event is triggered, the event consumer program corresponding to the event content is called for processing, and a data processing completion event is generated after completion.

[0015] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented: Creating a digital twin model of tobacco leaves and a preset sorting and grading device, wherein the digital twin model includes at least tobacco leaves and a simulation device corresponding to the sorting and grading device, wherein the simulation device is used to simulate data collection of the sorting and grading device; Acquiring event content obtained during sorting and grading, wherein the event content at least includes data collection of tobacco leaves; Calling an event triggering program and transmitting the event content to the event triggering program, after the event triggering program obtains the event content, reading the event triggering condition corresponding to the event content, and determining whether the event content is triggered based on the event content and the event triggering condition; If an event is triggered, the event consumer program corresponding to the event content is called for processing, and a data processing completion event is generated after completion.

[0016] The above-mentioned tobacco sorting and grading management method, device, computer equipment, storage medium and computer program product based on digital twins create a digital twin model of tobacco and preset sorting and grading equipment, the digital twin model at least includes tobacco, and a simulation device corresponding to the sorting and grading equipment, the simulation device is used to simulate the data collection of the sorting and grading equipment; obtain the event content obtained during sorting and grading, the event content at least includes the data collection of tobacco; call the event trigger program and transfer the event content to the event trigger program, after the event trigger program obtains the event content, reads the event trigger condition corresponding to the event content, and determines whether the event content is triggered based on the event content and the event trigger condition; if the event is triggered, the event consumption program corresponding to the event content is called for processing, and a data processing completion event is generated after completion. This application adopts the above method, and updates and makes decisions in real time through an event-driven architecture. In the sorting and grading of tobacco leaves, when new tobacco leaf data is collected, a data collection event is immediately generated and sent. After receiving the event, the event consumer immediately starts processing the data and updating the model, realizing real-time grading decision and response; when the tobacco harvest season comes, the amount of data collected increases dramatically, and the high load can be coped with by increasing the number of event consumers to ensure that the system can efficiently process a large amount of data. During non-peak hours, the number of consumers can be reduced to save resources; simplified system integration, data collection equipment, data processing services and model update services communicate through standardized event messages, without the need to understand each other's internal implementation, simplifying system integration and maintenance; by using an event-driven architecture, the tobacco grading management system can quickly respond and update the model when the data changes, improving the real-time, scalability and reliability of the system, while simplifying system integration and maintenance. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 This is an application environment diagram of a tobacco leaf sorting and grading management method based on digital twins in one embodiment; Figure 2 It is a flowchart of a tobacco leaf sorting and grading management method based on digital twin in one embodiment; Figure 3 It is a structural block diagram of a tobacco leaf sorting and grading management device based on digital twin in one embodiment; Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0019] The tobacco leaf sorting and grading management method based on digital twin provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal communicates with the server through the network. The data storage system can store the data that the server needs to process. The data storage system can be integrated on the server, or it can be placed on the cloud or other network servers. Among them, the terminal can be but not limited to various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server can be implemented as an independent server or a server cluster consisting of multiple servers.

[0020] In one embodiment, Figure 2 As shown, this method is applied to Figure 1 The terminal in the example is used for explanation. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps: Step 202, creating a digital twin model of tobacco leaves and preset sorting and grading equipment.

[0021] Among them, digital twin technology creates a virtual model of a physical entity to simulate its operating status, behavior, and performance. It can monitor the status of the physical entity in real time and perform predictive maintenance and optimization.

[0022] Establishing a digital twin model includes physical entity modeling and virtual sensor modeling. Physical entity modeling: creating a digital twin model of tobacco leaves and related equipment, including physical characteristics, operating parameters and operating status; virtual sensors: configuring virtual sensors in the digital twin model to simulate the data collection of physical sensors; the digital twin model at least includes tobacco leaves and simulation equipment corresponding to the sorting and grading equipment, and the simulation equipment is used to simulate the data collection of the sorting and grading equipment.

[0023] Step 204, obtaining the event content obtained during sorting and grading.

[0024] Among them, in the embodiment of the present invention, the event publisher specifically refers to the tobacco leaf sorting and grading system. Of course, this method can also be used on other devices, and the embodiment of the present invention does not impose specific restrictions on it.

[0025] The information transmission of the tobacco leaf sorting and grading system has the following characteristics: There are many types of information to be sent, and the information varies greatly. The number of different types of information sent and the length of a single message vary greatly. The method of the present invention is a tobacco sorting and grading management method based on digital twins, thereby meeting the above-mentioned requirements sent by the tobacco sorting and grading system in an event-driven architecture.

[0026] Step 206: call the event triggering program and transmit the event content to the event triggering program.

[0027] Among them, after the event trigger program obtains the event content, it reads the event trigger condition corresponding to the event content, and determines whether the event content is triggered based on the event content and the event trigger condition; if the event is triggered, the event consumer program corresponding to the event content is called for processing, and a data processing completion event is generated after completion; if the event is not triggered, a data processing completion event is generated.

[0028] In the above tobacco sorting and grading management method based on digital twins, real-time updates and decisions are made through event-driven architecture. In the sorting and grading of tobacco leaves, when new tobacco leaf data is collected, data collection events are immediately generated and sent. After receiving the event, the event consumer immediately starts to process the data and update the model, realizing real-time grading decisions and responses; when the tobacco leaf harvest season comes, the amount of data collection increases dramatically, and the high load can be coped with by increasing the number of event consumers to ensure that the system can efficiently process a large amount of data. During non-peak periods, the number of consumers can be reduced to save resources; simplified system integration, data collection equipment, data processing services and model update services communicate through standardized event messages, without the need to understand each other's internal implementation, simplifying the integration and maintenance of the system; by using an event-driven architecture, the tobacco leaf grading management system can quickly respond and update the model when the data changes, improving the real-time, scalability and reliability of the system, while simplifying the integration and maintenance of the system.

[0029] In one embodiment, the event consumption program includes at least data processing, model updating and anomaly detection. When the event consumption program is selected as data processing, the specific steps may include: When the event consumption program is data processing, the tobacco leaf data detected by the preset sorting and grading equipment is obtained; Calling a data triggering program and transmitting tobacco leaf data to an event triggering program, wherein the event triggering program obtains the tobacco leaf data; The event triggering condition corresponding to reading tobacco leaf data is that the sorting and grading equipment performs data collection operations; Data collection operations are performed based on tobacco leaf data and sorting and grading equipment, and data processing events are called to process the collected data until a data processing completion event is generated after the data processing event is completed.

[0030] In this embodiment, real-time updates and decisions are made through an event-driven architecture. In the sorting and grading of tobacco leaves, when new tobacco leaf data is collected, a data collection event is immediately generated and sent. After receiving the event, the event consumer immediately starts processing the data and updating the model, realizing real-time grading decisions and responses; when the tobacco leaf harvest season comes, the amount of data collection increases dramatically, and the high load can be coped with by increasing the number of event consumers to ensure that the system can efficiently process a large amount of data. During non-peak periods, the number of consumers can be reduced to save resources; simplified system integration, data collection equipment, data processing services, and model update services communicate through standardized event messages, without the need to understand each other's internal implementation, simplifying the integration and maintenance of the system; by using an event-driven architecture, the tobacco leaf grading management system can quickly respond and update the model when the data changes, improving the real-time, scalability, and reliability of the system, while simplifying the integration and maintenance of the system.

[0031] In one embodiment, the event consumption program includes at least data processing, model updating, and anomaly detection. When the event consumption program is selected as model updating, the specific steps may include: When the event consumer updates the model, it receives the data processing completion event; Acquire updated tobacco leaf data, where the updated tobacco leaf data is tobacco leaf data obtained after data processing of tobacco leaf data detected by the sorting and grading equipment; Build incremental digital models based on updated tobacco leaf data and perform incremental training; The incremental digital model is integrated with the digital twin model to generate an updated twin model.

[0032] Among them, the continuous updating of the model through incremental learning method involves the following steps and techniques: Incremental data collection: First, new data needs to be collected continuously, which can be a real-time data stream or regularly updated batch data; Model expansion: Using the existing model structure, the model is expanded by adding new data and features. This can be achieved by adding new layers or nodes on the basis of the existing model; Incremental training: Incremental training of the expanded model using incremental data sets. Incremental training means partial training based on the existing model by using new data instead of retraining the entire model from scratch; Model fusion: Fusion of the incrementally trained model with the original model to integrate the newly learned knowledge and patterns; Verification and testing: Verify and test the updated model to ensure that its performance on the new data meets expectations and maintains the accuracy and generalization ability of the model; Deployment and monitoring: Deploy the updated model to the actual environment and continuously monitor its performance and predictive ability.

[0033] In this embodiment, the digital twin system is updated through incremental learning, and the updated data is trained through incremental learning and then integrated into the digital twin system, which not only ensures the update of the model, but also ensures the adjustment of the model by the new tobacco leaf data.

[0034] In one embodiment, when the event consumption program is anomaly detection, tobacco leaf data is obtained; Compare tobacco leaf data with a preset standard variation range; If the tobacco leaf data is outside the preset standard variation range, obtaining detection environment data related to the tobacco leaf data; If the detection environment data is within the preset standard environment range, an abnormal detection event is generated.

[0035] In this embodiment, an anomaly detection service is implemented to monitor data flow in real time, detect abnormal situations, and generate anomaly detection events, so as to promptly correct problems arising in the data collection process in the digital twin system to improve the stability of the system.

[0036] In one embodiment, considering that during the collection of tobacco leaf data, there is a situation where the amount of data is too large and the system cannot process it in time, and there is also a bumper harvest period, and a large number of tobacco leaves to be matured or matured need to be judged in a short time, the specific process can be executed as follows: The processing time of the collected data by the statistical data processing event; If the processing time is within the critical time, the processing operation is carried out normally; If the processing time is outside the critical time, the regional information corresponding to the tobacco leaf data is extracted; Perform the same processing operation on the collected data based on the regional information and generate accelerated processing data; When the processing time is within the critical time, the accelerated processing data is subjected to secondary verification; If the error between the verification data and the accelerated processing data is within a preset range, the verification data replaces the corresponding accelerated processing data; If the error between the verification data and the accelerated processing data is outside a preset range, an anomaly detection event is generated.

[0037] In this embodiment, the processing time of the collected data is first monitored. When the processing time is abnormal, a unified processing method is preferentially used for tobacco leaves in the same region. A large number of tobacco leaves in the same region are processed uniformly. Since the temperature and environmental factors such as sunlight exposure corresponding to tobacco leaves in the same region will not differ too much, the same processing method can be used for centralized processing, thereby alleviating the situation in the process of collecting tobacco leaf data where the amount of data is too large and the system cannot process it in time, thereby improving the processing efficiency of the system.

[0038] It is worth mentioning that considering the acceleration processing methods in different regions, the error rate of data may be different due to regional differences. For regions with large error rates, the specific processing methods can be: Counting the acceleration stability of different regions, where the acceleration stability is the error between the verification data and the acceleration processing data corresponding to the target region; Based on the acceleration stability, tobacco leaf data corresponding to the areas with high acceleration stability are processed first; Optimize data processing in areas with low acceleration stability; If the acceleration stability of the optimized region is within the preset improvement range, the tobacco leaf data corresponding to the region with high acceleration stability will be processed first according to the acceleration stability; If the acceleration stability of the optimized area is outside the preset improvement range, the tobacco leaf data corresponding to the target area will be processed in the order of lowest priority.

[0039] In this embodiment, the processing priority of different regions is determined by calculating the acceleration stability. For regions with poor acceleration stability, the computing resources can be accumulated through lagging processing before calculation, thereby improving the accuracy of tobacco leaf data in regions with poor acceleration stability.

[0040] This embodiment adopts the above method, and updates and makes decisions in real time through the event-driven architecture. In the sorting and grading of tobacco leaves, when new tobacco leaf data is collected, a data collection event is immediately generated and sent. After receiving the event, the event consumer immediately starts to process the data and update the model, realizing real-time grading decision-making and response; when the tobacco leaf harvest season comes, the amount of data collection increases dramatically, and the high load can be coped with by increasing the number of event consumers to ensure that the system can efficiently process a large amount of data. During non-peak periods, the number of consumers can be reduced to save resources; simplified system integration, data collection equipment, data processing services and model update services communicate through standardized event messages, without the need to understand each other's internal implementation, simplifying the integration and maintenance of the system; by using the event-driven architecture, the tobacco leaf grading management system can quickly respond and update the model when the data changes, improving the real-time, scalability and reliability of the system, while simplifying the integration and maintenance of the system.

[0041] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0042] Based on the same inventive concept, the embodiment of the present application also provides a tobacco sorting and grading management device based on digital twins for implementing the tobacco sorting and grading management method based on digital twins involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more embodiments of tobacco sorting and grading management devices based on digital twins provided below can be referred to the limitations of tobacco sorting and grading management methods based on digital twins above, and will not be repeated here.

[0043] In one embodiment, Figure 3 As shown, a tobacco leaf sorting and grading management device based on digital twin is provided, including: a digital model building module, an event configuration module, a data processing module, a completion event module and an event consumption processing module, wherein: A digital model building module, used to create a digital twin model of tobacco leaves and a preset sorting and grading device, wherein the digital twin model at least includes tobacco leaves and a simulation device corresponding to the sorting and grading device, wherein the simulation device is used to simulate data collection of the sorting and grading device; An event configuration module, used to obtain event content obtained during sorting and grading, wherein the event content at least includes data collection of tobacco leaves; A data processing module is used to call an event triggering program and transmit the event content to the event triggering program. After the event triggering program obtains the event content, it reads the event triggering condition corresponding to the event content and determines whether the event content is triggered based on the event content and the event triggering condition; The completion event module is used to call the event consumer program corresponding to the event content for processing if an event is triggered, and generate a data processing completion event after completion.

[0044] In one embodiment, the event consumption processing module is also used for: when the event consumption program is data processing, obtaining tobacco leaf data detected by a preset sorting and grading device; calling a data trigger program and transmitting the tobacco leaf data to the event trigger program, wherein the event trigger program obtains the tobacco leaf data; reading the event trigger condition corresponding to the tobacco leaf data to perform data collection operations on the sorting and grading device; performing data collection operations based on the tobacco leaf data and the sorting and grading device, calling a data processing event to process the collected data, and generating a data processing completion event after the data processing event is completed.

[0045] In one embodiment, the event consumption update module is also used to: when the event consumption program is a model update, receive a data processing completion event; obtain updated tobacco leaf data, wherein the updated tobacco leaf data is tobacco leaf data obtained after data processing of tobacco leaf data detected by the sorting and grading equipment; construct an incremental digital model based on the updated tobacco leaf data and perform incremental training; merge the incremental digital model with the digital twin model and generate an updated twin model.

[0046] In one embodiment, the event consumption anomaly module is also used to: when the event consumption program is anomaly detection, obtain tobacco leaf data; compare the tobacco leaf data with a preset standard variation range; if the tobacco leaf data is outside the preset standard variation range, obtain detection environment data related to the tobacco leaf data; if the detection environment data is within the preset standard environment range, generate an anomaly detection event.

[0047] In one embodiment, the event consumption anomaly module is also used to: call data processing events to process collected data, including: calculating the processing time of collected data by statistical data processing events; if the processing time is outside the critical time, extracting the regional information corresponding to the tobacco data; performing the same processing operation on the collected data based on the regional information and generating accelerated processing data; when the processing time is within the critical time, performing secondary verification processing on the accelerated processing data; if the error between the verification data and the accelerated processing data is within a preset range, replacing the corresponding accelerated processing data with the verification data; if the error between the verification data and the accelerated processing data is outside the preset range, generating an anomaly detection event.

[0048] In one embodiment, the event consumption anomaly module is also used to: count the acceleration stability of different regions, where the acceleration stability is the error between the verification data and the acceleration processing data corresponding to the target region; based on the acceleration stability, give priority to the tobacco leaf data corresponding to the region with high acceleration stability; perform data processing optimization operations on the regions with low acceleration stability; if the acceleration stability of the optimized region is within the preset improvement range, then according to the acceleration stability, give priority to the tobacco leaf data corresponding to the region with high acceleration stability; if the acceleration stability of the optimized region is outside the preset improvement range, then process the tobacco leaf data corresponding to the target region in the order of lowest priority.

[0049] Each module in the above-mentioned tobacco sorting and grading management device based on digital twin can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0050] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 4 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a tobacco leaf sorting and grading management method based on digital twins is implemented.

[0051] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 4 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless method can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a tobacco leaf sorting and grading management method based on digital twins is implemented.

[0052] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0053] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0054] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0055] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0056] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0057] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0058] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0059] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A tobacco leaf sorting and grading management method based on digital twins, characterized in that: The method comprises: Creating a digital twin model of tobacco leaves and a preset sorting and grading device, wherein the digital twin model includes at least tobacco leaves and a simulation device corresponding to the sorting and grading device, wherein the simulation device is used to simulate data collection of the sorting and grading device; Acquiring event content obtained during sorting and grading, wherein the event content at least includes data collection of tobacco leaves; Calling an event triggering program and transmitting the event content to the event triggering program, after the event triggering program obtains the event content, reading the event triggering condition corresponding to the event content, and determining whether the event content is triggered based on the event content and the event triggering condition; If an event is triggered, the event consumer program corresponding to the event content is called for processing, and a data processing completion event is generated after completion.

2. The method according to claim 1, characterized in that: The method further comprises: When the event consumption program is data processing, the tobacco leaf data detected by the preset sorting and grading equipment is obtained; Calling a data triggering program and transmitting tobacco leaf data to an event triggering program, wherein the event triggering program obtains the tobacco leaf data; The event triggering condition corresponding to reading tobacco leaf data is that the sorting and grading equipment performs data collection operations; Data collection operations are performed based on tobacco leaf data and sorting and grading equipment, and data processing events are called to process the collected data until a data processing completion event is generated after the data processing event is completed.

3. The method according to claim 2, characterized in that The method further comprises: When the event consumer updates the model, it receives the data processing completion event; Acquire updated tobacco leaf data, where the updated tobacco leaf data is tobacco leaf data obtained after data processing of tobacco leaf data detected by the sorting and grading equipment; Build incremental digital models based on updated tobacco leaf data and perform incremental training; The incremental digital model is integrated with the digital twin model to generate an updated twin model.

4. The method according to claim 2, characterized in that: The method further comprises: When the event consumer is anomaly detection, obtain tobacco leaf data; Compare tobacco leaf data with a preset standard variation range; If the tobacco leaf data is outside the preset standard variation range, obtaining detection environment data related to the tobacco leaf data; If the detection environment data is within the preset standard environment range, an abnormal detection event is generated.

5. The method according to claim 4, characterized in that The calling of the data processing event to process the collected data includes: The processing time of the collected data by the statistical data processing event; If the processing time is outside the critical time, the regional information corresponding to the tobacco leaf data is extracted; Perform the same processing operation on the collected data based on the regional information and generate accelerated processing data; When the processing time is within the critical time, the accelerated processing data is subjected to secondary verification; If the error between the verification data and the accelerated processing data is within a preset range, the verification data replaces the corresponding accelerated processing data; If the error between the verification data and the accelerated processing data is outside a preset range, an abnormal detection event is generated.

6. The method according to claim 5, characterized in that The method further comprises: Counting the acceleration stability of different regions, where the acceleration stability is the error between the verification data and the acceleration processing data corresponding to the target region; Based on the acceleration stability, tobacco leaf data corresponding to the areas with high acceleration stability are processed first; Optimize data processing in areas with low acceleration stability; If the acceleration stability of the optimized region is within the preset improvement range, the tobacco leaf data corresponding to the region with high acceleration stability will be processed first according to the acceleration stability; If the acceleration stability of the optimized area is outside the preset improvement range, the tobacco leaf data corresponding to the target area will be processed in the order of lowest priority.

7. A tobacco leaf sorting and grading management device based on digital twin, characterized in that: The device comprises: A digital model building module, used to create a digital twin model of tobacco leaves and a preset sorting and grading device, wherein the digital twin model at least includes tobacco leaves and a simulation device corresponding to the sorting and grading device, wherein the simulation device is used to simulate data collection of the sorting and grading device; An event configuration module, used to obtain event content obtained during sorting and grading, wherein the event content at least includes data collection of tobacco leaves; A data processing module is used to call an event triggering program and transmit the event content to the event triggering program. After the event triggering program obtains the event content, it reads the event triggering condition corresponding to the event content and determines whether the event content is triggered based on the event content and the event triggering condition; The completion event module is used to call the event consumer program corresponding to the event content for processing if an event is triggered, and generate a data processing completion event after completion.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Open set category mining and extending method based on depth neural network and device thereof

    CN107506799A

  • Method for evaluating quality stability of batch-to-batch reconstituted tobacco

    CN108061691A

  • Implementation method and device for battery predictive maintenance of uninterruptible power supply and electronic device

    CN112347692A

  • Attenuation characteristic analysis method for stability acceleration experiment sample of finished cigarette paper

    CN114755333A

  • CVT error state prediction method and device based on incremental ensemble learning model

    CN115169704A