A fruit tree pest and disease intelligent cloud knowledge service system and method based on knowledge graph

Through the smart cloud knowledge service system based on the knowledge graph, the problem of low accuracy of traditional fruit tree pest and disease identification systems is solved, high-accuracy pest information retrieval and prevention knowledge recommendation are achieved, and the knowledge acquisition experience of fruit farmers is improved.

CN112633504BActive Publication Date: 2024-10-29BEIJING UNIV OF TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011531292.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-23
Publication Date
2024-10-29
Estimated Expiration
2040-12-23

AI Technical Summary

Technical Problem

The traditional fruit tree diseases and insect pests identification system has low accuracy, it is difficult to use the characteristics of fruit tree diseases and insect pests for knowledge retrieval, the user experience is poor, and the retrieval accuracy and efficiency of the traditional knowledge service system are low.

Method used

A smart cloud knowledge service system based on knowledge graph is used to extract and represent the original data of fruit tree diseases and pests through the knowledge acquisition and processing module. The Neo4j graph database is used to store the ontology and characteristic entity relationship map of fruit tree diseases and pests, and the SOA core business service API interface is designed. Provide data interaction services, and use the Word2Vec word vector model and image classification model to extract pest feature entities and image recognition, and recommend relevant prevention and control knowledge.

Benefits of technology

It improves the accuracy of information retrieval on fruit tree diseases and insect pests, provides complete knowledge services, helps fruit farmers more effectively master pest control knowledge, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112633504B_ABST
    Figure CN112633504B_ABST
Patent Text Reader

Abstract

A fruit tree pest and disease intelligent cloud knowledge service system and method based on knowledge graph, which features include knowledge acquisition and processing module, which extracts and represents the original data of fruit tree pest and disease; knowledge storage module, which uses Neo4j graph database to store fruit tree pest and disease ontology and feature entity relationship graph, designs core business service API interface based on SOA, provides data interaction service, and Docker container encapsulates system application, making the system platform highly portable and scalable; knowledge reasoning and application module, which provides knowledge reasoning and related prevention and control knowledge recommendation functions. In this way, the system can provide farmers or farm enterprises with accurate retrieval service of fruit tree pest and disease knowledge, and recommendation service of fruit tree pest and disease control knowledge and related resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of smart agriculture in computer applications, and in particular to a fruit tree pest and disease smart cloud knowledge service system and method based on a knowledge graph. Background Art

[0002] There are more and more digital users in the new model of smart agriculture, but these users lack agricultural knowledge and experience. Once the planted fruit trees are diseased, it will directly lead to a decrease in fruit yield and quality or even a total loss of fruit. The identification and prevention of fruit tree diseases has obviously become a key issue.

[0003] Traditional knowledge service systems generally use keyword-based search or shallow semantic understanding, which has very low retrieval accuracy and efficiency. At present, the fruit tree pest and disease identification system and method based on deep neural network requires large-scale training and learning of image data, but its recognition dimension only includes images, with low recognition accuracy, making it difficult to use the characteristics of fruit tree pests and diseases for knowledge retrieval, and poor user experience. Summary of the invention

[0004] In view of this, the technical problem solved by the embodiments of the present invention is to provide a fruit tree disease and insect pest smart cloud knowledge service system and method based on a knowledge graph, which can automatically extract fruit tree disease and insect pest characteristic entities according to user search content, and assist in retrieving disease and insect pest related information based on user uploaded pictures. The retrieval information has a high accuracy rate, and can recommend relevant prevention and control measures knowledge as well as resources such as books and videos, providing complete knowledge services for fruit tree diseases and insect pests.

[0005] The present invention adopts the following technical solutions:

[0006] A fruit tree pest and disease intelligent cloud knowledge service system and method based on knowledge graph, which features include a knowledge acquisition and processing module to extract and represent the original data of fruit tree pest and disease; a knowledge storage module to store the fruit tree pest and disease ontology and feature entity relationship graph using Neo4j graph database, a core business service API interface designed based on SOA to provide data interaction services, and a Docker container to encapsulate system applications, so that the system platform has high portability and scalability; a knowledge reasoning and application module to provide knowledge reasoning and related prevention and control knowledge recommendation functions;

[0007] Furthermore, the knowledge acquisition and processing module extracts and represents the original data of fruit tree diseases and pests as follows:

[0008] Regular expressions, Pandas and Xpath are used to automatically clean semi-structured data and unstructured data. Pandas is used to filter the default data in Excel data, and the XML data and HTML text data are filtered through the Xpath path query language to filter the pest and disease feature nodes. Combined with regular expressions, the data is processed into structured data.

[0009] Chinese word segmentation is used to segment structured data, and part-of-speech tagging and named entity recognition methods are used to screen characteristic entities of pests and diseases.

[0010] The Word2Vec word vector model is used to train unstructured data, word vectors are used to represent pest and disease characteristic entities, and the cosine similarity algorithm is used to calculate the degree of association between pest and disease characteristic entities and entities, and the pest and disease characteristic entities with a correlation less than a preset threshold are filtered out.

[0011] The triple representation method is used to describe the relationship between the characteristic entities of pests and diseases and the ontology, such as: (black-brown, belongs to, apple ring rot), where the pest and disease ontology contains the attributes of ID, name, alias, picture, disease site, disease pattern, symptoms and prevention and control methods.

[0012] The structured data includes books or video resources related to pest and disease control, and their relationships are described using triple representation, such as: (Color Atlas of Diagnosis and Treatment of Fruit Tree Pests and Diseases, prevention and control, apple ring rot). The knowledge ontology of prevention and control includes attributes such as ID, name, resource type, storage address, and picture.

[0013] Furthermore, the knowledge storage module uses a distributed database to store the fruit tree pest ontology and feature entity relationship graph, and provides data interaction services based on the SOA-designed API interface, specifically:

[0014] The Neo4j graph database is used to provide knowledge graph storage services for fruit tree diseases and pests, and to preserve the relationship between the disease and pest ontology and feature entities as well as the relationship between the related prevention and control knowledge ontology.

[0015] Utilize the Mysql relational database to provide user-related data storage services and related system access log storage services.

[0016] Use the Redis distributed cache database to provide an API interface to access the cache service.

[0017] Based on SOA, the fruit tree pest knowledge service system is split according to service functions, and the API interfaces are designed, including user authentication service interface, user authority control service interface, fruit tree pest feature entity extraction service interface, pest knowledge reasoning and retrieval service interface, pest image recognition service interface, and pest knowledge recommendation service interface. Using Docker container technology, the knowledge service application of this system platform is encapsulated to facilitate distributed application deployment, making the knowledge service system highly portable and scalable.

[0018] Furthermore, the knowledge reasoning and application module provides knowledge reasoning and related prevention and control knowledge recommendation functions, specifically:

[0019] Chinese word segmentation, part-of-speech tagging and named entity recognition are performed on the user query description information to extract pest and disease characteristic entities. The characteristic entities are represented as word vectors using the Word2Vec model. The correlation between the characteristic entities and the pest and disease characteristic entity knowledge nodes in the knowledge base is calculated, and entities with weak correlation are filtered out.

[0020] The extracted feature entities are mapped to the feature entity knowledge nodes in the knowledge base to retrieve the associated pest and disease ontology knowledge node information, and the degree of association between the feature entity node set and the ontology knowledge node is calculated according to Formula 1. The association degree result set is sorted to obtain the first search result vector set S.

[0021]

[0022] Among them, Node i.in Indicates the in-degree of the pest ontology knowledge node in the search results. j,out Indicates the out-degree of the pest and disease characteristic entity node in the search results, and n indicates the number of pest and disease characteristic entity nodes.

[0023] The image classification model is used to identify the pest and disease pictures uploaded by the user to obtain the result vector set C, and the vector sets S and C obtained by fusion are used in Formula 2 to obtain the retrieval result Result knowledge node.

[0024]

[0025] The knowledge reasoning method is used to obtain the knowledge nodes whose relationship with the retrieval result Result knowledge node is "prevention and control". The triple representation can be described as (?, prevention and control, Result). Through knowledge reasoning and calculation, the relevant prevention and control knowledge node information is obtained to realize the knowledge recommendation service.

[0026] Compared with the existing technology, this system has the function of making the fragmented knowledge related to fruit tree diseases and pests more relevant. By extracting and representing the original data, the relationship between the disease and pest ontology and the disease and pest characteristic entity is established, so that users can retrieve the disease and pest information more accurately according to the disease characteristics. The fruit tree disease and pest knowledge map is used to provide a disease and pest control knowledge resource recommendation service, helping fruit farmers to master the fruit tree disease and pest control knowledge more effectively and intuitively.

[0027] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Hereinafter, some specific embodiments of the present application will be described in detail in an exemplary and non-limiting manner with reference to the accompanying drawings. The same reference numerals in the accompanying drawings indicate the same or similar components or parts. It should be understood by those skilled in the art that these drawings are not necessarily drawn to scale. In the accompanying drawings:

[0029] Figure 1 A system architecture diagram of an embodiment of the present invention is shown;

[0030] Figure 2 A flow chart of knowledge acquisition and processing according to an embodiment of the present invention is shown;

[0031] Figure 3 A design diagram of a knowledge service system platform according to an embodiment of the present invention is shown;

[0032] Figure 4 A partial knowledge graph of pest and disease ontology relationships in an embodiment of the present invention is shown;

[0033] Figure 5 A knowledge retrieval flow chart of an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0034] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in the field based on the embodiments in the embodiments of the present invention should fall within the scope of protection of the embodiments of the present invention.

[0035] As pointed out in the above background technology section of this application, how to improve the accuracy of fruit tree disease recognition has become a key issue. At present, there are two main methods for identifying fruit tree diseases: (1) traditional agricultural expert diagnosis system (2) fruit tree disease recognition method based on computer vision. Among them, for the first method, experienced experts in the agricultural field are required, and the expert experience is required to be high. In addition, the system is based on keywords or shallow semantic analysis, resulting in poor recognition and huge time and labor costs. For the second method, the currently popular artificial intelligence method is used to collect fruit tree disease images for large-scale model training and learning, but this method only uses image single-modal data, and the recognition accuracy is low, which cannot meet most fruit tree disease scenarios.

[0036] In view of this, the present invention proposes a fruit tree disease and insect pest intelligent cloud knowledge service system and method based on knowledge graph, which can solve some or all of the problems mentioned in the above-mentioned related technologies.

[0037] The specific implementation of the embodiment of the present invention will be further described below in conjunction with the accompanying drawings of the embodiment of the present invention.

[0038] Figure 1 The system architecture diagram of the embodiment of the present invention is shown. The system mainly includes a knowledge acquisition and processing module, a knowledge storage module, and a knowledge application module.

[0039] The knowledge acquisition and processing module processes the original knowledge of fruit tree pests and diseases related books, websites, expert knowledge Excel spreadsheets and XML files through three processes: data cleaning, knowledge processing and knowledge representation, and obtains the characteristic entities of fruit tree pests and diseases and the ontology relationship network of fruit tree pests and diseases. Figure 2 The overall flow chart of the knowledge acquisition and processing module is shown.

[0040] To illustrate, take apple ring rot as an example, data about apple ring rot is collected from web pages. The structured knowledge after data cleaning is shown in Table 1 (some parts that cannot be displayed are omitted). Knowledge processing of fruit tree disease symptoms is performed, including Chinese word segmentation, part-of-speech tagging, named entity recognition, and word vector relationship calculation. After filtering, the characteristic entities of fruit tree diseases and pests are obtained as shown in Table 2. A series of relations are obtained through the triple knowledge representation method, such as (lesions, belongs to, apple ring rot), (wheel pattern, belongs to, apple ring rot), (dark brown, belongs to, apple ring rot), etc. Similarly, there is also a relationship (apple ring rot, belongs to, disease), as well as related prevention and control knowledge relations such as (Color Atlas of Diagnosis and Treatment of Fruit Tree Diseases and Pests, prevention and control of apple ring rot).

[0041]

[0042] Table 1

[0043]

[0044] Table 2

[0045] The knowledge storage module uses the Neo4j graph database to provide fruit tree pest knowledge graph storage services, saving the pest ontology and feature entity relationships as well as the related prevention and control knowledge ontology relationships. Figure 4 The specific storage form is shown, where the pest and disease ontology attributes include ID, name, alias, picture, disease site, disease pattern, symptoms and prevention and control methods, and the attribute data type is shown in Table 3.

[0046]

[0047] Table 3

[0048] This system adopts a service-oriented design pattern for platform design. Based on the SOA architecture, the core business lines of the system are divided into user authentication service, user authority control service, pest and disease feature entity extraction service, pest and disease knowledge reasoning and retrieval service, pest and disease image recognition service, and pest and disease knowledge recommendation service. The API interface is designed and implemented using the RESTFUL specification. The Mysql object-relational database is used to store user information and system log records. Considering the scalability of the platform and support for high concurrency, Redis is used for distributed caching. The knowledge service application of this system platform is encapsulated using Docker container technology to facilitate distributed application deployment, making the knowledge service system highly portable and scalable.

[0049] The knowledge application module includes commonly used multi-user services, such as user login, user registration, historical search record query management, etc.; knowledge retrieval and reasoning, and the use of image classification models to assist knowledge reasoning; based on the pest and disease ontology knowledge, recommend pest and disease control resource knowledge ontologies related to it, such as: related books, control videos and website information.

[0050] Figure 5 The process of user knowledge retrieval is shown. The user logs in to the system through identity authentication, enters pest and disease feature information and uploads pest and disease feature images, obtains relevant pest and disease ontology knowledge through knowledge reasoning module and image-assisted reasoning module, and then obtains prevention and control resource ontology knowledge based on ontology knowledge reasoning, integrates knowledge and pushes it to users to complete the knowledge service process.

Claims

1. A fruit tree pest and disease intelligent cloud knowledge service system based on knowledge graph, characterized in that: Includes the following modules: The knowledge acquisition and processing module extracts and represents the original data of fruit tree diseases and pests; The knowledge storage module uses the Neo4j graph database to store the fruit tree pest ontology and feature entity relationship graph, designs the core business service API interface based on SOA, provides data interaction services, and encapsulates system applications in Docker containers, making the system platform highly portable and scalable; Knowledge reasoning and application module, which provides knowledge reasoning and recommendation functions for related prevention and control knowledge; The knowledge extraction and representation of the original data of fruit tree diseases and insect pests are as follows: Regular expressions, Pandas, and Xpath are used to automatically clean semi-structured and unstructured data. Pandas is used to filter the default data in Excel data, and the XML data and HTML text data are filtered through the Xpath query language to find the nodes containing pest and disease characteristics. Combined with regular expressions, the data is processed into structured data. Use Chinese word segmentation to segment structured data, use part-of-speech tagging and named entity recognition methods to screen pest and disease characteristic entities; The Word2Vec word vector model is used to train unstructured data, word vectors are used to represent pest and disease characteristic entities, and the cosine similarity algorithm is used to calculate the degree of association between pest and disease characteristic entities and entities, and the pest and disease characteristic entities with a correlation less than a preset threshold are filtered out; The triple representation method is used to describe the relationship between the pest and disease feature entity and the ontology, where the pest and disease ontology contains attributes such as ID, name, alias, picture, disease site, disease pattern, symptoms, and prevention and control methods; The structured data includes books or video resources related to pest control, and the relationship between them is described using triple representation. The pest control knowledge ontology includes attributes such as ID, name, resource type, storage address, and picture. The knowledge storage module uses the Neo4j graph database to provide fruit tree pest and disease knowledge graph storage services, saving the pest and disease ontology and feature entity relationships as well as the related prevention and control knowledge ontology relationships; Based on SOA, the fruit tree pest knowledge service system is split according to service functions, and the API interfaces are designed, including user identity authentication service interface, user authority control service interface, fruit tree pest feature entity extraction service interface, pest knowledge reasoning and retrieval service interface, pest image recognition service interface, and pest knowledge recommendation service interface; Use the Mysql relational database to provide user-related data storage services and related system access log storage services; use the Redis distributed cache database to provide API interface access cache services; Use Docker container technology to encapsulate the knowledge service application of this system platform; The knowledge reasoning and application module provides knowledge reasoning and related prevention and control knowledge recommendation functions, specifically: Perform Chinese word segmentation, part-of-speech tagging, and named entity recognition on user query description information, extract pest and disease characteristic entities, represent the characteristic entities as word vectors using the Word2Vec model, and then calculate the correlation between the characteristic entities and the pest and disease characteristic entity knowledge nodes in the knowledge base, and filter out entities with weak correlation; The extracted feature entities are mapped to the feature entity knowledge nodes in the knowledge base to retrieve the associated pest and disease ontology knowledge node information, and the degree of association between the feature entity node set and the ontology knowledge node is calculated according to formula (1), and the result set of the degree of association is sorted to obtain the first search result vector set S; Among them, Node i.in Indicates the in-degree of the pest ontology knowledge node in the search results. j,out Indicates the out-degree of pest and disease characteristic entity nodes in the search results, and n indicates the number of pest and disease characteristic entity nodes; Use the image classification model to identify the pest and disease pictures uploaded by users and obtain the result vector set C. And use formula (2) to fuse the vector sets S and C to obtain the retrieval result Result knowledge node; The knowledge node with the relationship of "prevention and control" to the retrieval result Result knowledge node is obtained by using the knowledge reasoning method. The triple representation is described as (?, prevention and control, Result). The relevant prevention and control knowledge node information is obtained through knowledge reasoning and calculation to realize the knowledge recommendation service.

2. A method for applying the system of claim 1, characterized in that: The following steps are involved: 1) The knowledge extraction and representation of the original data of fruit tree diseases and insect pests are as follows: Regular expressions, Pandas, and Xpath are used to automatically clean semi-structured and unstructured data. Pandas is used to filter the default data in Excel data, and the XML data and HTML text data are filtered through the Xpath query language to find the nodes containing pest and disease characteristics. Combined with regular expressions, the data is processed into structured data. Use Chinese word segmentation to segment structured data, use part-of-speech tagging and named entity recognition methods to screen pest and disease characteristic entities; The Word2Vec word vector model is used to train unstructured data, word vectors are used to represent pest and disease characteristic entities, and the cosine similarity algorithm is used to calculate the degree of association between pest and disease characteristic entities and entities, and the pest and disease characteristic entities with a correlation less than a preset threshold are filtered out; The triple representation method is used to describe the relationship between the pest and disease feature entity and the ontology, where the pest and disease ontology contains attributes such as ID, name, alias, picture, disease site, disease pattern, symptoms, and prevention and control methods; The structured data includes books or video resources related to pest control, and the relationship between them is described using triple representation. The pest control knowledge ontology includes attributes such as ID, name, resource type, storage address, and picture. 2) Use Neo4j graph database to provide fruit tree pest knowledge graph storage service, save the pest ontology and feature entity relationship and related prevention knowledge ontology relationship, specifically: Based on SOA, the fruit tree pest knowledge service system is split according to service functions, and the API interfaces are designed, including user identity authentication service interface, user authority control service interface, fruit tree pest feature entity extraction service interface, pest knowledge reasoning and retrieval service interface, pest image recognition service interface, and pest knowledge recommendation service interface; Use the Mysql relational database to provide user-related data storage services and related system access log storage services; use the Redis distributed cache database to provide API interface access cache services; Use Docker container technology to encapsulate system platform knowledge service applications; 3) Provide knowledge reasoning and relevant prevention and control knowledge recommendation functions, specifically: Perform Chinese word segmentation, part-of-speech tagging, and named entity recognition on user query description information, extract pest and disease characteristic entities, represent the characteristic entities as word vectors using the Word2Vec model, and then calculate the correlation between the characteristic entities and the pest and disease characteristic entity knowledge nodes in the knowledge base, and filter out entities with weak correlation; The extracted feature entities are mapped to the feature entity knowledge nodes in the knowledge base to retrieve the associated pest and disease ontology knowledge node information, and the degree of association between the feature entity node set and the ontology knowledge node is calculated according to formula (1), and the result set of the degree of association is sorted to obtain the first search result vector set S; Among them, Node i.in Indicates the in-degree of the pest ontology knowledge node in the search results. j,out Indicates the out-degree of pest and disease characteristic entity nodes in the search results, and n indicates the number of pest and disease characteristic entity nodes; Use the image classification model to identify the pest and disease pictures uploaded by users and obtain the result vector set C. And use formula (2) to fuse the vector sets S and C to obtain the retrieval result Result knowledge node; The knowledge node with the relationship of "prevention and control" to the retrieval result Result knowledge node is obtained by using the knowledge reasoning method. The triple representation is described as (?, prevention and control, Result). The relevant prevention and control knowledge node information is obtained through knowledge reasoning and calculation to realize the knowledge recommendation service.

Citation Information

Patent Citations

  • Rice disease prediction and diagnosis method based on knowledge graph

    CN110929933A