Intelligent animal and plant identification method and system based on big data

Through the intelligent animal and plant identification method based on big data, image processing and deep learning technology are used to solve the identification accuracy and speed problems in the existing technology, achieve fast and high-precision animal and plant identification and real-time knowledge provision, and improve the natural environment of tourists. Cognition and travel experience.

CN118411738BInactive Publication Date: 2024-10-01SHANDONG YIYOU INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410871740.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing technologies have problems with recognition accuracy and speed in animal and plant identification, especially when the data volume is insufficient or excessive, and cannot provide relevant introductions to animals and plants in real time, affecting tourists' understanding of natural things and their interest in tourism.

Method used

An intelligent animal and plant identification method based on big data is used to obtain panoramic images for preliminary identification, obtain unique special feature sets and reference image sets for secondary identification, and provide detailed introductions based on the animal and plant knowledge graph, using Gaussian filters and histograms Technologies such as equalization, K-means clustering algorithm and convolutional neural network achieve fast and high-precision recognition.

Benefits of technology

It realizes fast and high-precision identification of animal and plant types, and provides relevant knowledge of animals and plants in real time without the explanation of the tour guide, which improves tourists' understanding of natural things and the fun of the tourism process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118411738B_ABST
    Figure CN118411738B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of animal and plant identification technology. The present invention discloses an intelligent animal and plant identification method and system based on big data, including: separating a target subject in a panoramic image, inputting the target subject in the form of an image into a pre-trained species detection model for preliminary identification, so as to determine the species type to which the target subject belongs; obtaining a unique special feature set of the target subject according to the species type, obtaining a reference image set according to the species type, and performing a secondary round of identification on the target subject according to the unique special feature set and the reference image set, so as to determine the variety or subspecies type of the target subject; inputting the variety or subspecies type of the target subject into a pre-constructed animal and plant knowledge graph, so as to parse out the introduction information of the target subject; the present invention can quickly and accurately identify the animal and plant types, and is conducive to helping users understand the relevant knowledge of the identified animals and plants in real time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of animal and plant identification, and more specifically, to an intelligent animal and plant identification method and system based on big data. Background Art

[0002] With the rapid development of modern tourism, natural scenic spots have become an important place for people to relax and get close to nature. The tourism activities in natural scenic spots are rich and diverse, including ecological sightseeing, animal and plant observation, nature education and other forms, which are widely favored by tourists. During the tour of natural scenic spots, tourists often encounter various animals and plants. Identifying and understanding these animals and plants can not only increase the fun of tourism, but also expand tourists' understanding of natural things. However, traditional outdoor tourism often relies on tour guides to explain animals and plants. Although this method can provide detailed knowledge of animals and plants, it is difficult to meet the needs of all tourists due to limited tour guide resources and the time and scope of the tour guide's explanation. Therefore, it is particularly important to provide a system that can realize the identification of animals and plants without the tour guide's explanation.

[0003] At present, there is a lack of methods or systems for intelligent identification of plants and animals. Although there are some relevant technical documents, for example, the patent with the authorization publication number CN106776675B discloses a plant identification method and system based on a mobile terminal. The invention realizes the identification of plants by comparing feature data with data in a plant database; however, research and practical application of the above methods and prior arts have found that the above methods and prior arts have at least the following defects:

[0004] (1) Limited by the data volume in the plant database, if the data volume is too small, the recognition accuracy will be low or even impossible to recognize; if the data volume is too large, the recognition speed will be low; the same is true for existing plant and animal recognition models. If the training data volume is too small, the model recognition accuracy will be insufficient; if the training data volume is too large, the model training cycle will be long and difficult to deploy on mobile terminals;

[0005] (2) It is impossible to obtain relevant introductions to the corresponding animals and plants based on the recognition results, so that without the guidance of a tour guide, users cannot learn relevant knowledge about the identified animals and plants in real time. Furthermore, it is difficult to further expand tourists' understanding of natural things and cannot increase the fun of users during the tour. Summary of the invention

[0006] In order to overcome the above-mentioned defects of the prior art, an embodiment of the present invention provides an intelligent plant and animal identification method and system based on big data.

[0007] To achieve the above object, the present invention provides the following technical solutions:

[0008] An intelligent plant and animal identification method based on big data, the method comprising:

[0009] Obtain a panoramic image of the animal or plant to be identified, separate the target subject in the panoramic image, and input the target subject into a pre-trained species detection model in the form of an image for preliminary identification to determine the species type to which the target subject belongs;

[0010] Acquire a unique special feature set of the target subject according to the species type, acquire a reference image set according to the species type, and perform a secondary round of recognition on the target subject according to the unique special feature set and the reference image set to determine the species or subspecies type of the target subject; wherein the reference image set includes S reference images, where S is an integer greater than zero;

[0011] The species or subspecies type of the target subject is input into the pre-built plant and animal knowledge graph to parse out the introduction information of the target subject.

[0012] Furthermore, separating the target subject from the panoramic image includes:

[0013] The panoramic image after grayscale processing is filtered by using a Gaussian filter, and the panoramic image after filtering is enhanced by using a histogram equalization method to obtain an improved panoramic image;

[0014] The K-means clustering algorithm is used to distinguish pixels of the improved panoramic image, and the areas in the form of pixel clusters are taken as candidate areas, and N candidate areas are obtained;

[0015] Calculate the centroid coordinates of each candidate area and the center point coordinates of the panoramic image, and use the center point coordinates as reference coordinates;

[0016] The distance from the centroid coordinates of each candidate region to the reference coordinates is taken as the centroid distance, and Q centroid distances are obtained, where Q is an integer greater than zero;

[0017] Sort the Q centroid distances from small to large, and take the candidate area with the first centroid distance as the best candidate area;

[0018] The pixel area of ​​the best candidate region is obtained. If the pixel area is greater than or equal to a preset pixel area threshold, the best candidate region is taken as the target subject.

[0019] Furthermore, if the pixel area is smaller than a preset pixel area threshold, a preset display content is output for feedback; wherein the preset display content is the words “Please reshoot”.

[0020] Furthermore, the training logic of the pre-trained species detection model is as follows:

[0021] Acquire historical species type training data, and divide the historical species type training data into a species type training set and a species type test set; the historical species type training data includes target subjects in the form of multiple images and their corresponding species type annotation labels;

[0022] Construct a classifier, use the target subject in the form of an image in the species type training set as input data of the classifier, and use the annotation label of the species type in the species type training set as output data of the classifier, train the classifier, and obtain an initial classification network;

[0023] The initial classification network is verified using the species type test set, and the output of the initial classification network that is greater than or equal to the preset test accuracy threshold is used as the species detection model.

[0024] Furthermore, the unique special feature set is obtained based on a preset relationship between the species type and the unique special feature set; the reference image set is obtained based on a mapping relationship between the species type and the reference image set; wherein each reference image in the reference image set is labeled with a corresponding variety or subspecies type.

[0025] Furthermore, the second round of identification of the target subject includes:

[0026] a1: extract the jth reference image in the reference image set, where j is an integer greater than zero;

[0027] a2: Extract the corresponding unique special feature set of the target subject, and extract the feature vector of each feature item in the j-th reference image and the target subject respectively according to the R feature items in the corresponding unique special feature set;

[0028] a3: perform feature comparison on the feature vectors of the same feature item in the j-th reference image and the target subject, calculate the cosine similarity of the feature vectors of each same feature item, and obtain the similarity coefficient; wherein the specific calculation formula of the similarity coefficient is: ; Where: is the similarity coefficient, is the jth reference image The eigenvector of the eigenvalues, For the target subject The eigenvector of the eigenvalues, is the norm, is the total number of feature items;

[0029] a4: Determine whether the similarity coefficient is greater than or equal to a preset similarity coefficient threshold. If so, extract the annotation label corresponding to the j-th reference image and use the annotation label corresponding to the j-th reference image as the species or subspecies type of the target subject; if not, set j=j+1 and return to step a1;

[0030] a5: Repeat the above steps a1 to a4 until j=S, then end the loop and obtain the variety or subspecies type of the target subject.

[0031] Furthermore, the construction process of the plant and animal knowledge graph is as follows:

[0032] Extracting the knowledge data required for constructing the knowledge graph of plants and animals; the knowledge data includes text entities, relationships between text entities, attributes of text entities and attribute values;

[0033] According to the relationship between predefined entities, the text entities are associated and bound to construct a triple containing 〈entity, relationship, entity〉.

[0034] And according to the predefined entity attributes, the text entities are associated and bound to construct a triple containing "entity, attribute, attribute value";

[0035] According to the triplets of 〈entity, relationship, entity〉 and 〈entity, attribute, attribute value〉, text entities and image entities are used as nodes in the knowledge graph, and the relationships and attributes between entities are used as edges between nodes in the graph to obtain the knowledge graph of plants and animals.

[0036] Furthermore, the extraction of knowledge data required for constructing the plant and animal knowledge graph includes:

[0037] b1: Extract text data from the original data of plants and animals, and extract each text segment in the text data;

[0038] b2: performing word segmentation on each text segment in the order of the text segments, removing meaningless words and symbols, and performing part-of-speech tagging on each phrase to obtain a phrase set, wherein the phrase set includes U phrases;

[0039] b3: Extract the noun phrases in the phrase set, input the noun phrases into the preset plant and animal keyword library for traversal, if the traversal result outputs the corresponding keyword, then use the corresponding subject or object as the text entity required by the plant and animal knowledge graph; if the traversal result outputs an empty set, return to step b2 to execute the next text segment;

[0040] b4: Obtain the phrases that have been identified as text entities and the number of phrases L, and remove the phrases that have been identified as text entities from the phrase set to obtain UL phrases, where U is an integer greater than zero;

[0041] b5: According to the relationship between predefined entities, determine whether there is a phrase with a relational part of speech in UL phrases. If so, extract the phrase with the corresponding relational part of speech as the relationship of the text entity; if not, determine whether there is a phrase with an attribute part of speech in UL phrases according to the predefined entity attributes. If so, extract the phrase with the corresponding attribute part of speech as the attribute of the text entity, and, if not, return to step b2 to execute the next text segment;

[0042] b6: Obtain corresponding regular expression rules according to the attributes of the text entity, and extract attribute values ​​in the phrase set that match the attributes of the text entity according to the corresponding regular expression rules.

[0043] An intelligent plant and animal identification system based on big data, comprising:

[0044] The first recognition module is used to obtain a panoramic image of the animal or plant to be identified, separate the target subject in the panoramic image, and input the target subject into a pre-trained species detection model in the form of an image for preliminary recognition to determine the species type to which the target subject belongs;

[0045] The second recognition module is used to obtain a unique special feature set of the target subject according to the species type, obtain a reference image set according to the species type, and perform a secondary round of recognition on the target subject according to the unique special feature set and the reference image set to determine the species or subspecies type of the target subject; wherein the reference image set includes S reference images, and S is an integer greater than zero;

[0046] The information feedback module is used to input the species or subspecies type of the target subject into the pre-built plant and animal knowledge graph to parse out the introduction information of the target subject.

[0047] Compared with the prior art, the present invention has the following beneficial effects:

[0048] The present application discloses a method and system for intelligent plant and animal identification based on big data, including: separating a target subject in a panoramic image, inputting the target subject in the form of an image into a pre-trained species detection model for preliminary identification, so as to determine the species type to which the target subject belongs; obtaining a unique special feature set of the target subject according to the species type, obtaining a reference image set according to the species type, and performing a secondary round of identification on the target subject according to the unique special feature set and the reference image set, so as to determine the variety or subspecies type to which the target subject belongs; inputting the variety or subspecies type of the target subject into a pre-constructed plant and animal knowledge graph, so as to parse out the introduction information of the target subject; based on the above features, the present invention can overcome the shortcomings of the existing plant database comparison method and the single model identification method, and is conducive to quickly and accurately identifying the plant and animal types; in addition, by constructing the plant and animal knowledge graph, the present invention can allow users to understand the relevant knowledge of the identified plants and animals in real time without the explanation of the tour guide, and further, it is conducive to further expanding tourists' cognition of natural things and improving the fun of users during the travel process. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 A flowchart of an intelligent plant and animal identification method based on big data provided by the present invention;

[0050] Figure 2 A schematic diagram of the module structure of an intelligent plant and animal identification system based on big data provided by the present invention. DETAILED DESCRIPTION

[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0052] Example 1: Please refer to Figure 1 As shown, this embodiment discloses a method for intelligent plant and animal identification based on big data, the method comprising:

[0053] S101: Obtain a panoramic image of the animal or plant to be identified, separate the target subject in the panoramic image, and input the target subject into a pre-trained species detection model in the form of an image for preliminary identification to determine the species type to which the target subject belongs;

[0054] It should be noted that the panoramic image of the to-be-identified animal or plant is acquired by a user's smart mobile terminal, and the smart mobile terminal includes but is not limited to a smart phone, a tablet computer or a smart watch;

[0055] In implementation, separating the target subject in the panoramic image includes:

[0056] The panoramic image after grayscale processing is filtered by using a Gaussian filter, and the panoramic image after filtering is enhanced by using a histogram equalization method to obtain an improved panoramic image;

[0057] The K-means clustering algorithm is used to distinguish pixels of the improved panoramic image, and the areas in the form of pixel clusters are taken as candidate areas, and N candidate areas are obtained;

[0058] Calculate the centroid coordinates of each candidate area and the center point coordinates of the panoramic image, and use the center point coordinates as reference coordinates;

[0059] The distance from the centroid coordinates of each candidate region to the reference coordinates is taken as the centroid distance, and Q centroid distances are obtained, where Q is an integer greater than zero;

[0060] It should be noted that the calculation formula for the centroid coordinates of the candidate area is: ; Where: is the centroid coordinate of the candidate region, is the coordinate of each pixel in the candidate area, is the total number of pixels in the candidate area; and the calculation formula for the center point coordinates of the panoramic image is: ; Where: are the coordinates of the center point of the panoramic image, W and H are the width and height of the panoramic image respectively; wherein the centroid distance is calculated by the Euclidean distance formula;

[0061] Sort the Q centroid distances from small to large, and take the candidate area with the first centroid distance as the best candidate area;

[0062] Obtain the pixel area of ​​the best candidate area, and if the pixel area is greater than or equal to a preset pixel area threshold, take the best candidate area as the target subject;

[0063] In a specific implementation, if the pixel area is smaller than a preset pixel area threshold, a preset display content is output for feedback; wherein the preset display content is the words “please reshoot”;

[0064] It should be noted that: when the pixel area is less than the preset pixel area threshold, it means that the target subject occupies too small a proportion of the panoramic image, and the target subject with too small a proportion will result in insufficient or missing image detail features, affecting subsequent recognition; therefore, the user is reminded that the collected image is unqualified and is requested to re-collect the panoramic image of the animal or plant to be identified;

[0065] Specifically, the training logic of the pre-trained species detection model is as follows:

[0066] Acquire historical species type training data, and divide the historical species type training data into a species type training set and a species type test set; the historical species type training data includes target subjects in the form of multiple images and their corresponding species type annotation labels;

[0067] It should be noted that the target subjects in the image form in the historical species type training data are obtained by separating the panoramic images of animals and plants. For details, please refer to the above-mentioned related descriptions and will not be repeated here. The species type annotation labels are formed by manual annotation by technicians or AI data annotators. The number and category of the species type are determined according to the contents recorded in the "List of Chinese Biological Species".

[0068] It should be understood that the classification levels of action plants include kingdom, phylum, class, order, family, genus and species. The genus and species type specifically refers to genus and species. For example, tigers belong to kingdom Animalia, phylum Chordata, class Mammalia, order Carnivora, family Felidae, genus Panthera, species Panthera, therefore, the genus and species type of tigers is species Panthera; it should also be understood that under the species level, there are also subspecies and varieties. Varieties are a classification level commonly used for cultivated plants and domestic animals. For example, there are multiple varieties of peony, including black panther and rouge button. Subspecies are natural populations of the same species that have significant morphological, genetic or behavioral differences due to geographical isolation or other factors. For example, there are multiple subspecies of species Panthera, including Bengal tigers and Siberian tigers. Therefore, it can be understood that subspecies and variety types specifically define the specific species attributes of plants and animals, allowing us to more clearly understand and distinguish the differences between species.

[0069] Construct a classifier, use the target subject in the form of an image in the species type training set as input data of the classifier, and use the annotation label of the species type in the species type training set as output data of the classifier, train the classifier, and obtain an initial classification network;

[0070] The initial classification network is verified using the species type test set, and the initial classification network with a test accuracy greater than or equal to the preset test accuracy threshold is output as the species detection model;

[0071] It should be noted that: the classifier is specifically one of the classification algorithm models such as convolutional neural network (CNN) or recurrent neural network (RNN).

[0072] S102: acquiring a unique special feature set of the target subject according to the species type, acquiring a reference image set according to the species type, and performing a secondary round of recognition on the target subject according to the unique special feature set and the reference image set to determine the variety or subspecies type of the target subject; wherein the reference image set includes S reference images, where S is an integer greater than zero;

[0073] The unique special feature set includes R feature items, such as color, texture, size and shape, etc., and R is an integer greater than zero;

[0074] Specifically, the unique special feature set is obtained according to the preset relationship between the species type and the unique special feature set; the reference image set is obtained according to the mapping relationship between the species type and the reference image set; wherein each reference image in the reference image set is annotated with the corresponding variety or subspecies type, which is specifically formed by manual annotation in advance by a technician;

[0075] It should be noted that: a number of preset relationships between species types and unique special feature sets are pre-stored in the system database, and in each preset relationship, there is a species type and a unique special feature set associated and bound thereto; the preset relationship is manually associated and bound by a technician in advance, and the type and number of feature items in the unique special feature set are also manually set by the technician in advance;

[0076] It should also be noted that: the system database also pre-stores a number of mapping relationships between species types and reference image sets, and in each mapping relationship, there is a species type and a reference image set associated and bound thereto; the mapping relationship is manually associated and bound by a technician in advance, and the reference image set is also manually collected and formed by a technician in advance;

[0077] Exemplarily, it is assumed that the species type of the determined target subject is a tiger, and the unique special feature set of the tiger includes three feature items of color, texture and body shape, and the reference image set of the tiger includes 6 images of Bengal tigers, Siberian tigers, Indochinese tigers, Sumatran tigers, Malayan tigers and South China tigers; therefore, the unique special feature set including the three feature items of color, texture and body shape is used as the associated binding object of the species type tiger, and the reference image set including the Bengal tiger image, Siberian tiger image, Indochinese tiger image, Sumatran tiger image, Malayan tiger image and South China tiger image is used as the associated binding object of the species type tiger;

[0078] In implementation, the second round of identification of the target subject includes:

[0079] a1: extract the jth reference image in the reference image set, where j is an integer greater than zero;

[0080] a2: Extract the corresponding unique special feature set of the target subject, and extract the feature vector of each feature item in the j-th reference image and the target subject respectively according to the R feature items in the corresponding unique special feature set;

[0081] It should be noted that the feature vector of each feature item in the j-th reference image and the target body is obtained by processing through a convolutional neural network feature extractor or image feature processing, for example, the feature vector of texture features can be extracted by a texture analysis method (such as local binary pattern (LBP)), the feature vector of color can be extracted by color space conversion (such as HSV or Lab), and the feature vector of body shape can be obtained by using an edge detection algorithm (such as Canny edge detection) to obtain the contour, and by calculating the area, perimeter and bounding box of the contour;

[0082] a3: perform feature comparison on the feature vectors of the same feature item in the j-th reference image and the target subject, calculate the cosine similarity of the feature vectors of each same feature item, and obtain the similarity coefficient; wherein the specific calculation formula of the similarity coefficient is: ; Where: is the similarity coefficient, is the jth reference image The eigenvector of the eigenvalues, For the target subject The eigenvector of the eigenvalues, is the norm, is the total number of feature items;

[0083] a4: Determine whether the similarity coefficient is greater than or equal to a preset similarity coefficient threshold. If so, extract the annotation label corresponding to the j-th reference image and use the annotation label corresponding to the j-th reference image as the species or subspecies type of the target subject; if not, set j=j+1 and return to step a1;

[0084] a5: Repeat the above steps a1 to a4 until j=S, then end the loop and obtain the species or subspecies type of the target subject;

[0085] Exemplarily, following the above assumptions, if the species type of the target subject is a tiger, and the unique special feature set of the tiger includes three feature items of color, texture and body shape, and the reference image set of the tiger includes 6 images of Bengal tigers, Siberian tigers, Indochinese tigers, Sumatran tigers, Malayan tigers and South Chinese tigers; it is further assumed that the target subject is specifically an image of a South Chinese tiger, and it is also assumed that after comparing the target subject and the reference image of the South Chinese tiger image based on the three feature items of color, texture and body shape and calculating the similarity coefficient, it is found that the similarity coefficient between the target subject and the reference image of the South Chinese tiger image is greater than the preset similarity coefficient threshold, then it is determined that the reference image is a South Chinese tiger image that matches the target subject, and therefore, the annotation label of the South Chinese tiger image (i.e., "South Chinese tiger") is extracted as the species or subspecies type of the target subject.

[0086] S103: Input the species or subspecies type of the target subject into the pre-built plant and animal knowledge graph to parse out the introduction information of the target subject;

[0087] It should be noted that the introduction information is the corresponding text introduction of the corresponding target subject in the animal and plant knowledge graph, and the text introduction includes the corresponding target subject's species type, variety or subspecies type, growth environment, growth habits, origin, color or body shape and other relevant information;

[0088] Specifically, the construction process of the plant and animal knowledge graph is as follows:

[0089] Extracting the knowledge data required for constructing the knowledge graph of plants and animals; the knowledge data includes text entities, relationships between text entities, attributes of text entities and attribute values;

[0090] The extraction of knowledge data required for constructing the plant and animal knowledge graph includes:

[0091] b1: Extract text data from the original data of plants and animals, and extract each text segment in the text data;

[0092] It should be noted that the original data of animals and plants are collected in advance by technical personnel, or obtained by crawling or downloading relevant animal and plant data on the Internet;

[0093] b2: performing word segmentation on each text segment in the order of the text segments, removing meaningless words and symbols, and performing part-of-speech tagging on each phrase to obtain a phrase set, wherein the phrase set includes U phrases;

[0094] It should be noted that: the word segmentation of each text segment is implemented by existing word segmentation rules or existing word segmentation tools (such as Jieba word segmentation), and the part-of-speech tagging of each phrase also relies on existing word segmentation tools; the meaningless words include but are not limited to repeated words, stop words, onomatopeia and onomatopoeia, etc.;

[0095] b3: Extract the noun phrases in the phrase set, input the noun phrases into the preset plant and animal keyword library for traversal, if the traversal result outputs the corresponding keyword, then use the corresponding subject or object as the text entity required by the plant and animal knowledge graph; if the traversal result outputs an empty set, return to step b2 to execute the next text segment;

[0096] It should be noted that the preset plant and animal keyword library is manually entered and constructed by technicians in advance, and the plant and animal keyword library contains several plant and animal keywords, such as "pine tree", "peony" and "tiger", etc.;

[0097] b4: Obtain the phrases that have been identified as text entities and the number of phrases L, and remove the phrases that have been identified as text entities from the phrase set to obtain UL phrases, where U is an integer greater than zero;

[0098] b5: According to the relationship between predefined entities, determine whether there is a phrase with a relational part of speech in UL phrases. If so, extract the phrase with the corresponding relational part of speech as the relationship of the text entity; if not, determine whether there is a phrase with an attribute part of speech in UL phrases according to the predefined entity attributes. If so, extract the phrase with the corresponding attribute part of speech as the attribute of the text entity, and, if not, return to step b2 to execute the next text segment;

[0099] It should be noted that: the relationship between the predefined entities and the predefined entity attributes are manually set in advance by the technicians, and the relationship between the predefined entities includes but is not limited to taxonomic relationships (such as: "belongs to", "scientific name", "is", "commonly found in" and "includes", etc.), ecological relationships (such as: "predator" and "preyed upon", etc.), geographical distribution relationships (such as: "distributed in" and "originating in", etc.) and evolutionary relationships (such as: "evolved from" and "evolved into", etc.); the predefined entity attributes include but are not limited to physical characteristic attributes (such as "height", "color" and "diameter", etc.), physiological characteristics (such as "growing period", "flowering period" and "fruiting period", etc.) and growth habit attributes (such as "growth rate", etc.);

[0100] b6: Obtain corresponding regular expression rules according to the attributes of the text entity, and extract attribute values ​​matching the attributes of the text entity in the phrase set according to the corresponding regular expression rules;

[0101] It should be noted that regular expression (regex or regexp for short) is a powerful tool for matching text patterns. The regular expression rules are implemented by technicians who manually define regular expression patterns. For example, the height extraction pattern is defined as "height up to (\d+meters)", where "height up to" is a fixed string set by humans to match, and "(\d+meters)" will match one or more numbers followed by "meters" and capture them as a group;

[0102] For example, suppose there is a text segment "Pine (scientific name: Pinus) belongs to the Pinaceae family, is an evergreen coniferous tree, can reach a height of 10 meters, and is commonly found in mountains and forests". After the text segmentation is performed on the text segment, the result is "Pine / scientific name / Pinus / belongs to / Pinaceae / is / an / evergreen / coniferous / tree / can / reach / 10 meters / commonly / in / mountains / and / forests / ". Among them, the noun phrases "pine", "Pinus", "coniferous tree", "mountain" and "forest" belong to the preset animal and plant keyword library, so Therefore, "pine", "Pinus", "conifer", "mountain" and "forest" are taken as text entities; and the relationship between predefined entities includes "scientific name", "is" and "commonly found", so "scientific name", "is" and "commonly found" are taken as the relationship of text entities; and the predefined entity attributes include "height", so "height" is taken as the attribute of the text entity. At the same time, according to the corresponding regular expression rule, "10 meters" matches the attribute "height" of the text entity, so "10 meters" is taken as the attribute value;

[0103] According to the relationship between predefined entities, the text entities are associated and bound to construct a triple containing 〈entity, relationship, entity〉.

[0104] And according to the predefined entity attributes, the text entities are associated and bound to construct a triple containing "entity, attribute, attribute value";

[0105] According to the triples of 〈entity, relationship, entity〉 and 〈entity, attribute, attribute value〉, text entities and image entities are used as nodes in the knowledge graph, and the relationships and attributes between entities are used as edges between nodes in the graph to obtain the knowledge graph of plants and animals;

[0106] By separating the target subject in the panoramic image of the animal or plant to be identified, and identifying the genus type and variety or subspecies type of the target subject, the present invention can overcome the problems of difficult training, low recognition speed and low recognition accuracy of existing general animal and plant models; further, by constructing an animal and plant knowledge graph, and matching the corresponding animal and plant knowledge graph according to the variety or subspecies type, the present invention can introduce relevant information of the identified animals and plants, which is beneficial to help users understand the relevant knowledge of the identified animals and plants in real time without the explanation of the tour guide, which is beneficial to further expand tourists' understanding of natural things and increase the interest of tourism.

[0107] Example 2: Please refer to Figure 2 As shown, based on the same inventive concept, this embodiment discloses a smart plant and animal identification system based on big data. For details not provided in this embodiment, please refer to the description of the relevant parts in Embodiment 1. The system includes:

[0108] The first recognition module 210 is used to obtain a panoramic image of the animal or plant to be identified, separate the target subject in the panoramic image, and input the target subject into a pre-trained species detection model in the form of an image for preliminary recognition to determine the species type to which the target subject belongs;

[0109] The second recognition module 220 is used to obtain a unique special feature set of the target subject according to the species type, obtain a reference image set according to the species type, and perform a secondary round of recognition on the target subject according to the unique special feature set and the reference image set to determine the species or subspecies type of the target subject; wherein the reference image set includes S reference images, where S is an integer greater than zero;

[0110] The information feedback module 230 is used to input the species or subspecies type of the target subject into the pre-constructed plant and animal knowledge graph to parse out the introduction information of the target subject.

[0111] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters, weights and thresholds in the formula are set by technicians in this field according to actual conditions.

[0112] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented by software, the above embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention 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 device. 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 one website, computer, server or data center to another website, computer, server or data center via a wired network or a wireless network. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media sets. 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. The semiconductor medium may be a solid-state hard disk.

[0113] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0114] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0115] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only one, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0116] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0117] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0118] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

[0119] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An intelligent plant and animal identification method based on big data, characterized in that: The method comprises: Obtain a panoramic image of the animal or plant to be identified, separate the target subject in the panoramic image, and input the target subject into a pre-trained species detection model in the form of an image for preliminary identification to determine the species type to which the target subject belongs; Wherein, separating the target subject in the panoramic image includes: The panoramic image after grayscale processing is filtered by using a Gaussian filter, and the panoramic image after filtering is enhanced by using a histogram equalization method to obtain an improved panoramic image; The K-means clustering algorithm is used to distinguish pixels of the improved panoramic image, and the areas in the form of pixel clusters are taken as candidate areas, and N candidate areas are obtained; Calculate the centroid coordinates of each candidate area and the center point coordinates of the panoramic image, and use the center point coordinates as reference coordinates; The distance from the centroid coordinates of each candidate region to the reference coordinates is taken as the centroid distance, and Q centroid distances are obtained, where Q is an integer greater than zero; Sort the Q centroid distances from small to large, and take the candidate area with the first centroid distance as the best candidate area; Obtain the pixel area of ​​the best candidate area, and if the pixel area is greater than or equal to a preset pixel area threshold, take the best candidate area as the target subject; Acquire a unique special feature set of the target subject according to the species type, acquire a reference image set according to the species type, and perform a secondary round of recognition on the target subject according to the unique special feature set and the reference image set to determine the species or subspecies type of the target subject; wherein the reference image set includes S reference images, where S is an integer greater than zero; The second round of identification of the target subject includes: a1: extract the jth reference image in the reference image set, where j is an integer greater than zero; a2: Extract the corresponding unique special feature set of the target subject, and extract the feature vector of each feature item in the j-th reference image and the target subject respectively according to the R feature items in the corresponding unique special feature set; a3: perform feature comparison on the feature vectors of the same feature item in the j-th reference image and the target subject, calculate the cosine similarity of the feature vectors of each same feature item, and obtain the similarity coefficient; wherein the specific calculation formula of the similarity coefficient is: ; Where: is the similarity coefficient, is the jth reference image The eigenvector of the eigenvalues, For the target subject The eigenvector of the eigenvalues, is the norm, is the total number of feature items; a4: Determine whether the similarity coefficient is greater than or equal to a preset similarity coefficient threshold. If so, extract the annotation label corresponding to the j-th reference image and use the annotation label corresponding to the j-th reference image as the species or subspecies type of the target subject; if not, set j=j+1 and return to step a1; a5: Repeat the above steps a1 to a4 until j=S, then end the loop and obtain the species or subspecies type of the target subject; Input the species or subspecies of the target subject into the pre-built plant and animal knowledge graph to parse out the introduction information of the target subject; The plant and animal knowledge graph is constructed after extracting the required knowledge data; the knowledge data includes text entities, relationships between text entities, attributes of text entities and attribute values; The knowledge data required for extraction includes: b1: Extract text data from the original data of plants and animals, and extract each text segment in the text data; b2: performing word segmentation on each text segment in the order of the text segments, removing meaningless words and symbols, and performing part-of-speech tagging on each phrase to obtain a phrase set, wherein the phrase set includes U phrases; b3: Extract the noun phrases in the phrase set, input the noun phrases into the preset plant and animal keyword library for traversal, if the traversal result outputs the corresponding keyword, then use the corresponding subject or object as the text entity required by the plant and animal knowledge graph; if the traversal result outputs an empty set, return to step b2 to execute the next text segment; b4: Obtain the phrases that have been identified as text entities and the number of phrases L, and remove the phrases that have been identified as text entities from the phrase set to obtain UL phrases, where U is an integer greater than zero; b5: According to the relationship between predefined entities, determine whether there is a phrase with a relational part of speech in UL phrases. If so, extract the phrase with the corresponding relational part of speech as the relationship of the text entity; if not, determine whether there is a phrase with an attribute part of speech in UL phrases according to the predefined entity attributes. If so, extract the phrase with the corresponding attribute part of speech as the attribute of the text entity, and, if not, return to step b2 to execute the next text segment; b6: Obtain corresponding regular expression rules according to the attributes of the text entity, and extract attribute values ​​in the phrase set that match the attributes of the text entity according to the corresponding regular expression rules.

2. The intelligent plant and animal identification method based on big data according to claim 1 is characterized in that: If the pixel area is smaller than the preset pixel area threshold, the preset display content is output as feedback; wherein the preset display content is the words "Please reshoot".

3. The intelligent plant and animal identification method based on big data according to claim 2 is characterized in that: The training logic of the pre-trained species detection model is as follows: Acquire historical species type training data, and divide the historical species type training data into a species type training set and a species type test set; the historical species type training data includes target subjects in the form of multiple images and their corresponding species type annotation labels; Construct a classifier, use the target subject in the form of an image in the species type training set as input data of the classifier, and use the annotation label of the species type in the species type training set as output data of the classifier, train the classifier, and obtain an initial classification network; The initial classification network is verified using the species type test set, and the output of the initial classification network that is greater than or equal to the preset test accuracy threshold is used as the species detection model.

4. The intelligent plant and animal identification method based on big data according to claim 3 is characterized in that: The unique special feature set is obtained based on the preset relationship between the species type and the unique special feature set; the reference image set is obtained based on the mapping relationship between the species type and the reference image set; wherein each reference image in the reference image set is marked with the corresponding variety or subspecies type.

5. The intelligent plant and animal identification method based on big data according to claim 4 is characterized in that: The construction process of the plant and animal knowledge graph is as follows: According to the relationship between predefined entities, the text entities are associated and bound to construct a triple containing 〈entity, relationship, entity〉. And according to the predefined entity attributes, the text entities are associated and bound to construct a triple containing "entity, attribute, attribute value"; According to the triplets of 〈entity, relationship, entity〉 and 〈entity, attribute, attribute value〉, text entities and image entities are used as nodes in the knowledge graph, and the relationships and attributes between entities are used as edges between nodes in the graph to obtain the knowledge graph of plants and animals.

6. An intelligent plant and animal identification system based on big data, characterized in that: include: The first recognition module is used to obtain a panoramic image of the animal or plant to be identified, separate the target subject in the panoramic image, and input the target subject into a pre-trained species detection model in the form of an image for preliminary recognition to determine the species type to which the target subject belongs; Wherein, separating the target subject in the panoramic image includes: The panoramic image after grayscale processing is filtered by using a Gaussian filter, and the panoramic image after filtering is enhanced by using a histogram equalization method to obtain an improved panoramic image; The K-means clustering algorithm is used to distinguish pixels of the improved panoramic image, and the areas in the form of pixel clusters are taken as candidate areas, and N candidate areas are obtained; Calculate the centroid coordinates of each candidate area and the center point coordinates of the panoramic image, and use the center point coordinates as reference coordinates; The distance from the centroid coordinates of each candidate region to the reference coordinates is taken as the centroid distance, and Q centroid distances are obtained, where Q is an integer greater than zero; Sort the Q centroid distances from small to large, and take the candidate area with the first centroid distance as the best candidate area; Obtain the pixel area of ​​the best candidate area, and if the pixel area is greater than or equal to a preset pixel area threshold, take the best candidate area as the target subject; The second recognition module is used to obtain a unique special feature set of the target subject according to the species type, obtain a reference image set according to the species type, and perform a secondary round of recognition on the target subject according to the unique special feature set and the reference image set to determine the species or subspecies type of the target subject; wherein the reference image set includes S reference images, and S is an integer greater than zero; The second round of identification of the target subject includes: a1: extract the jth reference image in the reference image set, where j is an integer greater than zero; a2: Extract the corresponding unique special feature set of the target subject, and extract the feature vector of each feature item in the j-th reference image and the target subject respectively according to the R feature items in the corresponding unique special feature set; a3: perform feature comparison on the feature vectors of the same feature item in the j-th reference image and the target subject, calculate the cosine similarity of the feature vectors of each same feature item, and obtain the similarity coefficient; wherein the specific calculation formula of the similarity coefficient is: ; Where: is the similarity coefficient, is the jth reference image The eigenvector of the eigenvalues, For the target subject The eigenvector of the eigenvalues, is the norm, is the total number of feature items; a4: Determine whether the similarity coefficient is greater than or equal to a preset similarity coefficient threshold. If so, extract the annotation label corresponding to the j-th reference image and use the annotation label corresponding to the j-th reference image as the species or subspecies type of the target subject; if not, set j=j+1 and return to step a1; a5: Repeat the above steps a1 to a4 until j=S, then end the loop and obtain the species or subspecies type of the target subject; The information feedback module is used to input the species or subspecies type of the target subject into the pre-built plant and animal knowledge graph to parse out the introduction information of the target subject; The plant and animal knowledge graph is constructed after extracting the required knowledge data; the knowledge data includes text entities, relationships between text entities, attributes of text entities and attribute values; The knowledge data required for extraction includes: b1: Extract text data from the original data of plants and animals, and extract each text segment in the text data; b2: performing word segmentation on each text segment in the order of the text segments, removing meaningless words and symbols, and performing part-of-speech tagging on each phrase to obtain a phrase set, wherein the phrase set includes U phrases; b3: Extract the noun phrases in the phrase set, input the noun phrases into the preset plant and animal keyword library for traversal, if the traversal result outputs the corresponding keyword, then use the corresponding subject or object as the text entity required by the plant and animal knowledge graph; if the traversal result outputs an empty set, return to step b2 to execute the next text segment; b4: Obtain the phrases that have been identified as text entities and the number of phrases L, and remove the phrases that have been identified as text entities from the phrase set to obtain UL phrases, where U is an integer greater than zero; b5: According to the relationship between predefined entities, determine whether there is a phrase with a relational part of speech in UL phrases. If so, extract the phrase with the corresponding relational part of speech as the relationship of the text entity; if not, determine whether there is a phrase with an attribute part of speech in UL phrases according to the predefined entity attributes. If so, extract the phrase with the corresponding attribute part of speech as the attribute of the text entity, and, if not, return to step b2 to execute the next text segment; b6: Obtain corresponding regular expression rules according to the attributes of the text entity, and extract attribute values ​​in the phrase set that match the attributes of the text entity according to the corresponding regular expression rules.