Merchant recommendation method, device, equipment, and medium based on dynamic geographic fence
By dynamically adjusting the size of the geofence and recommending merchants in real time based on the real-time movement speed of the user terminal, the problem of poor user experience in the existing technology is solved, and the geofence size and better user experience are achieved that meets user needs.
Patent Information
- Application Number
- CN202411442613.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2044-10-16
AI Technical Summary
The existing LBS-based recommendation algorithm requires users to frequently input target locations, which are less flexible and cannot achieve automatic dynamic recommendations, resulting in poor user experience.
A merchant recommendation method based on dynamic geofence is proposed. By obtaining the real-time speed of the user terminal, the size of the geofence is dynamically adjusted, merchants are recommended in real time, and the size of the geofence is dynamically adjusted across cycles according to user ratings.
It realizes the periodic dynamic construction of geofences based on the user's real-time movement speed, updates recommended merchants in real time, improves the user experience, and the size of the geofence is more in line with user needs.
Smart Images

Figure CN118967278B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of recommendation algorithms, and in particular to a merchant recommendation method, device, equipment, and medium based on dynamic geographic fences. Background Art
[0002] At present, with the development of mobile Internet, location-based services (LBS) are receiving more and more attention. In daily life, consumers will search for nearby stores, charging stations, gas stations and other businesses based on relevant positioning information on various types of apps. In traditional LBS-based recommendation algorithms, users are required to enter the target location, build a geographic fence based on the target location and the set search radius, and recommend relevant businesses within the geographic fence. If the user is on the move and wants to update the recommended businesses nearby in real time, the target location needs to be entered frequently, which not only has low flexibility, but also requires the user to be familiar with nearby place names, resulting in a poor user experience.
[0003] Although a method for making recommendations based on the location of a user terminal has been proposed in the related art, it still requires the user to manually initiate requests frequently, and the flexibility is still poor, and automatic dynamic recommendations cannot be achieved. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a merchant recommendation method, device, equipment, and medium based on dynamic geographic fences, which can dynamically adjust the geographic fence according to the real-time speed of the user, dynamically recommend merchants in real time, and improve the user experience.
[0005] In a first aspect, an embodiment of the present invention provides a merchant recommendation method based on dynamic geographic fences, which is applied to a user terminal, wherein the user terminal is preset with multiple candidate speed intervals, each of the candidate speed intervals is associated with a candidate duration and a candidate amplification factor, and the values of the candidate durations are different, and the method includes:
[0006] Acquire a first real-time speed of the user terminal, determine the candidate speed interval in which the first real-time speed is located as a first speed interval, and determine the candidate duration and the candidate amplification factor associated with the first speed interval as a first duration and a first amplification factor, respectively;
[0007] Determine a product of the first real-time speed, the first duration, and a first magnification factor as a first fence radius, construct a first geo-fence based on the first fence radius, and display a plurality of recommended first merchant information in the first geo-fence;
[0008] When the accumulated display time of the first merchant information reaches the first time, obtaining a second real-time speed of the user terminal and obtaining a first user score input for the first geo-fence;
[0009] Determine the candidate speed interval in which the second real-time speed is located as the second speed interval, obtain a second duration and a second magnification factor based on the second speed interval, construct a second geo-fence after updating the second duration and the second magnification factor based on the first user score, and display multiple recommended second merchant information in the second geo-fence based on the updated second duration.
[0010] According to some embodiments of the present invention, constructing a second geo-fence after updating the second duration and the second magnification factor based on the first user score includes:
[0011] When the first user score is less than a preset first score threshold, an interval adjustment item and a range adjustment item are pushed, interval correction information is obtained based on the interval adjustment item, and a first correction direction is obtained based on the range adjustment item, wherein the interval correction information is used to indicate an extension or a reduction in duration, and the first correction direction is used to indicate an enlargement or reduction in the geo-fence;
[0012] A preset first adjustment ratio is obtained, the second duration is updated based on the first adjustment ratio and the interval correction information, and the second amplification factor is updated based on the first adjustment ratio and the first correction direction.
[0013] According to some embodiments of the present invention, after displaying a plurality of recommended second business information in the second geo-fence based on the updated second duration, the method further includes:
[0014] Acquire a second user rating, wherein the second user rating is used to indicate adjustment satisfaction of the second duration and the second amplification factor;
[0015] When the second user score is greater than or equal to the first score threshold, the candidate duration and the candidate amplification factor of the candidate speed interval that have never been applied are updated based on the first adjustment ratio, the interval correction information, and the first correction direction.
[0016] According to some embodiments of the present invention, after constructing the first geo-fence based on the first fence radius, the method further includes:
[0017] Periodically push an intermediate rating item within the first duration, and acquire a third user rating and a second correction direction based on the intermediate rating item, wherein the second correction direction is used to indicate enlarging or reducing the geo-fence, and the third user rating is used to represent satisfaction with the first fence radius;
[0018] When the third user score is less than a preset second score threshold, obtaining a second adjustment ratio from a preset mapping table based on the third user score, and updating the first magnification coefficient based on the second adjustment ratio and the second correction direction, wherein the preset mapping table records a mapping relationship between multiple optional scores and multiple coefficient adjustment ratios;
[0019] updating the first fence radius based on the updated first magnification factor, and updating the first geographic fence and the corresponding first merchant information based on the updated first fence radius;
[0020] When the third user score is greater than or equal to the second score threshold, stop pushing the intermediate score item, and display the current first geo-fence and the first merchant information during the remaining time of the first duration;
[0021] After the first time period ends, the candidate amplification factor of the first speed section is replaced based on the latest first amplification factor.
[0022] According to some embodiments of the present invention, after updating the first geo-fence and the corresponding first merchant information based on the updated first fence radius, the method further includes:
[0023] After the first duration ends, when the third user score obtained each time is less than the second score threshold, determining the latest first amplification factor as the intermediate amplification factor;
[0024] When the second speed interval and the first speed interval are the same candidate speed interval, constructing the second geo-fence based on the second real-time speed, the intermediate amplification factor and the second duration;
[0025] Continue to push the intermediate scoring items periodically.
[0026] According to some embodiments of the present invention, after obtaining the second user score, the method further includes:
[0027] When the second speed interval is selected for the second time, obtaining the third real-time speed, the fourth user rating, the third duration, and the third amplification factor when the second speed interval is selected for the first time, wherein the fourth user rating is used to indicate the adjustment satisfaction of the third duration and the third amplification factor;
[0028] When the second real-time speed is not equal to the third real-time speed, and the fourth user score or the second user score is less than the first score threshold, determining an average of the second real-time speed and the third real-time speed as a reference speed;
[0029] Splitting the second speed interval into a first sub-interval and a second sub-interval based on the reference speed, wherein the second real-time speed is located in the first sub-interval, and the third real-time speed is located in the second sub-interval;
[0030] The first sub-interval and the second sub-interval are respectively determined as two new candidate speed intervals, wherein the candidate duration and the candidate amplification factor associated with the first sub-interval are respectively the second duration and the second amplification factor, and the candidate duration and the candidate amplification factor associated with the second sub-interval are respectively the third duration and the third amplification factor.
[0031] According to some embodiments of the present invention, each of the candidate speed intervals is associated with a plurality of candidate merchant types, each of the candidate merchant types is associated with at least one optional merchant information, and after displaying a plurality of recommended second merchant information in the second geo-fence based on the updated second duration, the method further includes:
[0032] Filtering a plurality of target merchant information from a plurality of the second merchant information based on a user operation, wherein the target merchant types of the respective target merchant information are the same;
[0033] When the second user score is greater than or equal to the first score threshold, the updated second duration and the updated second amplification factor are bound to the target merchant type in the second speed range, wherein the remaining candidate merchant types that are not bound to any merchant type are associated with the second duration and the second amplification factor before the update.
[0034] In a second aspect, an embodiment of the present invention provides a merchant recommendation device based on dynamic geo-fence, comprising at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions executable by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the merchant recommendation method based on dynamic geo-fence as described in the first aspect above.
[0035] In a third aspect, an embodiment of the present invention provides an electronic device, comprising the merchant recommendation device based on dynamic geographic fence as described in the second aspect above.
[0036] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the merchant recommendation method based on dynamic geographic fence as described in the first aspect above.
[0037] According to the merchant recommendation method based on dynamic geo-fence according to the embodiment of the present invention, there are at least the following beneficial effects: obtaining the first real-time speed of the user terminal, determining the candidate speed interval in which the first real-time speed is located as the first speed interval, and determining the candidate duration and the candidate magnification factor associated with the first speed interval as the first duration and the first magnification factor respectively; determining the product of the first real-time speed, the first duration and the first magnification factor as the first fence radius, constructing a first geo-fence based on the first fence radius, and displaying multiple recommended first merchant information in the first geo-fence; when the cumulative display time of the first merchant information reaches the first duration, obtaining the second real-time speed of the user terminal, and obtaining the first user rating input for the first geo-fence; determining the candidate speed interval in which the second real-time speed is located as the second speed interval, obtaining the second duration and the second magnification factor based on the second speed interval, constructing a second geo-fence after updating the second duration and the second magnification factor based on the first user rating, and displaying multiple recommended second merchant information in the second geo-fence based on the updated second duration. According to the technical solution of the embodiments of the present invention, a geo-fence can be dynamically constructed periodically according to the real-time moving speed of the user terminal, recommended merchants can be updated in real time in the dynamically constructed geo-fence, and the size of the geo-fence can be dynamically adjusted across periods according to user ratings, so that the size of the geo-fence is more in line with user needs and the user experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 is a flow chart of a merchant recommendation method based on dynamic geographic fences provided by an embodiment of the present invention;
[0039] Figure 2 is a schematic diagram of a merchant recommendation method based on dynamic geographic fences provided by another embodiment of the present invention;
[0040] Figure 3 is a schematic diagram of updating a first geo-fence within a first time period provided by another embodiment of the present invention;
[0041] Figure 4 is a complete flow chart of a merchant recommendation method based on dynamic geographic fences provided by another embodiment of the present invention;
[0042] Figure 5 It is a structural diagram of a merchant recommendation device based on dynamic geographic fence provided by another embodiment of the present invention. DETAILED DESCRIPTION
[0043] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0044] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0045] In the description of the present invention, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed" etc. are understood as not including the number itself, and "above", "below", "within" etc. are understood as including the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0046] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.
[0047] Embodiments of the present invention provide a merchant recommendation method, apparatus, device, and medium based on dynamic geo-fences, wherein the merchant recommendation method based on dynamic geo-fences includes: obtaining a first real-time speed of the user terminal, determining the candidate speed interval in which the first real-time speed is located as the first speed interval, and determining the candidate duration and the candidate magnification factor associated with the first speed interval as the first duration and the first magnification factor, respectively; determining the product of the first real-time speed, the first duration, and the first magnification factor as the first fence radius, constructing a first geo-fence based on the first fence radius, and displaying multiple recommended first merchant information in the first geo-fence; when the cumulative display time of the first merchant information reaches the first duration, obtaining the second real-time speed of the user terminal, and obtaining the first user rating input for the first geo-fence; determining the candidate speed interval in which the second real-time speed is located as the second speed interval, obtaining the second duration and the second magnification factor based on the second speed interval, constructing a second geo-fence after updating the second duration and the second magnification factor based on the first user rating, and displaying multiple recommended second merchant information in the second geo-fence based on the updated second duration. According to the technical solution of the embodiments of the present invention, a geo-fence can be dynamically constructed periodically according to the real-time moving speed of the user terminal, recommended merchants can be updated in real time in the dynamically constructed geo-fence, and the size of the geo-fence can be dynamically adjusted across periods according to user ratings, so that the size of the geo-fence is more in line with user needs and the user experience is improved.
[0048] The technical solution of the embodiment of the present invention is further described below based on the accompanying drawings.
[0049] Reference Figure 1 , Figure 1 A flowchart of a merchant recommendation method based on dynamic geo-fencing provided in an embodiment of the present invention, the merchant recommendation method based on dynamic geo-fencing includes but is not limited to the following steps:
[0050] S10, obtaining a first real-time speed of the user terminal, determining a candidate speed interval in which the first real-time speed is located as a first speed interval, and determining a candidate duration and a candidate amplification factor associated with the first speed interval as a first duration and a first amplification factor, respectively;
[0051] S20, determining a product of the first real-time speed, the first duration, and the first magnification coefficient as a first fence radius, constructing a first geo-fence based on the first fence radius, and displaying a plurality of recommended first merchant information in the first geo-fence;
[0052] S30, when the accumulated display time of the first merchant information reaches the first time, obtaining a second real-time speed of the user terminal, and obtaining a first user rating input for the first geo-fence;
[0053] S40, determining the candidate speed interval in which the second real-time speed is located as the second speed interval, obtaining the second duration and the second magnification factor based on the second speed interval, constructing a second geographic fence after updating the second duration and the second magnification factor based on the first user score, and displaying multiple recommended second merchant information in the second geographic fence based on the updated second duration.
[0054] It should be noted that if Figure 1 As shown, the user terminal 10 may be a mobile terminal such as a mobile phone or a tablet computer. An application may be installed on the user terminal 10. The user carries the user terminal 10 and moves by walking or taking public transportation. During the movement, the user triggers a recommendation request in the application, such as clicking Figure 1 The “real-time recommendation” button shown in FIG. 1 is used to enable the user terminal 10 to obtain the current first real-time speed and trigger the subsequent process.
[0055] It should be noted that the present embodiment is capable of periodically refreshing the geographic fence according to a time interval. In the above steps, the operation when the first real-time speed is obtained is the same as the operation when the second real-time speed is obtained. Therefore, the first real-time speed and the second real-time speed are not limited to the previous two speeds when the request is triggered, but are two speeds with a causal relationship, that is, the first real-time speed is the real-time speed of the previous cycle of the second real-time speed. Therefore, according to the technical solution of the present embodiment, continuous recommendation can be achieved. For the convenience of description, the present embodiment illustrates the connection relationship between the two continuous recommendation stages through the first real-time speed and the second real-time speed. After each recommendation is completed, the real-time speed is obtained according to the technical solution of the present embodiment, the corresponding speed range is matched and the fence radius is determined, and the geographic fence and recommended merchant information are constructed after the relevant parameters are updated according to the last score.
[0056] It should be noted that the real-time speed can be determined by conventional techniques, such as continuously determining multiple longitude and latitude coordinate points based on the GPS system of the user terminal, and determining the moving speed based on the moving time between the longitude and latitude coordinate points. This embodiment does not limit how to obtain the speed of the user terminal.
[0057] It should be noted that no matter how the user moves, it is difficult to ensure uniform motion. Therefore, this embodiment does not match with specific values, but uses speed intervals as a wide range of matching, that is, multiple candidate speed intervals are pre-set in the application to distinguish different moving speeds or means of transportation. For example, the candidate speed interval [0,5] is used to represent the moving speed of walking, the candidate speed interval [10,20] is used to represent the moving speed of a bicycle, and the candidate speed interval [30,60] is used to represent the moving speed of a motor vehicle. The specific interval values can be set according to actual needs to ensure that the values between each candidate speed interval do not overlap.
[0058] It should be noted that each candidate speed interval is pre-associated with a candidate duration and a candidate magnification factor. The candidate duration is the display duration under the candidate speed interval. Since the sizes of the geographic fences constructed by different candidate speed intervals are different, the larger the geographic fence, the more merchants are within the range, and the larger the amount of data required to calculate when making merchant recommendations. In the case of a faster moving speed, even if the candidate duration is short, the calculated fence radius will be larger, so there will be frequent calculations of recommendation results. In order to reduce the amount of calculations in the system, this embodiment can determine the appropriate fence radius by setting the candidate duration and the candidate magnification factor. For example, when the speed value corresponding to the candidate speed interval is small, a shorter candidate duration can be set. When the speed value corresponding to the candidate speed interval is large, the user can move a larger distance in a shorter time. Therefore, a longer candidate duration can be set. The number of calculations can be reduced through large-scale recommendations. The specific candidate duration value can be set according to actual needs.
[0059] For example, the walking speed is represented by the candidate speed interval [0,5], and the bicycle speed is represented by the candidate speed interval [30,60]. The candidate duration corresponding to the candidate speed interval [0,5] is 10 minutes, and the candidate duration corresponding to the candidate speed interval [30,60] is 20 minutes. Taking the candidate amplification factor of 1 as an example, and the speed unit as kilometers per hour, the fence radius calculated by the real-time moving speed of 5 kilometers is 5×10÷60=0.83 kilometers, and the fence radius calculated by the real-time speed of 30 kilometers is 30×20÷60=10 kilometers.
[0060] It is worth noting that after determining the first real-time speed and the first speed interval, the first moving distance within the first time period at the current speed can be calculated through the first real-time speed and the first time period, but the user does not move at a constant speed, and it is likely that the moving speed will increase or decrease. For example, the speed of the vehicle will increase after the road becomes smooth. If the speed slows down, the moving distance will not exceed the first moving distance, but if the speed increases, it will exceed the first moving distance. Therefore, the first moving distance cannot be used as the first fence radius. This embodiment further introduces a candidate magnification factor. The first moving distance is magnified by the first magnification factor to obtain the first fence radius, which can reduce the possibility of the user terminal leaving the first geographic fence within the first time period and improve the user experience. The first magnification factor can be set according to actual needs. The candidate magnification factors of each candidate speed interval can be the same or different, and it is sufficient to ensure that the candidate magnification factor is greater than 1.
[0061] It should be noted that after determining the first geographic fence according to the first fence radius, recommending multiple first merchant information within the geographical scope indicated by the first geographic fence is a technology well known to those skilled in the art, and the specific recommendation algorithm is not limited here.
[0062] It should be noted that after determining the first geographic fence, the timing starts based on the first duration. When the display time of the first merchant information reaches the first duration, the user terminal moves to the boundary of the first geographic fence, and the next second geographic fence needs to be dynamically updated. The second real-time speed is obtained according to the principle of the above embodiment, and the corresponding second duration and second amplification factor are obtained after matching the second speed interval according to the same principle. The second geographic fence is formed with the second real-time speed, the second duration and the second amplification factor as the basic components. Dynamic fence movement is automatically realized, so that the recommended merchants dynamically follow the changes with the movement of the user terminal, thereby improving the user experience.
[0063] It should be noted that the candidate duration and candidate magnification factor of each candidate speed interval are reference values calibrated by the system and are preset in each user terminal. Due to different usage habits of different users, this embodiment obtains the first user rating input by the user for the first geo-fence after the first geo-fence is displayed, and the first user rating represents the user's satisfaction with the reference value. If the user is satisfied with the reference value calibrated by the system, and each candidate speed interval uses the same scale to set the candidate duration and candidate magnification factor, it can be determined that the second duration and second magnification factor of the second speed interval also meet the user's needs. If the first user rating represents that the user is dissatisfied with the scale preset by the system, the second duration and second magnification factor can be updated based on the first user rating, so that the second duration and second magnification factor can be biased towards user needs, so that the second geo-fence can better meet user needs.
[0064] For example, Figure 1 As shown, after the first geo-fence 21 is obtained in the user terminal 10, multiple first merchant information 31 is displayed in the first geo-fence 21. After the display time of the first merchant information 31 reaches the first time, the user gives a first user rating of 3 stars based on the first geo-fence 21, and selects to extend in the interval adjustment item and to enlarge in the range adjustment item. It can be determined that the user believes that the candidate time is short and the range of the geo-fence is too small. Therefore, after obtaining the second time and the second magnification factor, the second geo-fence 22 obtained before adjustment is adjusted. Figure 1 As shown in the upper right corner, after adjustment, the second duration is extended and the second magnification factor is increased, so the second geographic fence 22 with an increased range is as shown in FIG. Figure 1 As shown in the lower right corner, the user terminal 10 is reflected as a scale enlargement, and more second merchant information 32 can be displayed within a larger second geographic fence 22.
[0065] It is worth noting that in some related technologies, the display range of the user terminal can be adjusted by zooming or enlarging operations, such as increasing the range of the geo-fence by gesture zooming, but real-time zooming can only be personalized in the current geo-fence. This embodiment updates the second duration and the second magnification factor based on the first user score, and corrects the scale of the reference value calibrated by the system based on user needs, so that the newly constructed geo-fence can continuously tend to user needs, and the user does not need to manually adjust it after each dynamic construction of the geo-fence. In addition, the update of relevant parameters in this embodiment is saved in the user terminal, not in the server, that is, after different users use it for a period of time, the candidate duration and candidate magnification factor of the same candidate speed interval of their respective user terminals can be different, so that the application can be dynamically adjusted according to user needs, and each user terminal can continuously and dynamically build a geo-fence of appropriate size according to user needs, thereby realizing personalized recommendation range adjustment.
[0066] In addition, in one embodiment, referring to Figure 4 Step S40 specifically includes but is not limited to the following steps:
[0067] S41, when the first user score is less than a preset first score threshold, push an interval adjustment item and a range adjustment item, obtain interval correction information based on the interval adjustment item, and obtain a first correction direction based on the range adjustment item, wherein the interval correction information is used to indicate extending or shortening the duration, and the first correction direction is used to indicate enlarging or reducing the geo-fence;
[0068] S42, obtaining a preset first adjustment ratio, updating the second duration based on the first adjustment ratio and the interval correction information, and updating the second magnification factor based on the first adjustment ratio and the first correction direction.
[0069] It should be noted that the first scoring threshold can be set according to actual needs, for example Figure 1 As shown, when the full score is 5, the first rating threshold can be 4 stars or 5 stars, and the specific value is not limited here. When the first user rating is greater than or equal to the first rating threshold, it can be determined that the user is satisfied with the current candidate duration and candidate magnification factor, and the second duration and the second magnification factor can be directly applied.
[0070] It should be noted that when the first user score is less than the first score threshold, for example Figure 1 As shown, after the user selects 3 minutes, the interval adjustment item and the range adjustment item are further displayed, and the interval correction information is obtained in the interval adjustment item, for example Figure 1 The "extension" shown in the range adjustment item obtains the first correction direction, for example Figure 1The “zoom in” shown in FIG. 1 updates the second duration and the second amplification factor according to a preset first adjustment ratio after the user determines the interval correction information and the first correction direction. The updating method is specified by the interval correction information, for example Figure 1 As shown in , the second duration is extended according to the first adjustment ratio, and the second amplification factor is increased according to the first adjustment ratio.
[0071] In addition, in one embodiment, referring to Figure 4 After executing step S40, the method further includes but is not limited to the following steps:
[0072] S51, obtaining a second user rating, wherein the second user rating is used to indicate adjustment satisfaction of the second duration and the second amplification factor;
[0073] S52: When the second user score is greater than or equal to the first score threshold, based on the first adjustment ratio, the interval correction information and the first correction direction, the candidate duration and the candidate amplification factor of the candidate speed interval that have never been applied are updated.
[0074] It should be noted that the second geo-fence is constructed based on the adjusted second duration and second amplification factor. The second user score is similar to the first user score. If the second user score is greater than or equal to the first score threshold, it can be determined that the user is satisfied with the second geo-fence after the adjustment. According to the description of the above embodiment, the candidate durations and candidate amplification factors of all candidate speed intervals are reference values calibrated based on the same scale. The adjusted scale for the second duration and the second amplification factor can meet user needs. Therefore, all candidate durations and candidate amplification factors can be adjusted uniformly, so that each candidate duration and candidate amplification factor in the user terminal can meet user needs, and the user does not need to make secondary adjustments when constructing the geo-fence subsequently, thereby improving the user experience.
[0075] It should be noted that the adjustment of this embodiment is based on the candidate speed intervals that have not been applied. The candidate durations and candidate magnification factors of these candidate speed intervals are still the scales calibrated by the system. Therefore, the corresponding candidate durations and candidate magnification factors can be adjusted based on the first adjustment ratio, the interval correction information and the first correction direction. The adjustment process is not repeated here. For the candidate speed intervals that have been applied, the relevant adjustments have been performed during the application period, so there is no need for secondary adjustment.
[0076] In addition, in one embodiment, referring to Figure 4 In step S20, after constructing the first geo-fence based on the first fence radius, the method further includes but is not limited to the following steps:
[0077] S21, periodically push the intermediate rating item within the first time period, and obtain a third user rating and a second correction direction based on the intermediate rating item, wherein the second correction direction is used to indicate enlarging or reducing the geo-fence, and the third user rating is used to represent satisfaction with the first fence radius;
[0078] S22, when the third user score is less than a preset second score threshold, obtaining a second adjustment ratio from a preset mapping table based on the third user score, and updating the first amplification coefficient based on the second adjustment ratio and the second correction direction, wherein the preset mapping table records a mapping relationship between a plurality of optional scores and a plurality of coefficient adjustment ratios;
[0079] S23, updating the first fence radius based on the updated first magnification factor, and updating the first geographic fence and the corresponding first merchant information based on the updated first fence radius;
[0080] S24, when the third user score is greater than or equal to the second score threshold, stop pushing the intermediate score item, and display the current first geo-fence and first merchant information for the remaining time of the first duration;
[0081] S25 , after the first time period ends, replacing the candidate amplification factor of the first speed interval based on the latest first amplification factor.
[0082] It should be noted that when the first merchant information is displayed based on the first geographic fence, the intermediate rating item is periodically pushed within the first duration, and the third user rating and the second correction direction are obtained through the intermediate rating item. The third user rating is used to represent the satisfaction with the first fence radius, and the second correction direction refers to the first correction direction and is used to represent the zoom-in or zoom-out operation. For example, if the first duration is 10 minutes, the intermediate rating item is pushed every 2 minutes to avoid too frequent pushes that affect the normal use of users.
[0083] It should be noted that the first geo-fence is constructed based on the first duration, the first real-time speed and the first magnification factor, and therefore may not necessarily meet user needs. The first duration is already determined, and therefore adjustment of the first fence radius can be achieved through the first magnification factor. This embodiment implements a step-by-step adjustment through multiple third user ratings and a second adjustment ratio. When the first geo-fence does not meet user needs, the third user rating is less than the second rating threshold, and the first magnification factor is adjusted in a step-by-step manner, which can determine the user's demand for the magnification factor under the current moving speed scenario, and achieve gradual enlargement of the first geo-fence.
[0084] It is worth noting that the second user score can reflect the user's adjustment requirements to a certain extent. The lower the score, the greater the degree of adjustment required. In order to achieve step-by-step adjustment, this embodiment is provided with a preset mapping table, such as Figure 3As shown, the preset mapping table contains a mapping relationship between various optional ratings and coefficient adjustment ratios. When the second user's rating is two stars, the first amplification factor is adjusted to 1.3 times the previous value. When the second user's rating is one star, the first amplification factor is adjusted to 1.5 times the previous value, and so on.
[0085] It should be noted that after the first magnification factor is updated, the first geographic fence and the first merchant information are updated in real time, and the intermediate rating items continue to be pushed after the next cycle is reached until the third user rating is greater than or equal to the second rating threshold. At this time, the first geographic fence meets the user's needs, and the current first fence can be used. Figure 3 As shown, when the third user rates it five stars, no further correction is made to the first geo-fence and it is applied until the end of the first duration.
[0086] It should be noted that since the user terminal is the user's personal device, the current first amplification factor can be saved to the first speed range, replacing the previous candidate amplification factor, so that the various parameters saved in the user terminal can continuously tend to the user's actual usage needs and realize personalized parameter configuration.
[0087] It is worth noting that in the related art, the first geo-fence can be directly enlarged or reduced, but this operation can only represent the user's tentative needs, that is, the user is not necessarily sure that the scaled first geo-fence meets the needs. This embodiment periodically obtains the third user rating, and can feedback the user's needs after using the current first geo-fence for a period of time, so that the finally determined first magnification factor can represent the user's needs determined by the user through the actual use process, thereby replacing the candidate magnification factor of the first speed range, and realizing personalized configuration of parameters during use. After the first speed range is matched based on the real-time speed next time, the first magnification factor that meets the user's needs can be directly used to improve the user experience.
[0088] In addition, in one embodiment, referring to Figure 4 In step S23, after updating the first geo-fence and the corresponding first merchant information based on the updated first fence radius, the method further includes but is not limited to the following steps:
[0089] S231, after the first time period ends, when the third user scores obtained each time are all less than the second score threshold, determining the latest first amplification factor as the intermediate amplification factor;
[0090] S232, when the second speed interval and the first speed interval are the same candidate speed interval, constructing a second geo-fence based on the second real-time speed, the intermediate magnification factor, and the second duration;
[0091] S233, continue to push the intermediate scoring items periodically.
[0092] It should be noted that, according to the description of the above embodiment, the first fence radius is dynamically adjusted based on the third user score obtained by user interaction within the first time length. When the first fence radius that meets the user's needs cannot be obtained within the first time length, that is, all the third user scores within the first time length are less than the second score threshold, this embodiment first saves it as an intermediate amplification factor and replaces the candidate amplification factor of the first speed interval. If the second speed interval and the first speed interval are the same candidate speed interval, that is, the first real-time speed and the second real-time speed both meet the same candidate speed interval, then the intermediate amplification factor obtained by the last adjustment can be continued. Although it is the second time length at this time, it is the same as the first time length in value. It is only the parameters in different periods. The first real-time speed and the second real-time speed may be unequal. Therefore, the values of the second fence radius and the first fence radius may be different. However, based on the intermediate amplification factor, it can reflect the user's amplification needs to a certain extent. Continue to push the intermediate score item and repeat the above steps S21 to S24 until the third user score is greater than or equal to the second score threshold. No further details are given here.
[0093] It is worth noting that when the third user score is greater than or equal to the second score threshold, it can be determined that the parameters of the corresponding candidate speed interval have been adjusted to user satisfaction, and the candidate speed interval can be marked. After the candidate speed interval is determined as the first speed interval or the second speed interval, the intermediate score items will no longer be pushed, thereby improving the user experience.
[0094] In addition, in one embodiment, referring to Figure 4 In step S51, after obtaining the second user score, the method further includes but is not limited to the following steps:
[0095] S511, when the second speed interval is selected for the second time, obtaining the third real-time speed, the fourth user rating, the third duration, and the third amplification factor when the second speed interval is selected for the first time, wherein the fourth user rating is used to indicate the adjustment satisfaction of the third duration and the third amplification factor;
[0096] S512, when the second real-time speed is not equal to the third real-time speed, and the fourth user score or the second user score is less than the first score threshold, determining an average of the second real-time speed and the third real-time speed as a reference speed;
[0097] S513, splitting the second speed interval into a first sub-interval and a second sub-interval based on the reference speed, wherein the second real-time speed is located in the first sub-interval and the third real-time speed is located in the second sub-interval;
[0098] S514, determining the first sub-interval and the second sub-interval as two new candidate speed intervals respectively, wherein the candidate duration and the candidate amplification factor associated with the first sub-interval are the second duration and the second amplification factor respectively, and the candidate duration and the candidate amplification factor associated with the second sub-interval are the third duration and the third amplification factor respectively.
[0099] It should be noted that the technical solution of this embodiment is to dynamically construct geographic fences based on real-time speed multiple times, so the same candidate speed interval can be applied multiple times. If the numerical range of the candidate speed interval is too large, it is easy to cover two mobile states of the user. For example, the candidate speed interval in the above example is [30,60]. In the process of riding a motor vehicle, a non-driver user operates the user terminal. When checking recommended merchants to determine the destination, the driver drives slowly. After determining the target merchant, the driver drives faster. In the first scenario, more recommended merchants need to be displayed than in the second scenario. Therefore, this embodiment divides the candidate speed interval by the difference between the two scores, thereby refining the candidate speed interval with a larger numerical range into personalized intervals that represent user needs, thereby improving user experience.
[0100] It should be noted that the fourth user score and the second user score are similar, they are only obtained at different times, and will not be repeated here. When the second user score and the fourth user score are different, and the second real-time speed and the third real-time speed are different, the second speed interval is divided into a first sub-interval and a second sub-interval, and the data segmentation point of the split is the reference speed, that is, the average of the second real-time speed and the third real-time speed, and according to the description of the above embodiment, the amplification factor can be adjusted step by step based on the third user score, so the corresponding second amplification factor can represent the user's display needs at the current real-time speed. After being split into two sub-intervals, the corresponding duration and amplification factor are applied to achieve personalized numerical configuration.
[0101] For example, the candidate speed interval in the above example is [30, 60]. The second real-time speed when the candidate speed interval is used for the first time is 40 kilometers per hour, and the third real-time speed when the candidate speed interval is used for the second time is 50 kilometers per hour. Taking the second duration of 20 minutes as an example and the second magnification factor of 2 as an example, in the first application, the second magnification factor is magnified to 2.6 (the third user rating is two stars), and a third user rating greater than the second rating threshold is obtained; in the second application, a third user rating of one star is selected, and the second magnification factor is further magnified to 3.9 (2.6×1.5), then the reference speed is 45 kilometers per hour, the first sub-interval is [30, 45], the corresponding second duration is 20 minutes, the second magnification factor is 2.6, the second sub-interval is (45, 60], the corresponding second duration is 20 minutes, and the second magnification factor is 3.9.
[0102] It should be noted that when the first sub-interval and the second sub-interval are determined as the second speed interval, they can also be further divided, which will not be repeated here.
[0103] In addition, in one embodiment, referring to Figure 4 Each candidate speed interval is associated with a plurality of candidate merchant types, and each candidate merchant type is associated with at least one optional merchant information. After executing step S40, the method further includes but is not limited to the following steps:
[0104] S61, filtering multiple target merchant information from multiple second merchant information based on user operation, wherein the target merchant type of each target merchant information is the same;
[0105] S62, when the second user score is greater than or equal to the first score threshold, the updated second duration and the updated second amplification factor are bound to the target merchant type in the second speed interval, wherein the remaining candidate merchant types that are not bound to any merchant type are associated with the second duration and the second amplification factor before the update.
[0106] It should be noted that the candidate merchant type can be set according to the type of scene in the recommendation application, such as food, entertainment, etc., which is not limited here. Since users have different mobility needs when selecting different types of merchants, the above embodiment describes adjusting the second duration and the second magnification factor based on the first user score. Taking the second speed range as an example, this embodiment further binds the second duration and the second magnification factor to the target merchant type. After selecting the target merchant type, the modified second duration and the second magnification factor are applied. If it is not the target merchant type, the initial candidate duration and candidate magnification factor are used.
[0107] For example, Figure 1 As shown, the target merchant type that can be selected in the user terminal 10 is food, the second duration is 20 minutes, and the second magnification factor is 1. After correction based on the first user score, the second duration is 30 minutes, and the second magnification factor is 1.5. Then, food, 30 minutes and 1.5 are bound in the second speed range. For other candidate merchant types, such as entertainment and accommodation, the second duration is still 20 minutes, and the second magnification factor is still 1, thereby further realizing the dynamic construction of geographic fences based on merchant types.
[0108] like Figure 5 As shown, Figure 5 : is a structural diagram of a merchant recommendation device based on dynamic geographic fences provided by an embodiment of the present invention. The present invention also provides a merchant recommendation device based on dynamic geographic fences, including:
[0109] The processor 501 may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0110] The memory 502 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM). The memory 502 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 502, and the processor 501 calls and executes the merchant recommendation method based on dynamic geographic fence in the embodiment of this application;
[0111] Input / output interface 503, used to implement information input and output;
[0112] Communication interface 504, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);
[0113] A bus 505 that transmits information between various components of the device (e.g., the processor 501, the memory 502, the input / output interface 503, and the communication interface 504);
[0114] The processor 501 , the memory 502 , the input / output interface 503 and the communication interface 504 are connected to each other in communication within the device via the bus 505 .
[0115] An embodiment of the present application also provides an electronic device, including the merchant recommendation device based on dynamic geographic fence as described above.
[0116] An embodiment of the present application also provides a storage medium, which is a computer-readable storage medium. The storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned merchant recommendation method based on dynamic geographic fence is implemented.
[0117] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and are implemented to be located in one place, or may also be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0118] It will be appreciated by those skilled in the art that all or some of the steps and systems in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or transient medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically include computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0119] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions under the shared conditions without violating the spirit of the present invention. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present invention.
Claims
1. A merchant recommendation method based on dynamic geographic fence, characterized in that: Applied to a user terminal, the user terminal is preset with a plurality of candidate speed intervals, each of the candidate speed intervals is associated with a candidate duration and a candidate amplification factor, and the values of the candidate durations are different. The method includes: Acquire a first real-time speed of the user terminal, determine the candidate speed interval in which the first real-time speed is located as a first speed interval, and determine the candidate duration and the candidate amplification factor associated with the first speed interval as a first duration and a first amplification factor, respectively; Determine a product of the first real-time speed, the first duration, and a first magnification factor as a first fence radius, construct a first geo-fence based on the first fence radius, and display a plurality of recommended first merchant information in the first geo-fence; When the accumulated display time of the first merchant information reaches the first time, obtaining a second real-time speed of the user terminal and obtaining a first user score input for the first geo-fence; Determine the candidate speed interval in which the second real-time speed is located as a second speed interval, obtain a second duration and a second magnification factor based on the second speed interval, construct a second geo-fence after updating the second duration and the second magnification factor based on the first user score, and display a plurality of recommended second merchant information in the second geo-fence based on the updated second duration; Building a second geo-fence after updating the second duration and the second magnification factor based on the first user score includes: When the first user score is less than a preset first score threshold, an interval adjustment item and a range adjustment item are pushed, interval correction information is obtained based on the interval adjustment item, and a first correction direction is obtained based on the range adjustment item, wherein the interval correction information is used to indicate an extension or a reduction in duration, and the first correction direction is used to indicate an enlargement or reduction in the geo-fence; Obtaining a preset first adjustment ratio, updating the second duration based on the first adjustment ratio and the interval correction information, and updating the second amplification factor based on the first adjustment ratio and the first correction direction; After displaying a plurality of recommended second business information in the second geo-fence based on the updated second duration, the method further includes: Acquire a second user rating, wherein the second user rating is used to indicate adjustment satisfaction of the second duration and the second amplification factor; When the second user score is greater than or equal to the first score threshold, updating the candidate duration and the candidate amplification factor of the candidate speed interval that have never been applied based on the first adjustment ratio, the interval correction information, and the first correction direction; After constructing a first geo-fence based on the first fence radius, the method further includes: Periodically push an intermediate rating item within the first duration, and acquire a third user rating and a second correction direction based on the intermediate rating item, wherein the second correction direction is used to indicate enlarging or reducing the geo-fence, and the third user rating is used to represent satisfaction with the first fence radius; When the third user score is less than a preset second score threshold, obtaining a second adjustment ratio from a preset mapping table based on the third user score, and updating the first magnification coefficient based on the second adjustment ratio and the second correction direction, wherein the preset mapping table records a mapping relationship between multiple optional scores and multiple coefficient adjustment ratios; updating the first fence radius based on the updated first magnification factor, and updating the first geographic fence and the corresponding first merchant information based on the updated first fence radius; When the third user score is greater than or equal to the second score threshold, stop pushing the intermediate score item, and display the current first geo-fence and the first merchant information during the remaining time of the first duration; After the first time period ends, the candidate amplification factor of the first speed section is replaced based on the latest first amplification factor.
2. The merchant recommendation method based on dynamic geographic fence according to claim 1, characterized in that: After updating the first geo-fence and the corresponding first merchant information based on the updated first fence radius, the method further includes: After the first duration ends, when the third user score obtained each time is less than the second score threshold, determining the latest first amplification factor as the intermediate amplification factor; When the second speed interval and the first speed interval are the same candidate speed interval, constructing the second geo-fence based on the second real-time speed, the intermediate amplification factor and the second duration; Continue to push the intermediate scoring items periodically.
3. The merchant recommendation method based on dynamic geographic fence according to claim 1, characterized in that: After obtaining the second user score, the method further includes: When the second speed interval is selected for the second time, obtaining the third real-time speed, the fourth user rating, the third duration, and the third amplification factor when the second speed interval is selected for the first time, wherein the fourth user rating is used to indicate the adjustment satisfaction of the third duration and the third amplification factor; When the second real-time speed is not equal to the third real-time speed, and the fourth user score or the second user score is less than the first score threshold, determining an average of the second real-time speed and the third real-time speed as a reference speed; Splitting the second speed interval into a first sub-interval and a second sub-interval based on the reference speed, wherein the second real-time speed is located in the first sub-interval, and the third real-time speed is located in the second sub-interval; The first sub-interval and the second sub-interval are respectively determined as two new candidate speed intervals, wherein the candidate duration and the candidate amplification factor associated with the first sub-interval are respectively the second duration and the second amplification factor, and the candidate duration and the candidate amplification factor associated with the second sub-interval are respectively the third duration and the third amplification factor.
4. The merchant recommendation method based on dynamic geographic fence according to claim 1, characterized in that: Each of the candidate speed intervals is associated with a plurality of candidate merchant types, each of the candidate merchant types is associated with at least one optional merchant information, and after displaying a plurality of recommended second merchant information in the second geo-fence based on the updated second duration, the method further includes: Filtering a plurality of target merchant information from a plurality of the second merchant information based on a user operation, wherein the target merchant types of the respective target merchant information are the same; When the second user score is greater than or equal to the first score threshold, the updated second duration and the updated second amplification factor are bound to the target merchant type in the second speed range, wherein the remaining candidate merchant types that are not bound to any merchant type are associated with the second duration and the second amplification factor before the update.
5. A merchant recommendation device based on dynamic geographic fence, characterized in that: comprising at least one control processor and a memory for communicatively coupling with the at least one control processor; The memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor to enable the at least one control processor to execute the merchant recommendation method based on dynamic geo-fencing as described in any one of claims 1 to 4.
6. An electronic device, characterized in that: Including the merchant recommendation device based on dynamic geographic fence as described in claim 5.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the merchant recommendation method based on dynamic geographic fence as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Information recommendation method, device and apparatus and computer readable storage medium
CN110324785A
Geofence-based store matching method, system and equipment and storage medium
CN113129113A