Automatic window popup method and system for smart phone ordering system
By collecting data and analyzing pop-up click behaviors in the smartphone ordering system, building a binding relationship between dishes and adjusting the order and position of pop-up windows, the lack of automatic pop-up window restraint and user error clicks is solved, and user satisfaction and system security are improved.
Patent Information
- Application Number
- CN202410291506.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-14
- Publication Date
- 2025-03-04
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The automatic pop-up window method in the smartphone ordering system does not consider the situation where food is incompatible and users click on pop-up windows by mistake, resulting in user dissatisfaction and food accidents.
By collecting order data and pop-up clicking behaviors, an initial binding relationship between the dishes to be selected is constructed, and based on the confidence, support and improvement calculation, the order of the dishes pop-up windows and the position of the pop-up window is finally determined to reduce the situation of accidentally clicking.
It effectively reduces the situation of food incompatible and users accidentally clicking pop-ups, improving user satisfaction and the safety of the ordering system.
Smart Images

Figure CN119556815A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automatic pop-up windows, and in particular to an automatic pop-up window method and system for a smart phone ordering system. Background Art
[0002] With the development of technology, the way of ordering food in restaurants is no longer limited to manually checking dishes. Instead, dishes can be checked by scanning the QR code with the mobile phone and using the smart phone ordering system. The smart ordering system displays dishes to users through a high-definition LCD screen, and can fully display the characteristics of the cuisine through pictures, text, audio and video, thereby replacing traditional menu products and providing more and stronger services. After the user enters the smart phone ordering system, if the user selects a dish, the dish display, adding the dish to the shopping cart, and the dish payment operations will be displayed on the mobile phone interface in the form of automatic pop-up windows.
[0003] At present, the existing automatic pop-up window technology controls whether the pop-up window will pop up automatically by predicting the probability of the pop-up window being clicked by the user. If it is predicted that the probability of the user clicking on this pop-up window is small, the pop-up window will not be displayed on the electronic device interface. However, there are some defects in using this technology in the smartphone ordering system. For example, for the pop-up window for selecting the taste of the dish, the pop-up window for selecting the side dish, etc., if the pop-up window is not displayed at will without the user's rejection, it will cause user dissatisfaction when the user has a demand for this pop-up window. Secondly, if only the dishes with a high probability of clicking are pushed to the user without considering whether the food is incompatible with the dishes that the user has already selected, food accidents will occur. Finally, there are many dish options in the smartphone ordering system, and it is very easy for the user to accidentally click on the pop-up window when clicking on the mobile phone interface. Therefore, the automatic pop-up window method of the smartphone ordering system does not take into account the situation of food incompatibility and users accidentally clicking on the pop-up window. Summary of the invention
[0004] In order to solve the above problems, the present invention provides a method and system for automatic pop-up windows in a smart phone ordering system, which can reduce the situation where the automatic pop-up window method of the smart phone ordering system does not take into account the incompatibility of food and the user's accidental click on the pop-up window.
[0005] In a first aspect, the present invention provides an automatic pop-up window method for a smart phone ordering system, comprising:
[0006] Collecting dishes to be selected, ordering data and pop-up window click behavior in the smartphone ordering system, wherein the ordering data refers to the data of the user of the smartphone ordering system selecting the dishes to be selected;
[0007] Constructing an initial binding relationship between each of the dishes to be selected, and calculating the confidence, support and promotion of the initial binding relationship based on the order data;
[0008] Selecting the final binding relationship of the dishes to be selected from the initial binding relationship by using the confidence, the support and the lift, and determining the order of pop-up windows of the dishes to be selected by using the final binding relationship;
[0009] Analyzing, based on the pop-up window click behavior, whether the dish pop-up window in the smartphone ordering system is accidentally clicked by the user;
[0010] When a dish pop-up window in the smartphone ordering system is mistakenly clicked by the user, a pop-up window position of the dish pop-up window is changed to obtain a changed position;
[0011] The dish pop-up order and the change position are used to perform automatic dish pop-up on the smart phone ordering system to obtain a dish automatic pop-up result.
[0012] In a possible implementation of the first aspect, the step of constructing an initial binding relationship between each of the dishes to be selected includes:
[0013] Identifying the recipe of the dish to be selected;
[0014] Marking recipe attributes between each dish recipe in the dish recipe;
[0015] Determine whether there are conflicting attributes among the formula attributes;
[0016] When the mutually restraining attribute exists in the formula attribute, calculating the degree of restraint of the mutually restraining attribute;
[0017] After toxic attributes are screened out from the recipe attributes based on the degree of mutual restraint, the remaining attributes in the recipe attributes are used to construct an initial binding relationship between each of the dishes to be selected.
[0018] In a possible implementation manner of the first aspect, calculating the degree of mutual restraint of the mutual restraint attributes includes:
[0019] Collect historical poisoning events of dish recipes corresponding to the mutually restraining attributes;
[0020] Based on the historical poisoning events, the degree of mutual restraint of the mutual restraint attributes is calculated using the following formula:
[0021]
[0022] Among them, p i represents the degree of incompatibility between the i-th dish recipe and the j-th dish recipe, z ij represents the historical poisoning events in which the i-th dish recipe corresponding to the incompatible attribute and the j-th dish recipe appeared at the same time, X i represents the historical poisoning incidents of the i-th dish recipe, Yj represents the historical poisoning incidents of the jth recipe, and max represents the number of Select the sign of the maximum value in .
[0023] In a possible implementation manner of the first aspect, calculating the confidence, support, and improvement of the initial binding relationship based on the ordering data includes:
[0024] Based on the ordering data, the support degree of the initial binding relationship is calculated using the following formula:
[0025]
[0026] in, represents the support of the initial binding relationship, Support_count(A∪B) represents the number of orders in which the intersection of recipe A and recipe B in the initial binding relationship in the order data appears, and Total_count represents the total number of orders in the initial binding relationship in the order data;
[0027] Based on the ordering data, the confidence of the initial binding relationship is calculated using the following formula:
[0028]
[0029] Wherein, Confidence(A,B) represents the confidence of the initial binding relationship, Support_count(A∪B) represents the number of orders in which the intersection of dish formula A and dish formula B in the initial binding relationship in the order data appears, and Support_count(A) represents the total number of orders for dish A to be selected in the initial binding relationship in the order data;
[0030] Based on the ordering data, the improvement degree of the initial binding relationship is calculated using the following formula:
[0031]
[0032] Among them, l ift(A,B) represents the improvement degree of the initial binding relationship, P(AB) represents the probability of simultaneous appearance of dish formula A and dish formula B in the initial binding relationship, P(A) represents the probability of appearance of dish formula A in the initial binding relationship, P(B) represents the probability of appearance of dish formula B in the initial binding relationship, and P(A∪B) represents the probability of the intersection of dish formula A and dish formula B in the initial binding relationship.
[0033] In a possible implementation of the first aspect, selecting the final binding relationship of the to-be-selected dish from the initial binding relationship by using the confidence, the support, and the lift includes:
[0034] Selecting a candidate binding relationship of the candidate dish from the initial binding relationship by using the confidence and the support;
[0035] When the promotion degree is greater than a preset promotion degree, the final binding relationship is determined from the candidate binding relationships.
[0036] In a possible implementation of the first aspect, the determining the order of pop-up windows of dishes to be selected by using the final binding relationship includes:
[0037] The relationship weight of the final binding relationship is calculated using the following formula:
[0038]
[0039]
[0040] Among them, α1, α2, ... α n represents the relationship weight, S 12 It indicates the support between a recipe of the first dish to be selected and a recipe of another dish to be selected when there is a final binding relationship between the recipe of the first dish to be selected and the recipe of another dish to be selected, C 12 represents the confidence between a recipe of the first dish to be selected and a recipe of another dish to be selected, l 12 S represents the improvement between a recipe of the first dish to be selected and a recipe of another dish to be selected. 13 C represents the support between the same dish and the first dish after the second dish of the first dish is determined, when the final binding relationship between the first dish and the other dishes except the second dish, and the final binding relationship between the second dish and the other dishes except the first dish all point to the same dish, 13 represents the confidence between the same dish to be selected and the first dish to be selected, l 13 It represents the improvement between the same dish to be selected and the first dish to be selected, S 23 represents the support between the same candidate dish and the second candidate dish, C 23 represents the confidence between the same dish to be selected and the second dish to be selected, l 13 It represents the improvement between the same dish and the second dish, S 1(n+1)It indicates the support between the same dish and the first dish after the nth dish is determined. 1(n+1) represents the confidence between the same dish to be selected and the first dish to be selected, l 1(n+1) It represents the improvement between the same dish to be selected and the first dish to be selected, S 2(n+1) represents the support between the same candidate dish and the second candidate dish, C 2(n+1) represents the confidence between the same dish to be selected and the second dish to be selected, l 1(n+1) It represents the improvement between the same dish and the second dish, S n(n+1) represents the support between the same dish to be selected and the nth dish to be selected, C n(n+1) represents the confidence between the same dish to be selected and the nth dish to be selected, l n(n+1) Indicates the improvement between the same dish to be selected and the nth dish to be selected;
[0041] When the relationship weights conform to the following weight format, the order of pop-up windows of the dishes to be selected is determined using the final binding relationship corresponding to the relationship weights:
[0042]
[0043] Among them, α represents the weight format, Indicates the maximum value of the first relationship weight in the relationship weights. Indicates the maximum value of the second relationship weight in the relationship weight. Indicates the maximum value of the nth relationship weight in the relationship weights.
[0044] In a possible implementation of the first aspect, analyzing, based on the pop-up window click behavior, whether the dish pop-up window in the smartphone ordering system is accidentally clicked by the user includes:
[0045] According to the pop-up window click behavior, the probability of a user mis-clicking a dish pop-up window in the smartphone ordering system is calculated using the following formula:
[0046]
[0047] Among them, C k represents the probability of user delay, D k represents the total number of pop-up windows experienced from the interface where the kth dish pop-up window appears to the end interface in the pop-up window click behavior, and the end interface represents the interface before the kth dish pop-up window or the interface when the interface stays for longer than the preset time. kIndicates the number of times the user clicks back or denies from the interface where the kth dish pop-up window appears to the end interface;
[0048] When the probability of the user being late is greater than a preset probability of being late, determining that the dish pop-up window in the smartphone ordering system is late ordered by the user;
[0049] When the probability of the user being late is not greater than the preset probability of being late, it is determined that the dish pop-up window in the smartphone ordering system is not lately ordered by the user.
[0050] In a possible implementation of the first aspect, changing a pop-up window position of the dish pop-up window to obtain a changed position includes:
[0051] When the user has a history of clicking on pop-up windows, the following formula is used to calculate the probability of the user being on time for the dish pop-up window:
[0052]
[0053] Among them, C' k represents the probability of the user being on time, D' l represents the total number of pop-up windows experienced from the interface where the lth dish pop-up window appears to the end interface in the historical pop-up window click behavior, where the end interface represents the interface before the lth dish pop-up window or the interface where the interface stays for longer than the preset time, d' l Indicates the number of times the user clicks to confirm from the interface where the lth dish pop-up window appears to the end interface. The lth dish pop-up window is the dish pop-up window other than the kth dish pop-up window;
[0054] Selecting a first idle pop-up window position from the neighboring pop-up window positions of the historical pop-up window position corresponding to the user's punctuality probability, and using the first idle pop-up window position as the replacement position;
[0055] When the user does not have the historical pop-up window click behavior, a second idle pop-up window position is selected from the neighboring pop-up window positions of the current pop-up window position of the dish pop-up window, and the second idle pop-up window position is used as the replacement position.
[0056] In a possible implementation of the first aspect, using the menu pop-up window sequence and the change position to automatically pop up a menu on the smartphone ordering system to obtain a menu pop-up window result includes:
[0057] Querying dishes selected by the user in the smartphone ordering system;
[0058] Searching for dishes to be recommended for the selected dishes in the order of the dish pop-up window;
[0059] At the change position, the dishes to be recommended are automatically popped up in sequence according to the dish pop-up order to obtain dish automatic pop-up results.
[0060] In a second aspect, the present invention provides an automatic pop-up window system for a smart phone ordering system, the system comprising:
[0061] A data collection module, used to collect dishes to be selected, ordering data and pop-up window click behavior in the smart phone ordering system, wherein the ordering data refers to the data of the user of the smart phone ordering system selecting the dishes to be selected;
[0062] A data calculation module, used to construct an initial binding relationship between each of the dishes to be selected, and calculate the confidence, support and promotion of the initial binding relationship based on the order data;
[0063] An order determination module, configured to select a final binding relationship of the dishes to be selected from the initial binding relationship by using the confidence, the support and the lift, and determine a pop-up order of the dishes to be selected by using the final binding relationship;
[0064] A delayed order analysis module, used to analyze whether the dish pop-up window in the smartphone ordering system is accidentally clicked by the user according to the pop-up window click behavior;
[0065] A position changing module, used for changing the pop-up window position of the dish pop-up window in the smart phone ordering system when the dish pop-up window is mistakenly clicked by the user to obtain a changed position;
[0066] The dish pop-up module is used to use the dish pop-up sequence and the change position to automatically pop up the dish on the smart phone ordering system to obtain the dish automatic pop-up result.
[0067] Compared with the prior art, the technical principle and beneficial effects of this solution are:
[0068] The embodiment of the present invention constructs an initial binding relationship between each of the dishes to be selected, so as to remove the binding relationship of the dishes with conflicting attributes among the dishes to be selected. Furthermore, the embodiment of the present invention calculates the confidence, support and lift of the initial binding relationship based on the ordering data, so as to identify the user's preference for matching different dishes when ordering based on the ordering data of most users, so as to recommend dishes to the user based on the user's ordering preference. Furthermore, the embodiment of the present invention selects the final binding relationship of the dishes to be selected from the initial binding relationship by using the confidence, support and lift, so as to recommend dishes to the user based on the user's ordering preference. When a dish is selected, other dishes that have a final binding relationship with this dish are recommended to the user, thereby recommending dishes to the user based on the user's ordering preferences. Furthermore, the embodiment of the present invention determines the order of the pop-up windows of the dishes to be selected by utilizing the final binding relationship, so as to recommend other dishes based on the multiple dishes to be selected selected by the user after the user selects multiple dishes to be selected and adds them to the shopping cart. The embodiment of the present invention analyzes whether the dish pop-up window in the smartphone ordering system is accidentally clicked by the user based on the pop-up window click behavior, so as to reduce the situation of accidental clicks on pop-ups when the user clicks on the mobile phone interface when there are many dish options in the smartphone ordering system. Therefore, the automatic pop-up window method and system for a smartphone ordering system proposed in the embodiment of the present invention can reduce the situation where the automatic pop-up window method of the smartphone ordering system does not take into account the incompatibility of food and the accidental clicks of users on pop-up windows. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0070] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0071] Figure 1 A schematic diagram of a flow chart of an automatic pop-up window method for a smart phone ordering system provided by an embodiment of the present invention;
[0072] Figure 2 In one embodiment of the present invention Figure 1 A schematic diagram of one of the steps of a method for automatically popping up a window in a smart phone ordering system is provided;
[0073] Figure 3 In one embodiment of the present invention Figure 1A schematic diagram of another step of a method for automatically popping up a window in a smart phone ordering system is provided;
[0074] Figure 4 A schematic diagram of a module of an automatic pop-up window system for a smart phone ordering system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0075] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0076] The embodiment of the present invention provides a method for automatically popping up a window in a smart phone ordering system, and the execution subject of the method for automatically popping up a window in a smart phone ordering system includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiment of the present invention. In other words, the method for automatically popping up a window in a smart phone ordering system can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
[0077] See also Figure 1 FIG. 1 is a flow chart of an automatic pop-up window method for a smart phone ordering system provided by an embodiment of the present invention. Figure 1 The automatic pop-up window method of the smartphone ordering system described in the specification includes:
[0078] S1. Collect dishes to be selected, ordering data and pop-up window click behavior in a smart phone ordering system, wherein the ordering data refers to data of the dishes to be selected selected by the user of the smart phone ordering system.
[0079] In an embodiment of the present invention, the ordering data includes data on the number of times all users click on a dish to add the dish to a shopping cart and pay for the dish, recorded by the smartphone ordering system. Furthermore, the pop-up click behavior refers to the path of the user clicking on a query pop-up window, clicking on a query next pop-up window, and clicking on a query previous pop-up window. For example, when there are four pop-up windows or interfaces, h, j, k, and l, the pop-up click behavior is from the h interface to the j interface, from the j interface to the k interface, and from the k interface to the l interface.
[0080] S2. construct an initial binding relationship between each of the dishes to be selected, and calculate the confidence, support and promotion of the initial binding relationship based on the order data.
[0081] The embodiment of the present invention constructs an initial binding relationship between each of the dishes to be selected, so as to remove the binding relationship of dishes with conflicting attributes among the dishes to be selected.
[0082] In one embodiment of the present invention, referring to Figure 2 As shown, the step of constructing an initial binding relationship between each of the dishes to be selected includes:
[0083] S201, identifying the recipe of the dish to be selected;
[0084] S202, marking the recipe attributes between each dish recipe in the dish recipe;
[0085] S203, determining whether there are mutually exclusive attributes in the formula attributes;
[0086] S204, when the mutually restraining attribute exists in the formula attributes, calculating the degree of restraint of the mutually restraining attribute;
[0087] S205. After excluding toxic attributes from the recipe attributes based on the degree of mutual restraint, an initial binding relationship between each of the dishes to be selected is constructed using the remaining attributes in the recipe attributes.
[0088] Among them, the dish recipe refers to the recipe of raw materials and food contained in the dish to be selected. For example, when the dish to be selected is stir-fried beef with green pepper, the dish recipe includes green pepper and beef. Furthermore, the recipe attribute is the attribute of the pairing between a certain dish recipe of two different dishes to be selected, that is, the attribute of the pairing between dish recipe No. 1 of dish A to be selected and dish recipe No. 2 of dish to be selected B. The recipe attributes include the four qi, food properties and chemical properties of food, such as the four qi of cold, cool, warm and hot, the food properties of salty, sour, sweet, bitter and spicy, the protein structure of food, etc.
[0089] Optionally, the process of determining whether there are incompatible attributes in the formula attributes can be determined by querying a public incompatible food table.
[0090] In another embodiment of the present invention, the calculating of the degree of the mutual restraint of the mutual restraint attribute includes: collecting historical poisoning events of the dish recipe corresponding to the mutual restraint attribute; and calculating the degree of the mutual restraint of the mutual restraint attribute using the following formula based on the historical poisoning events:
[0091]
[0092] Among them, p i represents the degree of incompatibility between the i-th dish recipe and the j-th dish recipe, z ij represents the historical poisoning events in which the i-th dish recipe corresponding to the incompatible attribute and the j-th dish recipe appeared at the same time, X i represents the historical poisoning incidents of the i-th dish recipe, Y j represents the historical poisoning incidents of the jth recipe, and max represents the number of Select the sign of the maximum value in .
[0093] Furthermore, an embodiment of the present invention calculates the confidence, support and improvement of the initial binding relationship based on the ordering data, so as to identify the user's preference for matching different dishes when ordering based on the ordering data of most users, thereby recommending dishes to the user based on the user's ordering preference.
[0094] In one embodiment of the present invention, the calculating of the confidence, support and promotion of the initial binding relationship based on the ordering data includes: calculating the support of the initial binding relationship based on the ordering data using the following formula:
[0095]
[0096] in, represents the support of the initial binding relationship, Support_count(A∪B) represents the number of orders in which the intersection of recipe A and recipe B in the initial binding relationship in the order data appears, and Total_count represents the total number of orders in the initial binding relationship in the order data;
[0097] Based on the ordering data, the confidence of the initial binding relationship is calculated using the following formula:
[0098]
[0099] Wherein, Confidence(A,B) represents the confidence of the initial binding relationship, Support_count(A∪B) represents the number of orders in which the intersection of dish formula A and dish formula B in the initial binding relationship in the order data appears, and Support_count(A) represents the total number of orders for dish A to be selected in the initial binding relationship in the order data;
[0100] Based on the ordering data, the improvement degree of the initial binding relationship is calculated using the following formula:
[0101]
[0102] Among them, l ift(A,B) represents the improvement degree of the initial binding relationship, P(AB) represents the probability of simultaneous appearance of dish formula A and dish formula B in the initial binding relationship, P(A) represents the probability of appearance of dish formula A in the initial binding relationship, P(B) represents the probability of appearance of dish formula B in the initial binding relationship, and P(A∪B) represents the probability of the intersection of dish formula A and dish formula B in the initial binding relationship.
[0103] S3. Selecting a final binding relationship of the dishes to be selected from the initial binding relationship by using the confidence, the support and the lift, and determining a pop-up order of the dishes to be selected by using the final binding relationship.
[0104] Furthermore, an embodiment of the present invention selects the final binding relationship of the selected dish from the initial binding relationship by utilizing the confidence, the support and the lift, so as to recommend other dishes that have a final binding relationship with the dish to the user when the user selects a dish, thereby recommending dishes to the user based on the user's ordering preferences.
[0105] In one embodiment of the present invention, referring to Figure 3 As shown, the selecting the final binding relationship of the to-be-selected dishes from the initial binding relationship by using the confidence, the support and the lift includes:
[0106] S301, selecting a candidate binding relationship of the candidate dish from the initial binding relationship by using the confidence and the support;
[0107] S302: When the promotion degree is greater than a preset promotion degree, determine the final binding relationship from the candidate binding relationships.
[0108] Among them, when the lift degree is less than 1, it means that the two dish recipes in the binding relationship to be selected are exclusive, when the lift degree is equal to 1, it means that there is no correlation between the two dish recipes in the binding relationship to be selected, and when the lift degree is greater than 1, it means that there is a correlation between the two dish recipes in the binding relationship to be selected. Therefore, the preset lift degree value is set to 1.
[0109] Optionally, the process of selecting the candidate binding relationship of the candidate dish from the initial binding relationship by using the confidence and the support is to select the initial binding relationship whose confidence and the support are both greater than the standard confidence and the standard support.
[0110] Furthermore, the embodiment of the present invention determines the pop-up order of the dishes to be selected by utilizing the final binding relationship, so as to recommend other dishes based on the multiple dishes to be selected selected by the user after the user selects multiple dishes to be selected and adds them to the shopping cart.
[0111] In one embodiment of the present invention, the determining the order of pop-up windows of the dishes to be selected by using the final binding relationship includes: calculating the relationship weight of the final binding relationship by using the following formula:
[0112]
[0113] Among them, α1, α2, ... α n represents the relationship weight, S 12 It indicates the support between a recipe of the first dish to be selected and a recipe of another dish to be selected when there is a final binding relationship between the recipe of the first dish to be selected and the recipe of another dish to be selected, C 12 represents the confidence between a recipe of the first dish to be selected and a recipe of another dish to be selected, l 12 S represents the improvement between a recipe of the first dish to be selected and a recipe of another dish to be selected. 13 C represents the support between the same dish and the first dish after the second dish of the first dish is determined, when the final binding relationship between the first dish and the other dishes except the second dish, and the final binding relationship between the second dish and the other dishes except the first dish all point to the same dish, 13 represents the confidence between the same dish to be selected and the first dish to be selected, l 13 It represents the improvement between the same dish to be selected and the first dish to be selected, S 23 represents the support between the same candidate dish and the second candidate dish, C 23 represents the confidence between the same dish to be selected and the second dish to be selected, l 13 It represents the improvement between the same dish and the second dish, S 1(n+1) It indicates the support between the same dish and the first dish after the nth dish is determined. 1(n+1) represents the confidence between the same dish to be selected and the first dish to be selected, l 1(n+1) It represents the improvement between the same dish to be selected and the first dish to be selected, S 2(n+1) represents the support between the same candidate dish and the second candidate dish, C 2(n+1) represents the confidence between the same dish to be selected and the second dish to be selected, l 1(n+1)It represents the improvement between the same dish and the second dish, S n(n+1) represents the support between the same dish to be selected and the nth dish to be selected, C n(n+1) represents the confidence between the same dish to be selected and the nth dish to be selected, l n(n+1) Indicates the improvement between the same dish to be selected and the nth dish to be selected;
[0114] When the relationship weights conform to the following weight format, the order of pop-up windows of the dishes to be selected is determined using the final binding relationship corresponding to the relationship weights:
[0115]
[0116] Among them, α represents the weight format, Indicates the maximum value of the first relationship weight in the relationship weights. Indicates the maximum value of the second relationship weight in the relationship weight. Indicates the maximum value of the nth relationship weight in the relationship weights.
[0117] S4. Analyze, based on the pop-up window click behavior, whether the dish pop-up window in the smartphone ordering system is accidentally clicked by the user.
[0118] The embodiment of the present invention analyzes whether the dish pop-up window in the smart phone ordering system is accidentally clicked by the user based on the pop-up window click behavior, so as to reduce the situation of accidental clicks on pop-up windows when the user clicks on the mobile phone interface when there are many dish options in the smart phone ordering system.
[0119] In one embodiment of the present invention, analyzing whether the dish pop-up window in the smart phone ordering system is accidentally clicked by the user according to the pop-up window click behavior includes: calculating the probability of the user accidentally clicking the dish pop-up window in the smart phone ordering system according to the pop-up window click behavior using the following formula:
[0120]
[0121] Among them, C k represents the probability of user delay, D k represents the total number of pop-up windows experienced from the interface where the kth dish pop-up window appears to the end interface in the pop-up window click behavior, and the end interface represents the interface before the kth dish pop-up window or the interface when the interface stays for longer than the preset time. k Indicates the number of times the user clicks back or denies from the interface where the kth dish pop-up window appears to the end interface;
[0122] When the probability of the user delaying the order is greater than the preset probability of delaying the order, it is determined that the pop-up window of the dish in the smartphone ordering system was delayed by the user; when the probability of the user delaying the order is not greater than the preset probability of delaying the order, it is determined that the pop-up window of the dish in the smartphone ordering system was not delayed by the user.
[0123] S5. When the dish pop-up window in the smart phone ordering system is mistakenly clicked by the user, the pop-up window position of the dish pop-up window is changed to obtain a changed position.
[0124] In one embodiment of the present invention, the step of changing the pop-up window position of the menu pop-up window to obtain the changed position includes: when the user has a history of clicking on pop-up windows, using the following formula to calculate the probability of the user being on time for the menu pop-up window of the user:
[0125]
[0126] Among them, C' k represents the probability of the user being on time, D' l represents the total number of pop-up windows experienced from the interface where the lth dish pop-up window appears to the end interface in the historical pop-up window click behavior, where the end interface represents the interface before the lth dish pop-up window or the interface where the interface stays for longer than the preset time, d' l Indicates the number of times the user clicks to confirm from the interface where the lth dish pop-up window appears to the end interface. The lth dish pop-up window is the dish pop-up window other than the kth dish pop-up window;
[0127] A first idle pop-up window position is selected from the neighboring pop-up window positions of the historical pop-up window position corresponding to the probability of the user being on time, and the first idle pop-up window position is used as the replacement position; when the user does not have the historical pop-up window click behavior, a second idle pop-up window position is selected from the neighboring pop-up window position of the current pop-up window position of the dish pop-up window, and the second idle pop-up window position is used as the replacement position.
[0128] S6. Using the pop-up order of dishes and the change position, the smart phone ordering system automatically pops up dishes to obtain a pop-up result of dishes.
[0129] In one embodiment of the present invention, the use of the dish pop-up order and the change position to perform automatic dish pop-up on the smartphone ordering system to obtain automatic dish pop-up results includes: querying the dishes selected by the user in the smartphone ordering system; querying the dishes to be recommended for the selected dishes in the dish pop-up order; and at the change position, performing automatic dish pop-up for the dishes to be recommended in sequence according to the dish pop-up order to obtain automatic dish pop-up results.
[0130] It can be seen that the embodiment of the present invention constructs an initial binding relationship between each of the dishes to be selected, so as to remove the binding relationship of the dishes with conflicting attributes among the dishes to be selected. Furthermore, the embodiment of the present invention calculates the confidence, support and lift of the initial binding relationship based on the ordering data, so as to identify the user's preference for matching different dishes when ordering based on the ordering data of most users, so as to recommend dishes to the user based on the user's ordering preference. Furthermore, the embodiment of the present invention selects the final binding relationship of the dishes to be selected from the initial binding relationship by using the confidence, support and lift, so as to recommend dishes to the user based on the user's ordering preference. When a user selects a certain dish, other dishes that have a final binding relationship with this dish are recommended to the user, thereby recommending dishes to the user based on the user's ordering preferences. Furthermore, the embodiment of the present invention determines the order of the pop-up windows of the dishes to be selected by utilizing the final binding relationship, so that after the user selects multiple dishes to be selected and adds them to the shopping cart, other dishes are recommended based on the multiple dishes to be selected selected by the user. The embodiment of the present invention analyzes whether the dish pop-up window in the smartphone ordering system is accidentally clicked by the user based on the pop-up window click behavior, so as to reduce the situation of accidental clicks on pop-ups when the user clicks on the mobile phone interface when there are many dish options in the smartphone ordering system. Therefore, the automatic pop-up window method for a smartphone ordering system proposed in the embodiment of the present invention can reduce the situation where the automatic pop-up window method of the smartphone ordering system does not take into account the incompatibility of food and the accidental clicks of users on pop-up windows.
[0131] like Figure 4 The figure shows a functional module diagram of the automatic pop-up window system of the smart phone ordering system of the present invention.
[0132] The automatic pop-up window system 400 of the smart phone ordering system of the present invention can be installed in an electronic device. According to the functions to be implemented, the automatic pop-up window system of the smart phone ordering system can include a data acquisition module 401, a data calculation module 402, an order determination module 403, a delay analysis module 404, a position replacement module 405 and a dish pop-up window module 406. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0133] In the embodiment of the present invention, the functions of each module / unit are as follows:
[0134] The data collection module 401 is used to collect dishes to be selected, ordering data and pop-up window click behavior in the smart phone ordering system, wherein the ordering data refers to the data of the user of the smart phone ordering system selecting the dishes to be selected;
[0135] The data calculation module 402 is used to construct an initial binding relationship between each of the dishes to be selected, and calculate the confidence, support and promotion of the initial binding relationship based on the order data;
[0136] The order determination module 403 is used to select the final binding relationship of the dishes to be selected from the initial binding relationship by using the confidence, the support and the lift, and determine the order of the pop-up windows of the dishes to be selected by using the final binding relationship;
[0137] The delayed order analysis module 404 is used to analyze whether the dish pop-up window in the smartphone ordering system is accidentally clicked by the user according to the pop-up window click behavior;
[0138] The position changing module 405 is used to change the pop-up window position of the dish pop-up window in the smart phone ordering system when the dish pop-up window is accidentally clicked by the user to obtain a changed position;
[0139] The dish pop-up module 406 is used to use the dish pop-up sequence and the change position to automatically pop up dishes on the smart phone ordering system to obtain a dish automatic pop-up result.
[0140] In detail, the modules in the automatic pop-up window system 400 of the smart phone ordering system in the embodiment of the present invention are used in the same manner as described above. Figure 1 The technical means are the same as the automatic pop-up method of the smartphone ordering system described in, and can produce the same technical effects, so I will not go into details here.
[0141] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, 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 hardware plus software functional modules.
[0142] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0143] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0144] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, 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 "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0145] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features invented herein.
Claims
1. A method for automatically popping up a window in a smart phone ordering system, characterized in that: The method comprises: Collecting dishes to be selected, ordering data and pop-up window click behavior in the smartphone ordering system, wherein the ordering data refers to the data of the user of the smartphone ordering system selecting the dishes to be selected; Constructing an initial binding relationship between each of the dishes to be selected, and calculating the confidence, support and promotion of the initial binding relationship based on the order data; Selecting the final binding relationship of the dishes to be selected from the initial binding relationship by using the confidence, the support and the lift, and determining the order of pop-up windows of the dishes to be selected by using the final binding relationship; Analyzing, based on the pop-up window click behavior, whether the dish pop-up window in the smartphone ordering system is accidentally clicked by the user; When a dish pop-up window in the smartphone ordering system is mistakenly clicked by the user, a pop-up window position of the dish pop-up window is changed to obtain a changed position; The dish pop-up order and the change position are used to perform automatic dish pop-up on the smart phone ordering system to obtain a dish automatic pop-up result.
2. The method according to claim 1, characterized in that The step of constructing an initial binding relationship between each of the dishes to be selected includes: Identifying the recipe of the dish to be selected; Marking recipe attributes between each dish recipe in the dish recipe; Determine whether there are conflicting attributes among the formula attributes; When the mutually restraining attribute exists in the formula attribute, calculating the degree of restraint of the mutually restraining attribute; After toxic attributes are screened out from the recipe attributes based on the degree of mutual restraint, the remaining attributes in the recipe attributes are used to construct an initial binding relationship between each of the dishes to be selected.
3. The method according to claim 2, characterized in that The calculating the degree of mutual restraint of the mutual restraint attributes comprises: Collect historical poisoning events of dish recipes corresponding to the mutually restraining attributes; Based on the historical poisoning events, the degree of mutual restraint of the mutual restraint attributes is calculated using the following formula: Among them, pi represents the degree of incompatibility between the i-th dish recipe and the j-th dish recipe, zij represents the historical poisoning events that occurred simultaneously with the i-th dish recipe corresponding to the incompatibility attribute, Xi represents the historical poisoning events that occurred with the i-th dish recipe, Yj represents the historical poisoning events that occurred with the j-th dish recipe, and max represents the historical poisoning events that occurred with the j-th dish recipe. Select the sign of the maximum value in .
4. The method according to claim 1, characterized in that: The calculating, based on the ordering data, the confidence, support and promotion of the initial binding relationship includes: Based on the ordering data, the support degree of the initial binding relationship is calculated using the following formula: in, represents the support of the initial binding relationship, Support_count(A∪B) represents the number of orders in which the intersection of recipe A and recipe B in the initial binding relationship in the order data appears, and Total_count represents the total number of orders in the initial binding relationship in the order data; Based on the ordering data, the confidence of the initial binding relationship is calculated using the following formula: Wherein, Confidence(A,B) represents the confidence of the initial binding relationship, Support_count(A∪B) represents the number of orders in which the intersection of dish formula A and dish formula B in the initial binding relationship in the order data appears, and Support_count(A) represents the total number of orders for dish A to be selected in the initial binding relationship in the order data; Based on the ordering data, the improvement degree of the initial binding relationship is calculated using the following formula: Among them, l ift(A,B) represents the improvement degree of the initial binding relationship, P(AB) represents the probability of simultaneous appearance of dish formula A and dish formula B in the initial binding relationship, P(A) represents the probability of appearance of dish formula A in the initial binding relationship, P(B) represents the probability of appearance of dish formula B in the initial binding relationship, and P(A∪B) represents the probability of the intersection of dish formula A and dish formula B in the initial binding relationship.
5. The method according to claim 1, characterized in that The selecting the final binding relationship of the to-be-selected dishes from the initial binding relationship by using the confidence, the support and the lift includes: Selecting a candidate binding relationship of the candidate dish from the initial binding relationship by using the confidence and the support; When the promotion degree is greater than a preset promotion degree, the final binding relationship is determined from the candidate binding relationships.
6. The method according to claim 1, characterized in that The determining the order of pop-up windows of dishes to be selected by using the final binding relationship includes: The relationship weight of the final binding relationship is calculated using the following formula: ...... Among them, α1, α2, ... αn represent the relationship weights, S12 represents the support between a certain dish formula of the first dish to be selected and a certain dish formula of other dishes to be selected when there is a final binding relationship between a certain dish formula of the first dish to be selected and a certain dish formula of other dishes to be selected, C12 represents the confidence between a certain dish formula of the first dish to be selected and a certain dish formula of other dishes to be selected, l12 represents the lift between a certain dish formula of the first dish to be selected and a certain dish formula of other dishes to be selected, S13 represents the confidence between a certain dish formula of the first dish to be selected and a certain dish formula of other dishes to be selected, After selecting dishes, when the final binding relationship between the first dish and the other dishes except the second dish, and the final binding relationship between the second dish and the other dishes except the first dish all point to the same dish, the support between the same dish and the first dish, C13 represents the confidence between the same dish and the first dish, l13 represents the lift between the same dish and the first dish, S23 represents the support between the same dish and the second dish, C23 represents the confidence between the same dish and the first dish, represents the confidence between the same candidate and the second candidate, l13 represents the lift between the same candidate and the second candidate, S1(n+1) represents the support between the same candidate and the first candidate when the final binding relationship from the first candidate to the nth candidate points to the same candidate after the nth candidate of the first candidate is determined, C1(n+1) represents the confidence between the same candidate and the first candidate, l1(n+1) represents the support between the same candidate and the first candidate S2(n+1) represents the support between the same dish and the second dish, C2(n+1) represents the confidence between the same dish and the second dish, l1(n+1) represents the lift between the same dish and the second dish, Sn(n+1) represents the support between the same dish and the nth dish, Cn(n+1) represents the confidence between the same dish and the nth dish, ln(n+1) represents the lift between the same dish and the nth dish; When the relationship weights conform to the following weight format, the order of pop-up windows of the dishes to be selected is determined using the final binding relationship corresponding to the relationship weights: Among them, α represents the weight format, Indicates the maximum value of the first relationship weight in the relationship weights. Indicates the maximum value of the second relationship weight in the relationship weight. Indicates the maximum value of the nth relationship weight in the relationship weights.
7. The method according to claim 1, characterized in that The analyzing, based on the pop-up window click behavior, whether the dish pop-up window in the smart phone ordering system is accidentally clicked by the user includes: According to the pop-up window click behavior, the probability of a user mis-clicking a dish pop-up window in the smartphone ordering system is calculated using the following formula: Wherein, Ck represents the probability of a user ordering an order late, Dk represents the total number of pop-up windows experienced from the interface where the k-th dish pop-up window appears to the end interface in the pop-up window click behavior, the end interface represents the interface before the k-th dish pop-up window or the interface where the dwell time is greater than the preset time, and dk represents the number of times the user clicks back or denies from the interface where the k-th dish pop-up window appears to the end interface; When the probability of the user being late is greater than a preset probability of being late, determining that the dish pop-up window in the smartphone ordering system is late ordered by the user; When the probability of the user being late is not greater than the preset probability of being late, it is determined that the dish pop-up window in the smartphone ordering system is not lately ordered by the user.
8. The method according to claim 1, characterized in that: The step of changing the pop-up window position of the dish pop-up window to obtain the changed position includes: When the user has a history of clicking on pop-up windows, the following formula is used to calculate the probability of the user being on time for the dish pop-up window: Wherein, C'k represents the probability of the user being on time, D'l represents the total number of pop-up windows experienced from the interface where the lth dish pop-up window appears to the end interface in the historical pop-up window click behavior, the end interface represents the interface before the lth dish pop-up window or the interface where the dwell time of the interface is greater than the preset time, d'l represents the number of times the user clicks to confirm from the interface where the lth dish pop-up window appears to the end interface, and the lth dish pop-up window is the dish pop-up window other than the kth dish pop-up window; Selecting a first idle pop-up window position from the neighboring pop-up window positions of the historical pop-up window position corresponding to the user's punctuality probability, and using the first idle pop-up window position as the replacement position; When the user does not have the historical pop-up window click behavior, a second idle pop-up window position is selected from the neighboring pop-up window positions of the current pop-up window position of the dish pop-up window, and the second idle pop-up window position is used as the replacement position.
9. The method according to claim 1, characterized in that: The method of using the menu pop-up window sequence and the change position to automatically pop up menus on the smart phone ordering system to obtain the menu pop-up window automatic result includes: Querying dishes selected by the user in the smartphone ordering system; Searching for dishes to be recommended for the selected dishes in the order of the dish pop-up window; At the change position, the dishes to be recommended are automatically popped up in sequence according to the dish pop-up order to obtain dish automatic pop-up results.
10. An automatic pop-up window system for a smart phone ordering system, characterized in that: The system comprises: A data collection module, used to collect dishes to be selected, ordering data and pop-up window click behavior in the smart phone ordering system, wherein the ordering data refers to the data of the user of the smart phone ordering system selecting the dishes to be selected; A data calculation module, used to construct an initial binding relationship between each of the dishes to be selected, and calculate the confidence, support and promotion of the initial binding relationship based on the order data; An order determination module, configured to select a final binding relationship of the dishes to be selected from the initial binding relationship by using the confidence, the support and the lift, and determine a pop-up order of the dishes to be selected by using the final binding relationship; A delayed order analysis module, used to analyze whether the dish pop-up window in the smartphone ordering system is accidentally clicked by the user according to the pop-up window click behavior; A position changing module, used for changing the pop-up window position of the dish pop-up window in the smart phone ordering system when the dish pop-up window is mistakenly ordered by the user to obtain a changed position; The dish pop-up module is used to use the dish pop-up sequence and the change position to automatically pop up dishes on the smart phone ordering system to obtain the dish automatic pop-up result.