Pest and disease detection method, device, medium and product

Using artificial intelligence language models to generate visual features and visual language model analysis, combined with language description features to assist identification, it solves the problems of subjective errors in traditional detection methods and difficulty in judging rare pests, achieves accurate identification and classification of pests and diseases, and improves detection accuracy and effectiveness.

CN118570510APending Publication Date: 2024-08-30ZUOAN XINHUI (SHANGHAI) DATA TECHNOLOGY CO LTD +1
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410731938.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Traditional pest and disease detection methods rely on manual observation and image matching, which have subjective errors and are difficult to detect pests at the first time, especially when it comes to misjudgment or inability to identify rare pests.

Method used

The artificial intelligence language model is used to generate the visual characteristics of pests and diseases, and the visual language model is used to analyze crop images. The language description features are used to assist visual recognition to achieve accurate identification and classification of pests and diseases.

Benefits of technology

Significantly improves the accuracy of pest and disease detection and the ability to detect rare pests, can more effectively identify and classify pests and diseases, and provide more accurate management strategies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570510A
    Figure CN118570510A
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of agricultural information, and discloses a pest and disease detection method and device, a medium and a product. Utilizing an artificial intelligence language model to automatically generate visual features of each pest and disease damage according to preset query phrases; storing the visual features in a pest and disease damage feature library; acquiring a crop image, and analyzing and matching the crop image by using a visual language model according to the visual features in the pest and disease damage feature library to obtain matched features; and according to a scoring result of the visual language model on the matching features, identifying the disease and pest species existing in the crop image. The technical problem that the disease and pest category cannot be accurately detected can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of agricultural information technology, and in particular to a method, equipment, medium and product for detecting pests and diseases. Background Art

[0002] In terms of farmland management, the detection and control of pests and diseases has always been a technical problem. The traditional planting industry often relies on manual observation of pest and disease types and provides control strategies. This method is not only time-consuming and labor-intensive, but also highly dependent on the experience and knowledge of managers, with subjective errors, and it is difficult to detect pests in the first place. Most existing detection methods are highly dependent on the collected pest and disease images to perform pattern matching on the pests and diseases of the target farmland. For rare pests, it is easy to make mistakes in judgment or even fail to judge. Summary of the invention

[0003] One purpose of the present application is to provide a method, device, medium and product for detecting pests and diseases, at least to solve the technical problem of being unable to accurately identify the types of pests and diseases.

[0004] To achieve the above objectives, some embodiments of the present application provide the following aspects:

[0005] In a first aspect, some embodiments of the present application also provide a method for detecting pests and diseases, comprising using an artificial intelligence language model to automatically generate visual features of each pest and disease according to a preset query phrase; storing the visual features in a pest and disease feature library; acquiring a crop image, and using a visual language model to analyze and match the crop image according to the visual features in the pest and disease feature library to obtain matching features; and identifying the types of pests and diseases present in the crop image according to the scoring results of the matching features by the visual language model.

[0006] In a second aspect, some embodiments of the present application further provide an electronic device, comprising: one or more processors; and a memory storing computer program instructions, wherein the computer program instructions, when executed, cause the processor to perform the steps of the method described above.

[0007] In a third aspect, some embodiments of the present application further provide a computer-readable medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the method as described above.

[0008] In a fourth aspect, some embodiments of the present application further provide a computer program product, comprising a computer program / instruction, which implements the steps of the method described above when executed by a processor.

[0009] Compared with related technologies, the solution provided by the embodiment of the present application can more accurately identify and classify pests and diseases by combining the language understanding ability of a large language model with the image processing ability of a visual language model. Secondly, by using language description features to assist visual recognition, even for pests and diseases that the model has never seen, they can be effectively identified through feature migration, significantly improving the system's ability to detect rare pests and diseases. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0011] Figure 1 A schematic diagram of a process for detecting pests and diseases provided according to an embodiment of the present application;

[0012] Figure 2 A schematic diagram of a process of another pest detection method provided according to an embodiment of the present application;

[0013] Figure 3 This is an architecture diagram of a pest detection system provided according to an embodiment of the present application;

[0014] Figure 4 The present invention is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0015] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0016] First embodiment

[0017] The first embodiment of the present application relates to a method for detecting pests and diseases. Figure 1 As shown, the method may include the following steps:

[0018] S101, using an artificial intelligence language model, automatically generates visual features of each pest based on a preset query phrase;

[0019] S102, storing the visual features in a pest feature library;

[0020] S103, acquiring a crop image, and using a visual language model to analyze and match the crop image according to visual features in the pest and disease feature library to obtain matching features;

[0021] S104, identifying the types of pests and diseases present in the crop image according to the scoring result of the visual language model on the matching features.

[0022] The following is a detailed description of each of the above steps.

[0023] Select an advanced AI language model, such as ChatGPT, which is trained on large-scale text data and can understand and generate descriptive language about pest and disease characteristics. Prepare preset query phrases, which usually consist of the common name of the pest and disease, scientific name, affected crop species, etc., so that the model can understand the context of the query. Input the preset query phrase, such as "characteristics of rice bacterial blight" to the selected language model. The model will generate a detailed description of visual features such as morphology, color, growth stage, affected parts, etc. based on its training data. The generated feature description is reviewed by professionals to ensure its accuracy and completeness. If necessary, the output of the model is manually corrected or supplemented to ensure that the feature description is consistent with the actual situation. The verified and corrected visual feature descriptions are stored in the pest and disease feature library, which provides the necessary data support for subsequent steps and can update the feature description based on new research results or field observations.

[0024] Use automatic or semi-automatic image acquisition equipment, such as drones, fixed surveillance cameras or handheld devices, to capture crop images at predetermined time intervals. The captured images should cover the main growth stages of the crops and the parts that may be damaged. Perform necessary preprocessing on the captured images, including image cropping, rotation, scaling and color correction, to ensure that the image quality meets the requirements of subsequent processing. Select a suitable visual language model, such as CLIP, and configure the parameters of the model to make it suitable for analyzing specific crop images. Input the preprocessed image into the visual language model and call the pest and disease feature library. The visual language model matches the image content with the visual features in the feature library. While inputting the image, the language description features are used as additional information representation to assist visual recognition in obtaining matching features. According to the output of the visual language model, the features in the image that match the pest and disease visual feature library are obtained. If the matching degree exceeds the preset threshold, it is considered that the corresponding pest and disease features exist in the image.

[0025] Analyze the matching feature scores output by the visual language model. Each score represents the degree of matching of a specific pest feature in the image. Features with high scores indicate that pests and diseases that are closer to the description of the feature are more likely to exist in the image. A threshold can be set to determine whether a pest and disease feature is considered to exist in the image. Usually, the threshold is determined by testing and verifying a large amount of sample data to achieve optimal recognition efficiency and accuracy. If the score of a feature exceeds the set threshold, the corresponding pest and disease feature is considered to exist in the image. If multiple feature scores exceed the threshold, it may indicate that multiple pest and disease features exist at the same time. When there are multiple matching feature scores exceeding the threshold in the image, it is necessary to combine this information to determine the final pest and disease type. This may involve weighting and sorting the scores of each feature, as well as analyzing the relationship between different pests and diseases. Finally, a report containing all identified pest and disease types is output, and may include the location, severity, and recommended prevention and control measures for each pest and disease.

[0026] It is not difficult to find that compared with the related technology, the solution provided in the embodiment of the present application is based on a visual language model, combined with an automatic monitoring method based on characteristic description of pests and diseases, and uses a deep learning model to identify and classify farmland pests by characteristics. It can accurately identify the type of pests, thereby more effectively and reasonably controlling them and ensuring the normal growth of crops.

[0027] Second embodiment

[0028] The second embodiment of the present application relates to a method for detecting pests and diseases. The second implementation is an improvement on the first embodiment, and the specific improvements are:

[0029] In addition to the Chatgpt model, the artificial intelligence language model can also use the common artificial intelligence language models such as Wenxinyiyan and Lanxin models on the market; through artificial prompt words, the large language model can obtain the visual features of the corresponding pests and diseases, obtain the pest and disease feature set to build a pest and disease feature library. The visual language model uses the CLIP model, and can also use OpenAI, BigGAN and other visual language models for image and text matching.

[0030] The query phrase is used to train the artificial intelligence language model to output the visual features of the pests and diseases, and the visual features constitute a pest and disease feature library, including pest morphology, crop status, and affected parts of the crops. Pest morphology includes pest color and pest type, such as black pests, white pests, worms, etc. Crop status and affected parts of crops can be leaf damage, yellowing leaves, fallen leaves, etc.

[0031] Analyzing and matching the crop image according to the visual features in the pest and disease feature library includes: processing the crop image with the visual language model to obtain a feature vector of the crop image; matching the feature vector with the visual features in the pest and disease feature library to obtain matching features of the crop image.

[0032] First, the crop image is processed by a visual language model such as CLIP. The model converts each input image into a high-dimensional feature vector, which represents the visual content of the image and captures important information related to the image, such as pest morphology, crop status, and affected parts of the crop; the obtained image feature vector is compared and matched with the visual features stored in the pest feature library, which contains the visual feature description information of various pests and diseases, and effectively matches the image feature vector; by calculating the similarity between the image feature vector and the visual features of each pest and disease in the feature library, it can be determined which pest and disease features are closest to the current image; according to the matching score, the pest and disease features that may exist in the image will be identified and listed. If the score exceeds the preset threshold, the corresponding pest and disease feature is considered to exist in the image.

[0033] The scoring result of the matching feature according to the visual language model includes: the visual language model matches the matching feature with the standard pest and disease picture, scores according to the similarity to obtain the score of the matching feature, and obtains the scoring result of the crop image by combining the scores of all the matching features.

[0034] A plurality of RGB cameras are arranged in the farmland to automatically acquire the crop images of the corresponding areas; after identifying the types of pests and diseases existing in the crop images, the overall pest and disease situation of the farmland is analyzed according to the areas corresponding to the crop images to obtain the pest and disease analysis results, and corresponding pest and disease control strategies are formulated according to the pest and disease analysis results.

[0035] Third embodiment

[0036] The third embodiment of the present application relates to a method for detecting pests and diseases. The third implementation mode is an improvement on the first embodiment. Figure 2 As shown, the specific improvements are:

[0037] Due to the variety of farmland pests at present, although humans can notice some typical features that distinguish a certain pest from other pests, it is difficult for existing recognition models to do so. At the same time, it is difficult for humans to "teach" the model these features that can be described in language. Therefore, while inputting the picture, the language description features are used as additional information representation to assist visual recognition. Unlike the traditional direct inquiry of the visual language model about the category name corresponding to a certain picture, the present application asks the visual language model whether a certain picture corresponds to a certain feature or property. In the process of identifying a certain pest, various features such as pest morphology, crop disease morphology, and soil morphology will be asked. As for which specific features to ask, a large language model can be used to predefine. In this way, the large language model combines the extensive pest-related observation data and the visual language model's judgment of specific features. Even for pests that have never appeared in the training pictures, the model can complete the identification through language descriptions and the migration of the same features in other pest pictures.

[0038] After applying fertilizer in the field, the wheat is photographed regularly using an RGB camera. The visual language model CLIP is used as the main model for pest detection. The feature description-based pest detection method is divided into two stages: the first stage is to construct a visual feature description. For each different pest, a visual feature description corresponding to the pest is constructed; the second stage is model recognition and classification. The visual language model is used to detect the image by feature and match the category with the highest degree of matching with the features displayed in the image.

[0039] The process of constructing visual feature descriptions predicts the key information of feature descriptions for each pest category. Since pests and diseases are rich in types and have many features, ChatGPT, a large language model with relevant knowledge, is used to automatically construct this feature set to describe what visual features should be in each pest and disease image. Use the following prompt words (query phrases):

[0040] Q: What are some useful features for identifying {category} in an image?

[0041] Answer: To determine whether {category} exists in an image, the following visual features are available:

[0042] Here, {category} should be replaced with the name of the specific corresponding category c, and the generated list of visual features constitutes the feature set D(c) of that category.

[0043] The large language model does not have image input during the initial training process, but it can correctly perform visual descriptions without the assistance of visual information. The corpus for training the large language model contains manually written feature description knowledge, and humans have relevant visual knowledge. Therefore, after a large number of such predictions are input into the large language model for training, it can correctly learn the corresponding visual description information of various pests and diseases. After constructing the corresponding visual features of various pests, model recognition and classification are performed on specific scene images. In this stage, the images and features are input into the visual language model CLIP for feature matching.

[0044] Given a crop image, it is used to determine whether a category exists in the crop image, that is, whether there is a certain pest in the crop image. Generally, the category name is directly used for identification. The category can be decomposed into multiple corresponding visual features for separate identification and final collective scoring. Specifically, the score for the current category can be expressed as:

[0045]

[0046] Where c is the target prediction category; x is the input image; D(c) is the feature set corresponding to category c; φ(d,x) is the logarithmic prediction probability describing whether the image x contains feature d. In this case, it is the score given to the image and feature by the visual language model CLIP.

[0047] After defining the score of a crop image for a single category, we need to find out which category the image corresponds to. Therefore, we select the category with the highest score as the prediction result, which can be quantitatively expressed as:

[0048] argmax c∈C s(c,x)

[0049] C is the category set in the data set, that is, the type set of pests and diseases.

[0050] Since the visual language model needs to build a feature description set to predict the conformity between the image and the feature, it is highly interpretable. The prediction result of the image can be refined to each feature, and the pest category can be identified based on the specific score of each feature.

[0051] Finally, the captured RGB image is input into the above-mentioned visual language model, and the visual feature description and crop picture obtained in advance from the large language model are also input into the visual language model to determine which type of pest the farmland is suitable for, and give a specific prevention and control strategy based on the comprehensive information. Through a deep learning fine-grained classification model, a model that can automatically detect and determine the type of farmland pests is realized.

[0052] The step division of the above methods is only for the purpose of clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this patent.

[0053] Fourth embodiment

[0054] The third embodiment of the present application relates to a pest detection system, the system comprising:

[0055] An artificial intelligence language module, which is used to automatically generate visual features of each pest and disease based on a preset query phrase using an artificial intelligence language model;

[0056] A pest and disease feature library module, used for storing the visual features;

[0057] The visual language module is used to obtain crop images, analyze and match the crop images according to the visual features in the pest and disease feature library using a visual language model to obtain matching features; and identify the types of pests and diseases present in the crop images according to the scoring results of the matching features by the visual language model.

[0058] It is not difficult to find that this embodiment is a system embodiment corresponding to the first embodiment, and this embodiment can be implemented in conjunction with the first embodiment. The relevant technical details mentioned in the first embodiment are still valid in this embodiment, and in order to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in this embodiment can also be applied in the first embodiment.

[0059] It is worth mentioning that all modules involved in this embodiment are logic modules. In practical applications, a logic unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, in order to highlight the innovative part of this application, this embodiment does not introduce units that are not closely related to solving the technical problems proposed by this application, but this does not mean that there are no other units in this embodiment.

[0060] In addition, some embodiments of the present application also provide an electronic device. The electronic device may be a digital computer in various forms, such as a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, etc. The electronic device may also be a mobile device in various forms, such as a personal digital processing, a cellular phone, a smart phone, a wearable device, and other similar computing devices.

[0061] The electronic device includes: one or more processors; and a memory storing computer program instructions, wherein when the computer program instructions are executed, the processor executes the steps of the method provided in any one or more of the above embodiments. Figure 4 An exemplary structural diagram of the electronic device is disclosed. Figure 4 As shown, the electronic device includes: one or more processors 1101, memory 1102, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Among them, the components shown in this article, their connections and relationships, and their functions are only used as examples, and are not intended to limit the implementation of the present application described and / or required herein.

[0062] The electronic device may further include: an input device 1103 and an output device 1104. The processor 1101, the memory 1102, the input device 1103 and the output device 1104 may be connected via a bus or other means. Figure 4 The example of connecting through bus is taken in the following.

[0063] The input device 1103 can receive input digital or character information, and generate key signal input related to the user settings and function control of the electronic device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 1104 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.

[0064] To provide interaction with a user, the electronic device may be a computer. The computer has: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball), through which the user can provide input to the computer. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0065] In the embodiments of the present application, a computer program / instruction is stored on a computer-readable medium, and when the computer program / instruction is executed by a processor, the steps of the method provided by any one or more of the above embodiments are implemented. The computer-readable medium may be included in the electronic device described in the above embodiments; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more computer-readable instructions.

[0066] The memory 1102 can be used as a non-transient computer-readable storage medium, which can be used to store non-transient software programs, non-transient computer executable programs and modules. The processor 1101 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 1102, so as to implement the program instructions / modules corresponding to the method provided by any one or more embodiments in the embodiments of the present application.

[0067] The memory 1102 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 1102 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 1102 may optionally include a memory remotely arranged relative to the processor 1101, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0068] It should be noted that the computer-readable medium described in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.

[0069] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.

[0070] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet).

[0071] In the above-described embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. For example, it can be implemented by using an application specific integrated circuit (ASIC), a general-purpose computer or any other similar hardware device. In certain embodiments, the software program of the present application can be executed by a processor to implement the above steps or functions. Similarly, the software program of the present application (including relevant data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and similar devices. In addition, some steps or functions of the present application can be implemented by hardware, for example, as a circuit that cooperates with a processor to perform each step or function.

[0072] The computer program product provided in the embodiment of the present application includes one or more computer programs / instructions, and when the computer program / instructions are executed by the processor, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive so lid state di sk (SSD)), etc.

[0073] The flow chart or block diagram in the accompanying drawings shows the possible architecture, function and operation of the equipment, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated system for hardware that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0074] The scope of the present application is defined by the appended claims rather than the above description, and it is intended that all changes that fall within the meaning and scope of the equivalent elements of the claims are included in the present application. Any reference signs in the claims should not be considered as limiting the claims involved. In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim can also be implemented by one unit or device through software or hardware. The words "first" and "second" are only used to distinguish the description, and do not indicate any particular order, nor can they be understood as indicating or implying relative importance. .

[0075] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily mention changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims, and the above embodiments should be regarded as exemplary and non-restrictive.

Claims

1. A method for detecting pests and diseases, characterized in that: The method comprises: Using artificial intelligence language models, visual features of each pest are automatically generated based on preset query phrases; storing the visual features in a pest and disease feature library; Acquire a crop image, and use a visual language model to analyze and match the crop image according to visual features in the pest and disease feature library to obtain matching features; According to the scoring result of the visual language model on the matching features, the types of pests and diseases present in the crop image are identified.

2. The method according to claim 1, characterized in that: The artificial intelligence language model adopts the Chatgpt model.

3. The method according to claim 1, characterized in that The visual language model adopts the CLIP model.

4. The method according to claim 1, characterized in that: The query phrase is used to train the artificial intelligence language model to output the visual features of the pests and diseases, wherein the visual features include pest morphology, crop status, and affected parts of the crops.

5. The method according to claim 1, characterized in that The method further comprises: A plurality of RGB cameras are arranged in the farmland to automatically acquire the crop images of the corresponding areas; after identifying the types of pests and diseases existing in the crop images, the overall pest and disease situation of the farmland is analyzed according to the areas corresponding to the crop images to obtain the pest and disease analysis results, and corresponding pest and disease control strategies are formulated according to the pest and disease analysis results.

6. The method according to any one of claims 1 to 5, characterized in that The analyzing and matching the crop image according to the visual features in the pest feature library comprises: The visual language model processes the crop image to obtain a feature vector of the crop image; The feature vector is matched with the visual feature in the pest and disease feature library to obtain matching features of the crop image.

7. According to claim 6, it is characterized in that: The scoring result of the matching feature according to the visual language model includes: The visual language model matches the matching features with standard pest and disease pictures, scores them according to the similarity, obtains the scores of the matching features, and obtains the scoring results of the crop images by combining the scores of all the matching features.

8. An electronic device, characterized in that: The electronic device comprises: one or more processors; and A memory storing computer program instructions, which, when executed, cause the processor to perform the steps of the method as claimed in any one of claims 1 to 7.

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

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

Citation Information

Cited By

  • Crop fruit quality detection method and system based on multi-modal large model

    CN119810826A

  • Paris polyphylla planting pest control scheme data analysis system and method

    CN119992232A

  • A data analysis system and method for preventing and controlling diseases and pests in Paris vietnamensis cultivation

    CN119992232B

  • Intelligent crop disease and insect pest identification method and system suitable for bee sugar plums

    CN121746317A