Electronic coupon matching method and device, electronic equipment and storage medium
By processing coupon features through direct matching and graph convolution networks, combined with user interaction data and merchant reputation, the problem of coupon mismatch in the electronic coupon matching process is solved, and the accuracy of recommendations and user experience are improved.
Patent Information
- Application Number
- CN202411077987.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-09-10
AI Technical Summary
In the electronic coupon matching process, when existing technology expands search keywords through synonyms and synonyms, it may introduce words that are inconsistent with the user's original search intention, resulting in a mismatch between the pushed coupons and user needs, affecting user experience and trust.
By obtaining the keywords input by the user, directly matching relevant coupons, and vectorizing the coupon features based on the graph convolution network (GCN), combined with factors such as user interaction data and merchant reputation, to screen out coupons with high similarity. , ensuring that recommended coupons match user needs.
It improves the accuracy of coupon matching and user experience, enhances user satisfaction and platform trust, and ensures that recommended coupons are more in line with user interests and needs.
Smart Images

Figure CN118628175A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data processing, and in particular to an electronic coupon matching method, device, electronic device and storage medium. Background Art
[0002] With the development of e-commerce, electronic coupons have become an important tool for merchants to attract consumers and increase sales. In order to use this tool more effectively, e-commerce platforms are adopting advanced data analysis technology to predict coupons that users may be interested in by analyzing information such as users' search keywords, shopping habits, and historical purchase data. In this way, the platform can provide users with a more personalized shopping experience and accurately push relevant coupons, which not only improves user satisfaction and loyalty, but also increases the use rate of coupons and the ultimate sales conversion rate.
[0003] In the coupon matching process, using synonyms and near-synonyms to expand the coverage of search keywords is an effective strategy. For example, when a user searches for "mobile phone", the system will automatically consider related words including "mobile phone" and "smartphone". Through this technology, e-commerce platforms can interpret user intentions more accurately and provide richer and more personalized coupon options, thereby enhancing user experience and promoting sales.
[0004] When implementing coupon matching based on user search keywords, expanding with synonyms and near-synonyms can indeed improve coverage and flexibility, but this method also has certain flaws. Excessive expansion may introduce words that do not match the user's original search intent, resulting in the coupons ultimately pushed to the user not matching their actual needs. This may not only reduce the actual usage rate of the coupons, but may also affect the user's shopping experience, reducing their trust and satisfaction with the platform. Therefore, optimizing the keyword expansion algorithm and ensuring the accuracy and relevance of the expanded coupon results are the key to improving user experience and promotion effectiveness. Summary of the invention
[0005] The present application provides an electronic coupon matching method, device, electronic device and storage medium, which can optimize the coupons matched after keyword expansion, thereby improving the accuracy of coupon matching.
[0006] In a first aspect of the present application, a method for matching electronic coupons is provided, the method comprising: Get the first keyword entered by the user; Querying a first coupon corresponding to the first keyword; Expand and match a second keyword according to the first keyword; matching a plurality of second coupons according to the second keyword; Based on the first coupon, a target coupon whose similarity meets a preset condition is screened from a plurality of the second coupons, so as to recommend the target coupon to the user.
[0007] By adopting the above technical solution, combining the keywords entered by the user and the corresponding extended keywords to improve the matching accuracy, the main advantage is that it can more comprehensively capture the user's search intent and provide a wider range of coupon options. First, the first coupon is directly matched with the first keyword entered by the user, ensuring that the search results are directly related to the user's original intent. Then, by expanding the matching of the second keyword, more options that are semantically related to the first keyword but may not be directly considered can be explored, thereby increasing the coverage. Next, based on the characteristics of the first coupon, the second coupon with a high similarity is screened, further ensuring the relevance of the recommended results and user satisfaction. This method combines the advantages of direct matching and semantic expansion, optimizes the depth and breadth of search, and improves the accuracy of coupon matching and user experience.
[0008] Optionally, before selecting a target coupon whose similarity meets a preset condition from a plurality of the second coupons based on the first coupon, the method further includes: Acquire the first numerical information of the first coupon, and acquire the second numerical information of each of the second coupons; The first digitized information is vectorized to obtain a first eigenvector, and the second digitized information is vectorized to obtain a second eigenvector.
[0009] By adopting the above technical solution, in the coupon matching method, by obtaining the numerical information of the first and second coupons and converting them into feature vectors, the accuracy and efficiency of coupon recommendations can be significantly improved. The numerical and vector processing enables the complex attributes of coupons (such as discount rate, validity period, usage conditions, etc.) to be quantified in a standardized form, and then quickly and accurately mathematically compared through computer algorithms. Such processing not only provides a solid foundation for similarity calculation, making the comparison process more objective, but also helps to screen out the coupons that best match user needs, thereby enhancing user satisfaction and increasing the usage rate of coupons.
[0010] Optionally, the performing vectorization processing on the first digitized information to obtain a first feature vector, and the performing vectorization processing on the second digitized information to obtain a second feature vector specifically includes: ; Among them, h v k+1is the feature vector at the kth layer, N(v) is the first neighbor node set of the feature vector, N(u) is the second neighbor node set of the feature vector, W (k) is the learnable weight matrix of the kth layer, b(k) is the bias term, and δ is the nonlinear activation function.
[0011] By adopting the above technical solution, the graph convolutional network (GCN) method is applied to process the feature vectorization of coupons, allowing the features to be effectively propagated among the nodes in the network to capture and utilize deeper neighborhood relationships. In this way, the feature vector of each coupon not only reflects its own attributes, but also integrates the information of its neighboring coupons, enhancing the expressiveness and diversity of the features. As a result of applying GCN, the similarities between coupons can be expressed and compared more accurately, improving the accuracy and personalization of recommendations. In addition, through the fusion of deep features, this method can better understand the complex coupon usage patterns and user preferences, thereby recommending more relevant and attractive coupons to users, increasing user satisfaction and the actual usage rate of coupons.
[0012] Optionally, the step of selecting a target coupon whose similarity meets a preset condition from a plurality of the second coupons based on the first coupon specifically includes: The similarity between the first coupon and the second coupon is calculated according to the first feature vector and the second feature vector, and is specifically calculated by the following formula: ; Among them, S (A, B) is the similarity, h A is the first eigenvector, h B is the second eigenvector; It is determined whether the similarity is greater than or equal to a similarity threshold. If it is determined that the similarity is greater than or equal to the similarity threshold, the second coupon is selected as the target coupon.
[0013] By adopting the above technical solution and using the cosine similarity formula to calculate the similarity between the first coupon and multiple second coupons, the coupon that best matches the user's needs can be identified and recommended with high accuracy. This method ensures that the recommended coupons are highly similar or relevant to the coupons that the user first queried in terms of attributes and conditions by quantifying and comparing the directional proximity of the coupon feature vectors. By setting a similarity threshold as a screening criterion, the second coupons with a similarity to the first coupon higher than this threshold can be automatically selected, thereby improving the pertinence of the recommendation and user satisfaction. This method not only improves the coupon usage rate, but also enhances the user's trust and loyalty to the platform, because users receive coupons that meet their interests and needs more frequently.
[0014] Optionally, the querying for the first coupon corresponding to the first keyword specifically includes: Matching a plurality of pre-selected platform merchants according to the first keyword; Sorting the plurality of pre-selected platform merchants according to preset rules to obtain a sorting result; Determine the first platform merchant ranked first according to the ranking results; Query the coupon of the first platform merchant to obtain the first coupon.
[0015] By adopting the above technical solution, first, multiple pre-selected platform merchants are matched according to the first keyword input by the user, ensuring that information is extracted from a wide range of data sources. Then, these merchants are sorted by applying preset rules, and the sorting results can be optimized based on factors such as merchant reputation, user evaluation, and relevance. Then, the highest-ranked merchant is selected and the coupons it provides are queried. This step ensures that the final recommended coupons are not only closely related to the user's search, but also come from the best performing merchants on the platform.
[0016] Optionally, the expanding and matching the second keyword according to the first keyword specifically includes: Determine a first commodity category corresponding to the first keyword, where the first commodity category is a category of commodities sold by the first platform merchant; Determine a preset keyword matching rule corresponding to the first commodity category; Determining, according to the keyword matching rule, a plurality of pre-selected keywords corresponding to the first keyword; Retrieving user interaction data for each of the pre-selected keywords; Sorting the plurality of user interaction data, and determining the user interaction data at the top according to the sorting result; The pre-selected keyword corresponding to the first-place user interaction data is determined to be the second keyword.
[0017] By adopting the above technical solution, firstly, by determining the associated product categories and related extended keyword rules, the search scope is expanded to ensure that more product categories that may meet user needs are covered. Then, by analyzing and sorting the user's interaction data for each pre-selected keyword, the keywords that users are most interested in can be identified, which not only enhances the dynamic adaptability of the search, but also improves the accuracy of the recommended coupons.
[0018] Optionally, matching multiple second coupons according to the second keyword specifically includes: Matching a plurality of second platform merchants according to the second keyword, wherein the sales category of the second platform merchants is the same as the sales category of the first platform product; Query the coupons of each of the second platform merchants to obtain a plurality of the second coupons.
[0019] By adopting the above technical solution, the second keyword is combined with the first product category, ensuring that all collected coupons are closely related to the user's initial search intent, thereby improving the applicability and attractiveness of the coupons. In addition, collecting coupons from multiple merchants also enhances competitive comparison, allowing users to enjoy the best discounts and offers. This not only improves the user's shopping experience, but also promotes sales conversion rate, while enhancing the platform's market competitiveness and user loyalty.
[0020] In a second aspect of the present application, an electronic coupon matching device is provided, the device comprising an acquisition module, a query module, a matching module and a screening module, wherein: The acquisition module is used to acquire the first keyword input by the user; The query module is used to query the first coupon corresponding to the first keyword; The matching module is used to expand and match the second keyword according to the first keyword; The matching module is used to match a plurality of second coupons according to the second keyword; The screening module is used to screen target coupons whose similarity meets a preset condition from a plurality of the second coupons based on the first coupon, so as to recommend the target coupons to the user.
[0021] Optionally, the acquisition module is used to acquire the first numerical information of the first coupon, and acquire the second numerical information of each of the second coupons; The matching module is used to perform vector processing on the first digitized information to obtain a first feature vector, and to perform vector processing on the second digitized information to obtain a second feature vector.
[0022] Optionally, the matching module is used to perform vector processing on the first digitized information to obtain a first feature vector, and perform vector processing on the second digitized information to obtain a second feature vector, specifically including: ; Among them, h v k+1 is the feature vector at the kth layer, N(v) is the first neighbor node set of the feature vector, N(u) is the second neighbor node set of the feature vector, W (k) is the learnable weight matrix of the kth layer, b(k) is the bias term, and δ is the nonlinear activation function.
[0023] Optionally, the matching module is used to calculate the similarity between the first coupon and the second coupon according to the first feature vector and the second feature vector, specifically by the following formula: ; Among them, S (A, B) is the similarity, h A is the first eigenvector, h B is the second eigenvector; The screening module is configured to determine whether the similarity is greater than or equal to a similarity threshold, and if it is determined that the similarity is greater than or equal to the similarity threshold, screening the second coupon as the target coupon.
[0024] Optionally, the matching module is used to match a plurality of pre-selected platform merchants according to the first keyword; The matching module is used to sort the plurality of pre-selected platform merchants according to preset rules to obtain a sorting result; The screening module is used to determine the first platform merchant ranked first according to the sorting result; The query module is used to query the coupons of the first platform merchant to obtain the first coupons.
[0025] Optionally, the query module is used to determine a first commodity category corresponding to the first keyword, where the first commodity category is a category of commodities sold by the first platform merchant; The query module is used to determine a preset keyword matching rule corresponding to the first commodity category; The matching module is used to determine a plurality of pre-selected keywords corresponding to the first keyword according to the keyword matching rule; The matching module is used to retrieve the user interaction data of each of the pre-selected keywords; The screening module is used to sort the plurality of user interaction data and determine the user interaction data at the top according to the sorting result; The matching module is used to determine that the pre-selected keyword corresponding to the user interaction data located at the first position is the second keyword.
[0026] Optionally, the matching module is used to match a plurality of second platform merchants according to the second keyword, and the sales category of the second platform merchants is the same as the sales category of the first platform product; The query module is used to query the coupons of each merchant on the second platform to obtain a plurality of the second coupons.
[0027] In the third aspect of the present application, an electronic device is provided, including a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are both used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes any one of the methods described above.
[0028] In a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, any of the methods described above is executed.
[0029] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: Combining the keywords entered by the user and the corresponding extended keywords to improve matching accuracy has the main advantage of being able to more comprehensively capture the user's search intent and provide a wider range of coupon options. First, the first coupon is directly matched with the first keyword entered by the user, ensuring that the search results are directly related to the user's original intent. Then, by expanding the matching of the second keyword, more options that are semantically related to the first keyword but may not have been directly considered can be explored, thereby increasing coverage. Next, based on the characteristics of the first coupon, the second coupon with a high degree of similarity is screened, further ensuring the relevance of the recommended results and user satisfaction. This approach combines the advantages of direct matching and semantic expansion, optimizes the depth and breadth of search, and improves the accuracy of coupon matching and user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a flowchart of an electronic coupon matching method disclosed in an embodiment of the present application; Figure 2 It is a module schematic diagram of an electronic coupon matching device disclosed in an embodiment of the present application; Figure 3 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application.
[0031] Explanation of the reference numerals: 201, acquisition module; 202, query module; 203, matching module; 204, screening module; 301, processor; 302, communication bus; 303, user interface; 304, network interface; 305, memory. DETAILED DESCRIPTION
[0032] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.
[0033] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.
[0034] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0035] With the development of e-commerce, electronic coupons have become a key tool for merchants to attract consumers and increase sales. E-commerce platforms use advanced data analysis technology to predict coupons that users may be interested in by analyzing users' search keywords, shopping habits, and historical purchase data, so as to achieve a more personalized shopping experience and accurately push relevant coupons. This not only improves user satisfaction and loyalty, but also increases the usage rate of coupons and sales conversion rate. However, although the use of synonyms and antonyms to expand search keywords increases coverage and flexibility, excessive expansion may introduce irrelevant words, thereby pushing coupons that do not match user needs, affecting user experience and trust in the platform. Therefore, optimizing the keyword expansion algorithm to ensure its accuracy and relevance, and balancing the expansion breadth with the precise match of search intent, is the key to improving promotion effectiveness and user experience.
[0036] This embodiment provides an electronic coupon matching method, referring to Figure 1 , including the following steps S110-S150: S110, obtaining the first keyword input by the user.
[0037] The electronic coupon matching method provided in the embodiment of the present application is applied to a server, and the server includes but is not limited to electronic devices such as mobile phones, tablet computers, wearable devices, PCs (Personal Computers), etc., and can also be a background server running an electronic coupon matching method. The server can be implemented as an independent server or a server cluster composed of multiple servers.
[0038] When users enter keywords to filter products on the platform, the e-commerce platform uses advanced data analysis technology to predict coupons that users may be interested in by analyzing the user's search keywords, shopping habits, and historical purchase data. However, for new platform users, due to the lack of information such as shopping habits and historical purchase data, it is difficult to accurately analyze and predict coupons that users may be interested in. Therefore, the platform can only predict the corresponding coupons by analyzing the keywords entered by users on the platform.
[0039] For the same product, such as apples (fruits), in addition to the coupons on the platform, different merchants will give different coupons, and coupons of different amounts may lead to different user shopping interests. However, using synonyms to expand search keywords, over-expansion may introduce irrelevant words, thereby pushing coupons that do not match user needs. For example, if the first keyword entered by the user is "apple (fruit)", the algorithm may expand to the second keyword "fruit", and then push coupons from other fruit merchants. Or the algorithm may expand to the second keyword "apple (electronic products)", and then push coupons with very low relevance. Therefore, a method is needed to screen suitable coupons for new platform users based on the search keywords entered by the user.
[0040] S120, searching for a first coupon corresponding to the first keyword.
[0041] In a possible implementation, querying the first coupon corresponding to the first keyword specifically includes: matching multiple pre-selected platform merchants according to the first keyword; sorting the multiple pre-selected platform merchants according to a preset rule to obtain a sorting result; determining the first platform merchant ranked first according to the sorting result; querying the coupon of the first platform merchant to obtain the first coupon.
[0042] Specifically, first, the server needs to retrieve all merchants related to the first keyword input by the user from the platform, and can match them according to the selection results of multiple other users. For example, a large number of users select apple fruit as the product after entering the keyword "apple". When the first keyword entered by the user is "apple", multiple pre-selected platform merchants corresponding to apple fruit are directly matched. During the retrieval process, the basic information of each pre-selected platform merchant is extracted, including the merchant name, location, main products or services, and user reviews. Sorting rules are established based on factors such as the merchant's relevance, user reviews, historical cooperation, sales performance, and geographic location. These rules can be simple weight allocations or more complex machine learning model outputs. Applying these preset rules, the server will sort the matched merchants. The sorting algorithm may involve multi-factor weight scoring, for example, placing merchants with high user scores and high relevance in front. Usually, this step can be implemented using the sorting function of a database query language such as SQL, or using a programming language at the application level to perform data sorting processing.
[0043] Based on the ranking results, the server automatically selects the highest-ranked merchant as the first platform merchant. This step is usually automated to ensure that the recommended coupons best match the user's search intent. Before automatic selection, the server may also perform a verification to check whether the merchant's coupons are valid and whether there are other promotions that may affect the selection. Once the first platform merchant is determined, the server then queries the first coupon provided by the merchant. This involves interacting with the merchant's coupon database or API to obtain the latest discount information. The specific content of the first coupon is extracted, including discount information, usage conditions, validity period, etc., and this information is integrated for display to the user.
[0044] S130, expanding and matching the second keyword according to the first keyword.
[0045] In a possible implementation, expanding and matching the second keyword based on the first keyword specifically includes: determining a first commodity category corresponding to the first keyword, the first commodity category being a category of commodities sold by merchants on the first platform; determining a keyword matching rule corresponding to a preset first commodity category; determining multiple pre-selected keywords corresponding to the first keyword based on the keyword matching rule; retrieving user interaction data for each pre-selected keyword; sorting multiple user interaction data, and determining the user interaction data at the first position based on the sorting result; and determining that the pre-selected keyword corresponding to the user interaction data at the first position is the second keyword.
[0046] Specifically, the second keyword is matched according to the first keyword, and the associated first commodity category is first determined according to the first keyword. This can be achieved by analyzing the existing merchant sales data, commodity classification system, or extracting category information from the commodity description using natural language processing technology. The first platform merchant matched according to the first keyword is queried, and then the merchant information of the first platform merchant selling the keyword commodity is extracted, so as to determine the category of the commodity.
[0047] Set one or more keyword matching rules for each product category in advance. These rules can be formulated based on historical sales data, market research, or consumer search behavior analysis. For example, for keywords in the electronic product category, match synonymous keywords. And establish and maintain a rule library to store keyword matching rules for each product category, ensuring that these rules can be updated regularly to adapt to market changes.
[0048] According to the determined matching rules, multiple pre-selected keywords related to the first keyword are generated. This step may involve using rule engines or natural language processing technology to expand or deform the original keywords. The generated pre-selected keywords will form a pre-selected list for further analysis and screening. For each pre-selected keyword, relevant user interaction data is collected, such as search frequency, click-through rate, purchase conversion rate, etc. These data can be obtained from the website's search engine logs, user behavior tracking tools or online sales systems.
[0049] The collected user interaction data is then analyzed, which may include statistical analysis, data visualization, or the use of more complex data mining techniques. The data can be sorted based on predefined performance indicators (such as click-through rate, conversion rate, etc.). Based on the sorting results of the user interaction data, the top-ranked keyword is selected as the second keyword. This keyword will be considered the most likely to meet user needs or the most popular keyword. The process of keyword selection and user interaction data analysis can be continuously optimized in practice to maintain the accuracy and relevance of search results.
[0050] S140: Match multiple second coupons according to the second keyword.
[0051] In a possible implementation, matching multiple second coupons according to the second keyword specifically includes: matching multiple second platform merchants according to the second keyword, the sales category of the second platform merchants is the same as the sales category of the first platform goods; querying the coupons of each second platform merchant to obtain multiple second coupons.
[0052] Specifically, first, referring to step S120, according to the method of matching the first platform merchant with the first keyword, the second keyword is used to search for the relevant second platform merchant in the merchant database of the e-commerce platform, and it is ensured that the sales category of the matched second platform merchant is the same as the sales category of the first platform commodity. For each second platform merchant searched out, query its associated coupon information, and collect the coupon details provided by each merchant, including discount rate, usage conditions, validity period, etc. This usually involves accessing the merchant's coupon database or obtaining the latest coupon data through API calls. Sort the collected coupon data so that it is in a consistent format for subsequent processing and display. This may include unifying the format of coupon descriptions, the representation of discount information, etc. And filter out coupons that do not meet the conditions according to certain standards (such as validity period, user evaluation, and scope of application). This helps to provide more accurate and attractive coupons to users.
[0053] S150: Based on the first coupon, select a target coupon whose similarity meets a preset condition from a plurality of second coupons.
[0054] The first coupon is a coupon that is directly matched based on the first keyword entered by the user, while the second coupon is a coupon that is matched based on the second keyword after the first keyword is expanded. Excessive expansion may lead to the introduction of irrelevant keywords, and then push coupons that do not match user needs. Therefore, it is necessary to match a coupon that better meets user needs from multiple second coupons based on the first coupon.
[0055] Before matching coupons, it is an important technical operation to vectorize the numerical information of coupons for further analysis and comparison. This operation can help the server understand the characteristics of coupons from a computer perspective and perform similarity analysis. First, define which information belongs to numerical information. For coupons, numerical information is information containing specific values, including discount rate, minimum consumption limit, validity period, number of uses, user ratings, etc.
[0056] The numerical information is then vectorized to determine which numerical information is a candidate for vectorization. For example, the discount rate can be used directly as a feature, while the expiration date may need to be converted into the number of days from today, etc. The numerical data is preprocessed to ensure that the format and range of the data are suitable for vectorization. For example, standardize or normalize the data to avoid certain features having a disproportionate impact on the results due to their large numerical range. Use data processing tools (such as Python's Pandas and NumPy libraries) to convert the processed data into vector form. Then, the numerical information of the first coupon is vectorized to generate a first feature vector, and the numerical information of each second coupon is vectorized to generate a series of second feature vectors. For each coupon, all selected features are merged into a vector, namely a feature vector, which is expressed as follows: ; Among them, h v k+1 is the feature vector at the kth layer, N(v) is the first neighbor node set of the feature vector, N(u) is the second neighbor node set of the feature vector, W (k) is the learnable weight matrix of the kth layer, b(k) is the bias term, and δ is the nonlinear activation function.
[0057] In a graph convolutional network (GCN), the feature h of each node v is v is extracted from the node data. For the electronic coupon recommendation system, the node data usually includes the description text of the coupon and possible other attributes such as discount rate, category, expiration time, etc. The process of processing node features using GCN involves multiple layers of graph convolution operations, each layer will update the feature representation of the node, and at each layer, the feature hv of node v will be updated according to the features of its neighboring nodes. Specifically, each layer of new feature h of node v v (k+1) is obtained by aggregating the current layer features h of all its neighbors u∈N(v) u (k) , plus its own characteristics h v (k) and the learnable weight matrix W (k) And the nonlinear activation function δ. This process is repeated in multiple layers, and each propagation may capture a wider range of neighbor information, thereby more comprehensively reflecting the structural properties and characteristics of the node in the graph. After several layers of graph convolution, the feature h of the node v It will be used for subsequent tasks, such as classification, prediction, etc. In the coupon recommendation system, these features can be used to calculate the similarity between nodes and recommend relevant coupons to users.
[0058] The neighbor node set N(v) refers to the set of all other nodes directly connected to node v. In the coupon network, if two coupons are considered to be related in some sense (such as similar target customers, belonging to the same category or overlapping promotion periods), there will be an edge between them. The representation formula of the neighbor node set N(v) is as follows: ; Among them, N(v) is the set of neighbor nodes, V is the set of all nodes, E is the set of all edges, and (u,v) means that there is an edge between node u and node v.
[0059] The selection of neighbor nodes reflects other coupons related to coupon v. These relationships may be based on common categories (such as coupons for footwear), similar customer groups, or marketing campaigns. The characteristics of the neighbors h u (l) Provides contextual information about the position and interactions of v in the larger coupon network.
[0060] Weight matrix W (k) It is a parameter matrix used in the graph convolution layer to adjust the node feature transfer. It defines how to update the features of each node by combining the information of neighboring nodes from layer k to layer k+1. This weight matrix is a learnable parameter that is optimized by the back propagation algorithm during network training. The role of the weight matrix is to transform the features of the node and its neighbors into a new feature space for more effective information fusion. The weight matrix W(k) is usually expressed as: ; Among them, W (k) is the weight matrix, dk represents the dimension of the input features of the kth layer, and dk+1 represents the dimension of the output features of the kth layer (that is, the input features of the k+1th layer).
[0061] The weights obtained through training determine how to extract and fuse information from the features of neighboring nodes to form a new node feature representation. These weights learn to identify which features (such as similar products, similar discount structures) are most important for understanding and predicting node (coupon) behavior.
[0062] The nonlinear activation function δ is a function used in a neural network to increase the nonlinearity of the model, enabling the model to capture more complex features and patterns. Nonlinear processing helps to distinguish different types of coupons, even if they may be very similar in some text descriptions. Common activation functions include ReKU, sigmoid, and tanh.
[0063] When the activation function is ReKU function, the expression is: ; When the activation function is the sigmoid function, the expression is: ; When the activation function is the tanh function, the expression is: ; Bias term b (k) It is a constant added to the result of each layer of linear transformation to adjust the output of the layer and increase the flexibility of the model.
[0064] And C uv Used for normalization processing, as follows: ; Normalization ensures that the scale of features is not imbalanced during aggregation due to different numbers of node connections. For example, a popular coupon may be connected to multiple other coupons, and directly adding them will amplify the impact of such a popular coupon. Normalization helps to suppress this effect.
[0065] Through the collaborative work of the above elements, GCN is able to combine the individual information of each coupon with its relationship in the coupon network to form a comprehensive and information-rich feature representation. This representation more comprehensively reflects the characteristics of the coupon and its relationship with other coupons, providing support for efficient and accurate recommendations.
[0066] The numerical information of the first coupon is vectorized to generate a first feature vector, and the numerical information of each second coupon is vectorized to generate a series of second feature vectors. The cosine similarity formula is used to calculate the similarity between the first coupon A and each second coupon B. The specific calculation formula is as follows: ; Among them, S (A, B) is the similarity, h A is the first eigenvector, h B is the second eigenvector; The dot product h in the formula A ⋅h B represents the inner product of vectors, and ||h A || and ||h B || is the norm (or Euclidean length) of the vector. The results of cosine similarity range from -1 (completely dissimilar) to 1 (exactly the same). Set a similarity threshold. Only when the calculated similarity is greater than or equal to this threshold, the corresponding second coupon will be considered similar enough to the first coupon and can be selected as the target coupon. This threshold can be based on historical data, expert advice, or an optimized algorithm. Depending on the actual application effect, it may be necessary to adjust the threshold to achieve the best screening effect.
[0067] Traverse all second coupons, calculate the similarity between each coupon and the first coupon, and mark all second coupons with similarity greater than or equal to a set threshold as target coupons. The selected target coupons can be used in the recommendation system to recommend to users.
[0068] By adopting the technical solution of the present application, combining the keywords entered by the user and the corresponding extended keywords to improve the matching accuracy, the main advantage is that it can more comprehensively capture the user's search intent and provide a wider range of coupon options. First, the first coupon is directly matched with the first keyword entered by the user, ensuring that the search results are directly related to the user's original intent. Then, by expanding the matching of the second keyword, more options that are semantically related to the first keyword but may not be directly considered can be explored, thereby increasing the coverage. Next, based on the characteristics of the first coupon, the second coupon with a high similarity is screened, further ensuring the relevance of the recommended results and user satisfaction. This method combines the advantages of direct matching and semantic expansion, optimizes the depth and breadth of search, and improves the accuracy of coupon matching and user experience.
[0069] This embodiment also provides an electronic coupon matching device, referring to Figure 2 The device comprises an acquisition module 201, a query module 202, a matching module 203 and a screening module 204, wherein: The acquisition module 201 is used to acquire the first keyword input by the user.
[0070] The query module 202 is configured to query the first coupon corresponding to the first keyword.
[0071] The matching module 203 is used to expand and match the second keyword according to the first keyword.
[0072] The matching module 203 is configured to match a plurality of second coupons according to the second keyword.
[0073] The screening module 204 is configured to screen target coupons whose similarity meets a preset condition from a plurality of the second coupons based on the first coupon, so as to recommend the target coupons to the user.
[0074] In a possible implementation, the acquisition module 201 is configured to acquire the first numerical information of the first coupon, and acquire the second numerical information of each of the second coupons.
[0075] The matching module 203 is used to perform vector processing on the first digitized information to obtain a first feature vector, and to perform vector processing on the second digitized information to obtain a second feature vector.
[0076] In a possible implementation manner, the matching module 203 is configured to perform vector processing on the first digitized information to obtain a first feature vector, and perform vector processing on the second digitized information to obtain a second feature vector, specifically including: ; Among them, h v k+1 is the feature vector at the kth layer, N(v) is the first neighbor node set of the feature vector, N(u) is the second neighbor node set of the feature vector, W (k) is the learnable weight matrix of the kth layer, b(k) is the bias term, and δ is the nonlinear activation function.
[0077] In a possible implementation, the matching module 203 is used to calculate the similarity between the first coupon and the second coupon according to the first feature vector and the second feature vector, specifically by the following formula: ; Among them, S (A, B) is the similarity, h A is the first eigenvector, h B is the second eigenvector.
[0078] The screening module 204 is configured to determine whether the similarity is greater than or equal to a similarity threshold, and if it is determined that the similarity is greater than or equal to the similarity threshold, screening the second coupon as the target coupon.
[0079] In a possible implementation, the matching module 203 is used to match a plurality of pre-selected platform merchants according to the first keyword.
[0080] The matching module 203 is used to sort the plurality of pre-selected platform merchants according to a preset rule to obtain a sorting result.
[0081] The screening module 204 is used to determine the first platform merchant that is ranked first according to the sorting result.
[0082] The query module 202 is used to query the coupons of the first platform merchant to obtain the first coupons.
[0083] In a possible implementation, the query module 202 is used to determine a first commodity category corresponding to the first keyword, where the first commodity category is a category of commodities sold by the first platform merchant.
[0084] The query module 202 is used to determine a preset keyword matching rule corresponding to the first product category.
[0085] The matching module 203 is used to determine a plurality of pre-selected keywords corresponding to the first keyword according to the keyword matching rule.
[0086] The matching module 203 is used to retrieve the user interaction data of each of the pre-selected keywords.
[0087] The screening module 204 is used to sort the plurality of user interaction data and determine the user interaction data at the top according to the sorting result.
[0088] The matching module 203 is used to determine that the pre-selected keyword corresponding to the first user interaction data is the second keyword.
[0089] In a possible implementation, the matching module 203 is used to match a plurality of second platform merchants according to the second keyword, and the sales category of the second platform merchants is the same as the sales category of the first platform product.
[0090] The query module 202 is used to query the coupons of each merchant on the second platform to obtain a plurality of the second coupons.
[0091] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0092] This embodiment also provides an electronic device, referring to Figure 3 The electronic device may include: at least one processor 301 , at least one communication bus 302 , a user interface 303 , a network interface 304 , and at least one memory 305 .
[0093] The communication bus 302 is used to realize the connection and communication between these components.
[0094] The user interface 303 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.
[0095] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0096] Among them, the processor 301 may include one or more processing cores. The processor 301 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 305, and calling data stored in the memory 305. Optionally, the processor 301 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 301 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 301, and it can be implemented separately through a chip.
[0097] The memory 305 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory includes a non-transitory computer-readable storage medium. The memory 305 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 305 may also be at least one storage device located away from the aforementioned processor 301. The memory 305 as a computer storage medium may include an operating system, a network communication module, a user interface 303 module, and an application for an electronic coupon matching method.
[0098] exist Figure 3In the electronic device shown, the user interface 303 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 301 can be used to call an application program storing an electronic coupon matching method in the memory 305. When executed by one or more processors 301, the electronic device executes one or more methods in the above embodiments.
[0099] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.
[0100] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0101] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. 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 service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0102] 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.
[0103] In addition, each functional unit in each embodiment of the present application 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. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0104] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory 305 and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory 305 includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk.
[0105] The present application also discloses a computer-readable storage medium, wherein the computer-readable storage medium stores instructions. When executed by one or more processors 301, the electronic device executes one or more of the methods described in the above embodiments.
[0106] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, it will be easy for those skilled in the art to think of other embodiments of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field that are not recorded in the present disclosure. The description and examples are regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. An electronic coupon matching method, characterized in that: The method comprises: Get the first keyword entered by the user; Querying a first coupon corresponding to the first keyword; Expand and match a second keyword according to the first keyword; matching a plurality of second coupons according to the second keyword; Based on the first coupon, a target coupon whose similarity meets a preset condition is screened from a plurality of the second coupons, so as to recommend the target coupon to the user.
2. The electronic coupon matching method according to claim 1, characterized in that: Before selecting a target coupon whose similarity meets a preset condition from a plurality of the second coupons based on the first coupon, the method further includes: Acquire the first numerical information of the first coupon, and acquire the second numerical information of each of the second coupons; The first digitized information is vectorized to obtain a first eigenvector, and the second digitized information is vectorized to obtain a second eigenvector.
3. The electronic coupon matching method according to claim 2, characterized in that: The performing vectorization processing on the first digitized information to obtain a first feature vector, and the performing vectorization processing on the second digitized information to obtain a second feature vector specifically includes: ; Among them, h v k+1 is the feature vector at the kth layer, N(v) is the first neighbor node set of the feature vector, N(u) is the second neighbor node set of the feature vector, W (k) is the learnable weight matrix of the kth layer, b(k) is the bias term, and δ is the nonlinear activation function.
4. The electronic coupon matching method according to claim 3, characterized in that: The step of selecting a target coupon whose similarity meets a preset condition from a plurality of the second coupons based on the first coupon specifically includes: The similarity between the first coupon and the second coupon is calculated according to the first feature vector and the second feature vector, and is specifically calculated by the following formula: ; Among them, S (A, B) is the similarity, h A is the first eigenvector, h B is the second eigenvector; It is determined whether the similarity is greater than or equal to a similarity threshold. If it is determined that the similarity is greater than or equal to the similarity threshold, the second coupon is selected as the target coupon.
5. The electronic coupon matching method according to claim 1, characterized in that: The querying the first coupon corresponding to the first keyword specifically includes: Matching a plurality of pre-selected platform merchants according to the first keyword; Sorting the plurality of pre-selected platform merchants according to preset rules to obtain a sorting result; Determine the first platform merchant ranked first according to the ranking results; Query the coupon of the first platform merchant to obtain the first coupon.
6. An electronic coupon matching method according to claim 5, characterized in that: The expanding and matching the second keyword according to the first keyword specifically includes: Determine a first commodity category corresponding to the first keyword, where the first commodity category is a category of commodities sold by the first platform merchant; Determine a preset keyword matching rule corresponding to the first commodity category; Determining, according to the keyword matching rule, a plurality of pre-selected keywords corresponding to the first keyword; Retrieving user interaction data for each of the pre-selected keywords; Sorting the plurality of user interaction data, and determining the user interaction data at the top according to the sorting result; The pre-selected keyword corresponding to the first-place user interaction data is determined to be the second keyword.
7. An electronic coupon matching method according to claim 6, characterized in that: The matching of multiple second coupons according to the second keyword specifically includes: Matching a plurality of second platform merchants according to the second keyword, wherein the sales category of the second platform merchants is the same as the sales category of the first platform product; Query the coupons of each of the second platform merchants to obtain a plurality of the second coupons.
8. An electronic coupon matching device, characterized in that: The device comprises an acquisition module (201), a query module (202), a matching module (203) and a screening module (204), wherein: The acquisition module (201) is used to acquire a first keyword input by a user; The query module (202) is used to query the first coupon corresponding to the first keyword; The matching module (203) is used to expand and match the second keyword according to the first keyword; The matching module (203) is used to match a plurality of second coupons according to the second keyword; The screening module (204) is used to screen target coupons whose similarity meets a preset condition from a plurality of the second coupons based on the first coupon, so as to recommend the target coupons to the user.
9. An electronic device, characterized in that: The electronic device comprises a processor (301), a memory (305), a user interface (303), a network interface (304) and a memory (305), wherein the memory (305) is used to store instructions, the user interface (303) and the network interface (304) are both used to communicate with other devices, and the processor (301) is used to execute the instructions stored in the memory (305) so that the electronic device executes the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 7 is executed.
