Method and device for estimating state of crops, and computer program
By capturing and labeling crop images at different growth stages to train a machine learning model, the method addresses the inefficiency of conventional data preparation, facilitating faster model generation and improved crop condition estimation.
Patent Information
- Application Number
- JP2023053588
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-10
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Conventional methods for training machine learning models to estimate the condition of agricultural products, such as seedlings, require a large amount of labeled images, leading to a lengthy data preparation process and delayed model generation.
A method involving capturing crop images at two different times to generate training data, associating labels with these images, and using them to train a machine learning model for estimating crop conditions, allowing for faster model generation and easier labeling based on imaging time.
Reduces the time required to prepare training data and generate a trained model, enabling quicker estimation of crop conditions and identifying abnormal growth states.
Smart Images

Figure 2024141768000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a technique for estimating the condition of agricultural crops. [Background technology]
[0002] Conventionally, a technique is known for determining whether a seedling is growing well by inputting an image of the seedling into a machine learning model (Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2007-87055 A Summary of the Invention [Problem to be solved by the invention]
[0004] In the conventional technology, in order to train a machine learning model, it is necessary to prepare a large amount of images of seedlings that are well grown and images of seedlings that are poorly grown as training data. This makes it take a long time to prepare the training data, which may result in a long time until a trained machine learning model is generated. Note that the above-mentioned problem is common to technologies for estimating the condition of agricultural crops, regardless of the technology for determining the growth of seedlings. [Means for solving the problem]
[0005] According to a first aspect of the present disclosure, there is provided a method for estimating a state of a crop, the method including: a training image acquisition step of acquiring a first crop image obtained by capturing an image of the crop at a first time when the crop shows a first state, and a second crop image obtained by capturing an image of the same crop at a second time after the first time when the same crop shows a second state, a model generation step of performing learning of a machine learning model using the first crop image associated with a first label indicating the first state and the second crop image associated with a second label indicating the second state as training data to generate a trained machine learning model, an evaluation image acquisition step of acquiring a third crop image obtained by capturing an evaluation crop of the same type as the crop, and an estimation step of inputting the third crop image into the trained machine learning model to perform class discrimination, and estimating the state of the evaluation crop according to a result of the class discrimination.
[0006] According to a second aspect of the present disclosure, there is provided an apparatus for estimating a state of a crop, the apparatus including: a training image acquisition unit that acquires a first crop image obtained by capturing an image of the crop at a first time when the crop shows a first state, and a second crop image obtained by capturing an image of the same crop at a second time after the first time when the same crop shows a second state, a model generation unit that performs training of a machine learning model to generate a trained machine learning model using the first crop image associated with a first label indicating the first state and the second crop image associated with a second label indicating the second state as training data, respectively, an evaluation image acquisition unit that acquires a third crop image obtained by capturing an evaluation crop of the same type as the crop, and an estimation unit that inputs the third crop image to the trained machine learning model to perform class discrimination, and estimates the state of the evaluation crop according to a result of the class discrimination.
[0007] According to a third aspect of the present disclosure, there is provided a computer program for causing a computer to estimate the condition of a crop, the computer program comprising: a training image acquisition function for acquiring a first crop image obtained by capturing an image of the crop at a first time when the crop shows a first state, and a second crop image obtained by capturing the same crop at a second time after the first time when the same crop shows a second state; a model generation function for performing training of a machine learning model using the first crop image associated with a first label indicating the first state, and the second crop image associated with a second label indicating the second state, as training data, to generate a trained machine learning model; an evaluation image acquisition function for acquiring a third crop image obtained by capturing an evaluation crop of the same species as the crop; and an estimation function for inputting the third crop image into the trained machine learning model to perform class discrimination, and estimating the condition of the evaluation crop depending on the result of the class discrimination. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a diagram showing an estimation system for estimating a crop condition according to a first embodiment. [Diagram 2] FIG. 1 is a diagram illustrating a storage device. [Diagram 3] Diagram to explain machine learning models. [Figure 4] FIG. 4 is a flowchart showing an estimation method executed by the estimation device. [Diagram 5] FIG. 11 is a detailed flowchart of step S10. [Figure 6] FIG. 13 shows a first main crop image. [Figure 7] FIG. 2 shows a second main crop image. [Figure 8] FIG. 11 is a diagram for explaining step S114. [Figure 9] FIG. 5 is a diagram for explaining step S20 shown in FIG. 4. [Figure 10] FIG. 5 is a diagram for explaining step S50 shown in FIG. [Figure 11] FIG. 5 is a detailed flowchart of step S70 shown in FIG. [Figure 12]FIG. [Figure 13] FIG. 11 is a flowchart showing an estimation method according to a second embodiment. [Figure 14] FIG. 14 is a detailed flowchart of step S70a in FIG. 13. [Figure 15] FIG. 15 is a diagram for explaining a specific example of step 76a in FIG. 14. [Figure 16] FIG. 13 is a diagram showing a group of teacher data according to the third embodiment. [Figure 17] FIG. 11 is a flowchart showing an estimation process according to the third embodiment. [Figure 18] FIG. 18 is a diagram for explaining step S76b and step S77 in FIG. 17. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] A. First embodiment: Fig. 1 is a diagram showing an estimation system 100 for estimating a crop condition according to a first embodiment. Fig. 2 is a diagram for explaining a storage device 50. Fig. 3 is a diagram for explaining a machine learning model 52. Agricultural crops include harvest objects such as fruits, and associated objects related to the harvest objects such as leaves and branches.
[0010] The estimation system 100 shown in FIG. 1 includes an estimation device 20 that estimates the state of agricultural crops, and an imaging device 90. The estimation device 20 and the imaging device 90 can transmit and receive data by wire or wirelessly, or via an external storage device. The imaging device 90 is a camera that detects light with wavelengths in the visible light region to form an image. The image acquired by the camera may be a monochrome image or a color image. Note that the imaging device 90 is not limited to the above camera, and may be, for example, a camera that can obtain an image showing NDVI (Normalized Difference Vegetation Index) or a camera that detects light with wavelengths other than visible light to form an image.
[0011] The estimation device 20 is an electronic computer such as a personal computer. The estimation device 20 classifies the state of grape leaves, which are agricultural crops, using a trained machine learning model described later, and estimates the state of the grape leaves according to the result of the class discrimination. Specifically, the estimation device 20 classifies the state of the grape leaves, and estimates either an abnormal growth state in which the growth of the grape leaves is abnormal or a normal growth state in which the growth of the grape leaves is not abnormal, according to the result of the class discrimination. For example, if there is an abnormality in the growth of the grape leaves, there is a high possibility that the grape berries will not receive enough nutrients, which will have a negative effect on the quality of the grape berries. Therefore, in this embodiment, the quality of the grape berries can be evaluated by estimating the state of the growth of the grape leaves.
[0012] The estimation device 20 includes a processor 30, a storage device 50, an input unit 60, and a display unit 70. The processor 30 controls the operation of the estimation device 20 by executing various programs stored in the storage device 50. Detailed functions of the processor 30 will be described later. The input unit 60 accepts input from a user. The input unit 60 may be, for example, a keyboard, a mouse, or a touch panel monitor. The display unit 160 displays various information. The display unit 160 may be, for example, a liquid crystal monitor.
[0013] The storage device 50 is composed of memories such as RAM and ROM. As shown in Fig. 2, the storage device 50 stores a machine learning model 52 used to estimate the condition of agricultural crops, a training data group LIMG used for training the machine learning model 52, an evaluation target image group EIMG, and various programs 58 executed by the processor 30. The evaluation target image group EIMG is composed of a plurality of evaluation target images that are to be input to the trained machine learning model 52 after training to estimate the condition of agricultural crops.
[0014] As shown in FIG. 3, the machine learning model 52 of this embodiment uses a convolutional neural network as an algorithm. The machine learning model 52 performs class discrimination of the input image IM. The machine learning model 52 includes an input layer Ly1, an intermediate layer Ly2, and an output layer Ly3. The input layer Ly1 is a layer to which the image IM to be estimated is input. The intermediate layer Ly2 is a layer that extracts features of the image IM based on data transmitted from the input layer Ly1 and outputs the features to a subsequent layer. The output layer Ly3 is a layer that outputs the result of class discrimination. The intermediate layer Ly2 may be one or more. In other embodiments, the machine learning model 52 may use other algorithms as long as it can perform class discrimination, and may be, for example, a random forest.
[0015] The teacher data group LIMG shown in FIG. 2 is used for training the machine learning model 52. The teacher data group LIMG has a plurality of teacher data LIM having a training image and a label associated with the training image. The teacher data group LIMG will be described in detail later. The evaluation target image group EIMG is a collection of data to be classified by the trained machine learning model 52. The evaluation target images in the evaluation target image group EIMG are images generated based on images of agricultural products captured by the imaging device 90, and in this embodiment, grape leaves are captured. The teacher data group LIMG will be described in detail later.
[0016] As shown in FIG. 1, the processor 30 functions as an image acquisition unit 32, an image processing unit 40, a model generation unit 41, an estimation unit 42, a heat map generation unit 44, and a display control unit 46 by executing various programs 58 stored in the storage device 50.
[0017] The image acquisition unit 32 acquires an image captured by the imaging device 90. The acquired image is stored in the storage device 50. The image acquisition unit 32 has a training image acquisition unit 34 and an evaluation image acquisition unit 36. The training image acquisition unit 34 acquires training original images that are the basis of training images used in training the machine learning model 52. The evaluation image acquisition unit 36 acquires evaluation original images that are the basis of evaluation target images that are input to the trained machine learning model 52 and classified.
[0018] The image processing unit 40 performs image processing such as extraction processing for extracting a part of an image and superimposition processing for superimposing two images. For example, the image processing unit 40 performs image processing on a learning original image to generate a plurality of learning images, and performs image processing on an evaluation original image to generate a plurality of evaluation target images. The plurality of learning images are associated with a label, respectively, to constitute the teacher data.
[0019] The model generation unit 41 inputs a plurality of pieces of training data LIM of the training data group LIMG to the pre-learning machine learning model 52, and executes training of the machine learning model 52.
[0020] The estimation unit 42 inputs the evaluation target image included in the evaluation target image group EIMG to the trained machine learning model 52 and estimates the state of grape leaves, which are the evaluation crop, according to the result of class discrimination output from the output layer Ly3. In this embodiment, the estimation unit 42 estimates that the grape leaves, which are the evaluation crop, are in either a good growth state where no abnormality has occurred in the growth, or an abnormal growth state where an abnormality has occurred in the growth.
[0021] The heat map generating unit 44 generates a heat map indicating the degree of contribution of class discrimination when class discrimination is performed by the trained machine learning model 52. The heat map generating unit 44 generates the heat map using, for example, a method based on Grad-CAM.
[0022] The display control unit 46 controls the operation of the display unit 70. The display control unit 46 displays, for example, the evaluation target image, the result of class discrimination by the trained machine learning model 52, and the estimation result by the estimation unit 42.
[0023] FIG. 4 is a diagram showing a flowchart of the estimation method executed by the estimation device 20. First, in step S10, the processor 30 executes a process of acquiring training images. Next, in step S20, the processor 10 associates labels with the acquired training images to generate training data LIM. Note that the task of associating labels with training images may be performed by a user. In this case, the processor 10 executes step S20 by accepting input of multiple pieces of training data LIM generated by associating labels with training images by the user, and storing the data in the storage device 50 as a training data group LIMG.
[0024] Next, in step S30, the processor 30 sequentially inputs the teacher data LIM of the teacher data group LIMG to the machine learning model 52 to perform learning of the machine learning model 52. Next, in step S50, the processor 10 executes an evaluation target acquisition step of acquiring an evaluation target image. The evaluation target image is an image to be evaluated by classifying it by the trained machine learning model 52, and is an image of the leaves of the evaluation crop of the same kind as the leaves of the crop captured as the learning image. The same kind of crop may be the same or different varieties as long as they are the same type of crop. The same kind of evaluation crop may be, for example, grapes of the same variety or different varieties grown in the same farm in the next season, or grapes of the same variety or different varieties grown in a different farm. After step S50, the processor 30 executes an estimation step of estimating the state of the grapes, which are the crop.
[0025] Fig. 5 is a detailed flowchart of step S10. Fig. 6 is a diagram showing a first main crop image. Fig. 7 is a diagram showing a second main crop image. Fig. 8 is a diagram for explaining step S114. Fig. 9 is a diagram for explaining step S20 shown in Fig. 4. Note that the images of crops in Fig. 8 and subsequent figures are diagrammatically represented with hatching for simplification.
[0026] As shown in FIG. 5, the learning image acquisition unit 34 and the image processing unit 40 acquire a first main crop image IMp1 captured by the imaging device 90 in step S112. The first main crop image IMp1 is an image of grape leaves captured in a first period when the grape leaves, which are a crop, are in a first state. The first state is a pre-growth state before the grapes can be harvested. For example, the first state is a state in which the leaves are in the middle of growing after the buds start to appear. For example, the first state is a state of grape leaves in any period from May to July. The main region MR corresponding to the first main crop image IMp1 is larger than the region corresponding to the first crop image, which is a learning image and will be described later. As shown in FIG. 6, the first main crop image IMp1 is an image obtained by extracting the main region MR, in which grape leaves are mainly captured, from the whole image IMW captured by the imaging device 90 installed at a predetermined position of a farm including a plurality of grape leaves. The first main crop image IMp1 contains a plurality of grape leaf images, i.e., a large number of grape leaf images. The whole image IMW as a learning original image of a farm may contain other objects such as scenery and buildings other than grapes. In this case, the image processing unit 40 extracts a predetermined main region MR from the whole image IMW acquired by the learning image acquisition unit 34, and generates and acquires the image of the main region as a first main crop image IMp1. The acquired first main crop image IMp1 is stored in the storage device 50.
[0027] After step S112, the learning image acquisition unit 34 and the image processing unit 40 acquire the second main crop image IMp2 captured by the imaging device 90 in step S114. As shown in FIG. 7, the second main crop image IMp2 is an image of grape leaves in a second state, which are the same as those in the first main crop image IMp1. The second state is a state different from the first state, and is a state of grape leaves in a second period after the first period. In this embodiment, the second state indicates a post-growth state in which grapes, which are agricultural crops, can be harvested. For example, the second state is a state of grapes in any period from August to October. The second main crop image IMp2 is generated by extracting a predetermined main region MR from the whole image IMW, which is a learning original image captured by the imaging device 90 installed at a predetermined position in the same manner as the first main crop image IMp1. The second main crop image IMp2 contains a plurality of grape leaf images, i.e., a large number of grape leaf images. When the first main crop image IMp1 and the second main crop image IMp2 are used without distinction, they are called main crop images IMp. In this embodiment, the size of each of the first main crop image IMp1 and the second main crop image IMp2 is 1240×104 pixels.
[0028] 5, in step S116 after step S114, the image processing unit 40 divides the first main crop image IMp1 acquired in step S112 to generate a plurality of first crop images. Also in step S116, the image processing unit 40 divides the second main crop image IMp2 acquired in step S114 to generate a plurality of second crop images. The image processing unit 40 stores the generated plurality of first crop images and plurality of second crop images in the storage device 50.
[0029] As shown in FIG. 8, in step S116, the image processing unit 40 divides the main crop image IMp by a predetermined patch size and cuts out a plurality of crop images PIM as a plurality of patch images to generate a crop image PIM. The cut-out plurality of crop images PIM are stored in the storage device 50. In this embodiment, the patch size PS of the cut-out region PR is 32×32 pixels. The image processing unit 40 cuts out the image while shifting the cut-out region PR by 4 pixels. The size of the patch size PS is not limited to the above, but it is preferable that each of the cut-out images contains at least one image of grape leaves to be learned by the machine learning model 52. Among the crop images PIM, the image generated using the first main crop image IMp1 is called the first crop image PIMa, and the image generated using the second main crop image IMp2 is called the second crop image PIMb. In addition, when each of the first crop images PIMa and each of the second crop images PIMb are to be distinguished from each other, numbers are added to the end of the names. As described above, step S116 shown in FIG. 5 is a process of dividing each of the first main crop image IMp1 and the second main crop image IMp2 by a predetermined patch size PS to generate a plurality of first crop images PIMa and a plurality of second crop images PIMb. The plurality of first crop images PIMa and the plurality of second crop images PIMb are used as training images for training the machine learning model 52. As described above, the first main crop image IMp1 and the second main crop image IMp2 are images of the same grape leaves before and after growth. Also, as described above, the first crop image PIMa and the second crop image PIMb are images of the same grape leaves.
[0030] As can be understood from the above, steps S112 and S114 shown in FIG. 5 are processes for capturing images of grape leaves in a main region MR in which the grape leaves of the agricultural crop are located, the main region MR being larger than a patch size PS, which is an imaging area corresponding to each of the first agricultural crop image PIMa and the second agricultural crop image PIMb described below, to obtain a first main agricultural crop image IMp1 and a second main agricultural crop image IMp2.
[0031] As shown in FIG. 9, for the training data group LIMG, the first crop image PIMa and the second crop image PIMb serving as learning images are associated with a label LB to form training data LIM. The association of the labels may be performed by the processor 30 using a predetermined label algorithm. The processor 30 associates a first label L1 indicating a first state with the first crop image PIMa generated by cutting out the first main crop image IMp1 captured at a first time. The processor 30 also associates a second label L2 indicating a second state with the second crop image PIMb generated by cutting out the second main crop image IMp2 captured at a second time. Note that the task of associating the labels L1 and L2 may be performed by a user instead of the processor 30.
[0032] 4, the model generation unit 41 inputs a plurality of pieces of training data LIM contained in the training data group LIMG to the machine learning model 52, and adjusts parameters of the machine learning model 52 so that the class discrimination result of the output layer Ly3 reproduces the labels L1 and L2. As a result, the model generation unit 41 executes training of the machine learning model 52 in step S30. That is, the model generation unit 41 executes training of the machine learning model 52 using the first crop image PIMa associated with the first label L1 indicating the first state and the second crop image PIMb associated with the second label L2 indicating the second state as training data LIM, respectively, to generate a trained machine learning model 52.
[0033] FIG. 10 is a diagram for explaining step S50 shown in FIG. 4. The third crop image EIM as an evaluation target image acquired in step S50 is acquired in the same manner as the first crop image PIMa and the second crop image PIMb as shown in FIG. 8. That is, first, the evaluation image acquisition unit 36 acquires an entire image IMW of a farm including grape leaves, which is the same evaluation crop as the crop represented by the crop image PIM. Then, the image processing unit 40 generates a third main crop image EIMp, which is an image obtained by extracting a main region MR in which grape leaves are mainly captured, from the entire image IMW. Next, the image processing unit 40 divides the third main crop image EIMp by a predetermined patch size PS and cuts out a plurality of third crop images EIM as a plurality of patch images, thereby generating the third crop image EIM. The cut out third crop images EIM are stored in the storage device 50. The size of the main region MR, the patch size PS, and the cut-out region PR according to the patch size PS associated with the third crop image EIM are the same as those associated with the first crop image PIMa and the second crop image PIMb. In this embodiment, the size of the third main crop image EIMp is 1240×104 pixels. The patch size PS of the cut-out region PR for the third crop image EIM is 32×32 pixels. The image processing unit 40 cuts out the third crop image EIM while shifting the cut-out region PR by 4 pixels each. When multiple third crop images EIM are used to be distinguished from one another, numbers are added to the end of the names.
[0034] In step S50, the image processing unit 40 associates additional information AI with the generated third crop images EIM. The additional information is, for example, position information for identifying a position in the third main crop image EIMp. The position information is, for example, a coordinate position of a specific pixel among 32×32 pixels. This position information is used when superimposing a heat map generated based on the third crop image EIM on the third main crop image EIMp. As described above, step S50 is a process of acquiring the third crop image EIM obtained by capturing an evaluation crop of the same type as the crop from which the first crop image PIMa and the second crop image PIMb were captured.
[0035] Fig. 11 is a detailed flowchart of step S70 shown in Fig. 4. Fig. 12 is a diagram showing an estimated image HIM. As shown in Fig. 11, first, in step S72, estimation unit 42 selects one of the multiple third crop images EIM and inputs the selected third crop image EIM to trained machine learning model 52. As a result, a result of class discrimination is output from output layer Ly3 of trained machine learning model 52. The result of class discrimination is stored in storage device 50 in association with the target third crop image EIM.
[0036] Next, in step S74, the estimation unit 42 determines whether or not all of the third crop images EIM generated from one third main crop image EIMp have been input to the trained machine learning model 52. If the determination in step S74 is "No," the estimation unit 42 executes the process of step S72 again to select a third crop image EIM that was not selected by the previous routine.
[0037] On the other hand, if the determination in step S74 is "Yes", in step S76, the estimation unit 42 estimates the state of the evaluated crop, more specifically, the leaves of the evaluated crop, according to the result of the class discrimination. Specifically, if the result of the class discrimination indicates the first label, the estimation unit 42 estimates that the state of the evaluated crop captured in the third crop image EIM, i.e., within the imaging area of the third crop image EIM, is in an abnormal growth state where an abnormality has occurred in the growth. On the other hand, if the result of the class discrimination indicates the second label, the estimation unit 42 estimates that the state of the evaluated crop captured in the third crop image EIM is in a normal growth state where no abnormality has occurred in the growth. Note that the order of steps S74 and S76 may be reversed.
[0038] In addition, in step S76, the estimation unit 42 estimated the state of the evaluated crop for each third crop image EIM generated by cutting out a part of the third main crop image EIMp, but the state of the evaluated crop may be estimated by collectively evaluating multiple third crop images EIM that are images of a predetermined partitioned area adjacent to each other. For example, the estimation unit 42 may determine that the state of the evaluated crop in the predetermined partitioned area is in an abnormal growth state when the number indicating the first label L1 in the class discrimination results of the multiple third crop images EIM in the predetermined partitioned area is equal to or greater than a certain percentage of the total number of the multiple third crop images EIM in the predetermined partitioned area.
[0039] In step S78 following step S76, the heat map generator 44 generates a heat map for each of the third crop images EIM, in which the pixels are highlighted according to the degree of contribution to the class discrimination, based on the feature map generated in the intermediate layer Ly2. In this embodiment, the heat map displays each pixel of the third crop images EIM classified into the label L1 in a different color according to the degree of contribution to the class discrimination. Specifically, the heat map generator 44 displays pixels that have a low degree of contribution to the class discrimination of the label L1 in blue, and the higher the degree of contribution, the closer to red the pixel is to the pixel. In other words, the heat map indicates the degree of contribution to the class discrimination of the label L1.
[0040] After step S78, in step S80, the heat map generator 44 generates an estimated image by superimposing a heat map on the multiple third crop images EIM. In this embodiment, in step S80, the heat map generator 44 generates an estimated image HIM by superimposing each heat map on the third main crop image EIMp shown in Fig. 11 from which the third crop image EIM was generated, based on the heat maps of the multiple third crop images EIM and the position information associated with the third crop images EIM.
[0041] In Fig. 12, the third main crop image EIMp is shown by single hatching, and the areas highlighted by the heat map HP are shown by cross hatching. The cross hatching indicates the areas highlighted by the heat map HP. The finer the cross hatching, the higher the contribution to the label L1, which is displayed in red. In the estimated image HIM shown in Fig. 12, the grape leaves located in areas R1 and R2 are most likely to be in an abnormal growth state.
[0042] 11, after step S80, the display control unit 46 displays the estimated image HIM on the display unit 70. Note that, in addition to the estimated image HIM, the display control unit 46 may cause explanatory information explaining the estimated image HIM to be displayed on the display unit 70. The explanatory information may be, for example, position information of the area where it is estimated that an abnormal growth state has occurred, and text information explaining that there is an abnormal growth state.
[0043] According to the first embodiment, as shown in Fig. 5 and Fig. 9, a first label L1 is associated with a first crop image PIMa captured in a first period, and a second label L2 is associated with a second crop image PIMb captured in a second period, and these are used as training data LIM for training the machine learning model 52. This makes it possible to easily perform labeling according to the time of imaging without needing to determine whether or not an abnormality has actually occurred in the growth. This makes it possible to prevent the time required for preparing training data for the machine learning model 52 from becoming long, thereby shortening the time required to generate the trained machine learning model 52.
[0044] According to the first embodiment, images of the crop before and after growth are used as training data LIM, and the first state, which is the state before the crop grows, is used as the first label L1. When the result of the class discrimination is the first label L1, it can be estimated that the crop is in an abnormal growth state. In other words, when the crop is in an abnormal growth state, it can be estimated that the growth is not progressing and the state of the crop is closer to the pre-growth state than the post-growth state. Therefore, instead of preparing crop images with abnormal growth and crop images with good growth for the training data LIM, images captured at the first and second periods before and after the growth of the crop can be used as the training data LIM. Therefore, a trained machine learning model 52 for estimating an abnormal growth state can be easily generated.
[0045] According to the first embodiment, as shown in FIG. 5 and FIG. 8, the image of the crop located in the main region MR is set as the first main crop image IMp1 and the second main crop image IMp2, and the first main crop image IMp1 and the second main crop image IMp2 are used to generate the first crop image PIMa and the second crop image PIMb. This makes it easier to generate the teacher data LIM than when the teacher data LIM is generated by capturing the first crop image PIMa and the second crop image PIMb. According to the first embodiment, as shown in steps S80 and S82 of FIG. 11 and FIG. 12, the estimated image HIM is generated by superimposing the heat map HP and the third main crop image EIMp from which the third crop images EIM are generated, and is output. This allows the user to easily determine the area that contributed to the class discrimination, more specifically, the class discrimination of the first label L1 corresponding to the abnormal growth state, by the estimated image HIM. Therefore, the user can easily identify the location where the abnormal growth condition is occurring, and smoothly check the growth condition of the crops and take appropriate measures.
[0046] B. Second embodiment: Fig. 13 is a diagram showing a flowchart illustrating an estimation method of the second embodiment. Fig. 14 is a diagram showing a detailed flowchart of step S70a in Fig. 13. The second embodiment differs in that steps S50a and S70a shown in Fig. 13 and 14 are executed instead of steps S50 and S70 shown in Fig. 4 and Fig. 11 in the first embodiment. Since other configurations and steps are the same as those in the first embodiment and the second embodiment, the same configurations and steps are denoted by the same reference numerals and description thereof will be omitted as appropriate.
[0047] As shown in FIG. 13, in step S50a, the processor 30 executes an evaluation target acquisition step of acquiring an evaluation target image. The evaluation target image is an image to be evaluated by classifying it using the trained machine learning model 52, and is an image of the leaves of the evaluation crop of the same kind as the leaves of the crop captured as the learning image. In this embodiment, in step S50a, the processor 30 acquires a plurality of whole images IMW of a farm including grape leaves, which is the evaluation crop, in chronological order. In this embodiment, the processor 30 acquires whole images IMW at a first time t1 to a fifth time t5, which are arranged in chronological order as the growth process of grape leaves. The time is later from the first time t1 to the fifth time. Then, the image processing unit 40 generates a third main crop image EIMp, which is an image obtained by extracting the main region MR in which grape leaves are mainly captured, for each of the whole images IMW at the first time t1 to the fifth time t5, in the same manner as in the first embodiment. 10 in the first embodiment, the image processing unit 40 divides each third main crop image EIMp by a predetermined patch size PS and extracts a plurality of third crop images EIM as a plurality of patch images to generate the third crop images EIM. In other words, step S50a is a process of acquiring a plurality of third crop images EIM in chronological order.
[0048] As shown in FIG. 14, in step S71, processor 30 selects a plurality of third crop images EIM corresponding to one of the plurality of time periods t1 to t5. Next, in step S72a, processor 30 selects one of the plurality of third crop images EIM corresponding to one time period selected in step S71, and inputs the selected third crop image EIM to trained machine learning model 52. As a result, a result of class discrimination is output from output layer Ly3 of trained machine learning model 52. The result of class discrimination is stored in storage device 50 in association with the target third crop image EIM.
[0049] Next, in step S74a, the estimation unit 42 determines whether or not one third main crop image EIMp, i.e., all third crop images EIM generated from the third main crop images EIMp captured at the same time t, have been input to the trained machine learning model 52. If the determination in step S74a is "No," the estimation unit 42 executes the process of step S72a again.
[0050] On the other hand, if the determination in step S74a is "Yes", then in step S75, processor 30 determines whether or not the third crop images EIM for all of the periods t1 to t5 have been input to trained machine learning model 52. If the determination in step S75 is "No", processor 30 executes the process of step S71 again, and selects a plurality of third crop images EIM corresponding to periods that were not selected by the previous routine.
[0051] On the other hand, if the determination in step S75 is "Yes", in step S76a, the estimation unit 42 estimates the state of the evaluated crop, more specifically, the leaves of the evaluated crop, in accordance with the result of the class discrimination. Specifically, when the result of the class discrimination indicates the first label N times consecutively for the same region, i.e., for multiple third crop images EIM arranged in chronological order associated with the same position information, the estimation unit 42 estimates that the state of the evaluated crop captured in the third crop image EIM is in an abnormal growth state, where an abnormality is occurring in the growth. Here, the lower limit of "N" is an integer equal to or greater than 2, and the upper limit is the number of times the image was captured during the time periods t1 to t5. In this embodiment, "N" is set to "3".
[0052] FIG. 15 is a diagram for explaining a specific example of step 76a in FIG. 14. FIG. 15 shows an example in which step S76a is executed for two third crop images EIM20 and EIM28 at different positions. For the third crop image EIM20, the discrimination result was label L1 at times t1 and t2, but the discrimination result was label L2 at the following times t3 to t5. Therefore, the estimation unit 42 estimates that the state of the grape leaves in the area of the third crop image EIM20 is in a good growth state because the discrimination result is not label L1 three times consecutively in the chronological order. On the other hand, for the third crop image EIM28, the discrimination result was label L1 at all times from t1 to t5. Therefore, the estimation unit 42 estimates that the state of the grape leaves in the area of the third crop image EIM28 is in an abnormal growth state because the discrimination result is label L1 three times consecutively in the chronological order.
[0053] As described above, in the second embodiment, the estimation device 20 inputs a plurality of third crop images EIM obtained by capturing images of the same region at different times into the trained machine learning model 52 and performs class discrimination. Then, when the result of class discrimination of at least two or more third crop images EIM arranged in chronological order is the first label, the estimation device 20 estimates that the state of the evaluated crop is in an abnormal growth state where an abnormality has occurred in the growth. Note that step S76a may be performed before step S74a and step S75. That is, step S76a may be performed each time one third crop image EIM is input to the trained machine learning model 52. In this way, the user can know the estimation result of the state of the evaluated crop in more real time.
[0054] 14 in the second embodiment is different only in that the processing is performed for each of the third crop images EIMp captured at multiple times t1 to t5, and therefore detailed description thereof will be omitted. For example, the estimated image HIM generated in step S80 is generated for each of the third main crop images EIMp captured at the imaging times t1 to t5.
[0055] According to the second embodiment, the same effects as those of the first embodiment can be obtained in that the second embodiment has the same configuration and steps as those of the first embodiment. For example, labeling can be easily performed according to the imaging time, and the time required to prepare the training data LIM for the machine learning model 52 can be prevented from becoming long, thereby shortening the time required to generate the trained machine learning model 52.
[0056] According to the second embodiment, the estimation unit 42 estimates that the crop is in an abnormal growth state when the class discrimination results of at least two or more third crop images EIM28 arranged in chronological order are the first label L1, as shown in FIG. 15. Here, the third crop image EIM28 is not an image that is originally expected due to disturbances such as the time of image capture or weather, and therefore the trained machine learning model 52 may erroneously perform class discrimination. However, in this embodiment, the estimation unit 42 does not estimate that the crop is in an abnormal growth state unless the third crop image EIM28 is classified as the first label L1 two or more times in succession. Therefore, the estimation accuracy can be improved more than when the state is estimated using the third crop images EIM28 captured in one period.
[0057] C. Third embodiment: Fig. 16 is a diagram showing the teacher data group LIMGa of the third embodiment. The main differences from the first and second embodiments are the state associated with the crop image PIM, i.e., the contents of the labels L1a and L2b, and the contents of the estimation process executed by the estimation unit 42. In the third embodiment, the description of the same configuration and steps as those of the first and second embodiments will be omitted as appropriate. In the third embodiment, the estimation unit 42 estimates the time when a predetermined state occurred by using the results of class discrimination according to a plurality of third crop images EIM captured at different times.
[0058] As shown in FIG. 16, the multiple first crop images PIMA are images including grape leaves captured at a first time point indicating a first state. The multiple second crop images PIMA are images including grape leaves that are the same as the imaged subject of the first crop image PIMA. The multiple second crop images PIMB are images including grape leaves captured at a second time point indicating a second state. The multiple first crop images PIMA and the multiple second crop images PIMB are generated in the same manner as in the first embodiment shown in FIG. 8, in which a main crop image captured of a large area PR of a grape orchard is divided into a predetermined patch size PS, and multiple crop images PIM are cut out as multiple patch images.
[0059] In this embodiment, the first state is a state in which the grape leaves have grown to a certain extent and have almost no abnormalities. In this embodiment, when downy mildew has developed, it is assumed that an abnormality has developed in the grape leaves. That is, the multiple first crop images PIMA are images of grape leaves captured in a first period when downy mildew has not developed. In this embodiment, the second state is a state related to a predetermined state, in which the grape leaves have grown to a certain extent and have an abnormality developed in the grape leaves. That is, the multiple second crop images PIMB are images of grape leaves captured in a second period when downy mildew has developed. In this embodiment, the first period is a period prior to the second period, for example, the first period is early August and the second period is mid-August. Whether an abnormality has developed in the grape leaves is determined, for example, by visual inspection.
[0060] A first label L1a indicating a first state is associated with each of the first crop images PIMA. A second label L2a indicating a second state is associated with each of the second crop images PIMB. The labels may be associated by a user or automatically by the estimation device 20 depending on the time of image capture.
[0061] A set of the first crop image PIMA and the first label L1a, and a set of the second crop image PIMB and the second label L2a each constitute training data LIMa. A plurality of training data LIMa are stored in the storage device 50 as a training data group LIMGa. Each training data LIMa in the training data group LIMGa is used for training the machine learning model 52, similarly to the first and second embodiments.
[0062] FIG. 17 is a diagram showing a flowchart of the estimation step in the third embodiment. FIG. 18 is a diagram for explaining step S76b and step S77 in FIG. 17. The estimation method in step S70b shown in FIG. 17 differs from step S70a shown in FIG. 14 in steps S76b and S77. Therefore, for step S70b in the third embodiment, differences from step S70a in the second embodiment will be mainly described. Note that in the third embodiment, a plurality of third crop images EIM with different imaging times t1 to t5 are generated by a method similar to that in step S50a shown in FIG. 13 in the second embodiment.
[0063] If the determination in step S75 shown in FIG. 17 is "Yes," in step S76b, the estimation unit 42 estimates the evaluated crop, more specifically, the state of the leaves of the evaluated crop, according to the result of the class discrimination. Specifically, for a plurality of third crop images EIM having the same region, i.e., the same position information, but different imaging times, the estimation unit 42 selects a third crop image EIM for which the trained machine learning model 52 has performed class discrimination to determine that the image has the second label L2a. Then, the estimation unit 42 identifies the earliest imaging time among the selected third crop images EIM as the specific time. For example, as shown in FIG. 18, in the case where the trained machine learning model 52 has performed class discrimination of the second label La2 for images captured at times t3 to t5 in the third crop image EIM20, the estimation unit 42 identifies time t3 as the specific time. Also, for example, in the case of the third crop image EIM28, if the trained machine learning model 52 has performed class discrimination of the second label La2 for images captured at times t4 and t5, the estimation unit 42 identifies time t4 as a specific time.
[0064] As shown in FIG. 17, in step S77 following step S76b, the estimation unit 42 uses the specific time to identify the time when a predetermined state occurred for grape leaves, which are the third agricultural product. The predetermined state is a state related to the second state represented by the second label L2a, and in this embodiment, indicates a state in which an abnormality occurred in grape leaves. In addition, in this embodiment, as shown in FIG. 18, the estimation unit 42 estimates that the specific time is the time when the predetermined state occurred. That is, the estimation unit 42 estimates that, for the state of the evaluated agricultural product captured in the third agricultural product image EIM20, mildew, which is an abnormal state, occurred at time t3. In addition, the estimation unit 42 estimates that, for the state of the evaluated agricultural product captured in the third agricultural product image EIM28, mildew, which is an abnormal state, occurred at time t4. Note that, in this embodiment, the estimation unit 42 sets the specific time as the time when an abnormal state occurred, but is not limited thereto. For example, the estimation unit 42 may estimate the time when the abnormal condition occurred between the latest time t3 among the times classified as the first label L1a and the specific time as the time when the abnormal condition occurred. For example, for the third crop image EIM28 shown in Fig. 18, the estimation unit 42 may estimate the time when the abnormal condition occurred between the latest time t3 among the times classified as the first label L1a and the specific time t4.
[0065] Furthermore, in this embodiment, the display control unit 46 of the processor 30 may display the estimation result estimated by the estimation unit 42 on the display unit 70. For example, the display control unit 46 may cause the display unit 70 to display information indicating the time when downy mildew has occurred as a predetermined state and the area in the evaluated crop where downy mildew has occurred.
[0066] As described above, according to the third embodiment, the estimation unit 42 inputs multiple third crop images EIM captured at different times of the same area into the trained machine learning model 52 to perform class discrimination, and estimates the time when a predetermined state occurred using the results of the class discrimination corresponding to the multiple third crop images EIM.
[0067] According to the third embodiment, the same effects as those of the first or second embodiment can be obtained in that the third embodiment has the same configuration and steps as those of the first or second embodiment. For example, labeling can be easily performed according to the imaging time, and the time required to prepare training data for the machine learning model 52 can be prevented from becoming long, thereby shortening the time required to generate the trained machine learning model 52.
[0068] According to the third embodiment, the time when an abnormal state, which is a predetermined state, occurs can be easily estimated using the results of class discrimination of the multiple third crop images EIM20, EIM28 acquired in time series, as shown in steps S76b and S77 in Fig. 17 and Fig. 18. According to the third embodiment, the specific time is defined as the time when a predetermined state occurs, so that it is easier to estimate the time when the predetermined state occurs.
[0069] D. Other embodiments: D-1. Other embodiment 1: In the above embodiments, the crop whose state is to be estimated is grapes, but the present invention is not limited to this. For example, the crop whose state is to be estimated may be other crops such as apples or strawberries.
[0070] E. Other forms: The present disclosure is not limited to the above-mentioned embodiment, and can be realized in various forms without departing from the spirit of the present disclosure. For example, the present disclosure can be realized in the following aspects. The technical features in the above-mentioned embodiments corresponding to the technical features in each aspect described below can be appropriately replaced or combined in order to solve some or all of the problems of the present disclosure, or to achieve some or all of the effects of the present disclosure. Furthermore, if the technical feature is not described as essential in this specification, it can be appropriately deleted.
[0071] (1) According to a first embodiment of the present disclosure, there is provided a method for estimating a state of a crop. The method includes a training image acquisition step of acquiring a first crop image of the crop taken at a first time when the crop shows a first state and a second crop image of the same crop taken at a second time after the first time when the same crop shows a second state, a model generation step of performing training of a machine learning model to generate a trained machine learning model using the first crop image associated with a first label indicating the first state and the second crop image associated with a second label indicating the second state as training data, respectively, and acquiring an evaluation image acquisition step of acquiring a third crop image of an evaluation crop of the same kind as the crop, and an estimation step of inputting the third crop image into the trained machine learning model to perform class discrimination and estimating the state of the evaluation crop according to the result of the class discrimination. According to this embodiment, the first label is associated with the first crop image taken at the first time, and the second label is associated with the second crop image taken at the second time, and these are used as training data for training the machine learning model. This makes it easy to label images according to the time they were captured, thereby reducing the time required to prepare training data for the machine learning model and shortening the time it takes to generate a trained machine learning model.
[0072] (2) In the above embodiment, the first state may indicate a pre-growth state before the crop is ready for harvesting, and the second state may indicate a post-growth state in which the crop is ready for harvesting, and the estimation step may estimate the state of the evaluated crop to be an abnormal growth state in which an abnormality has occurred in the growth when the result of the class discrimination is the first label. According to this embodiment, images of the crop before and after growth are used as training data, the pre-growth state of the crop is used as the first label, and the abnormal growth state can be estimated when the result of the class discrimination is the first label. In other words, when the crop is in an abnormal growth state, it can be estimated that the state of the crop is closer to the pre-growth state than the post-growth state. Therefore, instead of taking the trouble of preparing crop images with abnormal growth and crop images with good growth for training data, a trained machine learning model for estimating an abnormal growth state can be easily generated by using images of the crop before and after growth as training data.
[0073] (3) In the above embodiment, the evaluation image acquisition step may include a step of acquiring a plurality of the third crop images in a time series, the first state indicating a pre-growth state before the crop is ready for harvest, and the second state indicating a post-growth state in which the crop is ready for harvest, and the estimation step may include inputting the plurality of third crop images into the trained machine learning model to perform class discrimination, and estimating the state of the evaluated crop to be an abnormal growth state in which an abnormality has occurred in growth when the result of the class discrimination for at least two or more of the third crop images arranged in time series is the first label. According to this embodiment, by estimating the state to be an abnormal growth state when the result of the class discrimination for at least two or more of the third crop images arranged in time series is the first label, it is possible to improve the estimation accuracy more than when estimating the state using third crop images captured at one time.
[0074] (4) In the above embodiment, the evaluation image acquisition step may include a step of acquiring a plurality of the third crop images in time series, and the estimation step may include inputting the plurality of third crop images into the trained machine learning model to perform class discrimination, and estimating the time when a predetermined state has occurred using the result of the class discrimination corresponding to the plurality of third crop images. According to this embodiment, the time when a predetermined state has occurred can be easily estimated using the result of class discrimination of the plurality of third crop images acquired in time series.
[0075] (5) In the above embodiment, the predetermined state may be a state related to the second state, and the estimation step may include identifying a specific time when the third crop images were captured earliest among the third crop images for which the class discrimination was performed to determine that the third crop images are of the second label in the result of the class discrimination according to the plurality of third crop images, and estimating the time when the predetermined state occurred using the specific time. According to this embodiment, the time when the predetermined state occurred can be easily estimated using the specific time.
[0076] (6) In the above embodiment, the estimation step may estimate that the specific time is a time when the predetermined state occurs. According to this embodiment, it is possible to more easily estimate the time when the predetermined state occurs.
[0077] (7) In the above embodiment, According to this aspect, since a plurality of crop images can be generated using the image of the crop located in the main region, training data can be easily generated.
[0078] (8) In the above embodiment, the learning image acquisition step includes a step of acquiring a first main crop image and a second main crop image by capturing an image of the crop in a main area in which the crop is located, the main area being wider than the imaging areas corresponding to the first crop image and the second crop image, respectively, and a step of dividing the first main crop image and the second main crop image by a predetermined patch size to generate a plurality of the first crop images and a plurality of the second crop images. According to this embodiment, the estimated image allows the user to easily determine the area that contributed to the class discrimination.
[0079] (9) According to a second aspect of the present disclosure, there is provided an apparatus for estimating a state of a crop, the apparatus including: a training image acquisition unit that acquires a first crop image obtained by capturing an image of the crop at a first time when the crop shows a first state, and a second crop image obtained by capturing an image of the same crop at a second time after the first time when the same crop shows a second state, a model generation unit that performs training of a machine learning model to generate a trained machine learning model using the first crop image associated with a first label indicating the first state and the second crop image associated with a second label indicating the second state as training data, respectively, an evaluation image acquisition unit that acquires a third crop image obtained by capturing an evaluation crop of the same type as the crop, and an estimation unit that inputs the third crop image to the trained machine learning model to perform class discrimination, and estimates the state of the evaluation crop according to a result of the class discrimination. According to this embodiment, a first label is associated with a first crop image captured at a first time period, and a second label is associated with a second crop image captured at a second time period, and these are used as training data for training a machine learning model. This makes it easy to label according to the time of image capture, and therefore prevents the time required to prepare training data for the machine learning model from becoming too long, thereby shortening the time required to generate a trained machine learning model.
[0080] (10) According to a third aspect of the present disclosure, there is provided a computer program for causing a computer to estimate a state of a crop, the computer program comprising: a training image acquisition function for acquiring a first crop image obtained by capturing an image of the crop at a first time when the crop shows a first state, and a second crop image obtained by capturing the same crop at a second time after the first time when the same crop shows a second state; a model generation function for performing training of a machine learning model using the first crop image associated with a first label indicating the first state, and the second crop image associated with a second label indicating the second state, as training data, to generate a trained machine learning model; an evaluation image acquisition function for acquiring a third crop image obtained by capturing an evaluation crop of the same type as the crop; and an estimation function for inputting the third crop image into the trained machine learning model to perform class discrimination, and estimating the state of the evaluation crop depending on the result of the class discrimination. According to this embodiment, a first label is associated with a first crop image captured at a first time period, and a second label is associated with a second crop image captured at a second time period, and these are used as training data for training a machine learning model. This makes it easy to label according to the time of image capture, and therefore prevents the time required to prepare training data for the machine learning model from becoming too long, thereby shortening the time required to generate a trained machine learning model.
[0081] The present disclosure may be realized in various forms other than those described above. For example, the present disclosure may be realized in the form of a non-transitory storage medium having a computer program recorded thereon. [Explanation of symbols]
[0082] 10...processor, 20...estimation device, 30...processor, 32...image acquisition unit, 34...learning image acquisition unit, 36...evaluation image acquisition unit, 40...image processing unit, 41...model generation unit, 42...estimation unit, 44...heat map generation unit, 46...display control unit, 50...storage device, 52...machine learning model, 58...various programs, 60...input unit, 70...display unit, 90...imaging device, 100...estimation system, 160...display unit, AI...additional information, EIM, EIM20, EIM28...third crop image, EIMG...group of images to be evaluated, EIMp...third main crop image, HI M...Estimated image, HP...Heat map, IM...Image, IMW...Whole image, IMp...Main crop image, IMp1...First main crop image, IMp2...Second main crop image, L1, L1a...First label, L2, L2a...Second label, LB...Label, LIM...Teacher data, LIMG...Teacher data group, LIMGa...Teacher data group, Ly1...Input layer, Ly2...Hidden layer, Ly3...Output layer, MR...Main region, PIM...Crop image, PIMA, PIMa...First crop image, PIMB, PIMb...Second crop image, PR...Region, PS...Patch size, R1, R2...Region
Claims
1. A method for estimating a condition of a crop, comprising: a learning image acquisition step of acquiring a first crop image obtained by capturing an image of the crop at a first time when the crop exhibits a first state, and a second crop image obtained by capturing an image of the same crop at a second time after the first time when the same crop exhibits a second state; a model generation step of performing learning of a machine learning model using the first crop image associated with a first label indicating the first state and the second crop image associated with a second label indicating the second state as training data to generate a trained machine learning model; an evaluation image acquisition step of acquiring a third crop image of an evaluation crop of the same kind as the aforementioned crop; The method comprises an estimation step of inputting the third crop image into the trained machine learning model to perform class discrimination, and estimating the state of the evaluated crop based on the result of the class discrimination.
2. 2. The method of claim 1 , the first state indicates a pre-growth state before the crop is ready for harvest; the second state indicates a post-growth state in which the crop is ready for harvest; The method, wherein the estimation step estimates, when a result of the class discrimination is the first label, that the state of the evaluated crop is in an abnormal growth state in which abnormality is occurring in growth.
3. 2. The method of claim 1 , the evaluation image acquisition step includes a step of acquiring a plurality of the third crop images in time series, the first state indicates a pre-growth state before the crop is ready for harvest; the second state indicates a post-growth state in which the crop is ready for harvest; The estimation step includes inputting each of the multiple third crop images into the trained machine learning model to perform class discrimination, and if the result of the class discrimination for each of at least two or more of the third crop images arranged in chronological order is the first label, estimating the state of the evaluated crop to be an abnormal growth state in which an abnormality is occurring in the growth.
4. 2. The method of claim 1 , the evaluation image acquisition step includes a step of acquiring a plurality of the third crop images in time series, The method includes inputting each of the third crop images into the trained machine learning model to perform class discrimination, and using the result of the class discrimination corresponding to the third crop images to estimate the time when a predetermined state has occurred.
5. 5. The method of claim 4, the predetermined state is a state related to the second state, The estimation step includes identifying a specific time period at which the third crop images were captured earliest among the third crop images that have been classified as the second label based on the result of the class classification corresponding to the plurality of third crop images, and estimating the time period at which the predetermined state occurred using the specific time period.
6. 6. The method of claim 5, The method, wherein the estimating step estimates that the specific time is a time when the predetermined state occurs.
7. 2. The method of claim 1 , The learning image acquisition step includes: capturing an image of the crop in a main area in which the crop is located, the main area being larger than imaging areas corresponding to the first crop image and the second crop image, to obtain a first main crop image and a second main crop image; and dividing each of the first main crop image and the second main crop image by a predetermined patch size to generate a plurality of the first crop images and a plurality of the second crop images.
8. 2. The method of claim 1 , The estimation step includes: generating a heat map showing the degree of contribution of the classification; and generating an estimated image by overlaying the heat map on the third crop image.
9. An apparatus for estimating a condition of a crop, comprising: a learning image acquisition unit that acquires a first crop image obtained by capturing an image of the crop at a first time point when the crop exhibits a first state, and a second crop image obtained by capturing an image of the same crop at a second time point after the first time point when the same crop exhibits a second state; a model generation unit that performs learning of a machine learning model using the first crop image associated with a first label indicating the first state and the second crop image associated with a second label indicating the second state as training data to generate a trained machine learning model; an evaluation image acquisition unit that acquires a third crop image obtained by capturing an image of an evaluation crop of the same type as the aforementioned crop; An apparatus comprising: an estimation unit that inputs the third crop image into the trained machine learning model to perform class discrimination, and estimates the state of the evaluated crop based on the result of the class discrimination.
10. A computer program for causing a computer to estimate a state of a crop, a learning image acquisition function that acquires a first crop image obtained by capturing an image of the crop at a first time when the crop exhibits a first state, and a second crop image obtained by capturing an image of the same crop at a second time after the first time when the same crop exhibits a second state; a model generation function that performs learning of a machine learning model using the first crop image associated with a first label indicating the first state and the second crop image associated with a second label indicating the second state as training data to generate a trained machine learning model; an evaluation image acquisition function for acquiring a third crop image obtained by capturing an image of an evaluation crop of the same kind as the aforementioned crop; and an estimation function of inputting the third crop image into the trained machine learning model to perform class discrimination, and estimating the state of the evaluated crop based on the result of the class discrimination.
Citation Information
Patent Citations
Evolution calculation system and evolution calculation method
JP2007087055A
