Green knowledge recommendation method based on feature similarity and user requirements
Through the recommendation method based on feature similarity and user demand, the problem of inaccurate and long search results in the green knowledge base is solved, rapid matching of user needs is achieved, and search efficiency and accuracy are improved.
Patent Information
- Application Number
- PCT/CN2023/118564
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-13
- Filing Date
- 2023-09-13
- Publication Date
- 2024-08-22
AI Technical Summary
In the green knowledge base, when users search for knowledge using traditional methods, the results are inaccurate and the search time is too long, which cannot meet user needs.
Adopting a recommendation method based on feature similarity and user demand, through text collection, semantic decomposition, similarity calculation, word weight setting and demand calculation steps, it can quickly match user needs and push knowledge that meets the requirements.
It improves search efficiency, reduces the loss of useless time, improves the accuracy of search results, and meets the specific and detailed needs of users.
Smart Images

Figure CN2023118564_22082024_PF_FP
Abstract
Description
A green knowledge recommendation method based on feature similarity and user demand Technical Field
[0001] The present invention relates to a green knowledge recommendation method, and in particular to a green knowledge recommendation method based on feature similarity and user demand. Background Art
[0002] In a green knowledge base, traditional methods for searching for desired knowledge are inaccurate and slow. This is because users often seek broad but inaccurate information. Traditional methods respond to user searches by providing a narrow search result, rather than finding ways to reduce uncertainty within the user's broad knowledge base. These broad results are then presented, forcing users to carefully refine their search and eliminate unnecessary knowledge. This method is too slow, and the results are inaccurate, failing to meet user needs.
[0003] Summary of the Invention
[0004] The present invention aims to address the deficiencies of the above-mentioned prior art and proposes a green knowledge recommendation method based on feature similarity and user demand, so as to enable users to quickly find the required content through a templated approach, thereby avoiding meaningless searches by users, improving search efficiency, and reducing the loss of useless time.
[0005] In order to achieve the above-mentioned object, the present invention adopts the following technical solutions:
[0006] A green knowledge recommendation method based on feature similarity and user demand includes the following steps:
[0007] Step 1: Text collection step: obtain the search text collection;
[0008] Step 2: Semantic decomposition step: Construct a title dictionary to decompose the text;
[0009] Step 3: Similarity calculation step: Calculate the decomposed text and select valid text;
[0010] Step 4: Word weight setting and word extraction step: extract the required words from the valid text to prepare for demand calculation;
[0011] Step 5: Demand calculation step: Obtain the TF of the knowledge to be identified, construct the subtitle demand function, obtain the user's demand for a certain headline word and the user's demand for each subtitle word, and then calculate the deviation between them and the knowledge to be identified;
[0012] Step 6: Push the knowledge that meets the requirements to users.
[0013] As a further improvement of the above solution, in step 1, obtain the current search text e and the historical search text set of user u in, Represents the n1th historical search text of user u, 1≤n1≤N1; N1 represents the number of historical search texts of user u.
[0014] As a further improvement of the above solution, in step 2, a dictionary of headlines and subheadings is constructed, and the current search text e and the historical search text set E are analyzed based on semantic decomposition. u Perform semantic decomposition to obtain the text set vector w of the current search text e e and the text set w e The valid text set The main title is the main type, and the subtitle is the subtype under the main type.
[0015] Furthermore, the semantic decomposition method includes the following steps:
[0016] Step 2.1: Build a title dictionary for the green knowledge base in, represents the n2th major title of the green knowledge base; N2 represents the number of major title dictionaries X;
[0017] Constructing a subtitle dictionary for a green knowledge base in, represents the n3th subheading of the green knowledge base, and N3 represents the number of subheading dictionary Y;
[0018] Build a dictionary of everyday words for the user set in, represents the n4th word in the dictionary of daily language, and N4 represents the number of words in the dictionary of daily language C;
[0019] Step 2.2, according to the dictionary X, Y, C, e and Decompose them separately to get the text set vector of the decomposed current search text e and the n1th historical search text Text collection vector Indicates the i-th item in the current search text e e words, Indicates the n1th historical search text The i-th word in e Indicates the number of words in the current search text e, Indicates the n1th historical search text Number of words;
[0020] make express The dictionary tag to which it belongs; if Belongs to the big title dictionary X, then let like Belongs to the subtitle dictionary Y, then let like Belongs to the dictionary of daily language C, then let Otherwise, let
[0021] make express The dictionary tag to which it belongs; if Belongs to the big title dictionary X, then let like Belongs to the subtitle dictionary Y, then let like Belongs to the dictionary of daily language C, then let Otherwise, let
[0022] Step 2.3: Use formula (1) to get the i-th word Weight
[0023] In formula (1), δ1 represents the first weight value, δ2 represents the second weight value, and 0<δ2<δ1<1;
[0024] Step 2.4: Follow the process of step 2.3 to obtain the i-th e words Weight
[0025] Step 2.5: Use formula (2) to calculate the i-th e words With the i-th word Similarity
[0026] Step 2.6: Follow the process of step 2.5 to obtain the n1th text set vector With text collection w e The similarity of all words in the text set w is calculated, and the t words with the highest similarity are selected as the text set w e The n1th candidate word set; thus, the text set w e The candidate word set selected from other decomposed text set vectors in the historical search text set; and all candidate word sets constitute the text set w e The valid text set in, Indicates the i e words The pth candidate word, P represents the total number of candidate words.
[0027] As a further improvement of the above scheme, in step 3 and step 4, according to the weight from w e and Select the words that belong to dictionary X and Y respectively.
[0028] Furthermore, the selection method comprises the following steps:
[0029] Step 3.1, w e Select words from dictionary X:
[0030] when When The word corresponding to the dictionary X is recorded as Thus we get w e The first word set consisting of all words belonging to dictionary X in ; where, express The weight of
[0031] Step 3.2, The words belonging to dictionary X are selected:
[0032] when When The word corresponding to the dictionary X is recorded as Thus we get The second word set is composed of all words belonging to the dictionary X in ; express The weight of
[0033] Step 3.3: Merge the first word set and the second word set into a large topic word set in, represents the n5th major topic word, 1≤n5≤N5; N5 represents the number of major topic words;
[0034] Step 3.4, w e Select the words belonging to Y in When w e The words in dictionary Y are
[0035] Step 3.5, Select the text belonging to Y in When The words in dictionary Y are
[0036] Step 3.6, w e and After calculation, the words obtained are integrated to construct a small theme word set in, Represents the n6th small topic word in V, 1≤n6≤N6; N6 represents the number of small topic words.
[0037] As a further improvement of the above solution, in steps five and six, the knowledge a to be identified is obtained, and corresponding knowledge is found under the large title dictionary X and the small subject word set V according to user satisfaction.
[0038] Furthermore, the method for finding the corresponding knowledge includes the following steps:
[0039] Step 4.1: Get the knowledge a to be identified, and after semantic decomposition under the large title dictionary X and the small subject word set V, calculate the word frequency in knowledge a, which is recorded as in, Indicates the n2th headline The frequency in knowledge a, Indicates the n6th small keyword The frequency in knowledge a,
[0040] Step 4.2: Assign a value to each word in the small topic word set V, and then use formula (3) to construct the weight function of the words in the small topic word set V:
[0041] Step 4.3: Use formula (4) to construct the user demand function
[0042] In formula (4), k represents the user's satisfaction, k∈(0,100%)
[0043] Step 4.4: Get the title x that the user requires from the title dictionary X user , and calculate the large title x required by the user user The degree of closeness to knowledge a in, Indicates a large title x user Frequency in knowledge a;
[0044] Step 4.5: Obtain the user's demand for each small topic word in the small topic word set V and calculate the user's proximity to all small topic words
[0045] Step 4.6: Calculate the closeness between user needs and knowledge a In this way, the degree of closeness between user needs and all knowledge can be obtained, and several pieces of knowledge with a smaller degree of closeness can be selected and pushed to the user.
[0046] The present invention also provides an electronic device, comprising a memory and a processor, wherein the memory is used to store a program that supports the processor to execute the green knowledge recommendation method, and the processor is configured to execute the program stored in the memory.
[0047] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processor, the steps of the green knowledge recommendation method are executed.
[0048] Compared with the prior art, the present invention has the following beneficial effects:
[0049] 1. The present invention first segments the collected text and sets weights to improve the usefulness of similarity calculation, and then divides the text into two parts based on the subordinate relationship between the user's large-type and small-type needs, so that the user's ideas are more specific and detailed. In the demand model, the user can combine different types of needs to make the search results meet the user's needs. Then, based on the received knowledge, the word frequency obtained after the dictionary and the collection is compared with the demand function to find the knowledge that best meets the user's needs.
[0050] 2. The present invention uses a similarity model to quickly obtain available text, and uses a demand model to allow users to combine different types of demands so that the search results meet the user's needs. Combining the user's needs with the results of previous searches greatly improves the accuracy of the pushed results. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] FIG1 is an overall flow chart of the present invention. DETAILED DESCRIPTION
[0052] In this embodiment, as shown in FIG1 , a green knowledge recommendation method based on feature similarity and user demand includes the following steps.
[0053] Step 1: Get user u's current search text e and historical search text collection Among them, e n1,u Represents the n1th historical search text of user u, 1≤n1≤N1; N1 represents the number of historical search texts of user u.
[0054] Step 2: Construct a dictionary of headlines and subheadings, and perform semantic decomposition on the current search text e and the historical search text set E. u Perform semantic decomposition.
[0055] Step 2.1: Build a title dictionary for the green knowledge base in, N2 represents the n2th major title of the green knowledge base; N2 represents the number of major title dictionaries X. Major titles are large categories such as automobiles, machine tools, refrigerators, etc.
[0056] Constructing a subtitle dictionary for a green knowledge base Among them, y n3 N3 represents the n3th subheading in the green knowledge base, and N3 represents the number of subheading dictionaries Y. Subheadings are small categories within large categories such as large cars, buses, and trucks, or components such as chassis, engines, and housings, or effects such as lightweight, energy-saving, and wear-resistant.
[0057] Build a dictionary of everyday words for the user set Among them, c n4 It represents the nth word in the dictionary of daily language, and N represents the number of daily language dictionary C. Daily language is an everyday expression such as I, you, he, something, or want.
[0058] Step 2.2: According to the dictionary X, Y, C, compare e and e n1,u Decompose them separately to get the text set vector of the decomposed current search text e and the n1th historical search text e n1,u Text collection vector Indicates the i-th item in the current search text e e words, Indicates the n1th historical search text e n1,u The i-th word in e Indicates the number of words in the current search text e, Indicates the n1th historical search text e n1,u Here, the Jieba word segmentation system is used for semantic decomposition. The dictionaries used for Jieba word segmentation are X, Y, and C; the dictionary to which the word segmentation content belongs is To replace.
[0059] make express The dictionary tag to which it belongs; if Belongs to the big title dictionary X, then let like Belongs to the subtitle dictionary Y, then let like Belongs to the dictionary of daily language C, then let Otherwise, let
[0060] make express The dictionary tag to which it belongs; if Belongs to the big title dictionary X, then let like Belongs to the subtitle dictionary Y, then let like Belongs to the dictionary of daily language C, then let Otherwise, let Use dictionary tags to detect the dictionary corresponding to each word and simplify the identification of the relationship.
[0061] Step 2.3: Use formula (1) to get the i-th word Weight
[0062] In formula (1), δ1 represents the first weight value, δ2 represents the second weight value, and 0<δ2<δ1<1. Weights are set for words, and the weights of words belonging to headlines, subheadings, and daily expressions are different.
[0063] Step 2.4, follow the process of step 2.3 to obtain the i-th e words Weight
[0064] Step 2.5: Calculate the text set vector w using formula (2) e With text collection vector Similarity
[0065] Convert the text set vector into a numeric vector during the calculation process.
[0066] Step 2.6: Follow the process of step 2.5 to obtain the n1th text set vector With text collection w e The similarity of all words in the text set w is calculated, and the t words with the highest similarity are selected as the text set w e The n1th candidate word set.
[0067] Thus we get the text set w e The candidate word set selected by the other decomposed text set vectors in the historical search text set.
[0068] And all candidate word sets constitute the text set w e The valid text set is:
[0069] in, Indicates the i e words The pth candidate word, P represents the total number of candidate words; select the required text according to the similarity you need
[0070] Step 3: According to the weight from w e and Select the words that belong to dictionary X and Y respectively.
[0071] Step 3.1, w e Select words from dictionary X:
[0072] when When The word corresponding to the dictionary X is recorded as Thus we get w e The first word set consisting of all words belonging to dictionary X in ; where, express The weight of .
[0073] Step 3.2, The words belonging to dictionary X are selected:
[0074] when When The word corresponding to the dictionary X is recorded as Thus we get The second word set is composed of all words belonging to the dictionary X in ; express The weight of .
[0075] Step 3.3: Merge the first word set and the second word set into a large topic word set in, The n5th major topic word, 1≤n5≤N5; N5 represents the number of major topic words. The number of related major topic words is set to prepare the text content based on the demand for a certain major title word and the degree of proximity of knowledge to the major title.
[0076] Step 3.4, w e Select the words belonging to Y in When this is w e The words in dictionary Y are
[0077] Step 3.5, Select the text belonging to Y in When The words in dictionary Y are
[0078] Step 3.6, w e and V ie e After calculation, the words obtained are integrated to construct a small theme word set in, Represents the n6th sub-topic word in V, where 1≤n6≤N6; N6 represents the number of sub-topic words. The number of related sub-topic words is set to prepare the text content for the demand for a sub-heading word and the proximity of knowledge to the sub-heading.
[0079] Step 4: Find the corresponding knowledge based on user satisfaction.
[0080] Step 4.1: Get the knowledge a to be identified and perform semantic decomposition under the X dictionary and the subject word set V. Calculate the word frequency in the knowledge a, which is recorded as in, Indicates the n2th headline The frequency in knowledge a, Indicates the n6th small keyword The frequency in knowledge a, Here, word frequency is used to show the proportion of each feature in knowledge a, which is also the influence of each feature in knowledge a.
[0081] Step 4.2: Assign a value to each word in the subject word set V, and then use formula (3) to construct the weight function of the words in the subject word set V:
[0082] Step 4.3: Use formula (4) to construct the user demand function
[0083] In formula (4), k represents the user's satisfaction, k∈(0,100%).
[0084] Because from the user's overall text, some effects are searched more, which is obviously what users want more.
[0085] Step 4.4: Get the title x that the user requires from the title dictionary X user , and calculate the large title x required by the useruser The degree of closeness to knowledge a in, Indicates a large title x user Frequency in knowledge a. Since users generally have only one demand for, for example, cars or airplanes, the title demand is set to 1.
[0086] Step 4.5: Obtain the user's demand for each small topic word in the small topic word set V and calculate the user's proximity to all small topic words Because the semantic decomposition uses the subtitle dictionary V, The subscript is n6
[0087] Step 4.6: Calculate the closeness between user needs and knowledge a In this way, the degree of closeness between user needs and all knowledge can be obtained, and several pieces of knowledge with a smaller degree of closeness can be selected and pushed to the user.
[0088] In this embodiment, an electronic device includes a memory and a processor. The memory is used to store a program that supports the processor to execute the above-mentioned green knowledge recommendation method. The processor is configured to execute the program stored in the memory.
[0089] In this embodiment, a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the green knowledge recommendation method are executed.
Claims
1. A green knowledge recommendation method based on feature similarity and user demand, characterized in that: The steps include: Step 1: Text collection step: obtain the search text collection; Step 2: Semantic decomposition step: Construct a title dictionary to decompose the text; Step 3: Similarity calculation step: Calculate the decomposed text to select valid text; Step 4: Word weight setting and word extraction step: extract the required words from the valid text to prepare for the demand calculation; Step 5: Demand calculation step: obtain the TF of the knowledge to be identified, construct the subtitle demand function, obtain the user's demand for a certain headline word and the user's demand for each subtitle word, and then calculate the deviation from the knowledge to be identified; Step 6: Push the knowledge that meets the requirements to users.
2. The green knowledge recommendation method based on feature similarity and user demand as claimed in claim 1, characterized in that: In step 1, obtain the current search text e and historical search text set of user u in, represents the n1th historical search text of user u, 1≤n1≤N1; N1 represents the number of historical search texts of user u.
3. The green knowledge recommendation method based on feature similarity and user demand as claimed in claim 2, characterized in that: In step 2, a dictionary of headlines and subheadings is constructed, and the current search text e and the historical search text set E are analyzed based on semantic decomposition. u Perform semantic decomposition to obtain the text set vector w of the current search text e e and the text set w e The valid text set The main title is the main type, and the subtitle is the subtype under the main type.
4. The green knowledge recommendation method based on feature similarity and user demand as claimed in claim 3, characterized in that: The semantic decomposition method includes the following steps: Step 2.1: Build a title dictionary for the green knowledge base in, represents the n2th major title of the green knowledge base; N2 represents the number of major title dictionaries X; Constructing a subtitle dictionary of green knowledge base in, represents the n3th subheading of the green knowledge base, and N3 represents the number of subheading dictionary Y; Build a dictionary of everyday words for the user set in, represents the n4th word in the dictionary of daily language, and N4 represents the number of the dictionary of daily language C; Step 2.2: According to the dictionary X, Y, C, e and Decompose them respectively to obtain the decomposed text set vector of the current search text e and the n1th historical search text Text collection vector Indicates the i-th in the current search text e e words, Indicates the n1th historical search text The i-th word in e Indicates the number of words in the current search text e. Indicates the n1th historical search text The number of words; make express The dictionary tag it belongs to; if Belongs to the big title dictionary X, then let like belongs to the subtitle dictionary Y, then let like Belongs to the dictionary of everyday language C, then let Otherwise, let make express The dictionary tag it belongs to; if Belongs to the big title dictionary X, then let like belongs to the subtitle dictionary Y, then let like Belongs to the dictionary of everyday language C, then let Otherwise, let Step 2.3: Use formula (1) to get the i-th word Weight In formula (1), δ1 represents the first weight value, δ2 represents the second weight value, and 0<δ2<δ1<1; Step 2.4: Follow the process of step 2.3 to obtain the i-th e Words Weight Step 2.5: Use formula (2) to calculate the i-th e Words With the i-th word Similarity Step 2.6: Follow the process of step 2.5 to get the n1th text set vector With text collection w e The similarity of all words in the text set w is calculated, and the t words with the highest similarity are selected as the text set w e The n1th candidate word set; thus we get the text set w e The candidate word set selected from other decomposed text set vectors in the historical search text set; and all candidate word sets constitute the text set w e The valid text set in, Indicates the i e Words The pth candidate word, P represents the total number of candidate words.
5. The green knowledge recommendation method based on feature similarity and user demand as claimed in claim 4, characterized in that: In steps 3 and 4, according to the weights from w e and Select the words that belong to dictionary X and Y respectively.
6. The green knowledge recommendation method based on feature similarity and user demand as claimed in claim 5, characterized in that: The selection method includes the following steps: Step 3.1: w e Select the words belonging to dictionary X: when When The word corresponding to the dictionary X is recorded as Thus we get w e The first word set consisting of all words belonging to dictionary X in ; where, express The weight of Step 3.2: The words belonging to dictionary X are selected: when When The word corresponding to the dictionary X is recorded as Thus we get The second word set is composed of all words belonging to the dictionary X in ; wherein, express The weight of Step 3.3: Merge the first word set and the second word set into a large theme word set in, represents the n5th major topic word, 1≤n5≤N5; N5 represents the number of major topic words; Step 3.4: w e Select the words belonging to Y in When w e The words in dictionary Y are Step 3.5: Select the text belonging to Y in When The words in dictionary Y are Step 3.6, for w e and After calculation, the obtained words are integrated to construct a small theme word set in, Represents the n6th small topic word in V, 1≤n6≤N6; N6 represents the number of small topic words.
7. The green knowledge recommendation method based on feature similarity and user demand as claimed in claim 6, characterized in that: In steps five and six, the knowledge a to be identified is obtained, and the corresponding knowledge is found under the large title dictionary X and the small subject word set V according to the user satisfaction.
8. The green knowledge recommendation method based on feature similarity and user demand as claimed in claim 7, characterized in that: The method for finding the corresponding knowledge includes the following steps: Step 4.1: Get the knowledge a to be identified, and after semantic decomposition under the large title dictionary X and the small subject word set V, calculate the word frequency in knowledge a, which is recorded as in, Indicates the n2th headline The frequency in knowledge a, Indicates the n6th small keyword The frequency in knowledge a, Step 4.2: Assign a value to each word in the small subject word set V, and use formula (3) to construct the weight function of the words in the small subject word set V: Step 4.3: Use formula (4) to construct the user demand function In formula (4), k represents the user's satisfaction, k∈(0,100%) Step 4.4: Get a certain title x required by the user in the title dictionary X user , and calculate the large title x required by the user user The degree of closeness to knowledge a in, Indicates large title x user frequency in knowledge a; Step 4.5: Obtain the user's demand for each small topic word in the small topic word set V, and calculate the user's proximity to all small topic words Step 4.6: Calculate the closeness between user needs and knowledge a In this way, the degree of proximity between user needs and all knowledge can be obtained, and several pieces of knowledge with a smaller degree of proximity can be selected and pushed to the user.
9. An electronic device, comprising a memory and a processor, characterized in that: The memory is used to store a program that supports the processor to execute the green knowledge recommendation method described in any one of claims 1 to 8, and the processor is configured to execute the program stored in the memory.
10. A 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 green knowledge recommendation method according to any one of claims 1 to 8 are executed.
Citation Information
Patent Citations
Method and system for screening duplicate message of Internet
CN107315799A
Learning recommendation method for library (learning space)
CN109918561A
Intelligent operation and maintenance knowledge retrieval method and system for metrological verification device
CN111950840A
Teacher teaching and research knowledge recommendation method and system
CN114385924A
Green knowledge recommendation method based on feature similarity and user demand degree
CN116089598A
