New animal and plant variety recommendation method and device

By matching new varieties with historical varieties and building a user variety recommendation model, the cold start problem in the recommendation of new animal and plant varieties is solved, the personalization and accuracy of recommendations are improved, and effective recommendations for new varieties are achieved.

CN118656484AActive Publication Date: 2024-09-17BEIJING RES CENT FOR INFORMATION TECH & AGRI
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410728881.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-09-17
Estimated Expiration
2044-06-06

AI Technical Summary

Technical Problem

The existing technology cannot effectively recommend new varieties of animals and plants, and there is a cold start problem, making it difficult to find accurate and credible information in massive data.

Method used

By matching new varieties with historical varieties in the variety library, using the Siamese BERT network and the two-way maximum matching algorithm to determine the similarity, combined with user data and variety characteristics, a user variety recommendation model is built to recommend new varieties to target users.

Benefits of technology

It solves the cold start problem, improves the personalization and accuracy of product recommendation, reduces the recommendation search space, and provides a more personalized and accurate recommendation service.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656484A
    Figure CN118656484A
Patent Text Reader

Abstract

The invention provides a new animal and plant variety recommendation method and device, and belongs to the technical field of agriculture, and the method comprises the steps: matching a new variety with all historical varieties in a variety library, and obtaining a plurality of historical varieties similar to the new variety; based on the plurality of historical varieties, a plurality of target users are determined, and the target users are users matched with the plurality of historical varieties; and recommending the new variety to the plurality of target users. According to the animal and plant new variety recommendation method and device, the new variety is matched with the historical variety, the historical variety similar to the new variety is obtained, the potential recommendation range can be accurately determined, only the user matched with the similar historical variety needs to be searched in the subsequent step, the search space of recommendation is reduced, and the recommendation efficiency is improved. And historical preferences and interests of the user are considered, so that the cold start problem is solved, and the individuation degree and accuracy of variety recommendation are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of agricultural technology, and in particular to a method and device for recommending new animal and plant varieties. Background Art

[0002] With the development of science and technology and the transformation of agricultural production methods, agricultural information has shown a rapid growth trend. The research and development, promotion of new variety resources and the updating of related technologies have generated a large amount of information. This information involves planting, breeding, disease prevention and control, breeding technology and other aspects, which are of great significance to farmers and people engaged in agricultural production. Although the amount of information is huge, the effective information is often buried in the massive data. Farmers and agricultural practitioners often face problems such as difficulty in information retrieval, information dispersion, and difficulty in ensuring the authenticity of information when obtaining the required information, which makes it difficult for them to find accurate and reliable information. Animal and plant variety resources are the basis of agricultural production, and they play an important role in improving the yield and quality of agricultural products and promoting the sustainable development of agriculture. Therefore, timely understanding and promoting the application of new animal and plant variety resources is of great significance to improving agricultural benefits.

[0003] At present, agricultural product recommendations are usually based on the user's historical behavior data to recommend existing agricultural products to users. Although this method can recommend agricultural products to users, it cannot recommend new varieties and has a cold start problem.

[0004] Therefore, how to recommend new species of animals and plants has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] The present invention provides a method and device for recommending new animal and plant varieties, which are used to solve the defect that new animal and plant varieties cannot be recommended in the prior art.

[0006] In a first aspect, the present invention provides a method for recommending new animal and plant varieties, comprising: Matching the new variety with all historical varieties in the variety library to obtain multiple historical varieties similar to the new variety; determining multiple target users based on the multiple historical varieties, wherein the target users are users matching the multiple historical varieties; The new category is recommended to the multiple target users.

[0007] According to the method for recommending new animal and plant varieties provided by the present invention, the new variety is matched with all historical varieties in the variety library to obtain multiple historical varieties similar to the new variety, including: Preprocessing the resource data of the new variety to obtain a text sequence of the new variety, wherein the resource data includes text data representing attributes of the new variety; Inputting the text sequence of the new variety and the text sequence of any historical variety in the variety library into a text similarity measurement model to obtain the similarity output by the text similarity measurement model; Based on the similarity between each historical variety in the variety library and the new variety, a plurality of historical varieties similar to the new variety are determined.

[0008] According to a method for recommending new varieties of plants and animals provided by the present invention, the text similarity measurement model determines the similarity between the new variety and the historical variety based on the following steps: Using a first BERT network to vectorize the text sequence of the new category to obtain a first feature vector; After performing entity recognition on the text sequence of the new product using a bidirectional maximum matching algorithm, the entity recognition result is vectorized to obtain a first dictionary feature vector; The first feature vector and the first dictionary feature vector are merged to obtain a variety feature vector of the new variety; a second BERT network is used to vectorize the text sequence of the historical variety to obtain a second vector; After using a bidirectional maximum matching algorithm to perform entity recognition on the text sequence of the historical variety, the entity recognition result is vectorized to obtain a second dictionary feature vector; The second feature vector and the second dictionary feature vector are merged to obtain a variety feature vector of the historical variety; based on the variety feature vector of the new variety and the variety feature vector of the historical variety, the similarity between the new variety and the historical variety is determined.

[0009] According to a method for recommending new animal and plant varieties provided by the present invention, the method of determining multiple target users based on the multiple historical varieties includes: Inputting user data of multiple users and resource data of the multiple historical varieties into a user variety recommendation model to obtain multiple predicted scores output by the user variety recommendation model, wherein any one of the multiple predicted scores is a predicted value of a user's score for any one of the multiple historical varieties; Based on the multiple predicted scores, multiple target users are determined.

[0010] According to a method for recommending new animal and plant varieties provided by the present invention, the user variety recommendation model determines the prediction score based on the following steps: Extract features from the user data of a user to obtain user features; Extracting features from resource data of the new variety to obtain variety features; Based on the user characteristics and the variety characteristics, a predicted score of the user for the new variety is determined.

[0011] According to a method for recommending new animal and plant varieties provided by the present invention, determining the user's predicted score for the new variety based on the user characteristics and the variety characteristics includes: Calculating the attention weights between the user features and the product features to obtain an attention weight matrix; Based on the attention weight matrix, weighted aggregation processing is performed on the user features and the product features to obtain weighted features; The weighted features are input into a fully connected layer network to obtain a predicted score output by the fully connected layer network.

[0012] In a second aspect, the present invention further provides a device for recommending new varieties of animals and plants, comprising: A variety matching module is used to match a new variety with all historical varieties in the variety library to obtain multiple historical varieties similar to the new variety; A user matching module is used to: determine a plurality of target users based on the plurality of historical categories, wherein the target users are users matching the plurality of historical categories; The variety recommendation module is used to recommend the new variety to the multiple target users.

[0013] In a third aspect, the present invention provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-mentioned methods for recommending new plant and animal varieties are implemented.

[0014] In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above-described methods for recommending new animal and plant varieties.

[0015] In a fifth aspect, the present invention further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of any of the above-mentioned methods for recommending new animal and plant varieties.

[0016] The method and device for recommending new varieties of plants and animals provided by the present invention match the new variety with all historical varieties in the variety library to obtain multiple historical varieties similar to the new variety; based on the multiple historical varieties, multiple target users are determined, and the target users are users matching the multiple historical varieties; and the new variety is recommended to the multiple target users. By matching the new variety with the historical varieties to obtain historical varieties similar to the new variety, the potential recommendation range can be accurately determined. In the subsequent steps, only users matching similar historical varieties need to be searched, which reduces the search space for recommendations, takes into account the user's historical preferences and interests, solves the cold start problem, and improves the personalization and accuracy of variety recommendations. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 This is one of the flow charts of the method for recommending new animal and plant varieties provided by the present invention.

[0019] Figure 2 This is the second flow chart of the method for recommending new animal and plant varieties provided by the present invention.

[0020] Figure 3 This is the third flow chart of the method for recommending new animal and plant varieties provided by the present invention.

[0021] Figure 4 It is a structural schematic diagram of the text similarity measurement model provided by the present invention.

[0022] Figure 5 It is a structural schematic diagram of the user variety recommendation model provided by the present invention.

[0023] Figure 6 It is a structural schematic diagram of the device for recommending new varieties of animals and plants provided by the present invention.

[0024] Figure 7 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.

[0026] It should be noted that in the description of the embodiments of the present invention, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "include one..." do not exclude the existence of other identical elements in the process, method, article or device including the elements. The orientation or position relationship indicated by the terms "upper", "lower" and the like is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. Unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be a connection between two elements. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0027] The terms "first", "second", etc. in the present invention are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present invention can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" means at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0028] Combine the following Figure 1-Figure 7 The present invention describes a method and device for recommending new varieties of plants and animals provided by an embodiment of the present invention.

[0029] Figure 1 is a schematic flow chart of the method for recommending new animal and plant varieties provided by the present invention, such as Figure 1As shown, it includes but is not limited to the following steps: S110, matching the new variety with all historical varieties in the variety library to obtain multiple historical varieties similar to the new variety; S120, determining multiple target users based on the multiple historical varieties, where the target users are users matching the multiple historical varieties; S130, recommending the new variety to the multiple target users.

[0030] It should be noted that the execution subject of the method for recommending new animal and plant varieties provided in the embodiments of the present invention can be a server or a computer device, such as a mobile phone, a tablet computer, a laptop computer, a handheld computer, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc.

[0031] It should be understood that the method for recommending new animal and plant varieties provided by the present invention can be applied to the recommendation of new animal varieties and can also be applied to the recommendation of new plant varieties. That is to say, the method for recommending new animal and plant varieties provided by the present invention can be applied to the variety recommendation in agriculture, forestry, animal husbandry, and fishery.

[0032] In S110, the variety library stores all existing animal and / or plant varieties and their related resource data, which can include information such as the names, classifications, and characteristic descriptions of animals and plants. The method used for matching the new variety with the historical varieties is not limited here.

[0033] In S120, the target users, that is, the users interested in the multiple historical varieties, can be users interested in any one of the multiple historical varieties or users interested in at least n historical varieties, where n is a positive integer and 1 < n ≤ the number of multiple historical varieties, and can be specifically set according to actual usage requirements.

[0034] Optionally, based on the user's historical behavior data, it is determined whether the user is interested in a historical variety. For example, based on the user's historical behavior data, the scores of the user for each historical variety can be determined, and then the historical varieties that the user is interested in can be determined.

[0035] The method and device for recommending new varieties of plants and animals provided in the embodiments of the present invention match the new variety with all historical varieties in the variety library to obtain multiple historical varieties similar to the new variety; based on the multiple historical varieties, multiple target users are determined, and the target users are users matching the multiple historical varieties; and the new variety is recommended to the multiple target users. By matching the new variety with the historical varieties to obtain historical varieties similar to the new variety, the potential recommendation range can be accurately determined. In the subsequent steps, only users matching similar historical varieties need to be searched, which reduces the search space for recommendations, takes into account the user's historical preferences and interests, solves the cold start problem, and improves the personalization and accuracy of variety recommendations.

[0036] In an optional embodiment, the new variety is matched with all historical varieties in the variety library to obtain multiple historical varieties similar to the new variety, including: Preprocessing the resource data of the new variety to obtain a text sequence of the new variety, wherein the resource data includes text data representing attributes of the new variety; Inputting the text sequence of the new variety and the text sequence of any historical variety in the variety library into a text similarity measurement model to obtain the similarity output by the text similarity measurement model; Based on the similarity between each historical variety in the variety library and the new variety, a plurality of historical varieties similar to the new variety are determined.

[0037] Here, the resource data of the new variety includes text data representing the attributes of the new variety, for example, text information such as description, label, and attributes of the new variety.

[0038] Before preprocessing the resource data of new varieties, it also includes: cleaning the data, removing duplicate data, and unifying the format.

[0039] The resource data is preprocessed, which may include word segmentation, stop word removal, stem extraction, etc., to form a tokenized text sequence, which contains special tokens such as CLS (special word element indicating the beginning of the sequence) and SEP (special word element indicating sequence segmentation).

[0040] Here, the text similarity measurement model is a model used to measure the similarity between two text sequences, and the specific type of model used is not limited.

[0041] In the embodiment of the present invention, the method used to determine multiple historical varieties similar to the new variety based on similarity is not limited. For example, historical varieties with the top few similarities may be selected, or historical varieties with similarities greater than a preset threshold may be selected.

[0042] Furthermore, the text similarity measurement model determines the similarity between the new variety and the historical variety based on the following steps: Using a first BERT network to vectorize the text sequence of the new category to obtain a first feature vector; After performing entity recognition on the text sequence of the new product using a bidirectional maximum matching algorithm, the entity recognition result is vectorized to obtain a first dictionary feature vector; The first feature vector and the first dictionary feature vector are merged to obtain a variety feature vector of the new variety; a second BERT network is used to vectorize the text sequence of the historical variety to obtain a second vector; After using a bidirectional maximum matching algorithm to perform entity recognition on the text sequence of the historical variety, the entity recognition result is vectorized to obtain a second dictionary feature vector; The second feature vector and the second dictionary feature vector are merged to obtain a variety feature vector of the historical variety; based on the variety feature vector of the new variety and the variety feature vector of the historical variety, the similarity between the new variety and the historical variety is determined.

[0043] Specifically, simple text matching algorithms include tf-idf, ngram and other algorithms to count word frequencies, obtain the numerical vector of the sentence, and then perform distance calculation. However, due to the large number of word categories, the obtained vector is a sparse vector with too high a dimension, and the word frequency matching is basically a literal match. The more the same words appear, the more similar the two texts are, ignoring the semantic information of the sentence itself, which has certain limitations. BERT, as a pre-trained language model that represents deep semantic information, also has very good results in text matching tasks. Therefore, the present invention uses the Siamese BERT network for variety similarity matching recommendations.

[0044] Figure 4 It is a structural diagram of the text similarity measurement model provided by the present invention. Figure 4As shown, the Siamese network consists of two BERT sub-networks with the same structure and shared parameters. The two text features are vectorized and represented respectively through the BERT network, and each sub-network inputs a variety. Optionally, the BERT-Base version is used, and the dimension of the vector is 768. The segment vector has only two directions. According to the input sentence, the first vector is assigned to the word vector in the first sentence, and the second vector is assigned to the word vector in the second sentence. The position vector gives the vector representation of the position of each word in the sentence, and the words in the same position have the same vector representation. The input vector is submitted to the core module TRM (TransformerEncoder) of BERT. After the self-attention module and residual operation, the vector is linearly transformed to complete the work of the TRM layer. Through the superposition of multiple layers of TRM, finally, for each input variety of text sequence, the vector corresponding to the CLS token is extracted as the feature vector of the variety resource.

[0045] Furthermore, since new varieties of agricultural animals and plants contain rich domain vocabulary information, the present invention constructs a vocabulary library of animal and plant variety resources, obtains dictionary feature vectors of variety information, and integrates them with the feature vectors obtained by the BERT network to more comprehensively represent variety information resources. Specifically: Extract and organize relevant words in the field of animal and plant species, including the names, classifications, and feature descriptions of animals and plants, organize these words into a dictionary, and store them in a hash table; Use the bidirectional maximum matching algorithm for entity recognition; Vectorize the entity recognition results to obtain the dictionary feature vector of the entire article; The feature vector obtained by the BERT layer is fused with the dictionary feature vector to obtain the final variety feature vector.

[0046] Here, the method used to fuse the feature vector with the dictionary feature vector is not limited, for example, feature fusion can be performed using methods such as splicing and weighting.

[0047] Use the bidirectional maximum matching algorithm for entity recognition, including: S1, set the first character of sequence A as the current character; S2, starting from the current character, split 10 characters (the default maximum length of an entity) from left to right to obtain a phrase S; search for phrase S in the dictionary, if it exists, mark it as an entity recognition result and execute S3; if it does not exist, reduce the number of split characters by one and continue searching in the dictionary until it is found or the phrase length is 1; S3, set the next character of phrase S as the current character, and return to S2; S4, repeat S2 and S3 until the last character of sequence A is reached, and a positive match result is obtained; S5, starting from the current position, taking several adjacent words in reverse order to form a phrase, and performing dictionary matching until the phrase is found or the phrase length is 1, and obtaining a reverse matching result; S6, compare the forward matching and reverse matching results, merge and remove duplicates to obtain the final entity recognition result.

[0048] In the embodiment of the present invention, the method used for vectorization is not limited. For example, Word2Vec can be used for vectorization to obtain a dictionary feature vector.

[0049] The method for recommending new animal and plant varieties provided in an embodiment of the present invention combines the Siamese BERT twin network and the two-way maximum matching algorithm, which can effectively capture the semantic features of the text context and the feature vectors of the variety dictionary, thereby improving the ability to accurately judge the similarity between new animal and plant varieties and historical varieties.

[0050] In an optional embodiment, the text similarity measurement model is trained based on the following steps: Collect resource data of new species of plants and animals, and clean and pre-process the data; For each new species of animal or plant, generate positive sample pairs and negative sample pairs. Specifically, for each new species of animal or plant, the sample pairs of itself are labeled as similar (for example, the corresponding label value is set to 1). For each new species of animal or plant, randomly select sample pairs of other different species and label them as dissimilar (for example, the corresponding label value is set to 0) to ensure that the model does not mistake data of different species for similarity during learning; The similarity between the two variety feature vectors is calculated through the above steps. For example, the cosine similarity is used to measure the similarity between the two vectors: Among them, Similarity(1,2) represents the similarity between variety feature vector 1 and variety feature vector 2.

[0051] The contrast loss function is used to learn the representation so that similar species information is closer in the representation space and dissimilar species information is farther away. The contrast loss function is defined as: Where N is the number of training samples, Yi is the similarity label (1 for similarity, 0 for dissimilarity), d is the similarity between the two varieties’ feature vectors, and m is the margin hyperparameter in the loss function. Optionally, based on the performance on the validation set, the m value is selected as 0.5.

[0052] Furthermore, Stochastic Gradient Descent (SGD) is used to update the parameters. Through continuous iterative training, the Siamese BERT network will learn to bring the feature vectors of similar sample pairs closer and push the feature vectors of dissimilar sample pairs farther, thereby achieving the task of similar matching of animal and plant species resources.

[0053] Based on any of the above embodiments, the determining of multiple target users based on the multiple historical varieties includes: inputting user data of multiple users and resource data of the multiple historical varieties into a user variety recommendation model to obtain multiple predicted scores output by the user variety recommendation model, wherein any one of the multiple predicted scores is a predicted value of a user's score for any one of the multiple historical varieties; Based on the multiple predicted scores, multiple target users are determined.

[0054] Specifically, user data includes user static resource data and behavior data: User static resource data includes static information registered by users on the recommendation platform, such as name, gender, age, region, identity type, and industry; among them, industries are further divided into plantation, animal husbandry, forestry, fishery, and sideline industries, and each industry can be specifically divided into different industries, such as plantation can be further divided into grain, oil, cotton, hemp, beans, etc.; identity types include small farmers, family farms, professional large farmers, farmers' cooperatives, social service organizations, leading enterprises, agricultural researchers, agricultural technology extension personnel, and agricultural management personnel; Behavioral data is generated through all operations of users on the recommendation platform, including users’ browsing, likes, comments, and length of stay on product resources.

[0055] Variety resource data include variety name, identification, corresponding crop type, variety characteristics, applicable area, and yield; variety characteristics include specificity, adaptability, consistency, stability, regionality, timeliness, and limitations; applicable areas include Northeast China, Northwest China, North China, etc.

[0056] The method for recommending new animal and plant varieties provided in the embodiment of the present invention comprehensively considers the static attribute characteristics, behavioral characteristics and characteristics of animal and plant variety resources of users, and proposes user characteristics and variety characteristic representation methods for animal and plant variety recommendations by analyzing the industry differences and habit differences of users. The user's rating of historical varieties is determined through the user variety recommendation model, and new varieties are recommended based on the rating. It comprehensively considers user needs and variety characteristics, provides personalized and accurate recommendation services, and significantly improves user experience and satisfaction.

[0057] Furthermore, the user variety recommendation model determines the predicted score based on the following steps: Extract features from the user data of a user to obtain user features; Extracting features from resource data of the new variety to obtain variety features; Based on the user characteristics and the variety characteristics, a predicted score of the user for the new variety is determined.

[0058] Figure 5 is a schematic diagram of the structure of the user variety recommendation model provided by the present invention, such as Figure 5 As shown, optionally, user feature extraction first obtains a feature vector with a dimension of 16 through an embedding layer, for example, gender, age, and industry are h{gender}, h{age}, and h{industry}, respectively, and inputs the first fully connected layer to output a feature vector with a dimension of 128, which is then input into the second fully connected layer to finally output a user feature with a dimension of 256. Through multiple layers of fully connected layers, the model combines and transforms low-dimensional user features, learns richer high-order feature representations, and obtains user features.

[0059] Optionally, the variety feature extraction first obtains a feature vector with a dimension of 16 for other attribute features other than the variety name through the embedding layer, and then inputs it into the first fully connected layer, and outputs a feature vector with a dimension of 128. The variety name obtains features through text convolution. The first layer of the network is the word embedding layer, which is an embedding matrix composed of the embedding vector of each word. The next layer uses multiple convolution kernels of different sizes (window sizes) to perform convolution on the embedding matrix, and the window size is set to slide 2, 3, 4, and 5 words each time. The third layer of the network is the maximum pooling layer, which obtains a long vector, and in each training iteration, randomly sets the output of some neurons to zero. Through this dropout regularization, the feature vector of the variety name is finally obtained. The variety name feature and other variety features are transformed through multiple hidden layers, and finally connected through a fully connected layer to become a 256-bit variety feature.

[0060] Furthermore, determining the user's predicted score for the new variety based on the user characteristics and the variety characteristics includes: Calculating the attention weights between the user features and the product features to obtain an attention weight matrix; Based on the attention weight matrix, weighted aggregation processing is performed on the user features and the product features to obtain weighted features; The weighted features are input into a fully connected layer network to obtain a predicted score output by the fully connected layer network.

[0061] Optionally, the parameters of the user category recommendation model are trained based on the following steps: Preprocess the user data and resource data. Specifically, the user identification and variety identification data remain unchanged, and other feature data are converted into numbers. For example, age data is converted into 8 consecutive numbers 0 to 7 according to age segments; identity data is converted into numbers 0 to 8; for text data, a text-to-number dictionary is first created, and then the description in the text is converted into a list of numbers. In order to construct a user-variety association matrix, it is necessary to collect user rating data on animal and plant varieties, but the public data sets and Internet systems do not have formatted data that meets the requirements. Therefore, based on the recommendation platform, users' access behavior to variety resource data is indirectly scored, and different scores are assigned through users' browsing, liking and other behaviors to obtain the rating data of a specific user for a certain variety resource. Finally, the original user features, variety features, and user-variety association features are merged into the format of Table 1 below.

[0062] Table 1 User variety associated characteristics table

[0063] After extracting user features and variety features based on the above steps, since the importance of user features is different from that of features in plant and animal varieties, such as industry information in user features and crop categories in variety features, an attention mechanism is added to make the model pay more attention to the important features between users and items, thereby improving the performance and effect of the model.

[0064] Specifically, the attention weights between user features and product features are calculated. The dot multiplication method is used to calculate the attention weights: Attention(u e ,b e )=softmax(u e T ,W a ,b e ); Among them, W a is the learned attention weight matrix, u e is the user feature, b e is the variety feature, and the softmax function is used to normalize the attention weight. The user feature and the variety feature are weighted and summed according to the attention weight to obtain the weighted feature representation: F = Attention(u e ,b e )[u e ,; b e ].

[0065] The weighted feature representation is sent to the fully connected layer for processing to predict the score. The fully connected layer has two hidden layers, and the output of the fully connected layer is expressed as: output = σ(Wx + b); Among them, x is the input vector, W is the weight matrix connecting the input and hidden layers, b is the bias vector, and the output of the model is the predicted value of the user's rating of the variety.

[0066] Optionally, a threshold of 0-100 is designed, the predicted value is compared with the true score, and the mean square error (MSE) is used as the loss function to optimize the model. The definition of the MSE optimization loss function is as follows: Where N is the number of samples, y i is the real rating, is the score predicted by the model. The Adam optimizer is used to minimize the MSE loss function, and the learning rate is adaptively adjusted according to the first-order moment estimate and the second-order moment estimate of the gradient.

[0067] The method for recommending new varieties of plants and animals provided in the embodiment of the present invention constructs a user variety recommendation model based on the CNN interest network model and the attention mechanism. Compared with the traditional recommendation system based on statistical analysis or simple rules, this system can better understand user needs and variety characteristics, and provide more personalized and accurate recommendation services, thereby significantly improving user experience and satisfaction.

[0068] Figure 2 This is the second flow chart of the method for recommending new animal and plant varieties provided by the present invention; Figure 3 This is the third flow chart of the method for recommending new animal and plant varieties provided by the present invention; For ease of understanding, the following Figure 2 and Figure 3 , the preferred embodiments of the present invention are described.

[0069] Collect text information of plant and animal varieties, including descriptions, labels, attributes, etc. Use the pre-trained BERT model to encode the variety's text information and obtain the variety's text representation. Build a text similarity measurement model based on Siamese BERT, which accepts the text representation of two varieties as input and outputs the similarity score between them. Use the similarity measurement method in the output layer of the model to measure the similarity score between varieties. Store the feature representation of historical varieties in a vector library to speed up the retrieval process of similar varieties. Update the variety similarity matching model regularly as new varieties emerge.

[0070] Extract user basic attribute characteristics and user behavior characteristics based on user static attribute data and behavior data. Collect animal and plant variety resources and extract variety resource attribute information. Construct a user-variety association matrix based on user and variety resource feature data, where rows represent users, columns represent varieties, and each element represents the user's preference or association with the variety. Construct a user variety recommendation model, which accepts user static attribute information, behavior information, and variety attribute information as input, and outputs a user-variety association score.

[0071] Build a knowledge recommendation service. When a new variety appears, first use the text similarity measurement model to obtain historical varieties similar to the new variety; then use the user variety recommendation model to input historical varieties similar to the new variety and user information to obtain the users who should be recommended. The system actively pushes new varieties to users who meet user needs, providing personalized and accurate knowledge services.

[0072] In summary, the method for recommending new animal and plant varieties provided by the present invention adopts the advanced Siamese BERT twin network and the two-way maximum matching algorithm, which can efficiently process a large amount of animal and plant variety data, and accurately capture the similarities between varieties through a deep learning model, thereby realizing rapid judgment and recommendation of new and old varieties. Compared with traditional data processing methods, this system can significantly improve the processing speed, and while ensuring accuracy, greatly reduce the error rate, and provide users with more reliable and accurate recommendation services; it comprehensively considers the static attribute characteristics, behavioral characteristics of users, and the characteristics of animal and plant variety resources, and proposes user characteristics and variety characteristic representation methods for animal and plant variety recommendations by analyzing the industry differences and habit differences of users, and constructs a user variety recommendation model based on the CNN interest network model and the attention mechanism. Compared with traditional recommendation systems based on statistical analysis or simple rules, this system can better understand user needs and variety characteristics, and provide more personalized and accurate recommendation services, thereby significantly improving user experience and satisfaction.

[0073] The following describes a device for recommending new varieties of animals and plants provided by an embodiment of the present invention. The device for recommending new varieties of animals and plants described below and the method for recommending new varieties of animals and plants described above can refer to each other.

[0074] Figure 6 Schematic diagram of the structure of the device for recommending new varieties of plants and animals provided by the present invention. Figure 6 As shown, the device for recommending new varieties of plants and animals may include: Variety matching module 610, used to: match the new variety with all historical varieties in the variety library to obtain multiple historical varieties similar to the new variety; A user matching module 620 is used to: determine a plurality of target users based on the plurality of historical categories, wherein the target users are users matching the plurality of historical categories; The variety recommendation module 630 is used to recommend the new variety to the multiple target users.

[0075] It should be noted that the device for recommending new varieties of animals and plants provided in the embodiment of the present invention can execute the method for recommending new varieties of animals and plants described in any of the above embodiments during specific operation, which will not be elaborated in this embodiment.

[0076] Figure 7 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 7 As shown, the electronic device may include: a processor 710, a communication interface 720, a memory 730 and a communication bus 740, wherein the processor 710, the communication interface 720 and the memory 730 communicate with each other through the communication bus 740. The processor 710 may call the logic instructions in the memory 730 to execute a method for recommending new varieties of plants and animals, the method comprising: matching the new variety with all historical varieties in the variety library to obtain multiple historical varieties similar to the new variety; determining multiple target users based on the multiple historical varieties, the target users being users matching the multiple historical varieties; and recommending the new variety to the multiple target users.

[0077] In addition, the logic instructions in the above-mentioned memory 730 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0078] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the method for recommending new animal and plant varieties provided in the above-mentioned embodiments, the method including: matching the new variety with all historical varieties in a variety library to obtain multiple historical varieties similar to the new variety; based on the multiple historical varieties, determining multiple target users, the target users are users matching the multiple historical varieties; and recommending the new variety to the multiple target users.

[0079] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the method for recommending new animal and plant varieties provided in the above-mentioned embodiments, the method comprising: matching the new variety with all historical varieties in a variety library to obtain multiple historical varieties similar to the new variety; based on the multiple historical varieties, determining multiple target users, the target users being users matching the multiple historical varieties; and recommending the new variety to the multiple target users.

[0080] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0081] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0082] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for recommending new animal and plant varieties, characterized in that: include: Matching the new variety with all historical varieties in the variety library to obtain multiple historical varieties similar to the new variety; Based on the multiple historical categories, determining multiple target users, the target users being users matching the multiple historical categories; The new category is recommended to the multiple target users.

2. The method for recommending new animal and plant varieties according to claim 1, characterized in that: The new variety is matched with all historical varieties in the variety library to obtain multiple historical varieties similar to the new variety, including: Preprocessing the resource data of the new variety to obtain a text sequence of the new variety, wherein the resource data includes text data representing attributes of the new variety; Inputting the text sequence of the new variety and the text sequence of any historical variety in the variety library into a text similarity measurement model to obtain the similarity output by the text similarity measurement model; Based on the similarity between each historical variety in the variety library and the new variety, a plurality of historical varieties similar to the new variety are determined.

3. The method for recommending new animal and plant varieties according to claim 2, characterized in that: The text similarity measurement model determines the similarity between the new variety and the historical variety based on the following steps: Using a first BERT network to vectorize the text sequence of the new category to obtain a first feature vector; After performing entity recognition on the text sequence of the new product using a bidirectional maximum matching algorithm, the entity recognition result is vectorized to obtain a first dictionary feature vector; The first feature vector and the first dictionary feature vector are merged to obtain a variety feature vector of the new variety; a second BERT network is used to vectorize the text sequence of the historical variety to obtain a second vector; After using a bidirectional maximum matching algorithm to perform entity recognition on the text sequence of the historical variety, the entity recognition result is vectorized to obtain a second dictionary feature vector; The second feature vector and the second dictionary feature vector are merged to obtain a variety feature vector of the historical variety; based on the variety feature vector of the new variety and the variety feature vector of the historical variety, the similarity between the new variety and the historical variety is determined.

4. The method for recommending new animal and plant varieties according to claim 1, characterized in that: The determining of a plurality of target users based on the plurality of historical categories comprises: Inputting user data of multiple users and resource data of the multiple historical varieties into a user variety recommendation model to obtain multiple predicted scores output by the user variety recommendation model, wherein any one of the multiple predicted scores is a predicted value of a user's score for any one of the multiple historical varieties; Based on the multiple predicted scores, multiple target users are determined.

5. The method for recommending new animal and plant varieties according to claim 4, characterized in that: The user variety recommendation model determines the predicted score based on the following steps: Extract features from the user data of a user to obtain user features; Extracting features from resource data of the new variety to obtain variety features; Based on the user characteristics and the variety characteristics, a predicted score of the user for the new variety is determined.

6. The method for recommending new animal and plant varieties according to claim 5, characterized in that: The step of determining the user's predicted score for the new variety based on the user characteristics and the variety characteristics includes: Calculating the attention weights between the user features and the product features to obtain an attention weight matrix; Based on the attention weight matrix, weighted aggregation processing is performed on the user features and the product features to obtain weighted features; The weighted features are input into a fully connected layer network to obtain a predicted score output by the fully connected layer network.

7. A device for recommending new species of plants and animals, characterized in that: include: A variety matching module is used to match a new variety with all historical varieties in the variety library to obtain multiple historical varieties similar to the new variety; A user matching module is used to: determine a plurality of target users based on the plurality of historical categories, wherein the target users are users matching the plurality of historical categories; The variety recommendation module is used to recommend the new variety to the multiple target users.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method for recommending new animal and plant varieties as claimed in any one of claims 1 to 6 are implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for recommending new animal and plant varieties as claimed in any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method for recommending new animal and plant varieties as claimed in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Item recommending method and device

    CN105809479A

  • Article recommendation method and device

    CN107256494A

  • Recommendation method and device for cold start, and computer readable storage medium

    CN113052647A

  • Medical data processing method and device and storage medium

    CN114550946A

  • Scenic spot recommendation method based on knowledge graph semantic embedding

    CN115344794A