Data synthesis and enhancement method based on digital twinning and generative AI
Generating virtual data sets through digital twins and generative AI technology solves the problem of insufficient training data in image segmentation tasks in the agricultural field, improves the performance of deep learning algorithms and reduces data collection costs.
Patent Information
- Application Number
- CN202411014875.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-07-26
AI Technical Summary
In the agricultural field, the quality and quantity of training data sets for image segmentation tasks are insufficient, resulting in poor performance of deep learning algorithms, and data collection and annotation require a lot of manpower and time.
Using data synthesis and enhancement methods based on digital twins and generative AI, the three-dimensional model is reconstructed through multi-view images, computer vision and graphics techniques are used to generate virtual data sets, and the generative AI model is used to generate synthetic data for training image segmentation Model.
It improves the quality and quantity of training data for image segmentation tasks, reduces the cost of data collection and annotation, and significantly improves the performance of deep learning algorithms.
Smart Images

Figure CN118747719A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer vision technology, and specifically relates to a data synthesis and enhancement method based on digital twins and generative AI. Background Art
[0002] In recent years, computer vision technology has been widely used in the research of pest and disease detection, plant and fruit identification, crop and weed detection and classification in my country's agriculture. Leaf segmentation of plant images has important applications in plant phenotyping analysis, plant leaf area index measurement, etc. For image segmentation algorithms based on deep learning, the quality and quantity of training data sets directly affect the performance. However, in some areas of agriculture, there are problems such as few available annotated data sets, small data set sizes, and relatively single data set types. At the same time, data collection and annotation often require a lot of manpower, material resources, and time costs.
[0003] Digital twin technology can build a virtual model of a physical object in a computer. When collecting data sets, the data collection process can be simplified by applying data collection operations to the virtual model, facilitating large-scale, high-precision, and highly flexible data collection. The use of computer synthetic data enhancement methods can solve problems such as the lack of training data for deep learning algorithms such as image segmentation. Generative artificial intelligence and digital twin technology provide effective means for synthetic data enhancement.
[0004] Therefore, a data synthesis and enhancement method based on digital twins and generative AI is proposed to solve the problem of difficulty in obtaining training data in image segmentation tasks. Summary of the invention
[0005] The purpose of the present invention is to provide a data synthesis and enhancement method based on digital twins and generative AI to solve the problems raised in the above background technology.
[0006] To achieve the above object, the present invention provides the following technical solution: a data synthesis and enhancement method based on digital twins and generative AI, comprising the following steps: S1: A healthy plant was photographed at multiple angles to obtain a preset number of images for reconstructing its three-dimensional model; S2: Based on computer vision methods, the SIFT feature descriptor is used to describe multiple feature points in each two-dimensional image, and the same feature points are matched between multiple images to complete the pose estimation of the image and the camera model. The three-dimensional structure is established through incremental location cloud registration to obtain a sparse point cloud. S3: Based on the camera pose information, point cloud position and color information estimated by the SfM method, the multi-view geometry method is used to obtain the 3D geometric structure, color and normal information of the scene represented by the dense point cloud. After noise filtering and downsampling operations using the 3D data processing library, the plant part in the scene is cut out; S4: Using 3D modeling software, a mesh model of corn was manually built based on the dense point cloud model; S5: Design the data set, build a virtual scene, and then segment the annotations corresponding to the data set; S6: Use the image segmentation model for training tasks and use the dataset for pre-training. Use images of real plant fields as the test set and part of the training set, and manually annotate the test set. Use this as the standard result to judge the accuracy of the model's task completion. The test uses the IoU value as an indicator to judge whether the segmentation results are similar or not, and uses the SAM segmentation model as a control for the segmentation model effect. S7: Use generative models to synthesize data, build a three-dimensional model of the plant and test it.
[0007] Preferably, in S1, the resolution of each image is 12MP, the aspect ratio is 4:3, and the preset number is 170.
[0008] Preferably, in S3, the three-dimensional data processing library is Open3D.
[0009] Preferably, in S4, the 3D modeling software is Blender.
[0010] Preferably, in S6, the image segmentation model is Unet++, and the dataset is ImageNet.
[0011] Preferably, in S6, the IoU is an intersection-over-union ratio of the areas of the segmentation results, and the larger the value of the IoU is, the closer the two segmentation results are.
[0012] Preferably, in S6, the SAM is an image segmentation model with zero-sample generalization capability.
[0013] Preferably, the S4 specifically comprises the steps of: S41: performing blade fitting; S42: perform stem fitting; S43: fitting other parts of the plant.
[0014] Preferably, the S41 specifically includes the steps of: Feature points are selected from the point cloud, and the leaves of the plant are reconstructed based on the feature points. A preset number of feature points perpendicular to the direction of the veins are selected at preset intervals along the direction of the main vein of the leaf, and then the four adjacent feature points are connected on the leaf surface to form a quadrilateral plane.
[0015] Preferably, the S42 specifically includes the steps of: Use segmented cylindrical surfaces to fit the stems of the plants. Use cylinders of different radii at different positions to match the thickness variations of the stems of the original plants. Then linearly and smoothly connect the cylindrical surfaces at each position.
[0016] Compared with the prior art, the present invention has the following beneficial effects: The present invention utilizes a computer-generated data enhancement method to solve problems such as lack of training data for deep learning algorithms such as image segmentation, and enhances synthetic data through generative artificial intelligence and digital twin technology, uses three-dimensional reconstruction technology to build digital models of plants in the real world, and uses generative AI technology to generate three-dimensional digital models of plants. The method of generating synthetic data solves the problem of difficulty in obtaining training data in image segmentation tasks. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a flow chart of the present invention; Figure 2 A schematic diagram of image samples collected by an embodiment of the present invention; Figure 3 is a schematic diagram of a dense point cloud according to an embodiment of the present invention; Figure 4 This is a schematic diagram of a plant captured after being processed by the three-dimensional data processing library Open3D of the present invention; Figure 5 This is a schematic diagram of grid model reconstruction of the present invention; Figure 6 A schematic diagram of the test results of the model trained with the real data set and the synthetic data set of the present invention; Figure 7 This is a schematic diagram of the manually annotated standard results of the present invention. DETAILED DESCRIPTION
[0018] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present invention.
[0019] Furthermore, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts disclosed in the present invention.
[0020] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of methods and systems consistent with some aspects of the present invention as detailed in the appended claims.
[0021] See also Figure 1-Figure 7 As shown, the present invention provides the following technical solutions: Example 1 A data synthesis and enhancement method based on digital twins and generative AI comprises the following steps: In the present invention, firstly, a digital twin of a plant is constructed using plant images acquired in the real world, that is, a digital model of the plant is constructed through three-dimensional image reconstruction. The present invention proposes to use multi-view images of the plant and computer vision and graphics methods to perform three-dimensional reconstruction of the geometric structure of the original plant. A point cloud model and a mesh model of the plant are constructed.
[0022] Then, the data set based on the plant 3D model is synthesized. The 3D scene where the plant model is located is designed and adjusted using computer 3D graphics software, and the image rendering function of the software is used to obtain a data set consisting of 2D images of the labeled plants and their corresponding annotations.
[0023] In the present invention, the application scenarios of the synthetic data set are explored and the application effect is tested. Based on the advantages of the synthetic data set, a computer vision deep learning task is designed. The synthetic data set is used as its training data to test and show the role of the synthetic data set in the training process.
[0024] Finally, a generative AI model was used to generate a three-dimensional model of the plant, and the above-mentioned dataset synthesis method was used for model annotation and dataset synthesis. The synthetic data obtained by the generative AI model was used in the training process of computer vision deep learning tasks, and the role of synthetic data in promoting training results was tested and demonstrated.
[0025] In order to assist personnel in understanding the present invention, the specific implementation method and results are described in detail as follows: 1. Establish a three-dimensional model of corn plants. The specific process is as follows: 1.1 Corn plant image acquisition A healthy mature corn plant was photographed from multiple angles to reconstruct its 3D model. The corn plant was placed indoors and transplanted into a flowerpot. Each image has a resolution of 12MP and an aspect ratio of 4:3, i.e. 4027×3020 pixels, with a total of 170 images. Some samples of the image set are as follows: Figure 2 As shown: 1.2 Reconstructing the 3D structure of the plant. In the present invention, the open source 3D reconstruction tool chain Colmap and the 3D data processing library Open3D are used to perform 3D reconstruction of the plant model. The specific process is as follows: 1.2.1 Reconstructing sparse point clouds Structure from Motion is a method for estimating the 3D structure of a scene based on a set of multi-view 2D images. It is based on computer vision methods, uses descriptors such as SIFT features to describe multiple feature points in each 2D image, matches the same feature points between multiple images, completes the pose estimation of the image and the camera model, and then completes the establishment of the 3D structure through incremental point cloud registration to obtain a sparse point cloud.
[0026] In the present invention, the incremental SfM method provided by the Colmap tool chain is used to reconstruct the 3D structure of the corn plant. The visualization result of the reconstructed point cloud is shown in the figure below. It includes the location and color information of the feature points and the camera pose information estimated by the algorithm.
[0027] 1.2.2 Reconstructing dense point clouds The present invention uses Colmap's Multi-View Stereo tool, based on the camera pose information and point cloud position and color information estimated by the SfM method, and uses a multi-view geometry method to obtain the three-dimensional geometric structure, color, and normal information of the scene represented by a dense point cloud. The obtained dense point cloud is visualized as follows: Figure 3 As shown; Then, we used the 3D data processing library Open3D to perform noise filtering and downsampling operations, and then cut out the corn plant part in the scene. The result is as follows: Figure 4 Shown 1.2.3 Reconstructing the mesh model In the present invention, Blender, a 3D modeling software, is used to manually build a mesh model of corn based on a dense point cloud model. This simplifies the number of meshes in the model, improves the rendering efficiency of the data set, and reduces the storage space requirement. The steps and effects are as follows: (1) Leaf fitting: Select feature points from the point cloud and reconstruct the leaves of the plant based on the feature points. Select an appropriate number of feature points (1-5 points per group in the use case) distributed perpendicular to the main vein of the leaf at a certain interval. Then, on the leaf surface, connect the four adjacent feature points into a quadrilateral plane, such as Figure 5Shown on the left.
[0028] (2) Stalk fitting: Use segmented cylindrical surfaces to fit the corn stalks. Use cylinders of different radii at different locations to match the thickness variation of the original plant stalks. Then linearly connect the cylindrical surfaces at each location smoothly, such as Figure 5 as shown in .
[0029] (3) Other parts: For some organ models that are difficult to fit manually, such as corn cobs, corn stamens, and corn roots, we choose to purchase corn models made by designers online, and then fine-tune the existing models and transplant them into the model. Figure 5 Shown right.
[0030] In addition, in the present invention, after the three-dimensional model of the corn plant is established, the following steps need to be performed: 2. Design, acquisition and testing of synthetic datasets, as follows: 2.1 Synthetic Dataset Design and Virtual Scene Construction. In this test, we plan to use the constructed dataset for the training of the leaf segmentation task model. Therefore, we obtained a real cornfield dataset of a specific scene, built an overall three-dimensional simulation scene based on the real dataset, and designed a suitable leaf segmentation task dataset synthesis scheme. The specific process is as follows: 2.1.1 Design of Data Set,Considering the actual situation of data collection, four simulation collection schemes,are designed: Solution 1: There is only one corn plant in the scene, and local area images of the plant are collected from different directions and heights, with a total of 200 images.
[0031] Solution 2: There is only one corn plant in the scene, and the whole image of the plant is collected from different directions and heights, with a total of 200 images.
[0032] Solution 3: Multiple corn plants are randomly distributed in the scene, and images are taken around one plant to collect multiple plant images centered on the same plant, for a total of 100 images.
[0033] Solution 4: Multiple corn plants are randomly distributed in the scene, and the camera collects images from top to bottom in the corn field, with 25 camera positions arranged in a 5×5 square. The camera rotates evenly around an axis perpendicular to the ground at each position, collecting orthogonal projection images at multiple angles and multiple points, for a total of 250 images.
[0034] The following table shows the sample data sets for various scenarios: Solution 1 Solution 2 Solution 3 Solution 4 #timg# #timg# #timg# #timg# #timg# #timg# #timg# #timg# 2.1.2 Build a three-dimensional scene, remove the flower pots from the model, and add a land model, ambient light, and sky model.
[0035] Sky: Use Blender's Dynamic Sky add-on to create a sky model with ambient light.
[0036] Land: Use a plane mesh as the geometric model of the land, and obtain a suitable three-dimensional land material with weeds from the material library, apply it to the geometric model, and obtain the land model.
[0037] 2.1.3 Annotations corresponding to the segmented data set: By observing the built model, it is easy to find that we only need to modify the corresponding materials of each part, thereby changing the color of the corresponding position during rendering, and rendering the image with exactly the same scheme as the dataset to obtain the segmentation annotation in the form of a mask.
[0038] In this test, we set the leaves to white and non-leaf pixels to black. The sample annotations corresponding to each solution data set are shown in the following table: Solution 1 Solution 2 Solution 3 Solution 4 #timg# #timg# #timg# #timg# #timg# #timg# #timg# #timg# 2.2 Testing Synthetic Dataset The image segmentation model Unet++ was used for training tasks, and the ImageNet dataset was used for pre-training. We used images of real corn fields as the test set and part of the training set, and manually annotated the test set, which was used as the standard result to judge the accuracy of the model's task completion. The test used IoU as an indicator to judge whether the segmentation results are similar or not. IoU refers to the intersection of the areas of the segmentation results. The larger the IoU value, the closer the two segmentation results are.
[0039] We also used SAM (Segmentation Model) as a control for the performance of our segmentation model. SAM is an image segmentation model with strong zero-shot generalization ability and usually performs well in segmentation tasks. We uploaded the test image to the SAM platform and used the interactive segmentation interface to call the SAM model to segment our image. We completed the corn leaf segmentation task by clicking on the corn leaf in the test image and selected the best results as much as possible.
[0040] The test results are shown in the following table: Model Average IoU Max IoU Min IoU Pre-training only 0.29 0.51 0.13 Training with synthetic datasets 0.53 0.83 0.20 Training with real datasets 0.61 0.84 0.21 Training with two datasets 0.68 0.87 0.46 SAM 0.63 0.91 0.43 The test results show that the model trained with a combination of real and synthetic datasets performs best. SAM, as a general segmentation model, also performs very well. The model trained with synthetic datasets alone is inferior to the model trained with real datasets, but its segmentation effect is greatly improved compared to the model trained with pre-training alone.
[0041] By observing the visualization of the results, we can find that compared with the actual situation, many open spaces surrounded by leaves are not recognized in the model results trained using the two datasets. Considering that there is no dataset specifically set for this situation, subsequent work can consider setting up a dataset solution for training.
[0042] Furthermore, in the present invention, after the design, acquisition and testing of the synthetic data set are completed, data synthesis needs to be performed through a generative model.
[0043] 3. Data synthesis using generative models. In the present invention, the Meshy 2 generative AI model released by the Meshy team, which is based on a text generation model, is used as an example to synthesize a 3D model of corn. The Meshy model can directly output a 3D mesh model with textures. Using the generated 3D model instead of the 3D model established using the 3D modeling software, the above-mentioned synthetic data process can be performed to obtain another batch of synthetic data of the same specification. The specific process is as follows: 3.1 Establishing a 3D model of corn plants The user interface of the Meshy 2 model is used. In the present invention, text prompt words are used to guide the generative AI model to generate a three-dimensional model.
[0044] After using this synthetic data for training computer vision deep learning tasks and testing the task effects, the test results are shown in the following table: Training data / model Average IoU Max IoU Min IoU Dataset built by blender 0.68 0.87 0.46 Dataset generated by Meshy 2 0.65 0.87 0.45 SAM 0.63 0.91 0.43 Analysis of the test data shows that the training effect of the dataset generated by the Meshy 2 synthetic model is lower than that of the dataset generated by the model manually built using 3D modeling software. This result is expected due to the large difference in the quality of the two models. However, compared with the SAM segmentation large model, the training effect of the dataset generated by the Meshy 2 synthetic model is still higher than the segmentation result of the SAM segmentation large model.
[0045] Based on the same inventive concept, another embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus. Memory, used to store computer programs; The processor is used to implement the method of intelligent rating and evaluation optimization based on big data of the present invention when executing the program stored in the memory.
[0046] The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface is used for communication between the above terminal and other devices. The memory may include a random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. Optionally, the memory may also be at least one storage system located away from the aforementioned processor.
[0047] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0048] In order to assist people to understand the present invention, the following embodiments are also provided in the present invention: Example 2 In the field of precision agriculture, real-time monitoring of crop health is crucial to improving crop yields, so the following methods are provided: Data collection: Use a high-resolution camera (such as a high-definition camera mounted on a drone) to photograph the corn field from multiple angles, obtaining 170 images with a resolution of 12MP and an aspect ratio of 4:3.
[0049] 3D reconstruction: The SIFT algorithm is used to process the image, and the 3D sparse point cloud of the corn plant is established through SfM and incremental point cloud registration technology.
[0050] Densification and segmentation: Open3D is used to denoise and downsample the point cloud and convert it into a dense point cloud to segment the corn plant parts.
[0051] 3D modeling: In Blender, the mesh model of the corn plant was manually constructed based on the dense point cloud data, including detailed structures such as leaves and stems.
[0052] Dataset preparation: A dataset of corn plant images at different growth stages and health conditions is designed and enhanced and annotated in a virtual environment.
[0053] Model training: Unet++ was used as the image segmentation model. After pre-training on ImageNet, it was fine-tuned using actual field corn image data.
[0054] Performance evaluation: The IoU value is used to evaluate the performance of the model on the test set and compared with the SAM model to verify its segmentation accuracy.
[0055] Data synthesis and testing: Generative AI models (such as GANs) are used to synthesize more diverse corn plant images to further test and optimize the segmentation model.
[0056] Example 3 In plant pathology research, the ability to quickly and accurately identify crop lesions is key to developing effective prevention and control strategies. The following methods are provided: Based on the expansion of Example 2: Lesion sample collection: Increase the number of shots of corn plants with different lesion characteristics to ensure that the dataset contains a variety of lesion types.
[0057] Lesion annotation: The lesion area is accurately annotated in the dataset so that the model can learn the lesion characteristics.
[0058] Model adjustment: During the training process, the learning parameters of the Unet++ model were adjusted to increase the focus on the lesion area and improve the recognition accuracy.
[0059] Lesion simulation: Generative AI technology is used to simulate different lesions on the 3D model of healthy plants, generate synthetic images, and enhance the generalization ability of the model.
[0060] Field testing: Deploy the trained model to the field to detect crop lesions in real time and compare it with traditional methods to evaluate its effectiveness in practical applications.
[0061] Example 4 In the construction of smart cities, green coverage and plant health are important indicators for evaluating the urban ecological environment. Therefore, the following implementation methods are provided: Urban greening data collection: Use urban surveillance cameras or drones to capture plant images in urban green spaces, and apply similar methods for 3D reconstruction and segmentation.
[0062] Diversified model training: Not limited to corn, it is also necessary to build 3D models and segmentation models of various plants including trees, shrubs, flowers, etc.
[0063] Greening assessment system: Combined with the GIS system, the segmentation results are mapped onto the city map to achieve automatic calculation of greening coverage and real-time monitoring of plant health status.
[0064] Data-driven decision-making: Based on the monitoring results, data support is provided for urban greening management to guide greening transformation and plant maintenance work.
[0065] Example 5 Using digital twin technology to build a virtual farm provides a platform for agricultural education and scientific research, and provides the following methods: Build a virtual environment: Build a high-precision three-dimensional virtual farm environment based on the shooting data of the real farm.
[0066] Dynamic simulation: Generative AI technology is used to simulate various stages of the crop growth cycle, including germination, growth, flowering, and fruiting.
[0067] User interaction: Integrate interactive functions in the virtual farm, such as planting, watering, fertilizing and other operations, to provide an immersive learning experience.
[0068] Educational application: Apply virtual farms to agricultural teaching to help students understand agricultural knowledge and technology through practical operations.
[0069] Example 6 In the field of plant breeding, analyzing the genetic diversity of different varieties is crucial for breeding new varieties with high yield, disease resistance and stress resistance. Therefore, the following methods are provided: Sample collection and 3D reconstruction: 3D reconstruction of multiple varieties of crops to obtain detailed morphological characteristics.
[0070] Feature extraction and comparison: Using computer vision and machine learning algorithms, morphological features (such as leaf shape, stem thickness, etc.) are extracted from the 3D model and compared across varieties.
[0071] Genetic diversity assessment: Combined with genomic data, the genetic distance and diversity level between different varieties are evaluated to provide a scientific basis for breeding work.
[0072] Breeding of new varieties: Based on the results of genetic diversity analysis, parents with excellent traits are selected for hybrid breeding to cultivate new varieties with excellent characteristics such as high yield and disease resistance.
[0073] Example 7 Using virtual reality (VR) technology, we can provide the public with an immersive agricultural experience and enhance their understanding of agricultural production and agricultural culture. The following methods are provided: Virtual scene construction: Build high-precision virtual agricultural scenes based on real farm shooting data and 3D reconstruction results.
[0074] Interactive element design: Design interactive elements in virtual scenes, such as operable agricultural machinery and pickable fruits, to increase the fun and interactivity of the user experience.
[0075] Integration of educational content: Integrate agricultural knowledge, production processes, cultural heritage and other content into virtual scenes and impart them to users through gamification.
[0076] Multi-platform release: Release the virtual reality agricultural experience project to multiple platforms (such as VR headsets, mobile apps, web pages, etc.) for different user groups to experience and learn.
[0077] In addition, to achieve the above-mentioned objectives, an embodiment of the present invention further proposes a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the data synthesis and enhancement method based on digital twins and generative AI of an embodiment of the present invention is implemented.
[0078] It should be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable vehicles (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0079] The embodiments of the present invention are described with reference to flowcharts and / or block diagrams of methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A system that specifies the functions of a box or multiple boxes.
[0080] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction system, which is implemented in the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0081] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0082] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. "" and / or "" indicate that either one of the two can be selected, or both can be selected. Moreover, the terms "" include "" "" contain "" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "" include a..."" does not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0083] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the above embodiments, or replace some of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. Any changes or replacements that can be easily thought of by those skilled in the art within the technical scope disclosed in the present invention should be covered within the protection scope of the present invention.
[0084] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A data synthesis and enhancement method based on digital twins and generative AI, characterized by: The steps include: S1: A healthy plant was photographed at multiple angles to obtain a preset number of images for reconstructing its three-dimensional model; S2: Based on computer vision methods, the SIFT feature descriptor is used to describe multiple feature points in each two-dimensional image, and the same feature points are matched between multiple images to complete the pose estimation of the image and the camera model. The three-dimensional structure is established through incremental location cloud registration to obtain a sparse point cloud. S3: Based on the camera pose information, point cloud position and color information estimated by the SfM method, the multi-view geometry method is used to obtain the 3D geometric structure, color and normal information of the scene represented by the dense point cloud. After noise filtering and downsampling operations using the 3D data processing library, the plant part in the scene is cut out; S4: Using 3D modeling software, a mesh model of corn was manually built based on the dense point cloud model; S5: Design the data set, build a virtual scene, and then segment the annotations corresponding to the data set; S6: Use the image segmentation model for training tasks and use the dataset for pre-training. Use images of real plant fields as the test set and part of the training set, and manually annotate the test set. Use this as the standard result to judge the accuracy of the model's task completion. The test uses the IoU value as an indicator to judge whether the segmentation results are similar or not, and uses the SAM segmentation model as a control for the segmentation model effect. S7: Use generative models to synthesize data, build a three-dimensional model of the plant and test it.
2. The data synthesis and enhancement method based on digital twin and generative AI according to claim 1, characterized in that: In S1, the resolution of each image is 12MP, the aspect ratio is 4:3, and the preset number is 170.
3. The data synthesis and enhancement method based on digital twin and generative AI according to claim 1, characterized in that: In S3, the three-dimensional data processing library is Open3D.
4. The data synthesis and enhancement method based on digital twin and generative AI according to claim 1, characterized in that: In S4, the three-dimensional modeling software is Blender.
5. The data synthesis and enhancement method based on digital twin and generative AI according to claim 1, characterized in that: In S6, the image segmentation model is Unet++, and the dataset is ImageNet.
6. The data synthesis and enhancement method based on digital twin and generative AI according to claim 1, characterized in that: In S6, the IoU is the intersection-over-union ratio of the areas of the segmentation results. The larger the IoU value is, the closer the two segmentation results are.
7. The data synthesis and enhancement method based on digital twin and generative AI according to claim 1, characterized in that: In S6, the SAM is an image segmentation model with zero-sample generalization capability.
8. The data synthesis and enhancement method based on digital twin and generative AI according to claim 1, characterized in that: The S4 specifically includes the steps of: S41: performing blade fitting; S42: perform stem fitting; S43: fitting other parts of the plant.
9. The data synthesis and enhancement method based on digital twin and generative AI according to claim 8, characterized in that: The S41 specifically includes the following steps: Feature points are selected from the point cloud, and the leaves of the plant are reconstructed based on the feature points. A preset number of feature points perpendicular to the direction of the veins are selected at preset intervals along the direction of the main vein of the leaf, and then the four adjacent feature points are connected on the leaf surface to form a quadrilateral plane.
10. The data synthesis and enhancement method based on digital twin and generative AI according to claim 8, characterized in that: The S42 specifically includes the steps of: Use segmented cylindrical surfaces to fit the stems of the plants. Use cylinders of different radii at different positions to match the thickness variations of the stems of the original plants. Then linearly and smoothly connect the cylindrical surfaces at each position.
Citation Information
Patent Citations
Plant point cloud blade segmentation and phenotypic characteristic measurement method
CN111667529A
Digital twinning-oriented large-scale scene fusion three-dimensional reconstruction method and system
CN116229019A
Deep learning-based plant rapid three-dimensional rendering and representation extraction tool
CN117078821A
Cited By
Traffic flow prediction method and device, computer equipment and storage medium
CN119495194A
Fruit pulp color measuring method and system
CN120563863A
A method and system for measuring the color of fruit pulp
CN120563863B
