Morchella esculenta growth evaluation method and device, medium and product

Through deep learning models, segmentation, morphological processing and feature extraction of morel images, the problem of time-consuming and poor objectivity of morel growth evaluation in the prior art is solved, and efficient and scientific growth status evaluation is achieved.

CN118887663APending Publication Date: 2024-11-01INST OF AGRI ECONOMICS & INFORMATION TECH NINGXIA ACAD OF AGRI & FORESTRY SCI (NINGXIA AGRI SCI & TECH LIBRARY)
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410945398.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

In the prior art, the evaluation of morel mycelium growth mainly relies on manual measurement and empirical judgment, which is time-consuming and laborious, and has poor objectivity, making it difficult to effectively evaluate the growth status of mycelium.

Method used

Using a deep learning model-based morel growth evaluation method, morphological corrosion and expansion are performed by obtaining the images to be evaluated, segmenting and processing the culture medium and mycelium images, extracting core and edge region features, combining convolutional branches and fusion layers Perform feature extraction and classification to achieve scientific evaluation of the growth status of morels.

Benefits of technology

It greatly improves the efficiency of the assessment of the growth status of morels mycelium, and the evaluation results are more scientific and have good objectivity and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118887663A_ABST
    Figure CN118887663A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of morchella esculenta growth management, in particular to a morchella esculenta growth evaluation method and device, a medium and a product. The growth state of morchella esculenta can be reflected in the absorption condition of nutrient substances in a culture medium, the growth condition of bacterial colonies, the development condition of grown hyphae, the growth condition of newly grown hyphae and the like. Therefore, a culture medium image only containing a culture medium object, a hypha image only containing a hypha object, a core area hypha image and an edge area hypha image are extracted, feature extraction and feature fusion are performed on the extracted images of different areas through an identification model, and a classification result is output. The method can effectively extract the features of different dimensions in the to-be-evaluated image, and achieves the better evaluation of the growth state of the hypha object in the to-be-evaluated image. According to the mode, the efficiency of evaluating the growth condition of the morchella hyphae can be greatly improved, the evaluation result is more scientific, and good objectivity is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of Morchella growth management, and in particular to a Morchella growth evaluation method, device, medium and product. Background Art

[0002] In the process of artificial cultivation of Morchella spp., it is necessary to evaluate the growth of Morchella mycelium in order to select excellent varieties. At present, the evaluation of Morchella mycelium in the cultivation stage is generally done manually, such as by measuring the colony diameter, observing the colony color and other parameters based on experience to give a growth evaluation, which is time-consuming and labor-intensive and has poor objectivity. Summary of the invention

[0003] The present invention provides a method, device, medium and product for evaluating the growth of morels based on a deep learning model, which can overcome certain defects of the prior art.

[0004] The method for evaluating the growth of Morchella based on a deep learning model according to the present invention comprises:

[0005] Acquire an image to be evaluated; wherein the image to be evaluated includes a culture medium object and a mycelium object;

[0006] Segment the image to be evaluated to obtain a culture medium image containing only culture medium objects and a hyphae image containing only hyphae objects;

[0007] Perform morphological corrosion on the hyphae image to obtain the hyphae image of the core area corresponding to the corroded area;

[0008] Performing morphological expansion on the hyphae image to obtain hyphae images corresponding to the expanded area and the edge area of ​​the corroded area;

[0009] The culture medium image, mycelium image, core area mycelium image and edge area mycelium image are processed based on the recognition model to obtain the recognition result of the growth status of Morchella.

[0010] Considering that the growth state of Morchella can be reflected in the absorption of nutrients in the culture medium, the growth of the colony, the development of the grown hyphae, the growth of the newly grown hyphae, etc., the culture medium image containing only the culture medium object, the hyphae image containing only the hyphae object, the core area hyphae image and the edge area hyphae image are extracted respectively in the present disclosure, and the extracted images of different areas are subjected to feature extraction and feature fusion respectively through the recognition model, and the classification results are output, which can effectively extract the features of different dimensions in the image to be evaluated, and realize the better evaluation of the growth state of the hyphae object of the image to be evaluated. This method can greatly improve the efficiency of the evaluation of the growth status of Morchella hyphae, and the evaluation results are more scientific and have better objectivity.

[0011] Preferably, the step of obtaining the image to be evaluated includes:

[0012] Get the original RGB image, which only has the culture medium object and the mycelium object;

[0013] The original RGB image is cropped to obtain a cropped RGB image with an aspect ratio of a set value; wherein the cropped RGB image includes a part of the culture medium object and a complete mycelium object;

[0014] The cropped RGB image is scaled to obtain a scaled RGB image whose size is a set value; wherein the scaled RGB image is the image to be evaluated.

[0015] Based on the above operation, the image to be evaluated can have a size parameter of a set size, so the size parameters of the input image data can be unified, which is beneficial to subsequent data processing.

[0016] Preferably, segmenting the image to be evaluated to obtain a culture medium image containing only culture medium objects and a hyphae image containing only hyphae objects comprises:

[0017] The image to be evaluated is processed based on edge detection to obtain a culture medium object area and a hyphae object area;

[0018] The pixel value of the hyphae object area in the image to be evaluated is replaced with the first pixel value to obtain a culture medium image;

[0019] The pixel value of the culture medium object area in the image to be evaluated is replaced with the second pixel value to obtain a mycelium image.

[0020] Through the above, a culture medium image and a hyphae image having the same size parameters as the image to be evaluated can be obtained, which is beneficial to subsequent image feature extraction and feature fusion.

[0021] Preferably, performing morphological corrosion on the hyphae image to obtain a hyphae image of a core area corresponding to the corroded area includes:

[0022] The pixel value of the culture medium object area in the image to be evaluated is "0", and the pixel value of the hyphae object area is "1", so as to construct a binary structure image;

[0023] Perform morphological corrosion on the binary structure image to obtain the corroded area;

[0024] The pixel values ​​of the area outside the corroded area in the image to be evaluated are replaced with the third pixel value to obtain a mycelium image of the core area.

[0025] Through the above method, based on the morphological corrosion of the binary structure image, the regional information of the corroded area can be obtained, and based on the regional information, the core area mycelium image containing pixel value information can be extracted from the image to be evaluated, which is beneficial to the retention of relevant image features and subsequent feature extraction and feature fusion.

[0026] Preferably, the step of performing morphological expansion on the hyphae image to obtain a hyphae image of an edge area corresponding to the expanded area comprises:

[0027] Perform morphological dilation on the binary structure image to obtain the dilated area;

[0028] The pixel values ​​of the area other than the corroded area and the expanded area in the image to be evaluated are replaced with the fourth pixel value to obtain a hyphae image of the edge area.

[0029] Based on the above, the image features of the hyphae image in the edge area can be well preserved and facilitate the subsequent feature extraction and fusion.

[0030] Preferably, the recognition model has:

[0031] a first convolution branch for extracting a first image feature of the culture medium image;

[0032] a second convolution branch for extracting a second image feature of the mycelium image;

[0033] A third convolution branch for extracting a third image feature of the core area mycelium image;

[0034] a fourth convolution branch for extracting a fourth image feature of the hyphae image in the edge region;

[0035] Used to fuse the first image feature, the second image feature, the third image feature and the fourth image feature to obtain a fusion layer of image features; and

[0036] The output layer is used to obtain recognition results based on image features.

[0037] Through the above, it is possible to better realize the extraction of image features of the culture medium image, mycelium image, core area mycelium image and edge area mycelium image respectively, and through feature fusion and classification output again, it is possible to better realize the evaluation and output of the growth status of morel mycelium.

[0038] Preferably, the training of the recognition model includes:

[0039] Construct a training sample set, where each sample in the training sample set includes the sample RGB image and the classification label of the growth status;

[0040] Constructing a first sample set based on the training sample set, wherein each sample in the first sample set includes a culture medium image obtained from the sample RGB image and a corresponding classification label of the growth state;

[0041] Constructing a second sample set based on the training sample set, each sample in the second sample set includes a hyphae image obtained from the sample RGB image and a corresponding classification label of the growth state;

[0042] Constructing a third sample set based on the training sample set, each sample in the third sample set includes a core area mycelium image obtained from the sample RGB image and a corresponding classification label of the growth state;

[0043] Constructing a fourth sample set based on the training sample set, each sample in the fourth sample set includes an edge area hyphae image obtained from the sample RGB image and a corresponding classification label of the growth state;

[0044] The first convolution branch is trained with the first sample set, the second convolution branch is trained with the second sample set, the third convolution branch is trained with the third sample set, and the fourth convolution branch is trained with the fourth sample set;

[0045] The parameters of the first convolution branch, the second convolution branch, the third convolution branch and the fourth convolution branch are set to the parameters obtained through training, and the recognition model is trained with the training sample set to complete the training of the recognition model.

[0046] Through the above, the parameters of each convolution branch can be obtained based on the separate training of the first convolution branch, the second convolution branch, the third convolution branch and the fourth convolution branch, and then the parameters of each convolution branch are substituted into the recognition model and trained again to achieve the training and acquisition of the parameters of the fusion layer and the output layer.

[0047] The device for evaluating the growth of morels based on a deep learning model according to the present invention comprises:

[0048] An image processing module, used for acquiring an image to be evaluated; wherein the image to be evaluated includes a culture medium object and a hyphae object;

[0049] An image segmentation module is used to segment the image to be evaluated, and obtain a culture medium image containing only culture medium objects and a hyphae image containing only hyphae objects;

[0050] A morphological corrosion module is used to perform morphological corrosion on the mycelium image to obtain the mycelium image of the core area corresponding to the corroded area;

[0051] A morphological expansion module is used to perform morphological expansion on the hyphae image to obtain hyphae images corresponding to the expanded area and the edge area of ​​the corroded area;

[0052] The recognition model is used to process the culture medium image, the hyphae image, the core area hyphae image and the edge area hyphae image to obtain the recognition result of the growth state of Morchella.

[0053] According to a non-transitory computer-readable storage medium storing computer instructions of the present invention, the computer instructions are used to enable the computer to execute any of the above methods.

[0054] A computer program product according to the present invention comprises a computer program, and when the computer program is executed by a processor, the computer program implements any of the above methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 Schematic diagram of the method for evaluating the growth of Morchella in Example 1;

[0056] Figure 2 Schematic diagram of the Morchella growth evaluation device in Example 2. DETAILED DESCRIPTION

[0057] In order to further understand the content of the present invention, the present invention is described in detail in conjunction with the embodiments. It should be understood that the embodiments are only for explaining the present invention and are not intended to limit it.

[0058] Example 1

[0059] In the artificial cultivation stage of morel strains, it is necessary to select excellent morel strains and study the growth parameters of different varieties of morels. During the cultivation process, a large number of comparative experiments need to be constructed, and the growth status of morel hyphae needs to be evaluated and confirmed during the growth process. At present, the evaluation of the growth status of morel hyphae is mostly based on manual measurement or naked eye observation by researchers. By collecting the colony diameter of morel, observing the robustness of morel hyphae, the color of morel hyphae, etc., the growth status is evaluated based on experience or comparison with standard data.

[0060] Considering that current evaluation methods are highly subjective and time-consuming and labor-intensive, this embodiment provides a method for evaluating the growth of morels based on a deep learning model.

[0061] See Figure 1 , the method provided in this embodiment includes:

[0062] Acquire an image to be evaluated; wherein the image to be evaluated includes a culture medium object and a mycelium object;

[0063] Segment the image to be evaluated to obtain a culture medium image containing only culture medium objects and a hyphae image containing only hyphae objects;

[0064] Perform morphological corrosion on the hyphae image to obtain the hyphae image of the core area corresponding to the corroded area;

[0065] Performing morphological expansion on the hyphae image to obtain hyphae images corresponding to the expanded area and the edge area of ​​the corroded area;

[0066] The culture medium image, mycelium image, core area mycelium image and edge area mycelium image are processed based on the recognition model to obtain the recognition result of the growth status of Morchella.

[0067] Considering that the growth state of Morchella can be reflected in the absorption of nutrients in the culture medium, the growth of the colony, the development of the grown hyphae, the growth of the newly grown hyphae, etc., in this embodiment, the culture medium image containing only the culture medium object, the hyphae image containing only the hyphae object, the core area hyphae image and the edge area hyphae image are extracted respectively, and the extracted images of different areas are subjected to feature extraction and feature fusion respectively through the recognition model, and the classification results are output, which can effectively extract the features of different dimensions in the image to be evaluated, and realize the better evaluation of the growth state of the hyphae object of the image to be evaluated. This method can greatly improve the efficiency of the evaluation of the growth status of Morchella hyphae, and the evaluation results are more scientific and have better objectivity.

[0068] Wherein, obtaining the image to be evaluated may include the following steps:

[0069] Get the original RGB image, which only has the culture medium object and the mycelium object;

[0070] The original RGB image is cropped to obtain a cropped RGB image with an aspect ratio of a set value; wherein the cropped RGB image includes a part of the culture medium object and a complete mycelium object;

[0071] The cropped RGB image is scaled to obtain a scaled RGB image whose size is a set value; wherein the scaled RGB image is the image to be evaluated.

[0072] Based on the above operation, the image to be evaluated can have a size parameter of a set size, so the size parameters of the input image data can be unified, which is beneficial to subsequent data processing.

[0073] The cropping of the original RGB image and the scaling of the cropped RGB image can be achieved based on existing conventional methods or instructions, which will not be described in detail in this embodiment.

[0074] In addition, when segmenting the image to be evaluated to obtain a culture medium image containing only the culture medium object and a hyphae image containing only the hyphae object, the following steps may be included:

[0075] The image to be evaluated is processed based on edge detection to obtain a culture medium object area and a hyphae object area;

[0076] The pixel value of the hyphae object area in the image to be evaluated is replaced with the first pixel value to obtain a culture medium image;

[0077] The pixel value of the culture medium object area in the image to be evaluated is replaced with the second pixel value to obtain a mycelium image.

[0078] Through the above, a culture medium image and a hyphae image having the same size parameters as the image to be evaluated can be obtained, which is beneficial to subsequent image feature extraction and feature fusion.

[0079] Among them, the first pixel value can be the inverse color value of the average pixel value of the culture medium object area; the second pixel value can be the inverse color value of the average pixel value of the hyphae object area. Specifically, when calculating the inverse color value, the average R score, the average G score and the average B score of all pixel points in the reference area can be calculated, and then the value of the corresponding score in the inverse color value can be obtained by subtracting the average of the corresponding score from 255. Take the first pixel value (R1, G1, B1) as an example:

[0080]

[0081] Where N is the total number of pixels in the culture medium object area, and the pixel value of the i-th pixel in the culture medium object area is (R i , G i , B i ).

[0082] Based on the above method, the first pixel value and the second pixel value are constructed so that the removed parts in the culture medium image and the mycelium image can have obviously opposite pixel features, which can facilitate the subsequent extraction of image features and reduce the introduction of noise.

[0083] It is understandable that the edge detection process performed on the image to be evaluated can be implemented based on an existing algorithm, instruction or model, which is not limited in this embodiment.

[0084] In addition, when performing morphological corrosion on the hyphae image to obtain a hyphae image of a core area corresponding to the corroded area, the following steps may be included:

[0085] The pixel value of the culture medium object area in the image to be evaluated is "0", and the pixel value of the hyphae object area is "1", so as to construct a binary structure image;

[0086] Perform morphological corrosion on the binary structure image to obtain the corroded area;

[0087] The pixel values ​​of the area outside the corroded area in the image to be evaluated are replaced with the third pixel value to obtain a mycelium image of the core area.

[0088] Through the above method, based on the morphological corrosion of the binary structure image, the regional information of the corroded area can be obtained, and based on the regional information, the core area mycelium image containing pixel value information can be extracted from the image to be evaluated, which is beneficial to the retention of relevant image features and subsequent feature extraction and feature fusion.

[0089] The third pixel value may be the inverse color value of the average pixel value of the area outside the eroded area in the image to be evaluated. The specific calculation method is as described above and will not be described in detail here.

[0090] In addition, when the hyphae image is morphologically expanded to obtain the hyphae image of the edge area corresponding to the expanded area, the following may be included:

[0091] Perform morphological dilation on the binary structure image to obtain the dilated area;

[0092] The pixel values ​​of the area other than the corroded area and the expanded area in the image to be evaluated are replaced with the fourth pixel value to obtain a hyphae image of the edge area.

[0093] Based on the above, the image features of the hyphae image in the edge area can be well preserved and facilitate the subsequent feature extraction and fusion.

[0094] The fourth pixel value can be the inverse color value of the average pixel value of the area outside the eroded area and the expanded area in the image to be evaluated. The specific calculation method is as mentioned above and will not be described in detail here.

[0095] The morphological erosion and morphological dilation of the binary structure image can be performed based on conventional erosion operators and dilation operators and existing morphological erosion and dilation methods. In this embodiment, the specifications of the erosion operator and the dilation operator are not limited.

[0096] The recognition model used in this implementation can be as follows:

[0097] a first convolution branch for extracting a first image feature of the culture medium image;

[0098] a second convolution branch for extracting a second image feature of the mycelium image;

[0099] A third convolution branch for extracting a third image feature of the core area mycelium image;

[0100] a fourth convolution branch for extracting a fourth image feature of the hyphae image in the edge region;

[0101] Used to fuse the first image feature, the second image feature, the third image feature and the fourth image feature to obtain a fusion layer of image features; and

[0102] The output layer is used to obtain recognition results based on image features.

[0103] Through the above, it is possible to better realize the extraction of image features of the culture medium image, mycelium image, core area mycelium image and edge area mycelium image respectively, and through feature fusion and classification output again, it is possible to better realize the evaluation and output of the growth status of morel mycelium.

[0104] Among them, the first convolution branch, the second convolution branch, the third convolution branch and the fourth convolution branch can have the same structure, for example, they can all have an input layer connected in sequence, a convolution layer for performing a convolution operation, a pooling layer for performing a pooling operation, etc. It can be understood that the output of the convolution layer is processed by an activation function as the input of the connected pooling layer; the first convolution branch, the second convolution branch, the third convolution branch and the fourth convolution branch can all be three-channel structures to realize the extraction of image features of different scores of RGB images.

[0105] In this embodiment, the recognition model can be obtained through training, and the training step can include:

[0106] Construct a training sample set, where each sample in the training sample set includes the sample RGB image and the classification label of the growth status;

[0107] Constructing a first sample set based on the training sample set, wherein each sample in the first sample set includes a culture medium image obtained from the sample RGB image and a corresponding classification label of the growth state;

[0108] Constructing a second sample set based on the training sample set, each sample in the second sample set includes a hyphae image obtained from the sample RGB image and a corresponding classification label of the growth state;

[0109] Constructing a third sample set based on the training sample set, each sample in the third sample set includes a core area mycelium image obtained from the sample RGB image and a corresponding classification label of the growth state;

[0110] Constructing a fourth sample set based on the training sample set, each sample in the fourth sample set includes an edge area hyphae image obtained from the sample RGB image and a corresponding classification label of the growth state;

[0111] The first convolution branch is trained with the first sample set, the second convolution branch is trained with the second sample set, the third convolution branch is trained with the third sample set, and the fourth convolution branch is trained with the fourth sample set;

[0112] The parameters of the first convolution branch, the second convolution branch, the third convolution branch and the fourth convolution branch are set to the parameters obtained through training, and the recognition model is trained with the training sample set to complete the training of the recognition model.

[0113] Through the above, the parameters of each convolution branch can be obtained based on the separate training of the first convolution branch, the second convolution branch, the third convolution branch and the fourth convolution branch, and then the parameters of each convolution branch are substituted into the recognition model and trained again to achieve the training and acquisition of the parameters of the fusion layer and the output layer.

[0114] Among them, when constructing the training sample set, a large number of pre-collected photos of the morel growth process can be processed in the same operation or manner as the image to be evaluated, so as to obtain a large number of sample RGB images; then, based on manual annotation one by one, the classification label of the growth state of each sample RGB image can be obtained; and then the construction of the training sample set can be completed. It is understandable that the classification label of the growth state can be set according to the actual classification requirements, for example, it can be divided into 10 categories with a score value of 0-9 points according to the score.

[0115] Among them, after completing the construction of the training sample set, the culture medium image, mycelium image, core area mycelium image and edge area mycelium image of the sample RGB image in each sample can be obtained according to the same operation or method of obtaining the culture medium image, mycelium image, core area mycelium image and edge area mycelium image based on the image to be evaluated, thereby completing the construction of the first sample set, the second sample set, the third sample set and the fourth sample set.

[0116] Among them, when training the recognition model, the first convolution branch, the second convolution branch, the third convolution branch and the fourth convolution branch are respectively provided with the first output layer, the second output layer, the third output layer and the fourth output layer, and the first output layer, the second output layer, the third output layer and the fourth output layer have corresponding first to fourth fully connected layers, and the outputs of the first to fourth fully connected layers can be processed by, for example, a softmax function to output probability values ​​to obtain classification results.

[0117] Among them, when training the first convolution branch, the second convolution branch, the third convolution branch and the fourth convolution branch, a loss function can be constructed based on, for example, a cross-entropy loss function, and a test set can be established to evaluate the trained model based on accuracy, thereby completing the training of each convolution branch.

[0118] Among them, after completing the training of the first convolution branch, the second convolution branch, the third convolution branch and the fourth convolution branch, the parameters of each convolution branch can be fixed based on the parameters obtained by the training; then the recognition model is trained based on the training sample set, specifically, each sample RGB image in the training sample set is subjected to the above-mentioned segmentation processing, morphological corrosion processing and morphological expansion processing, and the corresponding culture medium image, mycelium image, core area mycelium image and edge area mycelium image are obtained and sent to the corresponding convolution branches respectively to obtain the corresponding image features. The obtained first to fourth image features are output through the output layer after the fusion layer, and the classification structure is output, and the training of the recognition model is completed based on constructing a loss function and / or optimizing the accuracy.

[0119] Among them, a weight matrix can be constructed at the fusion layer, and the fusion layer can realize the fusion of the first to fourth image features based on a weighted manner. Based on the training of the recognition model, the weight matrix can be obtained.

[0120] Among them, the output layer has a fully connected layer, and the parameters at the output layer can be obtained based on the training of the recognition model.

[0121] Among them, the output layer can output the final classification result based on, for example, a softmax function.

[0122] In this embodiment, the training of the relevant models or branches can be realized based on the existing conventional methods or operations, and this part is not described in detail in this embodiment. In the scheme of this embodiment, it is particularly important to emphasize the composition of the sample data based on which the different branches are trained.

[0123] Example 2

[0124] See Figure 2 In order to better implement the method in Example 1, this embodiment provides a Morchella growth evaluation device based on a deep learning model, which includes:

[0125] An image processing module, used for acquiring an image to be evaluated; wherein the image to be evaluated includes a culture medium object and a hyphae object;

[0126] An image segmentation module is used to segment the image to be evaluated, and obtain a culture medium image containing only culture medium objects and a hyphae image containing only hyphae objects;

[0127] A morphological corrosion module is used to perform morphological corrosion on the mycelium image to obtain the mycelium image of the core area corresponding to the corroded area;

[0128] A morphological expansion module is used to perform morphological expansion on the hyphae image to obtain hyphae images corresponding to the expanded area and the edge area of ​​the corroded area;

[0129] The recognition model is used to process the culture medium image, the hyphae image, the core area hyphae image and the edge area hyphae image to obtain the recognition result of the growth state of Morchella.

[0130] The image processing module should include a cropping unit and a scaling unit. The cropping unit can crop the original RGB image with a set aspect ratio, and the scaling unit can scale the cropped RGB image to a set size.

[0131] The image segmentation module may include an edge detection unit for performing edge detection on the image to be evaluated, a first generation unit for generating a culture medium image, and a second generation unit for generating a hyphae image.

[0132] Among them, the morphological corrosion module and the morphological expansion module can both obtain a binary structure image from a binary structure image generation unit, and the binary structure image generation unit can generate a binary structure image in a manner of setting the pixel value of the culture medium object area to "0" and the pixel value of the hyphae object area to "1" in the image to be evaluated based on the culture medium object area and hyphae object area information obtained by the edge detection unit;

[0133] The morphological corrosion module comprises: a morphological corrosion unit for performing morphological corrosion processing on the binary structure image based on a set corrosion operator, and a third generation unit for generating a core area mycelium image.

[0134] The morphological expansion module comprises: a morphological expansion unit for performing morphological expansion processing on the binary structure image based on a set expansion operator, and a fourth generation unit for generating a hyphae image in the edge area.

[0135] Example 3

[0136] Based on the method in Example 1, this embodiment provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute the method in Example 1.

[0137] Example 4

[0138] Based on the method in Embodiment 1, this embodiment provides a computer program product, including a computer program, and the computer program implements the method in Embodiment 1 when executed by a processor.

[0139] It is easy to understand that those skilled in the art can combine, split, reorganize, etc. the embodiments of the present application to obtain other embodiments based on one or several embodiments provided in the present application, and these embodiments do not exceed the protection scope of the present application.

[0140] The present invention and its implementation methods are described schematically above, and the description is not restrictive. The embodiments shown in the embodiments are only part of the implementation methods of the present invention, and the actual structure is not limited thereto. Therefore, if a person skilled in the art is inspired by the embodiments and designs a structure and an implementation method similar to the technical solution without creativity without departing from the purpose of the invention, they should all fall within the protection scope of the present invention.

Claims

1. A method for evaluating the growth of morels based on a deep learning model, comprising: Acquire an image to be evaluated; wherein the image to be evaluated includes a culture medium object and a mycelium object; Segment the image to be evaluated to obtain a culture medium image containing only culture medium objects and a hyphae image containing only hyphae objects; Perform morphological corrosion on the hyphae image to obtain the hyphae image of the core area corresponding to the corroded area; Performing morphological expansion on the hyphae image to obtain hyphae images corresponding to the expanded area and the edge area of ​​the corroded area; The culture medium image, mycelium image, core area mycelium image and edge area mycelium image are processed based on the recognition model to obtain the recognition result of the growth status of Morchella.

2. The method for evaluating the growth of Morchella based on a deep learning model according to claim 1, wherein: The step of obtaining the image to be evaluated comprises: Get the original RGB image, which only has the culture medium object and the mycelium object; The original RGB image is cropped to obtain a cropped RGB image with an aspect ratio of a set value; wherein the cropped RGB image includes a part of the culture medium object and a complete mycelium object; The cropped RGB image is scaled to obtain a scaled RGB image whose size is a set value; wherein the scaled RGB image is the image to be evaluated.

3. The method for evaluating the growth of Morchella based on a deep learning model according to claim 1, wherein: The step of segmenting the image to be evaluated to obtain a culture medium image containing only culture medium objects and a hyphae image containing only hyphae objects includes: The image to be evaluated is processed based on edge detection to obtain a culture medium object area and a hyphae object area; The pixel value of the hyphae object area in the image to be evaluated is replaced with the first pixel value to obtain a culture medium image; The pixel value of the culture medium object area in the image to be evaluated is replaced with the second pixel value to obtain a mycelium image.

4. The method for evaluating the growth of Morchella based on a deep learning model according to claim 3, wherein: The step of performing morphological corrosion on the mycelium image to obtain the mycelium image of the core area corresponding to the corroded area includes: The pixel value of the culture medium object area in the image to be evaluated is "0", and the pixel value of the hyphae object area is "1", so as to construct a binary structure image; Perform morphological corrosion on the binary structure image to obtain the corroded area; The pixel values ​​of the area outside the corroded area in the image to be evaluated are replaced with the third pixel value to obtain a mycelium image of the core area.

5. The method for evaluating the growth of Morchella based on a deep learning model according to claim 4, wherein: The step of performing morphological expansion on the hyphae image to obtain a hyphae image in an edge area corresponding to the expanded area includes: Perform morphological dilation on the binary structure image to obtain the dilated area; The pixel values ​​of the area other than the corroded area and the expanded area in the image to be evaluated are replaced with the fourth pixel value to obtain a hyphae image of the edge area.

6. The method for evaluating the growth of Morchella based on a deep learning model according to claim 1, wherein: The recognition model has: a first convolution branch for extracting a first image feature of the culture medium image; a second convolution branch for extracting a second image feature of the mycelium image; A third convolution branch for extracting a third image feature of the core area mycelium image; a fourth convolution branch for extracting a fourth image feature of the hyphae image in the edge region; Used to fuse the first image feature, the second image feature, the third image feature and the fourth image feature to obtain a fusion layer of image features; and The output layer is used to obtain recognition results based on image features.

7. The method for evaluating the growth of Morchella based on a deep learning model according to claim 6, wherein: The training of the recognition model includes: Construct a training sample set, where each sample in the training sample set includes the sample RGB image and the classification label of the growth status; Constructing a first sample set based on the training sample set, each sample in the first sample set includes a culture medium image obtained from the sample RGB image and a corresponding classification label of the growth state; Constructing a second sample set based on the training sample set, each sample in the second sample set includes a hyphae image obtained from the sample RGB image and a corresponding classification label of the growth state; Constructing a third sample set based on the training sample set, each sample in the third sample set includes a core area mycelium image obtained from the sample RGB image and a corresponding classification label of the growth state; Constructing a fourth sample set based on the training sample set, each sample in the fourth sample set includes an edge area hyphae image obtained from the sample RGB image and a corresponding classification label of the growth state; The first convolution branch is trained with the first sample set, the second convolution branch is trained with the second sample set, the third convolution branch is trained with the third sample set, and the fourth convolution branch is trained with the fourth sample set; The parameters of the first convolution branch, the second convolution branch, the third convolution branch and the fourth convolution branch are set to the parameters obtained through training, and the recognition model is trained with the training sample set to complete the training of the recognition model.

8. A device for evaluating the growth of morels based on a deep learning model, comprising: An image processing module, used for acquiring an image to be evaluated; wherein the image to be evaluated includes a culture medium object and a hyphae object; An image segmentation module is used to segment the image to be evaluated, and obtain a culture medium image containing only culture medium objects and a hyphae image containing only hyphae objects; A morphological corrosion module is used to perform morphological corrosion on the mycelium image to obtain the mycelium image of the core area corresponding to the corroded area; A morphological expansion module is used to perform morphological expansion on the hyphae image to obtain hyphae images corresponding to the expanded area and the edge area of ​​the corroded area; The recognition model is used to process the culture medium image, the hyphae image, the core area hyphae image and the edge area hyphae image to obtain the recognition result of the growth state of Morchella.

9. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 7.

10. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Hypha screening system based on cornea confocal images

    CN111754457A

  • Bone age assessment method and device based on global and local feature cooperation, equipment and medium

    CN115578373A

  • Efficient cultivation method of poria cocos strain

    CN116636423A

  • Multi-mode morchella esculenta growth state rapid discrimination method

    CN118298423A