WO2023065989A1 - Plant disease and insect pest diagnosis method and system, and readable storage medium - Google Patents

Plant disease and insect pest diagnosis method and system, and readable storage medium Download PDF

Info

Publication number
WO2023065989A1
WO2023065989A1 PCT/CN2022/121668 CN2022121668W WO2023065989A1 WO 2023065989 A1 WO2023065989 A1 WO 2023065989A1 CN 2022121668 W CN2022121668 W CN 2022121668W WO 2023065989 A1 WO2023065989 A1 WO 2023065989A1
Authority
WO
WIPO (PCT)
Prior art keywords
disease
plant
result
image
species
Prior art date
Application number
PCT/CN2022/121668
Other languages
French (fr)
Chinese (zh)
Inventor
徐青松
李青
Original Assignee
杭州睿胜软件有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 杭州睿胜软件有限公司 filed Critical 杭州睿胜软件有限公司
Publication of WO2023065989A1 publication Critical patent/WO2023065989A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0012Biomedical image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20081Training; Learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20084Artificial neural networks [ANN]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30181Earth observation
    • G06T2207/30188Vegetation; Agriculture

Definitions

  • the invention relates to the technical field of object recognition, in particular to a method for diagnosing plant diseases and insect pests, a diagnosing system and a readable storage medium.
  • plant diseases can be identified by a plant disease diagnosis engine.
  • the existing plant disease diagnosis engine has a limited accuracy in identifying plant diseases, causing problems for users.
  • the object of the present invention is to provide a method for diagnosing plant diseases and insect pests, a system for diagnosing plant diseases and insect pests, and a readable storage medium, so as to solve the problem of low identification accuracy of existing plant diseases.
  • a method for diagnosing plant diseases and insect pests which includes:
  • the answer to the interactive question is obtained, and the disease result of the plant image is obtained according to the answer, and the diagnosis information corresponding to the disease result is output.
  • the interactive question includes at least two options, and the answer to the interactive question is selected from at least two options.
  • the interactive question includes at least two levels, and the different selection branches at the upper level correspond to different branch questions at the lower level.
  • the pre-identification results of the disease are at least two.
  • each of the pre-identification results of the disease is associated with at least one interactive question, or at least two of the pre-identification results of the disease are associated with at least one interactive question.
  • the diagnosis information includes a reference image and/or a disease block diagram
  • the reference image is a preset image corresponding to the disease result
  • the disease block diagram shows an image of the plant image at least including a part of the disease area, and marks the disease area.
  • the diagnosis information includes summary diagnosis data and detailed diagnosis data.
  • the diagnostic information includes diagnostic summary data, and prompts Reacquire the plant image.
  • the method for diagnosing plant diseases and insect pests further includes: acquiring a species identification result corresponding to the plant image;
  • the disease pre-identification result is screened out according to the second preset condition.
  • the method for diagnosing plant diseases and insect pests further includes: displaying the species identification result and common diseases of the corresponding plant species.
  • the species recognition result is obtained by using a species recognition engine to recognize the plant image, or the species recognition result is extracted from a recognized species recognition result page.
  • a readable storage medium on which a program is stored, and when the program is executed, the method for diagnosing plant diseases and insect pests as described above is realized.
  • a plant disease and pest diagnosis system which includes a processor and a memory, and a program is stored in the memory, and when the program is executed by the processor , realizing the method for diagnosing plant diseases and insect pests as described above.
  • the method for diagnosing plant diseases and insect pests includes: acquiring an image of a plant to be diagnosed, and using a disease diagnosis engine to analyze the image of the plant Perform pre-identification to obtain a disease pre-identification result; if the confidence of the disease pre-identification result is less than a first preset value, output an interactive question associated with the disease pre-identification result; and obtain an answer to the interactive question , and obtain the disease result of the plant image according to the answer, and output the diagnosis information corresponding to the disease result.
  • Fig. 1 is the flowchart of the plant disease and insect pest diagnosis method of the embodiment of the present invention
  • Fig. 2 is a schematic diagram of a low-confidence diagnosis details page according to an embodiment of the present invention
  • Fig. 3 is a schematic diagram of a high-confidence diagnosis details page according to an embodiment of the present invention.
  • Fig. 4 is a schematic diagram of an interactive problem in an embodiment of the present invention.
  • Fig. 5 is a schematic diagram showing common diseases of a certain plant according to an embodiment of the present invention.
  • the object of the present invention is to provide a method for diagnosing plant diseases and insect pests, a system for diagnosing plant diseases and insect pests, and a readable storage medium, so as to solve the problem of low identification accuracy of existing plant diseases.
  • an embodiment of the present invention provides a method for diagnosing plant diseases and insect pests, which includes:
  • Step S1 Acquire the plant image to be diagnosed, and use the disease diagnosis engine to pre-identify the plant image to obtain the disease pre-identification result;
  • Step S2 if the confidence of the disease pre-identification result is less than a first preset value, output an interactive question associated with the disease pre-identification result;
  • Step S3 Obtain the answer to the interactive question, and obtain the disease result of the plant image according to the answer, and output diagnosis information.
  • Step S1 Regarding the plant image to be diagnosed, in some examples, the plant image uploaded by the user can be directly obtained. In other examples, after receiving the user instruction, corresponding prompt information may be generated and output to prompt the user to upload the plant image. Furthermore, the prompt information may also include specific requirements for plant images, such as prompting the user to upload images of the whole plant, partial images of plant stems, leaves, etc., or partial images of parts with obvious lesions, etc. In this case, preprocessing such as marking can also be performed on multiple plant images, such as marking the whole plant image, partial plant images (including marking the parts of the plant reflected in the plant image), etc., in order to better accurately identify species or diagnose pests and diseases.
  • preprocessing such as marking can also be performed on multiple plant images, such as marking the whole plant image, partial plant images (including marking the parts of the plant reflected in the plant image), etc., in order to better accurately identify species or diagnose pests and diseases.
  • the disease diagnosis engine may be a pre-trained disease diagnosis engine, and the disease diagnosis engine may include a neural network model, specifically a convolutional neural network model or a residual network model.
  • the convolutional neural network model is a deep feedforward neural network, which uses a convolution kernel to scan the plant image, extracts the features to be identified in the plant image, and then identifies the features to be identified in the plant.
  • the original plant images can be directly input into the convolutional neural network model without preprocessing the plant images.
  • the convolutional neural network model has higher recognition accuracy and recognition efficiency.
  • the residual network model Compared with the convolutional neural network model, the residual network model has more identity mapping layers, which can avoid the phenomenon of saturation or even decline in the accuracy rate as the network depth (the number of stacked layers in the network) increases.
  • the identity mapping function of the identity mapping layer in the residual network model needs to satisfy: the sum of the identity mapping function and the input of the residual network model is equal to the output of the residual network model.
  • the residual network model After the introduction of identity mapping, the residual network model has more obvious changes in the output, so the recognition accuracy and recognition efficiency of plant diseases can be greatly improved.
  • Step S2 Regarding the confidence level, since the disease diagnosis engine is not 100% reliable in identifying the disease, it has a certain possibility of error, so the probability that the disease pre-identification result identified by the disease diagnosis engine is consistent with the corresponding real disease ( That is, the degree of confidence that the pre-identification result of the disease is close to the real disease) is called confidence. It is easy to understand that if the confidence level is closer to 1, it means that the disease pre-identification result identified by the disease diagnosis engine is closer to the corresponding real disease, and the recognition result is more credible, and if the confidence level is closer to 0, it represents the disease The less credible the pre-identification result of the disease identified by the diagnosis engine is.
  • the first preset value can be set and adjusted according to the actual situation of different application scenarios.
  • the first The preset value can be set to 0.9, for example. If the confidence of the disease pre-identification result is not less than the first preset value (such as ⁇ 0.9), it can be considered that the authenticity of the recognition result is high, and it is not necessary to use interactive questions to assist confirmation, but directly obtain the disease based on the disease pre-identification result. result. If the confidence level of the disease pre-identification result is less than the first preset value, that is, the confidence level is lower than the first preset value (eg, ⁇ 0.9), the confirmation is assisted by interactive questions, so as to improve the diagnostic accuracy of plant diseases.
  • the first preset value such as ⁇ 0.9
  • Step S3 With regard to obtaining answers to interactive questions, in some examples, information obtained by various means such as user touch, click, input, or voice recording may be obtained as feedback answers to interactive questions. After obtaining the user's answer to the interactive question, such as after selecting the option, the disease result of the plant image can be obtained, and the diagnosis information can be output, such as jumping to the diagnosis result page.
  • the disease diagnosis engine pre-identifies a certain plant image to be diagnosed, only one disease pre-identification result can be obtained, that is, for a certain plant image to be diagnosed, after the disease diagnosis engine performs pre-identification, Only one disease pre-identification result can be obtained, or after getting more than two disease pre-identification results, only the only one remains after being screened out by other preset conditions (such as the third preset condition, see below for details) If there is a pre-identification result of the disease, the interactive question can be raised for the unique pre-identification result of the disease.
  • the disease pre-identification result can be further determined as the disease result, or if the answer to the interactive question does not meet the disease, the disease pre-identification result can not be output, and the disease pre-identification result can be further Abandoned, and the plant was determined to be free from disease and pests.
  • At least two disease pre-identification results can be obtained, or after obtaining multiple disease pre-identification results, other preset After the conditions are screened out (such as the third preset condition, see below for details), at least two disease pre-identification results remain.
  • the disease result obtained in step S3 also has its own confidence level, and the output diagnostic information may be different according to the confidence level of the disease result.
  • the second preset value as the threshold
  • the disease result is considered to be of high confidence
  • the second predetermined value when setting the value, it is considered that the result of the disease is of low confidence
  • the second preset value can be set to 0.7, for example.
  • the output diagnostic information can also be divided into a high-confidence diagnostic detail page and a low-confidence diagnostic detail page.
  • the diagnostic information displaying different disease results can be switched by sliding left and right.
  • diagnostic information can be extracted from a content management system.
  • a content management system can be a software system that sits between the front-end and back-end systems or processes of the WEB.
  • the content management system can be used to submit, modify, publish, etc. content such as text files, pictures, data in databases, tables, and the like.
  • the content management system can also provide content grabbing tools to automatically grab content from third parties such as text files, HTML web pages, Web services, databases, etc., and put them into the corresponding content library of the content management system after analysis and processing. middle.
  • the content management system can also assist the WEB front-end to provide content to users in a personalized manner, that is, provide a personalized portal framework to better push content to users based on WEB technology.
  • descriptive content on plants and their diseases may be stored, and these descriptive content may be text or pictures, for example, may include various fields, articles, etc., so that It enables users to obtain introductions about plants and their diseases in the diagnostic information extracted and output from the content management system, such as interesting stories, uses of plants, maintenance methods and descriptions of diseases, etc.
  • One-to-one correspondence with each species information may include a species name (UID1) to distinguish different species.
  • the one-to-one correspondence with each disease result may include a disease name (UID2) to distinguish different diseases.
  • UID1 and UID2 When extracting relevant diagnostic information in the content management system, it can be retrieved according to UID1 and UID2.
  • UID1 and UID2 When a large amount of data is pre-stored in the content management system, it can cover most diagnostic situations and provide users with corresponding diagnostic information.
  • the relevant information of multiple disease results can be output to the user in the form of one disease result corresponding to one card. Users can switch and display the results of various diseases and related information by sliding cards on the interactive interface.
  • At least part of the diagnostic information may change with different plant images if the determined disease result is the same. In this way, even if the obtained disease results are the same, the output diagnostic information can be adaptively changed according to the plant image input by the user, which realizes a more flexible output and helps to make the output diagnostic information consistent with the user's input. To improve the user experience and reduce the confusion caused by the mismatch of input and output to users.
  • diagnostic data may include diagnostic summary data and/or diagnostic detailed data.
  • diagnostic summary data and the diagnostic detailed data different fields can be set to store the data extracted from the content management system in corresponding fields.
  • the step of outputting diagnostic information may include: In the content management system, according to the determined disease result, corresponding data is extracted according to preset output fields to generate diagnostic information, and the diagnostic information is output.
  • the preset output fields can be set by the user through an interactive interface according to their own needs, or the preset output fields can also be several relatively fixed fields.
  • corresponding diagnostic data extracted according to the determined identification information may be filled in a corresponding template with a preset output format to form diagnostic information.
  • the diagnostic information can be generated by searching corresponding documents.
  • the diagnosis summary data may include at least one of a condition name corresponding to a condition name field in the preset output field and a diagnosis summary corresponding to a diagnosis summary field in the preset output field.
  • the diagnosis detailed data may include symptom analysis corresponding to the symptom analysis field in the preset output field, solution corresponding to the solution field in the preset output field, and preventive action corresponding to the preventive action field in the preset output field at least one of .
  • the diagnosis information includes Diagnose summary data and prompt to reacquire plant images.
  • FIG. 2 shows a diagnosis details page (Diagnose) showing disease results with low confidence (ie, the confidence is less than the second preset value) in an exemplary embodiment.
  • the first column 101 shows the diagnosis summary data, specifically including the disease name (in the example shown in Figure 2 for brown spot disease Brown spot) and diagnosis summary (in the example shown in Figure 2 for The brown streaks on the leaves of your plant are signs of brown spot.
  • the second column 102 prompts to reacquire the plant image.
  • the user can click the shooting button 104 next to it to take and upload the plant image again, so as to return and re-execute step S1.
  • the first preset condition for example, the clarity of the plant image can meet the requirements, or if the plant image includes the entire range of the diseased area, etc., those skilled in the art can set it according to the actual situation. If the plant image does not meet the first preset condition, such as the range of the plant image taken by the user is too small to cover the entire range of the disease area, it will be difficult to obtain reliable disease results later. In these cases, it may prompt to re-acquire the plant image, so as to return and re-execute step S1.
  • the diagnostic information includes diagnostic summary data and diagnostic detailed data.
  • FIG. 3 shows a diagnosis details page (Diagnose) showing disease results with high confidence (ie, the confidence is not less than the second preset value) in an exemplary embodiment.
  • the details page includes a first column 101 and a second column 102.
  • the first column 101 shows diagnostic summary data, including disease name and diagnosis summary (in the example shown in FIG. The name is Brown spot, and the diagnostic summary is The brown streaks on the leaves of your plant are signs of brown spot. The brown streaks on the leaves of your plant are signs of brown spot).
  • the second column 102 displays the detailed diagnosis data, which may include various corresponding contents related to the disease, such as symptom analysis, solutions, prevention and so on.
  • the diagnostic information includes a reference map and/or a disease block diagram, and the reference map is corresponding to the disease result
  • the preset image, the disease block diagram shows the image of the plant image at least including part of the disease area, and the disease area is marked with a frame.
  • a reference image may be included in part of the diagnostic information that may be adaptively changed following the plant image.
  • the details page includes a third column 103 and a fourth column 100 .
  • the third column 103 shows the reference graph.
  • the reference image corresponds at least to the disease outcome, and the reference image is similar to the plant image.
  • the output diagnostic information can no longer be fixed, but can replace the relevant pictures used for explanation in the output diagnostic information according to the plant image input by the user, so that these pictures used for explanation are consistent with the
  • the plant images taken by the user are more similar, so that the user will not feel that the image in the output diagnostic information is too different from the plant image taken by the user, so as to avoid causing trouble to the user and improve user experience.
  • the reference image can be preset in the candidate reference gallery of the content management system.
  • the corresponding candidate reference gallery is determined according to the disease result; in the candidate reference gallery, based on the similarity with the plant image and/or Or the matching degree with the species information, determine the priority of one or more reference pictures extracted and each reference picture corresponding to one or more reference pictures; and then output one or more reference pictures, so that One or more reference images are arranged in descending order of priority.
  • each reference image in the content management system can be marked with UID1 of corresponding species information (UID1 may include species, variety, variety, genus, family, etc.) and UID2 of disease result.
  • UID1 may include species, variety, variety, genus, family, etc.
  • the reference images can be classified, screened, and so on.
  • one or more reference images corresponding to each disease result can be combined into a candidate reference gallery corresponding to the corresponding disease result.
  • the type of plant corresponding to the reference picture can be determined according to the UID1 marked on each reference picture.
  • the reference image will have a higher priority.
  • the reference images with higher priority may be displayed preferentially or arranged at the front position of the multiple displayed reference images, so as to facilitate viewing by the user.
  • the candidate reference gallery based on the similarity with the plant image and/or the matching degree with the species information, determine the extracted one or more reference images and the one or more extracted reference images.
  • the priority corresponding to each reference picture in multiple reference pictures may include:
  • the second reference atlas set determine a second reference atlas matching the species information at the first species classification level, wherein the determined second reference atlas has a second priority, and the second priority is lower than the first a priority;
  • determining a third reference image matching the species information at a second species classification level higher than the first species classification level wherein the determined third reference image has a third priority, and the third priority is lower than the second priority
  • the second set of reference images determine a fourth reference image that matches the species information at the second species classification level, wherein the determined fourth reference image has a fourth priority, and the fourth priority is lower than the fourth priority Three priorities.
  • six candidate reference images that are closest to the image features of the plant image uploaded by the user can be determined from the candidate reference gallery as the first atlas, and other candidate reference images in the candidate reference gallery are used as the second.
  • Atlas First, in the first atlas, find the first reference image that matches the species of the plant in the plant image, and the first reference image has the highest first priority; The second reference image that matches the species of the plant, the second reference image has a second priority lower than the first priority; then, in the first atlas, find the third reference image that matches the genus of the plant in the plant image A reference map, the third reference map has a third priority lower than the second priority; then, in the second atlas, find a fourth reference map matching the genus of the plant in the plant image, the fourth reference map Has a fourth priority lower than the third priority; then, in the first atlas, find a fifth reference image that matches the family of the plant in the plant image, and the fifth reference image has a lower priority than the fourth Fifth priority; finally
  • the candidate reference gallery based on the similarity with the plant image and/or the matching degree with the species information, it is determined that one or more extracted reference images and one or more
  • the step of prioritizing each reference image in the reference images may also include:
  • the predicted results corresponding to the disease result will be Let the default image be determined as the reference image.
  • the display ratio of the pictures in the displayed diagnostic information is between 3:2 and 1:1, so as to have a better display effect.
  • the scale of the reference images screened from the candidate reference gallery may not be suitable for the above display scale.
  • such plots can be stretched or cropped to fit the display scale.
  • the reference image can be processed by cropping . in particular,
  • Methods for diagnosis of plant diseases may also include:
  • the pictures corresponding to the disease results whose image features are located in the marginal area are removed or ignored, and these pictures will not be included in the content management system .
  • processing such as cropping may be performed on the picture when it is stored in the content management system.
  • the reference image selected by the content management system may be processed, for example, cropped, before being output.
  • the fourth column 100 shows the disease block diagram.
  • the disease block diagram shows the image of the plant image taken by the user at least including part of the diseased area, preferably the whole plant image.
  • the disease area is marked with a frame 100a to prompt the user where the disease occurs for comparison.
  • prompts can pop up in the diagnostic page, such as display or voice prompts.
  • Those skilled in the art can set and adjust according to actual conditions.
  • the user uploads an image of a plant to be diagnosed, which can be captured by the user.
  • the disease diagnosis engine pre-identifies the plant image, and two disease pre-identification results are obtained, which are A disease (such as yellow leaves-overwatering) and B disease (such as yellow leaves-lack of water), and The confidence levels of the two disease pre-identification results are both less than the first preset value (0.9), thus triggering the output of an interactive question associated with the disease pre-identification result:
  • the interactive question includes at least two alternative branches, and the answer to the interactive question is selected from at least two of the alternative branches.
  • two options 1-Yes; 2-No can be provided, and the user will choose an answer from the two options.
  • a disease leaves turn yellow-overwatering
  • B disease leaves turn yellow
  • the interactive question may include at least two levels, and the different selection branches at the upper level correspond to different branch questions at the lower level.
  • the interactive question may include not only one level, but at least two levels. For example, if A is selected in the selection branch of the upper level, the branch question based on A will pop up further. , for example to pop up the branches of A1 and A2 to select branches. 2. If the user chooses answer B in the selection branch of the upper level, then the branch questions of the next level based on B will pop up, for example, the branch question selection branches of B1 and B2 will pop up. In this way, further auxiliary judgment information can be provided, so as to further narrow down the scope of the diagnosis result.
  • each of the disease pre-identification results is associated with at least one of the interactive questions, or at least two of the disease pre-identification results are associated with at least one of the interactive questions.
  • each symptom pre-identification result can be associated with 1, 2 or more interactive questions, and the interactive questions can have 1, 2 or more levels, one or some of these levels Relational 1, 2 or more branching issues.
  • the pre-identification result of a certain disease is associated with 2 interactive questions: 1. Whether there is too much watering, 2. Whether there is too little light.
  • At least two disease pre-identification results are associated with at least one interactive question, it can be that at least two disease pre-identification results are associated with the same interactive question, or at least two disease pre-identification results are associated with 2 or more
  • the interaction problem is not limited in this embodiment. For example, some two disease pre-identification results are associated with the same interactive question: whether there is too much watering; or some two disease pre-identification results are also associated with two interactive questions: 1. Is there too much watering, 2. Whether there is too little light.
  • step S1 before using the disease diagnosis engine to pre-identify the plant image, the method for diagnosing plant diseases and insect pests further includes: obtaining a species identification result corresponding to the plant image; After the engine pre-identifies the plant image, the pre-identification result of the disease is screened out according to the second preset condition.
  • the purpose of uploading plant images by users may be mainly to identify plant species, and they do not actively want to diagnose plant diseases and insect pests, or identify plant species without knowing that plants have plant diseases and insect pests.
  • pest diagnosis is in a passive diagnosis mode.
  • the species recognition result can be obtained by using a species recognition engine to recognize the plant image.
  • a pre-trained species recognition engine can be utilized to identify candidate species based on plant images.
  • the species recognition engine may include a neural network model, for example.
  • the main purpose of the user is not to diagnose the disease itself, but, for example, to determine the species information of the plant and the like.
  • the pre-identification result of the disease can be screened out according to the second preset condition, so as to improve the accuracy rate.
  • the species identification engine When the plant image is identified by the species identification engine, one or more species identification results (for convenience of description, hereinafter referred to as candidate species) may be obtained.
  • the disease diagnosis engine can obtain one or more disease pre-identification results for each candidate species (for ease of description, hereinafter referred to as candidate diseases), of course, it can only determine candidate diseases for some candidate species. It can be understood that the species identification result also has its own confidence level, and the output diagnostic information may be different according to the confidence level of the disease result.
  • the determined candidate species include species 1, species 2 and species 3.
  • Species 1, 2 and 3 are arranged in descending order of species confidence. For example, Species 1 has a species confidence of 0.8, Species 2 has a species confidence of 0.75, and Species 3 has a species confidence of 0.7.
  • the diseases that can be output are determined according to the second preset condition.
  • whether to screen out a certain candidate disease can be determined one by one according to the second preset condition according to the order of the diagnostic confidence of the candidate diseases of this species from high to low. For example, there are 3 candidate diseases corresponding to species 2 and 2 candidate diseases corresponding to species 3.
  • the diagnostic confidence for condition 2-1 is 95%, the diagnostic confidence for condition 2-2 is 90%, and the diagnostic confidence for condition 2-3 is 82%, then, in the process of screening for species 2 , according to the order of diagnosis confidence from high to low, according to the order of disease 2-1, disease 2-2 and disease 2-3 for screening. If after screening out the disease 2-1, no remaining disease can be found that can be used for output, then continue to screen out the disease 2-2. If the remaining symptoms that can be used for output have been found after screening the symptoms 2-1, then the screening of the symptoms 2-2 may not be continued, so as to simplify the whole processing process.
  • step S2 nor step S3 will be executed, that is, no interactive question will be output according to the plant image at this time, so as to avoid confusion for the user.
  • the second preset condition involved may be related to various factors, such as the diagnostic confidence of the current disease diagnosis engine, the type of candidate species, the diagnostic accuracy of a certain type of disease, and the candidate One or more of the degree of match between the species and the candidate condition, etc.
  • the second preset condition includes:
  • the candidate disease corresponding to the candidate species is screened out.
  • the species included in the preset species white list are generally common species or important species, and the diagnosis of diseases of these species generally has relatively high accuracy and reliability. That is to say, in this embodiment, only diseases corresponding to these species may be output in subsequent steps without being screened out, so as to avoid outputting inaccurate, unreliable or unimportant diseases to users as much as possible, In order to avoid causing additional troubles to users.
  • the second preset condition includes:
  • the diagnostic confidence can represent the reliability of the disease pre-identification result obtained by the disease diagnosis engine in a single diagnosis process.
  • the fourth preset value may be set to 70%. That is to say, when the diagnostic confidence of the candidate disease is less than 70%, the candidate disease will be screened out instead of being output, so as to avoid causing confusion to the user because the output interactive question does not match the actual situation.
  • the second preset condition includes:
  • diagnostic accuracy reflects the overall accuracy of identifying a particular type of disease.
  • the diagnostic accuracy can be obtained according to the ratio of the number of correct diagnoses to the total number of times in a certain total number of diagnoses.
  • the diagnostic accuracy is often low, so by screening out candidate diseases related to these diseases, it is possible to avoid outputting inaccurate diseases as much as possible.
  • the second preset condition includes:
  • the corresponding candidate species blacklist can be set in advance, so that candidate species can be screened out, so as to improve the accuracy and reliability of the output.
  • the above specific methods on how to screen out candidate diseases satisfying the second preset condition can be combined with each other. For example, in a specific example, as long as the candidate disease satisfies that the diagnostic confidence is less than the fourth preset value, the candidate species is not in the preset species whitelist, the diagnostic accuracy is less than the fifth preset value, and the candidate species is within the corresponding to the candidate disease Any condition in the candidate species blacklist, the candidate disease will be excluded.
  • the method for diagnosing plant diseases and insect pests further includes: displaying the species identification result and common diseases of the corresponding plant species.
  • the recognition confidence of the species recognition result is not less than the third preset value, common diseases of the plant can be displayed.
  • the first column 101 shows "Common diseases for Golden pothos based on our 10 millions of plant disease cases. (Golden pothos) the first 4 data of common diseases, each common disease also supports to view more.
  • the user has preliminarily believed that the plant may have pests and diseases and sought confirmation, and the purpose of uploading plant images is mainly for the diagnosis of pests and diseases.
  • pest diagnosis is in an active diagnosis mode.
  • the species identification result is extracted from the identified species identification result page.
  • users may enter the diagnosis of plant diseases and insect pests from the interface of a certain plant identification result.
  • the plant image can be considered to have species identification information, and further verification of the species identification information can be performed.
  • the active diagnosis mode since users subjectively want to diagnose pests and diseases, more candidate disease information can be included in the disease pre-identification results, and at the same time, the accuracy and accuracy of the generated disease results can be appropriately reduced. reliability requirements.
  • the second preset condition can also be appropriately relaxed accordingly, so as to reduce the candidate diseases that are screened out.
  • This embodiment also provides a readable storage medium on which a program is stored, and when the program is executed, the method for diagnosing plant diseases and insect pests as described above is realized. Further, this embodiment also provides a system for diagnosing plant diseases and insect pests, which includes a processor and a memory, and a program is stored in the memory, and when the program is executed by the processor, the above-mentioned diagnosis of plant diseases and insect pests is realized. method.
  • the method for diagnosing plant diseases and insect pests includes: acquiring an image of a plant to be diagnosed, and using a disease diagnosis engine to analyze the image of the plant Perform pre-identification to obtain a disease pre-identification result; if the confidence of the disease pre-identification result is less than a first preset value, output an interactive question associated with the disease pre-identification result; and obtain an answer to the interactive question , and obtain the disease result of the plant image according to the answer, and output the diagnosis information.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • General Engineering & Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computational Linguistics (AREA)
  • Biophysics (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Biomedical Technology (AREA)
  • Molecular Biology (AREA)
  • Medical Informatics (AREA)
  • Radiology & Medical Imaging (AREA)
  • Quality & Reliability (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

A plant disease and insect pest diagnosis method and system, and a readable storage medium. The plant disease and insect pest diagnosis method comprises: acquiring a plant image to be diagnosed, and pre-identifying the plant image by using a disease diagnosis engine to obtain a disease pre-identification result (S1); if the confidence of the disease pre-recognition result is less than a first preset value, outputting an interaction question associated with the disease pre-recognition result (S2); and acquiring an answer for the interaction question, obtaining a disease result for the plant image according to the answer, and outputting diagnosis information corresponding to the disease result (S3). In this way, by outputting the interaction problem associated with the disease pre-identification result, a user selects the answer to perform processing, so as to determine the disease result for the plant image according to the answer, which is equivalent to further performing auxiliary confirmation on the disease pre-identification result by means of additional extra input information, thereby effectively improving the diagnosis accuracy of a plant disease.

Description

植物病虫害诊断方法、诊断系统及可读存储介质Plant disease and insect pest diagnosis method, diagnosis system and readable storage medium 技术领域technical field
本发明涉及对象识别技术领域,特别涉及一种植物病虫害诊断方法、诊断系统及可读存储介质。The invention relates to the technical field of object recognition, in particular to a method for diagnosing plant diseases and insect pests, a diagnosing system and a readable storage medium.
背景技术Background technique
在植物的生长过程中,常常遭遇疾病、虫害等问题的困扰。目前,可通过植物病症诊断引擎对植物的病症进行识别。然而,现有的植物病症诊断引擎对植物的病症的识别准确率有限,对用户的使用产生困扰。During the growth of plants, they often encounter problems such as diseases and insect pests. Currently, plant diseases can be identified by a plant disease diagnosis engine. However, the existing plant disease diagnosis engine has a limited accuracy in identifying plant diseases, causing problems for users.
发明内容Contents of the invention
本发明的目的在于提供一种植物病虫害诊断方法、植物病虫害诊断系统及可读存储介质,以解决现有对植物的病症的识别准确率低的问题。The object of the present invention is to provide a method for diagnosing plant diseases and insect pests, a system for diagnosing plant diseases and insect pests, and a readable storage medium, so as to solve the problem of low identification accuracy of existing plant diseases.
为解决上述技术问题,根据本发明的第一个方面,提供了一种植物病虫害诊断方法,其包括:In order to solve the above technical problems, according to the first aspect of the present invention, a method for diagnosing plant diseases and insect pests is provided, which includes:
获取待诊断的植物图像,利用病症诊断引擎对所述植物图像进行预识别,以得到病症预识别结果;Obtaining a plant image to be diagnosed, and using a disease diagnosis engine to pre-identify the plant image to obtain a disease pre-identification result;
若所述病症预识别结果的置信度小于第一预设值,输出与所述病症预识别结果相关联的互动问题;以及If the confidence of the disease pre-identification result is less than a first preset value, output an interactive question associated with the disease pre-identification result; and
获取所述互动问题的答案,并根据所述答案得到所述植物图像的病症结果,并输出与所述病症结果对应的诊断信息。The answer to the interactive question is obtained, and the disease result of the plant image is obtained according to the answer, and the diagnosis information corresponding to the disease result is output.
可选的,所述互动问题包括至少两个选择枝,所述互动问题的答案于至少两个所述选择枝中选取。Optionally, the interactive question includes at least two options, and the answer to the interactive question is selected from at least two options.
可选的,所述互动问题包括至少两个层级,上一层级的不同的所述选择枝对应下一层级的不同的分支问题。Optionally, the interactive question includes at least two levels, and the different selection branches at the upper level correspond to different branch questions at the lower level.
可选的,所述病症预识别结果为至少两个。Optionally, the pre-identification results of the disease are at least two.
可选的,每个所述病症预识别结果关联至少一个所述互动问题,或者至少两个所述病症预识别结果关联至少一个所述互动问题。Optionally, each of the pre-identification results of the disease is associated with at least one interactive question, or at least two of the pre-identification results of the disease are associated with at least one interactive question.
可选的,若所述病症结果的置信度不小于第二预设值,所述诊断信息包括参考图和/或病症框图,所述参考图为与所述病症结果对应的预置的图像,所述病症框图展示所述植物图像的至少包括病症区域部分的图像,并将所述病症区域标示出。Optionally, if the confidence of the disease result is not less than a second preset value, the diagnosis information includes a reference image and/or a disease block diagram, the reference image is a preset image corresponding to the disease result, The disease block diagram shows an image of the plant image at least including a part of the disease area, and marks the disease area.
可选的,若所述病症结果的置信度不小于第二预设值,所述诊断信息包括诊断概要数据和诊断详细数据。Optionally, if the confidence of the disease result is not less than a second preset value, the diagnosis information includes summary diagnosis data and detailed diagnosis data.
可选的,若所述病症结果的置信度小于第二预设值,和/或,所述待诊断的植物图像不符合第一预设条件,则所述诊断信息包括诊断概要数据,并提示重新获取植物图像。Optionally, if the confidence of the disease result is less than the second preset value, and/or the image of the plant to be diagnosed does not meet the first preset condition, the diagnostic information includes diagnostic summary data, and prompts Reacquire the plant image.
可选的,在利用病症诊断引擎对所述植物图像进行预识别之前,所述植物病虫害诊断方法还包括:获取与所述植物图像所对应的物种识别结果;Optionally, before using the disease diagnosis engine to pre-identify the plant image, the method for diagnosing plant diseases and insect pests further includes: acquiring a species identification result corresponding to the plant image;
进而在利用病症诊断引擎对所述植物图像进行预识别的步骤之后,根据第二预设条件对病症预识别结果执行筛除。Furthermore, after the step of pre-identifying the plant image by using the disease diagnosis engine, the disease pre-identification result is screened out according to the second preset condition.
可选的,若所述物种识别结果的识别置信度不小于第三预设值,所述植物病虫害诊断方法还包括:展示所述物种识别结果以及其所对应的植物物种的常见病症。Optionally, if the identification confidence of the species identification result is not less than a third preset value, the method for diagnosing plant diseases and insect pests further includes: displaying the species identification result and common diseases of the corresponding plant species.
可选的,所述物种识别结果利用物种识别引擎对所述植物图像进行识别得到,或者,所述物种识别结果从已经过识别后的物种识别结果页面中提取得到。Optionally, the species recognition result is obtained by using a species recognition engine to recognize the plant image, or the species recognition result is extracted from a recognized species recognition result page.
为解决上述技术问题,根据本发明的第二个方面,还提供了一种可读存储介质,其上存储有程序,所述程序被执行时实现如上所述的植物病虫害诊断方法。In order to solve the above technical problem, according to the second aspect of the present invention, there is also provided a readable storage medium on which a program is stored, and when the program is executed, the method for diagnosing plant diseases and insect pests as described above is realized.
为解决上述技术问题,根据本发明的第三个方面,还提供了一种植物病虫害诊断系统,其包括处理器和存储器,所述存储器上存储有程序,所述程序被所述处理器执行时,实现如上所述的植物病虫害诊断方法。In order to solve the above technical problems, according to the third aspect of the present invention, a plant disease and pest diagnosis system is also provided, which includes a processor and a memory, and a program is stored in the memory, and when the program is executed by the processor , realizing the method for diagnosing plant diseases and insect pests as described above.
综上所述,在本发明提供的植物病虫害诊断方法、植物病虫害诊断系统及可读存储介质中,所述植物病虫害诊断方法包括:获取待诊断的植物图像,利用病症诊断引擎对所述植物图像进行预识别,以得到病症预识别结果;若 所述病症预识别结果的置信度小于第一预设值,输出与所述病症预识别结果相关联的互动问题;以及获取所述互动问题的答案,并根据所述答案得到所述植物图像的病症结果,并输出与所述病症结果对应的诊断信息。In summary, in the method for diagnosing plant diseases and insect pests, the system for diagnosing plant diseases and insect pests, and the readable storage medium provided by the present invention, the method for diagnosing plant diseases and insect pests includes: acquiring an image of a plant to be diagnosed, and using a disease diagnosis engine to analyze the image of the plant Perform pre-identification to obtain a disease pre-identification result; if the confidence of the disease pre-identification result is less than a first preset value, output an interactive question associated with the disease pre-identification result; and obtain an answer to the interactive question , and obtain the disease result of the plant image according to the answer, and output the diagnosis information corresponding to the disease result.
如此配置,通过输出与病症预识别结果相关联的互动问题,由用户选择答案来进行处理,从而根据答案来确定植物图像的病症结果,相当于通过附加的额外输入信息来对病症预识别结果进行进一步地辅助确认,有效提高了对植物病症的诊断准确率。With such a configuration, by outputting the interactive question associated with the pre-identification result of the disease, the user selects the answer for processing, so that the disease result of the plant image is determined according to the answer, which is equivalent to the pre-identification result of the disease through additional input information. Further auxiliary confirmation effectively improves the diagnostic accuracy of plant diseases.
附图说明Description of drawings
本领域的普通技术人员将会理解,提供的附图用于更好地理解本发明,而不对本发明的范围构成任何限定。其中:Those of ordinary skill in the art will understand that the provided drawings are for better understanding of the present invention, but do not constitute any limitation to the scope of the present invention. in:
图1是本发明实施例的植物病虫害诊断方法的流程图;Fig. 1 is the flowchart of the plant disease and insect pest diagnosis method of the embodiment of the present invention;
图2是本发明实施例的低置信度的诊断详情页的示意图;Fig. 2 is a schematic diagram of a low-confidence diagnosis details page according to an embodiment of the present invention;
图3是本发明实施例的高置信度的诊断详情页的示意图;Fig. 3 is a schematic diagram of a high-confidence diagnosis details page according to an embodiment of the present invention;
图4是本发明实施例的互动问题的示意图;Fig. 4 is a schematic diagram of an interactive problem in an embodiment of the present invention;
图5是本发明实施例的展示某植物的常见病症的示意图。Fig. 5 is a schematic diagram showing common diseases of a certain plant according to an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的目的、优点和特征更加清楚,以下结合附图和具体实施例对本发明作进一步详细说明。需说明的是,附图均采用非常简化的形式且未按比例绘制,仅用以方便、明晰地辅助说明本发明实施例的目的。此外,附图所展示的结构往往是实际结构的一部分。特别的,各附图需要展示的侧重点不同,有时会采用不同的比例。In order to make the purpose, advantages and features of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the drawings are all in very simplified form and not drawn to scale, and are only used to facilitate and clearly assist the purpose of illustrating the embodiments of the present invention. In addition, the structures shown in the drawings are often a part of the actual structures. In particular, each drawing needs to display different emphases, and sometimes uses different scales.
如在本说明书中所使用的,单数形式“一”、“一个”以及“该”包括复数对象,术语“或”通常是以包括“和/或”的含义而进行使用的,术语“若干”通常是以包括“至少一个”的含义而进行使用的,术语“至少两个”通常是以包括“两个或两个以上”的含义而进行使用的,此外,术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性或 者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”、“第三”的特征可以明示或者隐含地包括一个或者至少两个该特征。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本说明书中的具体含义。As used in this specification, the singular forms "a", "an" and "the" include plural objects, the term "or" is usually used in the sense of including "and/or", and the term "several" Usually, the term "at least one" is used in the meaning of "at least one", and the term "at least two" is usually used in the meaning of "two or more". In addition, the terms "first", "second "Two" and "third" are used for descriptive purposes only, and should not be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features. Thus, a feature defined as "first", "second" and "third" may explicitly or implicitly include one or at least two of these features. Those of ordinary skill in the art can understand the specific meanings of the above terms in this specification according to specific situations.
本发明的目的在于提供一种植物病虫害诊断方法、植物病虫害诊断系统及可读存储介质,以解决现有对植物的病症的识别准确率低的问题。The object of the present invention is to provide a method for diagnosing plant diseases and insect pests, a system for diagnosing plant diseases and insect pests, and a readable storage medium, so as to solve the problem of low identification accuracy of existing plant diseases.
以下参考附图进行描述。Description is made below with reference to the accompanying drawings.
请参考图1,本发明实施例提供一种植物病虫害诊断方法,其包括:Please refer to Fig. 1, an embodiment of the present invention provides a method for diagnosing plant diseases and insect pests, which includes:
步骤S1:获取待诊断的植物图像,利用病症诊断引擎对所述植物图像进行预识别,以得到病症预识别结果;Step S1: Acquire the plant image to be diagnosed, and use the disease diagnosis engine to pre-identify the plant image to obtain the disease pre-identification result;
步骤S2:若所述病症预识别结果的置信度小于第一预设值,输出与所述病症预识别结果相关联的互动问题;以及Step S2: if the confidence of the disease pre-identification result is less than a first preset value, output an interactive question associated with the disease pre-identification result; and
步骤S3:获取所述互动问题的答案,并根据所述答案得到所述植物图像的病症结果,并输出诊断信息。Step S3: Obtain the answer to the interactive question, and obtain the disease result of the plant image according to the answer, and output diagnosis information.
如此配置,通过输出与病症预识别结果相关联的互动问题,由用户选择答案来进行处理,从而根据答案来确定植物图像的病症结果,相当于通过附加的额外输入信息来对病症预识别结果进行进一步地辅助确认,有效提高了对植物病症的诊断准确率。With such a configuration, by outputting the interactive question associated with the pre-identification result of the disease, the user selects the answer for processing, so that the disease result of the plant image is determined according to the answer, which is equivalent to the pre-identification result of the disease through additional input information. Further auxiliary confirmation effectively improves the diagnostic accuracy of plant diseases.
下面结合附图和若干示范例,对本实施例提供的植物病虫害诊断方法的各个步骤进行具体说明。Each step of the method for diagnosing plant diseases and insect pests provided in this embodiment will be described in detail below with reference to the accompanying drawings and several examples.
步骤S1:关于待诊断的植物图像,在一些示例中,可以直接获取由用户上传的植物图像。在另一些示例中,可以在接收到用户指令后,生成并输出相应的提示信息,以提示用户上传植物图像。进一步的,在提示信息中,还可以包括对植物图像的具体要求,例如提示用户上传整株植物的图像,植物的茎、叶等部位的局部图像,或者有明显病变的部位的局部图像等。在这种情况下,还可以对多幅植物图像进行标记等预处理,例如分别标记出整株植物图像、局部植物图像(包括标记出该植物图像所反映的植物的部位)等, 以便更好地识别物种或诊断病虫害。Step S1: Regarding the plant image to be diagnosed, in some examples, the plant image uploaded by the user can be directly obtained. In other examples, after receiving the user instruction, corresponding prompt information may be generated and output to prompt the user to upload the plant image. Furthermore, the prompt information may also include specific requirements for plant images, such as prompting the user to upload images of the whole plant, partial images of plant stems, leaves, etc., or partial images of parts with obvious lesions, etc. In this case, preprocessing such as marking can also be performed on multiple plant images, such as marking the whole plant image, partial plant images (including marking the parts of the plant reflected in the plant image), etc., in order to better accurately identify species or diagnose pests and diseases.
关于病症诊断引擎,可以是预先训练好的病症诊断引擎,病症诊断引擎可以包括神经网络模型,具体可以是卷积神经网络模型或残差网络模型。Regarding the disease diagnosis engine, it may be a pre-trained disease diagnosis engine, and the disease diagnosis engine may include a neural network model, specifically a convolutional neural network model or a residual network model.
卷积神经网络模型为深度前馈神经网络,其利用卷积核扫描植物图像,提取出植物图像中待识别的特征,进而对植物待识别的特征进行识别。另外,在对植物图像进行识别的过程中,可以直接将原始的植物图像输入卷积神经网络模型,而无需对植物图像进行预处理。卷积神经网络模型相比于其他的识别模型,具备更高的识别准确率以及识别效率。The convolutional neural network model is a deep feedforward neural network, which uses a convolution kernel to scan the plant image, extracts the features to be identified in the plant image, and then identifies the features to be identified in the plant. In addition, in the process of recognizing plant images, the original plant images can be directly input into the convolutional neural network model without preprocessing the plant images. Compared with other recognition models, the convolutional neural network model has higher recognition accuracy and recognition efficiency.
残差网络模型相比于卷积神经网络模型多了恒等映射层,可以避免随着网络深度(网络中叠层的数量)的增加而导致的准确率饱和、甚至下降的现象。残差网络模型中恒等映射层的恒等映射函数需要满足:恒等映射函数与残差网络模型的输入之和等于残差网络模型的输出。引入恒等映射以后,残差网络模型对输出的变化更加明显,因此可以大大提高植物病症的识别准确率和识别效率。Compared with the convolutional neural network model, the residual network model has more identity mapping layers, which can avoid the phenomenon of saturation or even decline in the accuracy rate as the network depth (the number of stacked layers in the network) increases. The identity mapping function of the identity mapping layer in the residual network model needs to satisfy: the sum of the identity mapping function and the input of the residual network model is equal to the output of the residual network model. After the introduction of identity mapping, the residual network model has more obvious changes in the output, so the recognition accuracy and recognition efficiency of plant diseases can be greatly improved.
步骤S2:关于置信度,由于病症诊断引擎对于病症的识别并非百分之百的可靠,其具有一定的错误可能,因此将病症诊断引擎所识别得到的病症预识别结果与对应的真实的病症相符的概率(亦即该病症预识别结果接近真实病症的可信程度)称为置信度。容易理解的,若置信度越接近1,即代表病症诊断引擎所识别得到的病症预识别结果越接近对应的真实的病症,其识别结果越可信,而若置信度越接近0,则代表病症诊断引擎所识别得到的病症预识别结果越不可信。Step S2: Regarding the confidence level, since the disease diagnosis engine is not 100% reliable in identifying the disease, it has a certain possibility of error, so the probability that the disease pre-identification result identified by the disease diagnosis engine is consistent with the corresponding real disease ( That is, the degree of confidence that the pre-identification result of the disease is close to the real disease) is called confidence. It is easy to understand that if the confidence level is closer to 1, it means that the disease pre-identification result identified by the disease diagnosis engine is closer to the corresponding real disease, and the recognition result is more credible, and if the confidence level is closer to 0, it represents the disease The less credible the pre-identification result of the disease identified by the diagnosis engine is.
可选的,考虑到所述植物病虫害诊断方法的识别准确率以及操作的方便性等,第一预设值可根据不同应用场景的实际情况进行设定和调整,在一个示范例中,第一预设值如可设置为0.9。若病症预识别结果的置信度不小于第一预设值(如≥0.9),可以认为该识别结果的真实性较高,可无需通过互动问题辅助确认,而是直接根据病症预识别结果得到病症结果。若病症预识别结果的置信度小于第一预设值,即置信度低于第一预设值(如<0.9),则通过互动问题辅助确认,以提高对植物病症的诊断准确率。Optionally, considering the recognition accuracy and operation convenience of the plant pest diagnosis method, the first preset value can be set and adjusted according to the actual situation of different application scenarios. In an example, the first The preset value can be set to 0.9, for example. If the confidence of the disease pre-identification result is not less than the first preset value (such as ≥0.9), it can be considered that the authenticity of the recognition result is high, and it is not necessary to use interactive questions to assist confirmation, but directly obtain the disease based on the disease pre-identification result. result. If the confidence level of the disease pre-identification result is less than the first preset value, that is, the confidence level is lower than the first preset value (eg, <0.9), the confirmation is assisted by interactive questions, so as to improve the diagnostic accuracy of plant diseases.
步骤S3:关于获取互动问题的答案,在一些示例中,可以获取由用户触摸、点选、输入或语音录入等各种方式得到的信息,作为对于互动问题的反馈答案。在获得用户对于互动问题的答案后,如选择完选项后,即可得到植物图像的病症结果,并输出诊断信息,如可跳转到诊断结果页。Step S3: With regard to obtaining answers to interactive questions, in some examples, information obtained by various means such as user touch, click, input, or voice recording may be obtained as feedback answers to interactive questions. After obtaining the user's answer to the interactive question, such as after selecting the option, the disease result of the plant image can be obtained, and the diagnosis information can be output, such as jumping to the diagnosis result page.
在一些实施例中,针对某一待诊断的植物图像,病症诊断引擎进行预识别后,可以仅得到一个病症预识别结果,即针对某一待诊断的植物图像,病症诊断引擎进行预识别后,仅能得到一个病症预识别结果,或者是在得到两个以上病症预识别结果后,被其它的预设条件所筛除掉(如第三预设条件,详见后文说明)之后仅剩余唯一的病症预识别结果,则互动问题可针对该唯一的病症预识别结果提出。在得到用户对于互动问题的答案后,可进一步地将病症预识别结果确定为病症结果,或者若互动问题的答案不符合病症则可以不输出这个病症预识别结果,进一步地将该病症预识别结果废弃,而确定该植物无患病虫害。In some embodiments, after the disease diagnosis engine pre-identifies a certain plant image to be diagnosed, only one disease pre-identification result can be obtained, that is, for a certain plant image to be diagnosed, after the disease diagnosis engine performs pre-identification, Only one disease pre-identification result can be obtained, or after getting more than two disease pre-identification results, only the only one remains after being screened out by other preset conditions (such as the third preset condition, see below for details) If there is a pre-identification result of the disease, the interactive question can be raised for the unique pre-identification result of the disease. After getting the user's answer to the interactive question, the disease pre-identification result can be further determined as the disease result, or if the answer to the interactive question does not meet the disease, the disease pre-identification result can not be output, and the disease pre-identification result can be further Abandoned, and the plant was determined to be free from disease and pests.
在一些实施例中,针对某一待诊断的植物图像,病症诊断引擎进行预识别后,能得到至少两个病症预识别结果,或者是在得到多个病症预识别结果后,被其它的预设条件所筛除掉(如第三预设条件,详见后文说明)之后剩余至少两个病症预识别结果。In some embodiments, for a certain plant image to be diagnosed, after the disease diagnosis engine performs pre-identification, at least two disease pre-identification results can be obtained, or after obtaining multiple disease pre-identification results, other preset After the conditions are screened out (such as the third preset condition, see below for details), at least two disease pre-identification results remain.
可选的,步骤S3所得到的病症结果也具有其自身的置信度,输出的诊断信息可根据病症结果的置信度的不同而不同。在一个示范例中,以第二预设值为阈值,当病症结果的置信度不小于第二预设值时,认为该病症结果为高置信度,而当病症结果的置信度小于第二预设值时,认为该病症结果为低置信度,第二预设值如可设置为0.7。基于此,输出的诊断信息也可分为高置信度的诊断详情页和低置信度的诊断详情页。在一些实施例中,根据互动问题的答案,可以得到两个以上的病症结果,不同的病症结果具有不同的置信度。在一个示范性的实施例中,如可通过左右滑动的方式来切换显示不同病症结果的诊断信息。Optionally, the disease result obtained in step S3 also has its own confidence level, and the output diagnostic information may be different according to the confidence level of the disease result. In one example, with the second preset value as the threshold, when the confidence of the disease result is not less than the second preset value, the disease result is considered to be of high confidence, and when the confidence of the disease result is less than the second predetermined value When setting the value, it is considered that the result of the disease is of low confidence, and the second preset value can be set to 0.7, for example. Based on this, the output diagnostic information can also be divided into a high-confidence diagnostic detail page and a low-confidence diagnostic detail page. In some embodiments, according to the answers to the interactive questions, more than two disease results can be obtained, and different disease results have different confidence levels. In an exemplary embodiment, for example, the diagnostic information displaying different disease results can be switched by sliding left and right.
在一个示范例中,诊断信息可以从内容管理系统中提取得到。内容管理系统(CMS)可以是一种位于WEB前端和后端的系统或流程之间的软件系统。 可以使用内容管理系统来对例如文本文件、图片、数据库中的数据、表格等内容进行提交、修改、发布等。内容管理系统还可以提供内容抓取工具,自动抓取来自第三方的例如文本文件、HTML网页、Web服务、数据库等的内容,并经分析处理后放到该内容管理系统自身的相应的内容库中。内容管理系统也可以辅助WEB前端将内容以个性化的方式提供给用户,即提供个性化的门户框架,以基于WEB技术将内容更好地推送给用户。在本公开的实施例中的内容管理系统中,可以存储有对植物及其病症的描述性内容,这些描述性内容可以是文字的或者是图片的,例如可以包括各种字段、文章等,从而使得用户能够在从内容管理系统中所提取并输出的诊断信息中获得关于植物及其病症的介绍,例如有趣的故事、植物的用途、养护方法和对病症的描述等。In one example, diagnostic information can be extracted from a content management system. A content management system (CMS) can be a software system that sits between the front-end and back-end systems or processes of the WEB. The content management system can be used to submit, modify, publish, etc. content such as text files, pictures, data in databases, tables, and the like. The content management system can also provide content grabbing tools to automatically grab content from third parties such as text files, HTML web pages, Web services, databases, etc., and put them into the corresponding content library of the content management system after analysis and processing. middle. The content management system can also assist the WEB front-end to provide content to users in a personalized manner, that is, provide a personalized portal framework to better push content to users based on WEB technology. In the content management system in the embodiment of the present disclosure, descriptive content on plants and their diseases may be stored, and these descriptive content may be text or pictures, for example, may include various fields, articles, etc., so that It enables users to obtain introductions about plants and their diseases in the diagnostic information extracted and output from the content management system, such as interesting stories, uses of plants, maintenance methods and descriptions of diseases, etc.
与每种物种信息一一对应的可以包括物种名称(UID1),以区分不同的物种。类似地,与每种病症结果一一对应的可以包括病症名称(UID2),以区分不同的病症。在内容管理系统中提取相关的诊断信息时,可以根据UID1和UID2来进行检索。当内容管理系统中预先存储了大量的数据时,可以涵盖大多数诊断情形,为用户提供相应的诊断信息。One-to-one correspondence with each species information may include a species name (UID1) to distinguish different species. Similarly, the one-to-one correspondence with each disease result may include a disease name (UID2) to distinguish different diseases. When extracting relevant diagnostic information in the content management system, it can be retrieved according to UID1 and UID2. When a large amount of data is pre-stored in the content management system, it can cover most diagnostic situations and provide users with corresponding diagnostic information.
基于内容管理系统,可以以一个病症结果对应一张卡片的形式,将多个病症结果的相关信息输出给用户。用户可以在交互界面上通过滑动卡片等方式来切换显示各个病症结果及其相关信息。Based on the content management system, the relevant information of multiple disease results can be output to the user in the form of one disease result corresponding to one card. Users can switch and display the results of various diseases and related information by sliding cards on the interactive interface.
在一些实施例中,针对不同的植物图像,在所确定的病症结果相同的情况下,至少部分诊断信息是可以随着不同的植物图像而改变的。这样,即使所得到的病症结果是相同的,但是输出的诊断信息可以根据用户输入的植物图像而产生适应性的变化,实现了更加灵活的输出,有助于使得输出的诊断信息与用户的输入相匹配,从而改善用户体验,减少因输入输出的不匹配给用户带来的困惑。In some embodiments, for different plant images, at least part of the diagnostic information may change with different plant images if the determined disease result is the same. In this way, even if the obtained disease results are the same, the output diagnostic information can be adaptively changed according to the plant image input by the user, which realizes a more flexible output and helps to make the output diagnostic information consistent with the user's input. To improve the user experience and reduce the confusion caused by the mismatch of input and output to users.
在一些实施例中,诊断数据可以包括诊断概要数据和/或诊断详细数据。在诊断概要数据和诊断详细数据中,可以设置不同的字段,以将从内容管理系统中提取到的数据存储在相应的字段中。输出诊断信息的步骤可以包括: 在内容管理系统中,根据所确定的病症结果,按照预设输出字段提取相应的数据,以生成诊断信息,并输出诊断信息。预设输出字段可以由用户根据其自身需求通过交互界面来设置,或者,预设输出字段也可以是相对固定的若干个字段。在内容管理系统中,根据所确定的识别信息提取到的相应的诊断数据可以被填充在具有预设输出格式的相应的模板中,以形成诊断信息。In some embodiments, diagnostic data may include diagnostic summary data and/or diagnostic detailed data. In the diagnostic summary data and the diagnostic detailed data, different fields can be set to store the data extracted from the content management system in corresponding fields. The step of outputting diagnostic information may include: In the content management system, according to the determined disease result, corresponding data is extracted according to preset output fields to generate diagnostic information, and the diagnostic information is output. The preset output fields can be set by the user through an interactive interface according to their own needs, or the preset output fields can also be several relatively fixed fields. In the content management system, corresponding diagnostic data extracted according to the determined identification information may be filled in a corresponding template with a preset output format to form diagnostic information.
优选的,若在内容管理系统中按照预设输出字段无法提取到完整的数据时,可通过检索相应的文献,来生成诊断信息。Preferably, if the complete data cannot be extracted according to the preset output fields in the content management system, the diagnostic information can be generated by searching corresponding documents.
在一些实施例中,诊断概要数据可以包括与预设输出字段中的病症名称字段相应的病症名称以及与预设输出字段中的诊断摘要字段相应的诊断摘要中的至少一者。诊断详细数据可以包括与预设输出字段中的症状分析字段相应的症状分析、与预设输出字段中的解决方案字段相应的解决方案以及与预设输出字段中的预防措施字段相应的预防措施中的至少一者。通过将症状分析、解决方案以及预防措施存储在不同的字段中,可以基于内容管理系统方便地生成诊断信息,也方便用户的查看。In some embodiments, the diagnosis summary data may include at least one of a condition name corresponding to a condition name field in the preset output field and a diagnosis summary corresponding to a diagnosis summary field in the preset output field. The diagnosis detailed data may include symptom analysis corresponding to the symptom analysis field in the preset output field, solution corresponding to the solution field in the preset output field, and preventive action corresponding to the preventive action field in the preset output field at least one of . By storing symptom analysis, solutions, and preventive measures in different fields, diagnostic information can be easily generated based on content management systems, and it is also convenient for users to view.
优选的,若所述病症结果的置信度小于第二预设值(即为低置信度),和/或,所述待诊断的植物图像不符合第一预设条件,则所述诊断信息包括诊断概要数据,并提示重新获取植物图像。请参考图2,其示出了一个示范性的实施例中,展示低置信度(即置信度小于第二预设值)的病症结果的诊断详情页(Diagnose)。其中第一栏101展示诊断概要数据,具体包括病症名称(在图2示出的示范例中为褐斑病Brown spot)以及诊断摘要(在图2示出的示范例中为The brown streaks on the leaves of your plant are signs of brown spot.植物叶子上的棕色条纹是褐斑病的迹象)。第二栏102提示重新获取植物图像,用户如可通过点击旁边的拍摄按钮104再次拍摄并上传植物图像,以返回并重新执行步骤S1。而这里的第一预设条件,如可为植物图像的清晰度满足要求,或者如植物图像包括了病症区域的全部范围等,本领域技术人员可根据实际进行设置。若植物图像不符合第一预设条件,如用户拍摄的植物图像范围过小,无法涵盖病症区域的全部范围,则后续难以得到可靠的病症结果。这些情况下,可以提示重新获取植物图像,以便于返回并重新执行步骤S1。Preferably, if the confidence of the disease result is less than the second preset value (i.e. low confidence), and/or, the image of the plant to be diagnosed does not meet the first preset condition, the diagnosis information includes Diagnose summary data and prompt to reacquire plant images. Please refer to FIG. 2 , which shows a diagnosis details page (Diagnose) showing disease results with low confidence (ie, the confidence is less than the second preset value) in an exemplary embodiment. Wherein the first column 101 shows the diagnosis summary data, specifically including the disease name (in the example shown in Figure 2 for brown spot disease Brown spot) and diagnosis summary (in the example shown in Figure 2 for The brown streaks on the leaves of your plant are signs of brown spot. The second column 102 prompts to reacquire the plant image. For example, the user can click the shooting button 104 next to it to take and upload the plant image again, so as to return and re-execute step S1. As for the first preset condition here, for example, the clarity of the plant image can meet the requirements, or if the plant image includes the entire range of the diseased area, etc., those skilled in the art can set it according to the actual situation. If the plant image does not meet the first preset condition, such as the range of the plant image taken by the user is too small to cover the entire range of the disease area, it will be difficult to obtain reliable disease results later. In these cases, it may prompt to re-acquire the plant image, so as to return and re-execute step S1.
优选的,若所述病症结果的置信度不小于第二预设值(即为高置信度),所述诊断信息包括诊断概要数据和诊断详细数据。请参考图3,其示出了一个示范性的实施例中,展示高置信度(即置信度不小于第二预设值)的病症结果的诊断详情页(Diagnose)。在图3示出的示范例中,该详情页包括第一栏101和第二栏102,第一栏101展示诊断概要数据,包括病症名称以及诊断摘要(在图3示出的示范例中病症名称为褐斑病Brown spot,诊断摘要为The brown streaks on the leaves of your plant are signs of brown spot.植物叶子上的棕色条纹是褐斑病的迹象)。第二栏102展示诊断详细数据,诊断详细数据中如可包括与此病症相关的各个相应内容,例如症状分析(Symptom analysis)、解决方案(Solutions)、预防(Prevention)等。Preferably, if the confidence of the disease result is not less than a second preset value (ie, high confidence), the diagnostic information includes diagnostic summary data and diagnostic detailed data. Please refer to FIG. 3 , which shows a diagnosis details page (Diagnose) showing disease results with high confidence (ie, the confidence is not less than the second preset value) in an exemplary embodiment. In the example shown in FIG. 3, the details page includes a first column 101 and a second column 102. The first column 101 shows diagnostic summary data, including disease name and diagnosis summary (in the example shown in FIG. The name is Brown spot, and the diagnostic summary is The brown streaks on the leaves of your plant are signs of brown spot. The brown streaks on the leaves of your plant are signs of brown spot). The second column 102 displays the detailed diagnosis data, which may include various corresponding contents related to the disease, such as symptom analysis, solutions, prevention and so on.
进一步的,若所述病症结果的置信度不小于第二预设值(即为高置信度),所述诊断信息包括参考图和/或病症框图,所述参考图为与所述病症结果对应的预置的图像,所述病症框图展示所述植物图像的至少包括病症区域部分的图像,并将所述病症区域以框标示出。Further, if the confidence of the disease result is not less than the second preset value (ie, high confidence), the diagnostic information includes a reference map and/or a disease block diagram, and the reference map is corresponding to the disease result The preset image, the disease block diagram shows the image of the plant image at least including part of the disease area, and the disease area is marked with a frame.
请继续参考图3,在可以跟随植物图像而适应性改变的部分诊断信息中,可以包括参考图。在图3示出的示范例中,该详情页包括第三栏103和第四栏100。第三栏103展示所述参考图。该参考图至少与病症结果对应,且参考图与植物图像相似。这样,所输出的诊断信息可以不再是固定的,而是可以根据用户输入的植物图像来对输出的诊断信息中的用来解释说明的相关图片进行替换,使这些用于解释说明的图片与用户拍摄的植物图像更加相似,从而不会让用户觉得输出的诊断信息中的图与自己拍摄的植物图像有着过大的差别,避免引起用户的困扰,以提高用户体验。Please continue to refer to FIG. 3 , a reference image may be included in part of the diagnostic information that may be adaptively changed following the plant image. In the example shown in FIG. 3 , the details page includes a third column 103 and a fourth column 100 . The third column 103 shows the reference graph. The reference image corresponds at least to the disease outcome, and the reference image is similar to the plant image. In this way, the output diagnostic information can no longer be fixed, but can replace the relevant pictures used for explanation in the output diagnostic information according to the plant image input by the user, so that these pictures used for explanation are consistent with the The plant images taken by the user are more similar, so that the user will not feel that the image in the output diagnostic information is too different from the plant image taken by the user, so as to avoid causing trouble to the user and improve user experience.
可选的,参考图可预置于内容管理系统的候选参考图库中,在内容管理系统中,根据病症结果确定对应的候选参考图库;在候选参考图库中,基于与植物图像的相似度和/或与物种信息的匹配度,确定被提取的一幅或多幅参考图以及与一幅或多幅参考图中的每幅参考图对应的优先级;进而输出一幅或多幅参考图,使得一幅或多幅参考图按照优先级由高至低的顺序被依次排列。Optionally, the reference image can be preset in the candidate reference gallery of the content management system. In the content management system, the corresponding candidate reference gallery is determined according to the disease result; in the candidate reference gallery, based on the similarity with the plant image and/or Or the matching degree with the species information, determine the priority of one or more reference pictures extracted and each reference picture corresponding to one or more reference pictures; and then output one or more reference pictures, so that One or more reference images are arranged in descending order of priority.
其中,内容管理系统中的每幅参考图可以被标记有对应的物种信息的UID1(UID1可以包括种、变种、品种、属、科等)和病症结果的UID2。基于UID1和UID2,可以对参考图进行分类、筛选等。例如,可以根据UID2,将与每种病症结果对应的一幅或多幅参考图组成分别与相应的病症结果对应的候选参考图库。而在参考图库中选取所需的参考图时,可以根据每幅参考图所标记的UID1,确定该参考图相应的植物的种类。通过显示参考图,可以帮助用户更好地识别植物的病症,尤其是在用户所拍摄的植物图像不清楚或者拍摄部位不好的情况下。Wherein, each reference image in the content management system can be marked with UID1 of corresponding species information (UID1 may include species, variety, variety, genus, family, etc.) and UID2 of disease result. Based on UID1 and UID2, the reference images can be classified, screened, and so on. For example, according to UID2, one or more reference images corresponding to each disease result can be combined into a candidate reference gallery corresponding to the corresponding disease result. When selecting the required reference picture in the reference gallery, the type of plant corresponding to the reference picture can be determined according to the UID1 marked on each reference picture. By displaying the reference picture, it can help the user to better identify the disease of the plant, especially when the picture of the plant taken by the user is not clear or the shooting part is not good.
在通常情况下,与植物图像的相似度越高,与物种信息的匹配度越高的参考图,将具有更高的优先级。优先级较高的参考图可以被优先显示或者排列在被显示的多幅参考图的前面的位置处,以方便用户的查看。In general, the higher the similarity with the plant image and the higher the matching degree with the species information, the reference image will have a higher priority. The reference images with higher priority may be displayed preferentially or arranged at the front position of the multiple displayed reference images, so as to facilitate viewing by the user.
在一些实施例中,在候选参考图库中,基于与所述植物图像的相似度和/或与所述物种信息的匹配度,确定被提取的一幅或多幅参考图以及与所述一幅或多幅参考图中的每幅参考图对应的优先级可以包括:In some embodiments, in the candidate reference gallery, based on the similarity with the plant image and/or the matching degree with the species information, determine the extracted one or more reference images and the one or more extracted reference images. Or the priority corresponding to each reference picture in multiple reference pictures may include:
将候选参考图库中的与所述植物图像的相似度最高的预设数量的候选参考图作为第一参考图集,并将候选参考图库中的所有其他候选参考图作为第二参考图集;Using a preset number of candidate reference images in the candidate reference gallery with the highest similarity with the plant image as the first reference atlas, and using all other candidate reference images in the candidate reference gallery as the second reference atlas;
在第一参考图集中,确定在第一物种分类级别上与所述物种信息匹配的第一参考图,其中,所确定的第一参考图具有第一优先级;In the first set of reference images, determining a first reference image matching the species information at a first species classification level, wherein the determined first reference image has a first priority;
在第二参考图集中,确定在第一物种分类级别上与所述物种信息匹配的第二参考图,其中,所确定的第二参考图具有第二优先级,且第二优先级低于第一优先级;In the second reference atlas set, determine a second reference atlas matching the species information at the first species classification level, wherein the determined second reference atlas has a second priority, and the second priority is lower than the first a priority;
在第一参考图集中,确定在高于第一物种分类级别的第二物种分类级别上与所述物种信息匹配的第三参考图,其中,所确定的第三参考图具有第三优先级,且第三优先级低于第二优先级;以及In the first set of reference images, determining a third reference image matching the species information at a second species classification level higher than the first species classification level, wherein the determined third reference image has a third priority, and the third priority is lower than the second priority; and
在第二参考图集中,确定在第二物种分类级别上与所述物种信息匹配的第四参考图,其中,所确定的第四参考图具有第四优先级,且第四优先级低于第三优先级。In the second set of reference images, determine a fourth reference image that matches the species information at the second species classification level, wherein the determined fourth reference image has a fourth priority, and the fourth priority is lower than the fourth priority Three priorities.
在一具体示例中,可以从候选参考图库中确定与用户上传的植物图像的图像特征最接近的六张候选参考图作为第一图集,而将候选参考图库中的其他候选参考图作为第二图集。首先,在第一图集中,查找与植物图像中的植物的种匹配的第一参考图,该第一参考图具有最高的第一优先级;然后,在第二图集中,查找与植物图像中的植物的种匹配的第二参考图,该第二参考图具有较第一优先级低的第二优先级;然后,在第一图集中,查找与植物图像中的植物的属匹配的第三参考图,该第三参考图具有较第二优先级低的第三优先级;然后,在第二图集中,查找与植物图像中的植物的属匹配的第四参考图,该第四参考图具有较第三优先级低的第四优先级;然后,在第一图集中,查找与植物图像中的植物的科匹配的第五参考图,该第五参考图具有较第四优先级低的第五优先级;最后,在第二图集中,查找与植物图像中的植物的科匹配的第六参考图,该第六参考图具有最低的第六优先级。在显示参考图时,可以按照第一参考图、第二参考图、第三参考图、第四参考图、第五参考图、第六参考图的顺序进行显示,其中,第一参考图被显示在最显眼的位置处。In a specific example, six candidate reference images that are closest to the image features of the plant image uploaded by the user can be determined from the candidate reference gallery as the first atlas, and other candidate reference images in the candidate reference gallery are used as the second. Atlas. First, in the first atlas, find the first reference image that matches the species of the plant in the plant image, and the first reference image has the highest first priority; The second reference image that matches the species of the plant, the second reference image has a second priority lower than the first priority; then, in the first atlas, find the third reference image that matches the genus of the plant in the plant image A reference map, the third reference map has a third priority lower than the second priority; then, in the second atlas, find a fourth reference map matching the genus of the plant in the plant image, the fourth reference map Has a fourth priority lower than the third priority; then, in the first atlas, find a fifth reference image that matches the family of the plant in the plant image, and the fifth reference image has a lower priority than the fourth Fifth priority; finally, in the second atlas, a sixth reference image matching the family of the plants in the plant image is found, which has the lowest sixth priority. When displaying reference images, they can be displayed in the order of the first reference image, the second reference image, the third reference image, the fourth reference image, the fifth reference image, and the sixth reference image, wherein the first reference image is displayed in the most conspicuous position.
在一些实施例中,在候选参考图库中,基于与所述植物图像的相似度和/或与所述物种信息的匹配度,确定被提取的一幅或多幅参考图以及与一幅或多幅参考图中的每幅参考图对应的优先级的步骤还可以包括:In some embodiments, in the candidate reference gallery, based on the similarity with the plant image and/or the matching degree with the species information, it is determined that one or more extracted reference images and one or more The step of prioritizing each reference image in the reference images may also include:
当在第一参考图集和第二参考图集中均未能确定在低于或等于预设物种分类级别的物种分类级别上与所述物种信息匹配的参考图时,将与病症结果对应的预设默认图确定为参考图。When a reference map matching the species information at a species classification level lower than or equal to a preset species classification level cannot be determined in both the first reference atlas and the second reference atlas, the predicted results corresponding to the disease result will be Let the default image be determined as the reference image.
例如,如果查找到科这一分类级别时,仍然不能在第一图集或第二图集中找到匹配的结果参考图,那么可以将参考图库中的预设默认图作为参考图,不再进一步查找。For example, if you still cannot find a matching result reference image in the first atlas or the second atlas when searching for the classification level of family, you can use the preset default image in the reference gallery as the reference image without further searching .
通常情况下,所显示的诊断信息中的图片的显示比例在3:2至1:1之间,从而具有较好的显示效果。然而,从候选参考图库中筛选出来的参考图的比例可能不适合上述显示比例。通常,可以对这样的图进行拉伸或裁切,以适应显示比例。然而,考虑到对参考图进行拉伸时,可能导致某些病症的 特征发生变形,不利于用户很好地识别病症,因此在一个示例性实施例中,可以采用裁切的方式来处理参考图。具体而言,Usually, the display ratio of the pictures in the displayed diagnostic information is between 3:2 and 1:1, so as to have a better display effect. However, the scale of the reference images screened from the candidate reference gallery may not be suitable for the above display scale. Typically, such plots can be stretched or cropped to fit the display scale. However, considering that the stretching of the reference image may lead to deformation of the characteristics of certain diseases, which is not conducive to the user's good identification of the disease, so in an exemplary embodiment, the reference image can be processed by cropping . in particular,
用于植物病症诊断的方法还可以包括:Methods for diagnosis of plant diseases may also include:
对形成参考图的原始图的边缘区域进行裁切,以使得裁切后所得的参考图的比例与预设显示比例相符,且参考图中的与病症结果对应的图像特征位于参考图的中部区域内。Crop the edge area of the original image that forms the reference image, so that the scale of the reference image obtained after cropping conforms to the preset display ratio, and the image features corresponding to the disease results in the reference image are located in the middle area of the reference image Inside.
具体而言,可以基于区域识别模型,在为内容管理系统选取参考图素材时,就将与病症结果对应的图像特征位于边缘区域的图片去除或忽略,这些图片将不被收录在内容管理系统中。或者,可以在将图片存储在内容管理系统中时,对其进行例如裁切等处理。又或者,可以在根据植物图像确定了要被输出的参考图后,对选择内容管理系统的参考图进行例如裁切等处理后再输出。当然,在其他一些实施例中,也可以预先判定病症的特征在形成参考图的原始图中所在的位置,并在裁切过程中避开这些位置。Specifically, based on the area recognition model, when selecting reference image materials for the content management system, the pictures corresponding to the disease results whose image features are located in the marginal area are removed or ignored, and these pictures will not be included in the content management system . Alternatively, processing such as cropping may be performed on the picture when it is stored in the content management system. Alternatively, after the reference image to be output is determined according to the plant image, the reference image selected by the content management system may be processed, for example, cropped, before being output. Of course, in some other embodiments, it is also possible to pre-determine the positions of the features of the disease in the original image forming the reference image, and avoid these positions during the cropping process.
在图3示出的示范例中,第四栏100展示所述病症框图。病症框图展示用户所拍摄的植物图像的至少包括病症区域部分的图像,优选展示全株图像。病症区域以框100a标识出,以提示用户病症发生的部位,以供用户进行比对。In the example shown in Fig. 3, the fourth column 100 shows the disease block diagram. The disease block diagram shows the image of the plant image taken by the user at least including part of the diseased area, preferably the whole plant image. The disease area is marked with a frame 100a to prompt the user where the disease occurs for comparison.
关于输出互动问题的方式,在一些示例中,可以在诊断页中弹出提示,如显示或语音提示等。本领域技术人员可根据实际情况进行设定和调整。Regarding the way of outputting interactive questions, in some examples, prompts can pop up in the diagnostic page, such as display or voice prompts. Those skilled in the art can set and adjust according to actual conditions.
下面通过一个示范例,对本实施例提供的植物病虫害诊断方法进行说明:The method for diagnosing plant diseases and insect pests provided by this embodiment is described below through an example:
首先用户上传一个待诊断的植物图像,该植物图像如可为用户拍摄得到。病症诊断引擎对所述植物图像进行预识别,会得到两个病症预识别结果,分别为A病症(例如叶片发黄-浇水过多)和B病症(例如叶片发黄-缺水),且该两个病症预识别结果的置信度均小于第一预设值(0.9),由此触发输出与所述病症预识别结果相关联的互动问题:First, the user uploads an image of a plant to be diagnosed, which can be captured by the user. The disease diagnosis engine pre-identifies the plant image, and two disease pre-identification results are obtained, which are A disease (such as yellow leaves-overwatering) and B disease (such as yellow leaves-lack of water), and The confidence levels of the two disease pre-identification results are both less than the first preset value (0.9), thus triggering the output of an interactive question associated with the disease pre-identification result:
“Is the plant soil remaining moist at all times?"Is the plant soil remaining moist at all times?
Stick your finger into the soil up to your first knuckle and feel if there’s moisture present.”即“植物土壤是否一直保持湿润?将您的手指伸入土壤中直到您的第一个指关节,并感觉是否存在水分。”Stick your finger into the soil up to your first knuckle and feel if there’s moisture present.” That is, “Is the plant soil always kept moist? Dip your fingers into the soil up to your first knuckles and feel for moisture. "
优选的,请参考图4,所述互动问题包括至少两个选择枝,所述互动问题的答案于至少两个所述选择枝中选取。对于上述示范例,可以提供:1-Yes;2-No两个选择枝,用户将在该两个选择枝中选取答案。相对应于该两个选择枝的答案,若选择1-Yes,则将A病症(叶片发黄-浇水过多)确认为病症结果;若选择2-No,则将B病症(叶片发黄-缺水)确认为病症结果。Preferably, please refer to FIG. 4 , the interactive question includes at least two alternative branches, and the answer to the interactive question is selected from at least two of the alternative branches. For the above example, two options: 1-Yes; 2-No can be provided, and the user will choose an answer from the two options. Corresponding to the answers of these two selection branches, if 1-Yes is selected, then A disease (leaves turn yellow-overwatering) is confirmed as disease result; if 2-No is selected, B disease (leaves turn yellow) - lack of water) is confirmed as a result of the condition.
优选的,所述互动问题可以包括至少两个层级,上一层级的不同的所述选择枝对应下一层级的不同的分支问题。在一些实施例中,互动问题可以不仅仅包括一个层级,而是可以包括至少两个层级,例如在上一层级的选择枝中选择了A回答,则进一步弹出基于A的下一层级的分支问题,例如弹出A1和A2的分支问题选择枝。二若用户在上一层级的选择枝中选择了B回答,则进一步弹出基于B的下一层级的分支问题,例如弹出B1和B2的分支问题选择枝。由此可以提供进一步的辅助判断信息,以便进一步缩小诊断结果的范围。Preferably, the interactive question may include at least two levels, and the different selection branches at the upper level correspond to different branch questions at the lower level. In some embodiments, the interactive question may include not only one level, but at least two levels. For example, if A is selected in the selection branch of the upper level, the branch question based on A will pop up further. , for example to pop up the branches of A1 and A2 to select branches. 2. If the user chooses answer B in the selection branch of the upper level, then the branch questions of the next level based on B will pop up, for example, the branch question selection branches of B1 and B2 will pop up. In this way, further auxiliary judgment information can be provided, so as to further narrow down the scope of the diagnosis result.
优选的,每个所述病症预识别结果关联至少一个所述互动问题,或者至少两个所述病症预识别结果关联至少一个所述互动问题。在一些实施例中,每个病症预识别结果可以关联1个、2个或多个互动问题,同时该互动问题可以具有1个、2个或多个层级,这些层级中某个或某几个关系1个、2个或多个分支问题。例如某1个病症预识别结果关联了2个互动问题:1.是否浇水过多,2.是否光照太少。Preferably, each of the disease pre-identification results is associated with at least one of the interactive questions, or at least two of the disease pre-identification results are associated with at least one of the interactive questions. In some embodiments, each symptom pre-identification result can be associated with 1, 2 or more interactive questions, and the interactive questions can have 1, 2 or more levels, one or some of these levels Relational 1, 2 or more branching issues. For example, the pre-identification result of a certain disease is associated with 2 interactive questions: 1. Whether there is too much watering, 2. Whether there is too little light.
另一些实施例中,至少两个病症预识别结果关联至少一个互动问题,可以是至少两个病症预识别结果关联同一个互动问题,也可以是至少两个病症预识别结果关联2个或多个互动问题,本实施例对此不限。例如某两个病症预识别结果同时关联了1个相同的互动问题:是否浇水过多;或者某两个病症预识别结果同时关联了2个互动问题:1.是否浇水过多,2.是否光照太少。In some other embodiments, at least two disease pre-identification results are associated with at least one interactive question, it can be that at least two disease pre-identification results are associated with the same interactive question, or at least two disease pre-identification results are associated with 2 or more The interaction problem is not limited in this embodiment. For example, some two disease pre-identification results are associated with the same interactive question: whether there is too much watering; or some two disease pre-identification results are also associated with two interactive questions: 1. Is there too much watering, 2. Whether there is too little light.
可选的,步骤S1中,在利用病症诊断引擎对所述植物图像进行预识别之前,所述植物病虫害诊断方法还包括:获取与所述植物图像所对应的物种识别结果;进而在利用病症诊断引擎对所述植物图像进行预识别的步骤之后,根据第二预设条件对病症预识别结果执行筛除。Optionally, in step S1, before using the disease diagnosis engine to pre-identify the plant image, the method for diagnosing plant diseases and insect pests further includes: obtaining a species identification result corresponding to the plant image; After the engine pre-identifies the plant image, the pre-identification result of the disease is screened out according to the second preset condition.
在一些情况下,用户上传植物图像的目的可能主要是进行植物物种的鉴定识别,并没有主动想要进行病虫害诊断,或者是并不知道植物存在病虫害情况下来鉴定植物物种。此时,病虫害诊断处于一种被动诊断模式。物种识别结果可利用物种识别引擎对所述植物图像进行识别得到。可以利用预先训练好的物种识别引擎,来根据植物图像确定候选物种。其中,物种识别引擎如可以包括神经网络模型。In some cases, the purpose of uploading plant images by users may be mainly to identify plant species, and they do not actively want to diagnose plant diseases and insect pests, or identify plant species without knowing that plants have plant diseases and insect pests. At this time, pest diagnosis is in a passive diagnosis mode. The species recognition result can be obtained by using a species recognition engine to recognize the plant image. A pre-trained species recognition engine can be utilized to identify candidate species based on plant images. Wherein, the species recognition engine may include a neural network model, for example.
一般而言,在被动诊断模式下,用户的主要目的并非诊断病症本身,而是例如为了确定植物的物种信息等。在这种情况下,可以只输出准确性和可靠性较高的病症,从而在帮助用户及时发现植物病症的同时,避免因输出的病症不够准确而给用户带来额外的困扰。因此在一些实施例中,可根据第二预设条件对病症预识别结果执行筛除,以提高准确率。Generally speaking, in the passive diagnosis mode, the main purpose of the user is not to diagnose the disease itself, but, for example, to determine the species information of the plant and the like. In this case, only diseases with high accuracy and reliability can be output, so as to help users discover plant diseases in time and avoid additional troubles to users due to inaccurate output diseases. Therefore, in some embodiments, the pre-identification result of the disease can be screened out according to the second preset condition, so as to improve the accuracy rate.
在利用物种识别引擎对所述植物图像进行识别时,可能会得到一个或多个物种识别结果(为便于叙述,下文称为候选物种)。此时,病症诊断引擎可以针对每个候选物种得到一个或多个病症预识别结果(为便于叙述,下文称为候选病症),当然也可以只针对部分候选物种来确定候选病症。可以理解的,物种识别结果也具有其自身的置信度,输出的诊断信息可根据病症结果的置信度的不同而不同。When the plant image is identified by the species identification engine, one or more species identification results (for convenience of description, hereinafter referred to as candidate species) may be obtained. At this point, the disease diagnosis engine can obtain one or more disease pre-identification results for each candidate species (for ease of description, hereinafter referred to as candidate diseases), of course, it can only determine candidate diseases for some candidate species. It can be understood that the species identification result also has its own confidence level, and the output diagnostic information may be different according to the confidence level of the disease result.
例如,在一具体示例中,根据某一幅或某一些植物图像,确定的候选物种有物种1、物种2和物种3。物种1、物种2和物种3是按照物种置信度由高至低的顺序排列的。例如,物种1的物种置信度为0.8,物种2的物种置信度为0.75,物种3的物种置信度为0.7。在被动诊断模式下,针对每个物种来根据第二预设条件确定可以输出的病症。而在对某一个物种来筛除候选病症时,可以按照该物种的候选病症的诊断置信度由高到低的顺序,根据第二预设条件逐条确定是否筛除某一候选病症。例如,与物种2对应的候选病症有3种,而与物种3对应的候选病症有2种。如果病症2-1的诊断置信度为95%、病症2-2的诊断置信度为90%、以及病症2-3的诊断置信度为82%,那么,在针对物种2进行筛除的过程中,可以按照诊断置信度由高到低的顺序,按照病症2-1、病症2-2和病症2-3的顺序进行筛除。如果在对病症2-1进行筛除 后,没有找到可以用于输出的剩余病症,则继续对病症2-2进行筛除。如果在对病症2-1进行筛除后,已经找到了可以用于输出的剩余病症,那么,可以不再继续对病症2-2进行筛除,以简化整个处理过程。当然,在一些情况下,也可能在执行对所有候选病症的筛除后,仍然没有找到可以用于输出的剩余病症,则停止筛除,在后续步骤中也不输出任何病症预识别结果,则步骤S2和步骤S3都不会执行,即此时根据该植物图像,不会输出互动问题,避免用户产生困扰。For example, in a specific example, according to one or some plant images, the determined candidate species include species 1, species 2 and species 3. Species 1, 2 and 3 are arranged in descending order of species confidence. For example, Species 1 has a species confidence of 0.8, Species 2 has a species confidence of 0.75, and Species 3 has a species confidence of 0.7. In the passive diagnosis mode, for each species, the diseases that can be output are determined according to the second preset condition. When screening candidate diseases for a certain species, whether to screen out a certain candidate disease can be determined one by one according to the second preset condition according to the order of the diagnostic confidence of the candidate diseases of this species from high to low. For example, there are 3 candidate diseases corresponding to species 2 and 2 candidate diseases corresponding to species 3. If the diagnostic confidence for condition 2-1 is 95%, the diagnostic confidence for condition 2-2 is 90%, and the diagnostic confidence for condition 2-3 is 82%, then, in the process of screening for species 2 , according to the order of diagnosis confidence from high to low, according to the order of disease 2-1, disease 2-2 and disease 2-3 for screening. If after screening out the disease 2-1, no remaining disease can be found that can be used for output, then continue to screen out the disease 2-2. If the remaining symptoms that can be used for output have been found after screening the symptoms 2-1, then the screening of the symptoms 2-2 may not be continued, so as to simplify the whole processing process. Of course, in some cases, it is also possible that after the screening of all candidate diseases, there is still no remaining disease that can be used for output, then the screening is stopped, and no disease pre-identification results are output in the subsequent steps, then Neither step S2 nor step S3 will be executed, that is, no interactive question will be output according to the plant image at this time, so as to avoid confusion for the user.
在筛除过程中,所涉及的第二预设条件可能与多种因素有关,这些因素例如本次病症诊断引擎的诊断置信度、候选物种的种类、对某一类病症的诊断准确度以及候选物种和候选病症之间的匹配程度等当中的一个或多个。In the screening process, the second preset condition involved may be related to various factors, such as the diagnostic confidence of the current disease diagnosis engine, the type of candidate species, the diagnostic accuracy of a certain type of disease, and the candidate One or more of the degree of match between the species and the candidate condition, etc.
在一实施例中,第二预设条件包括:In one embodiment, the second preset condition includes:
判断候选物种是否在预设物种白名单中,当候选物种不在预设物种白名单中时,筛除与候选物种对应的候选病症。It is judged whether the candidate species is in the preset species white list, and when the candidate species is not in the preset species white list, the candidate disease corresponding to the candidate species is screened out.
被包括在预设物种白名单中的物种一般为常见物种或重要物种,并且对这些物种的病症的诊断一般具有较高的准确性和可靠性。也就是说,在本实施例中,只有与这些物种对应的病症才有可能不被筛除而在后续步骤中被输出,从而尽可能避免输出不准确、不可靠或不重要的病症给用户,以避免引起用户额外的困扰。The species included in the preset species white list are generally common species or important species, and the diagnosis of diseases of these species generally has relatively high accuracy and reliability. That is to say, in this embodiment, only diseases corresponding to these species may be output in subsequent steps without being screened out, so as to avoid outputting inaccurate, unreliable or unimportant diseases to users as much as possible, In order to avoid causing additional troubles to users.
在一实施例中,第二预设条件包括:In one embodiment, the second preset condition includes:
比较候选病症的诊断置信度与第四预设值;当候选病症的诊断置信度小于第四预设值时,筛除候选病症。Comparing the diagnostic confidence of the candidate disease with a fourth preset value; when the diagnostic confidence of the candidate disease is less than the fourth preset value, the candidate disease is screened out.
其中,诊断置信度可以表征病症诊断引擎在单次诊断过程中,所获得的病症预识别结果的可靠性。在一具体示例中,第四预设值可以设为70%。也就是说,当候选病症的诊断置信度小于70%时,该候选病症将被筛除而不会被输出,以避免输出的互动问题与实际情况不符而给用户带来困扰。Among them, the diagnostic confidence can represent the reliability of the disease pre-identification result obtained by the disease diagnosis engine in a single diagnosis process. In a specific example, the fourth preset value may be set to 70%. That is to say, when the diagnostic confidence of the candidate disease is less than 70%, the candidate disease will be screened out instead of being output, so as to avoid causing confusion to the user because the output interactive question does not match the actual situation.
在一实施例中,第二预设条件包括:In one embodiment, the second preset condition includes:
比较候选病症的诊断准确度与预设准确度;当候选病症的诊断准确度小于第五预设值时,筛除候选病症。Comparing the diagnostic accuracy of the candidate disease with the preset accuracy; when the diagnostic accuracy of the candidate disease is less than the fifth preset value, the candidate disease is screened out.
其中,诊断准确度反映了整体上识别某一特定类型的病症的准确性。例如,诊断准确度可以根据在一定的诊断总次数中,正确诊断的次数与总次数的比值而得到。对于一些诊断难度较大的病症而言,其诊断准确度往往较低,那么通过筛除与这些病症相关的候选病症,可以尽可能避免输出不准确的病症。Among them, diagnostic accuracy reflects the overall accuracy of identifying a particular type of disease. For example, the diagnostic accuracy can be obtained according to the ratio of the number of correct diagnoses to the total number of times in a certain total number of diagnoses. For some diseases that are difficult to diagnose, the diagnostic accuracy is often low, so by screening out candidate diseases related to these diseases, it is possible to avoid outputting inaccurate diseases as much as possible.
在一实施例中,第二预设条件包括:In one embodiment, the second preset condition includes:
判断候选物种是否在与病症对应的候选物种黑名单中,若候选物种在候选物种黑名单中,则筛除候选病症。It is judged whether the candidate species is in the candidate species blacklist corresponding to the disease, and if the candidate species is in the candidate species blacklist, the candidate disease is screened out.
对于某一特定物种而言,它可能根本不会或只有很小的概率遭遇某些特定类型的病症。因此,可以根据这样的物种与病症之间的相互排斥的关系,预先设置相应的候选物种黑名单,从而对候选物种进行筛除,以提高输出的准确性和可靠性。For a particular species, it may not suffer from certain types of illnesses at all or only very rarely. Therefore, according to the mutually exclusive relationship between such species and diseases, the corresponding candidate species blacklist can be set in advance, so that candidate species can be screened out, so as to improve the accuracy and reliability of the output.
需要注意的是,上述关于如何筛除满足第二预设条件的候选病症的具体方法可以相互结合。例如,在一具体示例中,只要候选病症满足诊断置信度小于第四预设值、候选物种不在预设物种白名单中、诊断准确度小于第五预设值以及候选物种在与候选病症对应的候选物种黑名单中的任何一个条件,该候选病症就会被排除。It should be noted that the above specific methods on how to screen out candidate diseases satisfying the second preset condition can be combined with each other. For example, in a specific example, as long as the candidate disease satisfies that the diagnostic confidence is less than the fourth preset value, the candidate species is not in the preset species whitelist, the diagnostic accuracy is less than the fifth preset value, and the candidate species is within the corresponding to the candidate disease Any condition in the candidate species blacklist, the candidate disease will be excluded.
可选的,在一个示范例中,以第三预设值为阈值,当物种识别结果的置信度不小于第三预设值时,认为该物种识别结果为高置信度,而当物种识别结果的置信度小于第三预设值时,认为该物种识别结果为低置信度。若所述物种识别结果的识别置信度不小于第三预设值,所述植物病虫害诊断方法还包括:展示所述物种识别结果以及其所对应的植物物种的常见病症。请参考图5,在一个示范例中,物种识别结果的识别置信度不小于第三预设值时,可展示该植物的常见病症。图5示出的示范例中,第一栏101中显示“Common diseases for Golden pothos based on our 10 millions of plant disease cases.基于我们1000万例植物病害案例的金绿萝常见病症”,展示了金绿萝(Golden pothos)的常见病症的前4条数据,每个常见病症还支持查看更多。Optionally, in an example, with the third preset value as the threshold, when the confidence of the species recognition result is not less than the third preset value, the species recognition result is considered to be of high confidence, and when the species recognition result is When the confidence level of is less than the third preset value, the species recognition result is considered as low confidence level. If the identification confidence of the species identification result is not less than a third preset value, the method for diagnosing plant diseases and insect pests further includes: displaying the species identification result and common diseases of the corresponding plant species. Please refer to FIG. 5 , in an example, when the recognition confidence of the species recognition result is not less than the third preset value, common diseases of the plant can be displayed. In the example shown in Figure 5, the first column 101 shows "Common diseases for Golden pothos based on our 10 millions of plant disease cases. (Golden pothos) the first 4 data of common diseases, each common disease also supports to view more.
在另一些情况下,用户已经初步认为植物可能会存在病虫害的情况下来寻求确认,其上传植物图像的目的主要是为了进行病虫害诊断。此时,病虫害诊断处于一种主动诊断模式。可选的,物种识别结果从已经过识别后的物种识别结果页面中提取得到。这些应用场景下,用户可能会从某个植物识别结果的界面进入对病虫害的诊断,此时的植物图像可以认为已经具有了物种识别信息,进一步也可以对该物种识别信息进行二次验证。In other cases, the user has preliminarily believed that the plant may have pests and diseases and sought confirmation, and the purpose of uploading plant images is mainly for the diagnosis of pests and diseases. At this time, pest diagnosis is in an active diagnosis mode. Optionally, the species identification result is extracted from the identified species identification result page. In these application scenarios, users may enter the diagnosis of plant diseases and insect pests from the interface of a certain plant identification result. At this time, the plant image can be considered to have species identification information, and further verification of the species identification information can be performed.
进而,在主动诊断模式中,由于用户主观上是为了进行病虫害诊断,因此可以将更多的候选病症的信息包含在病症预识别结果中,同时可以适当降低对所生成的病症结果的准确性和可靠性的要求。具体的,第二预设条件也可相应地适当放宽,以减少被筛除的候选病症。Furthermore, in the active diagnosis mode, since users subjectively want to diagnose pests and diseases, more candidate disease information can be included in the disease pre-identification results, and at the same time, the accuracy and accuracy of the generated disease results can be appropriately reduced. reliability requirements. Specifically, the second preset condition can also be appropriately relaxed accordingly, so as to reduce the candidate diseases that are screened out.
本实施例还提供了一种可读存储介质,其上存储有程序,所述程序被执行时实现如上所述的植物病虫害诊断方法。进一步的,本实施例还提供了一种植物病虫害诊断系统,其包括处理器和存储器,所述存储器上存储有程序,所述程序被所述处理器执行时,实现如上所述的植物病虫害诊断方法。This embodiment also provides a readable storage medium on which a program is stored, and when the program is executed, the method for diagnosing plant diseases and insect pests as described above is realized. Further, this embodiment also provides a system for diagnosing plant diseases and insect pests, which includes a processor and a memory, and a program is stored in the memory, and when the program is executed by the processor, the above-mentioned diagnosis of plant diseases and insect pests is realized. method.
综上所述,在本发明提供的植物病虫害诊断方法、植物病虫害诊断系统及可读存储介质中,所述植物病虫害诊断方法包括:获取待诊断的植物图像,利用病症诊断引擎对所述植物图像进行预识别,以得到病症预识别结果;若所述病症预识别结果的置信度小于第一预设值,输出与所述病症预识别结果相关联的互动问题;以及获取所述互动问题的答案,并根据所述答案得到所述植物图像的病症结果,并输出诊断信息。如此配置,通过输出与病症预识别结果相关联的互动问题,由用户选择答案来进行处理,从而根据答案来确定植物图像的病症结果,相当于通过附加的额外输入信息来对病症预识别结果进行进一步地辅助确认,有效提高了对植物病症的诊断准确率。In summary, in the method for diagnosing plant diseases and insect pests, the system for diagnosing plant diseases and insect pests, and the readable storage medium provided by the present invention, the method for diagnosing plant diseases and insect pests includes: acquiring an image of a plant to be diagnosed, and using a disease diagnosis engine to analyze the image of the plant Perform pre-identification to obtain a disease pre-identification result; if the confidence of the disease pre-identification result is less than a first preset value, output an interactive question associated with the disease pre-identification result; and obtain an answer to the interactive question , and obtain the disease result of the plant image according to the answer, and output the diagnosis information. With such a configuration, by outputting the interactive question associated with the pre-identification result of the disease, the user selects the answer for processing, so that the disease result of the plant image is determined according to the answer, which is equivalent to the pre-identification result of the disease through additional input information. Further auxiliary confirmation effectively improves the diagnostic accuracy of plant diseases.
上述描述仅是对本发明较佳实施例的描述,并非对本发明范围的任何限定,本发明领域的普通技术人员根据上述揭示内容做的任何变更、修饰,均属于权利要求书的保护范围。The above description is only a description of the preferred embodiments of the present invention, and does not limit the scope of the present invention. Any changes and modifications made by those of ordinary skill in the field of the present invention based on the above disclosures shall fall within the protection scope of the claims.

Claims (13)

  1. 一种植物病虫害诊断方法,其特征在于,包括:A method for diagnosing plant diseases and insect pests, comprising:
    获取待诊断的植物图像,利用病症诊断引擎对所述植物图像进行预识别,以得到病症预识别结果;Obtaining a plant image to be diagnosed, and using a disease diagnosis engine to pre-identify the plant image to obtain a disease pre-identification result;
    若所述病症预识别结果的置信度小于第一预设值,输出与所述病症预识别结果相关联的互动问题;以及If the confidence of the disease pre-identification result is less than a first preset value, output an interactive question associated with the disease pre-identification result; and
    获取所述互动问题的答案,并根据所述答案得到所述植物图像的病症结果,并输出与所述病症结果对应的诊断信息。The answer to the interactive question is obtained, and the disease result of the plant image is obtained according to the answer, and the diagnosis information corresponding to the disease result is output.
  2. 根据权利要求1所述的植物病虫害诊断方法,其特征在于,所述互动问题包括至少两个选择枝,所述互动问题的答案于至少两个所述选择枝中选取。The method for diagnosing plant diseases and insect pests according to claim 1, wherein the interactive question includes at least two options, and the answer to the interactive question is selected from at least two options.
  3. 根据权利要求2所述的植物病虫害诊断方法,其特征在于,所述互动问题包括至少两个层级,上一层级的不同的所述选择枝对应下一层级的不同的分支问题。The method for diagnosing plant diseases and insect pests according to claim 2, wherein the interactive question includes at least two levels, and the different selected branches of the upper level correspond to different branch questions of the lower level.
  4. 根据权利要求1所述的植物病虫害诊断方法,其特征在于,所述病症预识别结果为至少两个。The method for diagnosing plant diseases and insect pests according to claim 1, wherein the pre-identification results of the disease are at least two.
  5. 根据权利要求1所述的植物病虫害诊断方法,其特征在于,每个所述病症预识别结果关联至少一个所述互动问题,或者至少两个所述病症预识别结果关联至少一个所述互动问题。The method for diagnosing plant diseases and insect pests according to claim 1, wherein each of the pre-identification results of the disease is associated with at least one interactive question, or at least two of the pre-identification results of the disease are associated with at least one interactive question.
  6. 根据权利要求1所述的植物病虫害诊断方法,其特征在于,若所述病症结果的置信度不小于第二预设值,所述诊断信息包括参考图和/或病症框图,所述参考图为与所述病症结果对应的预置的图像,所述病症框图展示所述植物图像的至少包括病症区域部分的图像,并将所述病症区域标示出。The method for diagnosing plant diseases and insect pests according to claim 1, wherein, if the confidence of the disease result is not less than a second preset value, the diagnostic information includes a reference map and/or a disease block diagram, and the reference map is A preset image corresponding to the disease result, the disease block diagram showing at least part of the plant image including the disease area, and marking the disease area.
  7. 根据权利要求1所述的植物病虫害诊断方法,其特征在于,若所述病症结果的置信度不小于第二预设值,所述诊断信息包括诊断概要数据和诊断详细数据。The method for diagnosing plant diseases and insect pests according to claim 1, wherein, if the confidence of the disease result is not less than a second preset value, the diagnostic information includes diagnostic summary data and diagnostic detailed data.
  8. 根据权利要求1所述的植物病虫害诊断方法,其特征在于,若所述病症结果的置信度小于第二预设值,和/或,所述待诊断的植物图像不符合第一预设条件,则所述诊断信息包括诊断概要数据,并提示重新获取植物图像。The method for diagnosing plant diseases and insect pests according to claim 1, wherein if the confidence of the disease result is less than a second preset value, and/or, the image of the plant to be diagnosed does not meet the first preset condition, Then the diagnostic information includes diagnostic summary data and prompts to reacquire the plant image.
  9. 根据权利要求1所述的植物病虫害诊断方法,其特征在于,在利用病症诊断引擎对所述植物图像进行预识别之前,所述植物病虫害诊断方法还包括:获取与所述植物图像所对应的物种识别结果;The method for diagnosing plant diseases and insect pests according to claim 1, wherein, before using the disease diagnosis engine to pre-identify the plant image, the method for diagnosing plant diseases and insect pests further comprises: acquiring the species corresponding to the plant image recognition result;
    进而在利用病症诊断引擎对所述植物图像进行预识别的步骤之后,根据第二预设条件对病症预识别结果执行筛除。Furthermore, after the step of pre-identifying the plant image by using the disease diagnosis engine, the disease pre-identification result is screened out according to the second preset condition.
  10. 根据权利要求9所述的植物病虫害诊断方法,其特征在于,若所述物种识别结果的识别置信度不小于第三预设值,所述植物病虫害诊断方法还包括:展示所述物种识别结果以及其所对应的植物物种的常见病症。The method for diagnosing plant diseases and insect pests according to claim 9, wherein if the recognition confidence of the species identification result is not less than a third preset value, the method for diagnosing plant diseases and insect pests further comprises: displaying the species identification results and Common disorders of the plant species to which it corresponds.
  11. 根据权利要求9所述的植物病虫害诊断方法,其特征在于,所述物种识别结果利用物种识别引擎对所述植物图像进行识别得到,或者,所述物种识别结果从已经过识别后的物种识别结果页面中提取得到。The method for diagnosing plant diseases and insect pests according to claim 9, wherein the species identification result is obtained by identifying the plant image using a species identification engine, or the species identification result is obtained from the identified species identification result extracted from the page.
  12. 一种可读存储介质,其上存储有程序,其特征在于,所述程序被执行时实现根据权利要求1~11中任一项所述的植物病虫害诊断方法。A readable storage medium on which a program is stored, wherein the method for diagnosing plant diseases and insect pests according to any one of claims 1-11 is realized when the program is executed.
  13. 一种植物病虫害诊断系统,其特征在于,包括处理器和存储器,所述存储器上存储有程序,所述程序被所述处理器执行时,实现根据权利要求1~11中任一项所述的植物病虫害诊断方法。A system for diagnosing plant diseases and insect pests, characterized in that it includes a processor and a memory, and a program is stored in the memory, and when the program is executed by the processor, the method according to any one of claims 1 to 11 is realized. Diagnostic methods for plant pests and diseases.
PCT/CN2022/121668 2021-10-21 2022-09-27 Plant disease and insect pest diagnosis method and system, and readable storage medium WO2023065989A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111228197.0 2021-10-21
CN202111228197.0A CN113947697A (en) 2021-10-21 2021-10-21 Plant disease and insect pest diagnosis method, diagnosis system and readable storage medium

Publications (1)

Publication Number Publication Date
WO2023065989A1 true WO2023065989A1 (en) 2023-04-27

Family

ID=79331794

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/121668 WO2023065989A1 (en) 2021-10-21 2022-09-27 Plant disease and insect pest diagnosis method and system, and readable storage medium

Country Status (2)

Country Link
CN (1) CN113947697A (en)
WO (1) WO2023065989A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113947697A (en) * 2021-10-21 2022-01-18 杭州睿胜软件有限公司 Plant disease and insect pest diagnosis method, diagnosis system and readable storage medium
CN115656167A (en) * 2022-09-27 2023-01-31 杭州睿胜软件有限公司 Plant diagnosis method, plant diagnosis device and computer-readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150131867A1 (en) * 2013-11-08 2015-05-14 Institute For Information Industry Treatment recommending system of plant symptoms, method and non-transitory computer-readable medium
CN111046204A (en) * 2019-12-16 2020-04-21 北京植得智能互联科技有限公司 Plant disease and insect pest recognition and control system
CN112966758A (en) * 2021-03-12 2021-06-15 中化现代农业有限公司 Crop disease, insect and weed identification method, device and system and storage medium
CN113096100A (en) * 2021-04-15 2021-07-09 杭州睿胜软件有限公司 Method for diagnosing plant diseases and plant disease diagnosis system
US20210248370A1 (en) * 2020-02-11 2021-08-12 Hangzhou Glority Software Limited Method and system for diagnosing plant disease and insect pest
CN113947697A (en) * 2021-10-21 2022-01-18 杭州睿胜软件有限公司 Plant disease and insect pest diagnosis method, diagnosis system and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150131867A1 (en) * 2013-11-08 2015-05-14 Institute For Information Industry Treatment recommending system of plant symptoms, method and non-transitory computer-readable medium
CN111046204A (en) * 2019-12-16 2020-04-21 北京植得智能互联科技有限公司 Plant disease and insect pest recognition and control system
US20210248370A1 (en) * 2020-02-11 2021-08-12 Hangzhou Glority Software Limited Method and system for diagnosing plant disease and insect pest
CN112966758A (en) * 2021-03-12 2021-06-15 中化现代农业有限公司 Crop disease, insect and weed identification method, device and system and storage medium
CN113096100A (en) * 2021-04-15 2021-07-09 杭州睿胜软件有限公司 Method for diagnosing plant diseases and plant disease diagnosis system
CN113947697A (en) * 2021-10-21 2022-01-18 杭州睿胜软件有限公司 Plant disease and insect pest diagnosis method, diagnosis system and readable storage medium

Also Published As

Publication number Publication date
CN113947697A (en) 2022-01-18

Similar Documents

Publication Publication Date Title
WO2023065989A1 (en) Plant disease and insect pest diagnosis method and system, and readable storage medium
US11294953B2 (en) Similar face retrieval method, device and storage medium
US20220101059A1 (en) Learning system, learning device, learning method, learning program, teacher data creation device, teacher data creation method, teacher data creation program, terminal device, and threshold value changing device
Kao et al. Visual aesthetic quality assessment with a regression model
JP6697356B2 (en) Device, program and method for identifying state of specific object among predetermined objects
US11238374B2 (en) Method for verifying training data, training system, and computer readable medium
DE102020001790A1 (en) Text-in-picture embedding techniques based on machine learning
WO2022218185A1 (en) Method for plant disease diagnosis and plant disease diagnosis system
CN108960269B (en) Feature acquisition method and device for data set and computing equipment
CN112966758B (en) Crop disease, insect and weed identification method, device and system and storage medium
WO2007129474A1 (en) Object recognition device, object recognition program, and image search service providing method
CN111178120A (en) Pest image detection method based on crop identification cascade technology
JP2010092413A (en) Image classification learning device, image classification learning method, and image classification learning system
US20240153267A1 (en) Display method and display system for plant disease diagnosis information, and readable storage medium
WO2021092632A2 (en) Weakly-supervised text-based video moment retrieval via cross attention modeling
JP2020052520A (en) Determination device, determination method, and program
WO2021027156A1 (en) Crop survey method and apparatus employing video, and computer device
JP7502570B2 (en) Liquor product positioning method, liquor product information management method, and apparatus, device, and storage medium thereof
CN111767424B (en) Image processing method, image processing device, electronic equipment and computer storage medium
JP2007304771A (en) Subject recognition device, subject recognition program and image retrieval service provision method
CN114841955A (en) Biological species identification method, device, equipment and storage medium
Hodgson et al. A comparison of the accuracy of mushroom identification applications using digital photographs
JP4946282B2 (en) Subject recognition apparatus, subject recognition program, and image search service providing method
WO2021190412A1 (en) Video thumbnail generation method, device, and electronic apparatus
CN117033308B (en) Multi-mode retrieval method and device based on specific range

Legal Events

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

Ref document number: 22882600

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE