Method, device and computer readable storage medium for determining a delivery range
By acquiring the geographic location information of the target object, identifying candidate location entities and reference objects, and using feature vectors and weight parameters to calculate the expected order quantity, the problem of poor accuracy in manually drawing delivery ranges is solved, achieving more efficient determination of delivery ranges and improved order conversion rates.
Patent Information
- Application Number
- CN202210861948.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-21
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-07-21
AI Technical Summary
In existing technologies, the determination of delivery range relies on human experience, resulting in poor accuracy and low efficiency, which cannot meet the needs of on-demand delivery scenarios.
By obtaining the geographic location information of the target object, candidate location entities and reference objects that match it are identified. The expected order quantity is calculated using feature vectors and weight parameters, and then the delivery range is determined.
It improved the accuracy and efficiency of delivery coverage, enhanced order conversion rates, and optimized the utilization of delivery resources.
Smart Images

Figure CN115293686B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, device, and computer-readable storage medium for determining a delivery range. Background Technology
[0002] With the continuous development of computer technology, the application of on-demand delivery is becoming increasingly widespread. In on-demand delivery scenarios, each delivery requester has their own corresponding delivery area.
[0003] In related technologies, the delivery range corresponding to the delivery requester is usually drawn based on human experience. Taking the instant delivery scenario of food delivery as an example, the delivery requester can be a merchant, and the delivery platform staff will draw the delivery range for each merchant based on experience.
[0004] However, manual mapping relies heavily on the experience of staff, which not only introduces significant subjective factors and is prone to errors, resulting in poor accuracy in determining delivery areas, but is also time-consuming, labor-intensive, and inefficient. Summary of the Invention
[0005] This application provides a method, apparatus, device, and computer-readable storage medium for determining delivery range, which can be used to solve problems in related technologies. The technical solution is as follows:
[0006] On one hand, embodiments of this application provide a method for determining a delivery range, the method comprising:
[0007] Obtain the geographic location information of the target objects within the delivery area to be determined;
[0008] Based on the geographic location information of the target object, at least one candidate location entity matching the target object is determined;
[0009] Identify at least one reference object that matches each candidate location entity, wherein the at least one reference object includes the target object;
[0010] Based on each candidate location entity and at least one reference object that matches each candidate location entity, determine the expected order quantity for each candidate location entity for the target object;
[0011] The delivery range corresponding to the target object is determined based on the expected order quantity of each candidate location entity for the target object.
[0012] In one possible implementation, determining the expected order quantity for the target object for each candidate location entity, based on each candidate location entity and at least one reference object matching each candidate location entity, includes:
[0013] Based on each candidate location entity and at least one reference object that matches each candidate location entity, determine the total expected order volume corresponding to each candidate location entity;
[0014] Based on the total expected order volume corresponding to each candidate location entity and the weight parameters corresponding to at least one reference object matching each candidate location entity, the expected order quantity of each candidate location entity for the at least one reference object matching each candidate location entity is determined.
[0015] The expected order quantity of each candidate location entity for the target object is determined from the expected order quantity of each candidate location entity for at least one reference object that matches each candidate location entity.
[0016] In one possible implementation, determining the total expected order volume corresponding to each candidate location entity based on each candidate location entity and at least one reference object matching each candidate location entity includes:
[0017] For a target location entity among the at least one candidate location entities, a target feature vector corresponding to the target location entity is determined, and the target feature vector is used to characterize the target location entity.
[0018] Determine a first feature vector corresponding to at least one reference object that matches the target location entity, wherein the first feature vector is used to characterize the corresponding reference object;
[0019] The total expected order volume corresponding to the target location entity is determined based on the first feature vector corresponding to at least one reference object that matches the target location entity and the target feature vector corresponding to the target location entity.
[0020] In one possible implementation, determining the expected total number of orders corresponding to the target location entity based on the first feature vector corresponding to at least one reference object matching the target location entity and the target feature vector corresponding to the target location entity includes:
[0021] A second feature vector is determined based on the first feature vector corresponding to at least one reference object that matches the target location entity. The second feature vector is used to characterize at least one reference object that matches the target location entity.
[0022] Based on the second feature vector and the target feature vector corresponding to the target location entity, the total expected order volume corresponding to the target location entity is determined.
[0023] In one possible implementation, determining the second feature vector based on the first feature vector corresponding to at least one reference object matched with the target location entity includes:
[0024] A first intermediate vector is determined based on the first feature vectors corresponding to at least one reference object that matches the target location entity. The first intermediate vector is used to characterize at least one reference object that matches the target location entity.
[0025] The first intermediate vector is subjected to dimensionality reduction processing to obtain the second feature vector.
[0026] In one possible implementation, the method further includes:
[0027] For a target location entity among the at least one candidate location entities, weight parameters corresponding to at least one reference object that matches the target location entity are determined based on the second feature vector and the target location entity. The second feature vector is determined based on at least one reference object that matches the target location entity and is used to characterize at least one reference object that matches the target location entity.
[0028] In one possible implementation, determining the weight parameters corresponding to at least one reference object matching the target location entity based on the second feature vector and the target location entity includes:
[0029] Obtain the third feature vector corresponding to each of the multiple candidate objects, and the third feature vector is used to characterize the corresponding candidate object;
[0030] The second intermediate vector is determined based on the third feature vectors corresponding to the multiple candidate objects.
[0031] The second intermediate vector is subjected to dimensionality reduction to obtain a reference feature vector, which is used to characterize the plurality of candidate objects;
[0032] Based on the second feature vector, the reference feature vector, and the target location entity, determine the weight parameters corresponding to at least one reference object that matches the target location entity.
[0033] In one possible implementation, determining the delivery range corresponding to the target object based on the expected order quantity for the target object from each candidate location entity includes:
[0034] Determine the estimated delivery time from the target object to each of the candidate location entities;
[0035] Determine the average resource value of the target object;
[0036] The delivery range corresponding to the target object is determined based on the average resource value of the target object, the expected number of orders for the target object from each candidate location entity, and the expected delivery time from the target object to each candidate location entity.
[0037] In one possible implementation, determining the delivery range corresponding to the target object based on the average resource value of the target object, the expected order quantity of each candidate location entity for the target object, and the expected delivery time from the target object to each candidate location entity includes:
[0038] Based on the average resource value of the target object, the expected number of orders for the target object from each candidate location entity, and the expected delivery time from the target object to each candidate location entity, at least one first location entity is determined from the at least one candidate location entity;
[0039] The delivery range corresponding to the target object is determined based on the at least one first location entity.
[0040] In one possible implementation, determining at least one candidate location entity matching the target object based on the target object's geographic location information includes:
[0041] Based on the geographic location information of the target object, the target area is determined;
[0042] Location entities located within the target area are considered as at least one candidate location entity that matches the target object.
[0043] On the other hand, embodiments of this application provide a device for determining a delivery range, the device comprising:
[0044] The acquisition module is used to acquire the geographical location information of the target objects within the delivery range to be determined;
[0045] The determination module is used to determine at least one candidate location entity that matches the target object based on the geographical location information of the target object;
[0046] The determining module is further configured to determine at least one reference object that matches each candidate location entity, wherein the at least one reference object includes the target object;
[0047] The determining module is further configured to determine the expected order quantity of each candidate location entity for the target object based on each candidate location entity and at least one reference object that matches each candidate location entity;
[0048] The determining module is further configured to determine the delivery range corresponding to the target object based on the expected order quantity of each candidate location entity for the target object.
[0049] In one possible implementation, the determining module is configured to: determine the total expected order volume corresponding to each candidate location entity based on each candidate location entity and at least one reference object matching each candidate location entity; determine the expected order quantity of each candidate location entity for the at least one reference object matching each candidate location entity based on the total expected order volume corresponding to each candidate location entity and the weight parameters corresponding to the at least one reference object matching each candidate location entity; and determine the expected order quantity of each candidate location entity for the target object from the expected order quantity of each candidate location entity for the at least one reference object matching each candidate location entity.
[0050] In one possible implementation, the determining module is configured to, for a target location entity among the at least one candidate location entities, determine a target feature vector corresponding to the target location entity, the target feature vector being used to characterize the target location entity; determine a first feature vector corresponding to at least one reference object matching the target location entity, the first feature vector being used to characterize the corresponding reference object; and determine the expected total order volume corresponding to the target location entity based on the first feature vector corresponding to the at least one reference object matching the target location entity and the target feature vector corresponding to the target location entity.
[0051] In one possible implementation, the determining module is configured to determine a second feature vector based on a first feature vector corresponding to at least one reference object that matches the target location entity, wherein the second feature vector is used to characterize at least one reference object that matches the target location entity; and to determine the expected total order volume corresponding to the target location entity based on the second feature vector and the target feature vector corresponding to the target location entity.
[0052] In one possible implementation, the determining module is configured to determine a first intermediate vector based on the first feature vectors corresponding to at least one reference object that matches the target location entity, wherein the first intermediate vector is used to characterize at least one reference object that matches the target location entity; and to perform dimensionality reduction processing on the first intermediate vector to obtain the second feature vector.
[0053] In one possible implementation, the determining module is further configured to, for the target location entity among the at least one candidate location entities, determine weight parameters corresponding to at least one reference object that matches the target location entity, based on the second feature vector and the target location entity, wherein the second feature vector is determined based on the at least one reference object that matches the target location entity, and the second feature vector is used to characterize the at least one reference object that matches the target location entity.
[0054] In one possible implementation, the determining module is configured to: obtain third feature vectors corresponding to multiple candidate objects, the third feature vectors being used to characterize the corresponding candidate objects; determine a second intermediate vector based on the third feature vectors corresponding to the multiple candidate objects; perform dimensionality reduction processing on the second intermediate vector to obtain a reference feature vector, the reference feature vector being used to characterize the multiple candidate objects; and determine weight parameters corresponding to at least one reference object matching the target location entity based on the second feature vector, the reference feature vector, and the target location entity.
[0055] In one possible implementation, the determining module is configured to determine the estimated delivery time from the target object to each of the candidate location entities; determine the average resource value of the target object; and determine the delivery range corresponding to the target object based on the average resource value of the target object, the estimated number of orders for the target object from each candidate location entity, and the estimated delivery time from the target object to each candidate location entity.
[0056] In one possible implementation, the determining module is configured to determine at least one first location entity from the at least one candidate location entity based on the average resource value of the target object, the expected number of orders for the target object from each candidate location entity, and the expected delivery time from the target object to each candidate location entity; and to determine the delivery range corresponding to the target object based on the at least one first location entity.
[0057] In one possible implementation, the determining module is configured to determine a target area based on the geographic location information of the target object; and to select location entities located within the target area as at least one candidate location entity that matches the target object.
[0058] On the other hand, embodiments of this application provide an electronic device, which includes a processor and a memory. The memory stores at least one piece of program code, which is loaded and executed by the processor to enable the electronic device to implement any of the above-described methods for determining the delivery range.
[0059] On the other hand, a computer-readable storage medium is also provided, wherein at least one piece of program code is stored therein, the at least one piece of program code being loaded and executed by a processor to enable a computer to implement any of the above-described methods for determining the delivery range.
[0060] On the other hand, a computer program or computer program product is also provided, wherein the computer program or computer program product stores at least one computer instruction, which is loaded and executed by a processor to enable the computer to implement any of the above-described methods for determining the delivery range.
[0061] The technical solution provided in this application has at least the following beneficial effects:
[0062] The technical solution provided in this application determines the delivery range corresponding to a target object by identifying at least one candidate location entity that matches the target object, performing reverse recall on each candidate location entity to obtain a reference object that matches each candidate location entity, and then determining the expected order quantity of each candidate location entity in the target object based on each candidate location entity and the reference object that matches each candidate location entity. Finally, the delivery range corresponding to the target object is determined based on the expected order quantity of each candidate location entity in the target object. Because the influence of the reference object on the target object is considered, i.e., the transfer of order volume is taken into account, the accuracy of the determined expected order quantity of each candidate location entity in the target object is high. This makes the determined delivery range more accurate, more reasonable, and more efficient, further improving the conversion rate and the number of orders for the target object. Attached Figure Description
[0063] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0064] Figure 1 This is a schematic diagram illustrating the implementation environment of a method for determining the delivery range provided in an embodiment of this application;
[0065] Figure 2 This is a flowchart illustrating a method for determining the delivery range provided in an embodiment of this application;
[0066] Figure 3 This is a schematic diagram illustrating the determination of a target region provided in an embodiment of this application;
[0067] Figure 4This is a schematic diagram of a single quantity transfer provided in an embodiment of this application;
[0068] Figure 5 This application provides a diagram showing the relationship between the KL divergence of order volume and the degree of change in the AOI visible list for merchants whose delivery range remains unchanged before and after the adjustment.
[0069] Figure 6 This is a schematic diagram illustrating the process of determining the weight parameters corresponding to at least one reference object that matches the target location entity, as provided in an embodiment of this application.
[0070] Figure 7 This is a schematic diagram illustrating the process of determining the weight parameters corresponding to at least one reference object that matches the target location entity, as provided in an embodiment of this application.
[0071] Figure 8 This is a schematic diagram illustrating the process by which a target location entity determines the expected order quantity for at least one reference object that matches the target location entity, according to an embodiment of this application.
[0072] Figure 9 This is a flowchart illustrating a method for determining the delivery range provided in an embodiment of this application;
[0073] Figure 10 This is a schematic diagram showing the delivery range corresponding to a target object provided in an embodiment of this application;
[0074] Figure 11 This is a visualization of two statistical quantities provided in an embodiment of this application;
[0075] Figure 12 This is a schematic diagram of the structure of a delivery range determination device provided in an embodiment of this application;
[0076] Figure 13 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application;
[0077] Figure 14 This is a schematic diagram of the structure of a server provided in an embodiment of this application. Detailed Implementation
[0078] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0079] Before introducing the method for determining the delivery range provided in the embodiments of this application, let's first briefly introduce the application scenarios of the embodiments of this application. Optionally, the embodiments of this application can be applied to the instant food delivery scenario. In the instant food delivery scenario, each object (such as a merchant) has a limited delivery range, and only users within the corresponding delivery range of that merchant can place orders on the food delivery platform. The significance of the delivery range limitation is: 1. To avoid wasting the delivery capacity of the food delivery platform on orders that are too long, too difficult to deliver, or even impossible to deliver; 2. Such orders generally require a long delivery time, which will have a negative impact on the user experience.
[0080] Considering the different geographical locations of various merchants, the platform typically draws a personalized delivery range for each merchant, which is a polygonal block in geographic space. The platform then generates an R-tree index (a spatial index data structure) based on the delivery range polygons of all merchants. When a user visits the food delivery platform, the system uses the R-tree index to retrieve all merchants whose ranges include the user's location. For example, if location 1, location 2, and location 3 are all within the target merchant's delivery range, users located at these locations can retrieve the target merchant through the platform. However, location D is not within the target merchant's delivery range, therefore users located at location D cannot retrieve the target merchant through the platform.
[0081] When determining the delivery area for a target merchant, the merchant prefers a larger delivery area to maximize user exposure and generate more orders. Delivery riders, on the other hand, prefer a smaller delivery area for higher efficiency. Users, however, desire a balance between a large and a small delivery area. A larger area offers more choices, while a smaller area ensures efficient delivery. Therefore, determining the appropriate delivery area for a target merchant is a complex issue with significant implications for on-demand delivery platforms.
[0082] In the domain of determining delivery ranges, the attributes of location entities, user rationality requirements, merchant rationality requirements, and environmental factors can all interfere with the reference objects matched based on location entities. This leads to inconsistent distribution of matched reference objects across location entities, resulting in selection bias and ultimately inaccurate delivery range predictions. In summary, the core of using a causal reasoning perspective to address the order volume prediction problem from the perspective of location entities lies in removing the bias caused by confounding variables. This application, starting from the business scenario of delivery ranges, combines representation learning and Density Ratio Estimation to design a location entity-based order volume prediction framework using a re-weighting method. This framework not only allows for the decoupling and independent optimization of the weight parameter w and the order volume prediction model, but also estimates the expected order quantity for each reference object for each location entity while simultaneously estimating the total expected order quantity for that location entity, thus better adapting to the current technical framework for determining delivery ranges.
[0083] Figure 1 This is a schematic diagram illustrating the implementation environment of a method for determining the delivery range provided in an embodiment of this application, such as... Figure 1 As shown, the implementation environment includes: terminal device 101 and server 102.
[0084] The method for determining the delivery range provided in this application embodiment can be executed by terminal device 101 or server 102, and this application embodiment does not limit it in this way.
[0085] The terminal device 101 can be at least one of a smartphone, game console, desktop computer, tablet computer, e-book reader, and laptop computer. The server 102 can be a single server, a server cluster consisting of multiple servers, or any of a cloud computing platform and virtualization center; this embodiment does not limit the specific type of server 102. The server 102 communicates with the terminal device 101 via a wired or wireless network. The server 102 has data receiving, data processing, and data sending functions. Of course, the server 102 may also have other functions; this embodiment does not limit the specific functions of the server 102.
[0086] Terminal device 101 can refer to one of a plurality of terminal devices. This embodiment uses terminal device 101 as an example. Those skilled in the art will know that the number of terminal devices 101 can be more or less. For example, there may be only one terminal device 101, or there may be dozens or hundreds of terminal devices 101, or more. This application embodiment does not limit the number or type of terminal devices.
[0087] Based on the above implementation environment, this application provides a method for determining the delivery range, so as to... Figure 2 The flowchart shown in this application embodiment illustrates a method for determining a delivery range. This method can be applied to electronic devices, which may be... Figure 1 Terminal device 101 in the middle can also be Figure 1 Server 102 in the middle. For example... Figure 2 As shown, the method includes the following steps 201 to 205.
[0088] In step 201, the geographical location information of the target objects within the delivery range to be determined is obtained.
[0089] In the exemplary embodiments of this application, the method for determining the target object of the delivery range is not limited. For example, one object may be randomly selected from multiple objects as the target object of the delivery range. Alternatively, the object selected by the interacting object may be chosen as the target object of the delivery range.
[0090] Optionally, the electronic device stores the geographical location information corresponding to each object and the correspondence between each object and its corresponding geographical location information. After determining the target object within the delivery range, the geographical location information of the target object is obtained based on the target object and the correspondence between each object and its corresponding geographical location information. For example, the geographical location information of the target object can be the longitude and latitude of the target object, or other information; this embodiment of the application does not limit this.
[0091] In step 202, at least one candidate location entity that matches the target object is determined based on the geographical location information of the target object.
[0092] Here, a location entity refers to an area of interest (AOI), a mapping term referring to geospatial units with the same name, similar needs, and similar delivery difficulties. The polygonal blocks obtained by dividing the area based on address name, main road network, and natural barriers can be equivalent to the Chinese concept of "community." For example, a location entity can be a school, a residential community, a shopping mall, a scenic spot, or other location entities; this application does not limit this.
[0093] This application does not limit the process of determining at least one candidate location entity matching the target object based on the target object's geographic location information. In one possible implementation, a target area is determined based on the target object's geographic location information, and location entities located within the target area are considered as at least one candidate location entity matching the target object. This application does not limit the method of determining the target area based on the target object's geographic location information. Optionally, the target area is determined using the target object's geographic location information as a reference point and a first length as a reference distance. The first length can be set based on experience or adjusted according to the implementation environment; this application does not limit this. For example, the first length is 5 kilometers. Exemplarily, a first circle is determined with the target object's geographic location information as the center and a radius of 5 kilometers, and the area covered by the first circle is considered the target area.
[0094] like Figure 3 The diagram shown is a schematic representation of determining a target region according to an embodiment of this application. Figure 3 In this process, a first circle is defined with the geographic location information of the target object as the center and a radius of 5 kilometers. The area covered by the first circle is designated as the target area. Location entities located within the target area include location entity 1, location entity 2, location entity 3, location entity 4, and location entity 5. Therefore, location entity 1, location entity 2, location entity 3, location entity 4, and location entity 5 are considered as at least one candidate location entity that matches the target object.
[0095] It should be noted that other methods can also be used to determine at least one candidate location entity that matches the target object, and this application embodiment does not limit this.
[0096] In step 203, at least one reference object is determined that matches each candidate location entity, and the at least one reference object includes the target object.
[0097] In one possible implementation, after determining at least one candidate location entity that matches the target object based on the geographical location information of the target object, at least one reference object that matches each candidate location entity is then determined based on each candidate location entity, and the target object is included in the at least one reference object that matches each candidate location entity.
[0098] Optionally, the process of determining at least one reference object matching each candidate location entity is similar. This embodiment of the application only illustrates the determination of at least one reference object matching the target location entity as an example. The target location entity is any one of the at least one candidate location entities.
[0099] For example, the process of determining at least one reference object matching a target location entity includes: determining a first region using the target location entity as a reference point and a second length as a reference distance; identifying objects located within the first region as first objects matching the target location entity; and determining at least one reference object matching the target location entity based on the first object. The second length can be set based on experience or adjusted according to the implementation environment; this embodiment does not limit this. For example, the second length is 5 kilometers. For instance, a second circle can be determined using the target location entity as the origin and the second length as the radius; the area covered by the second circle can be considered the first region.
[0100] This application does not limit the process of determining at least one reference object matching the target location entity based on the first object. Optionally, all first objects can be used as at least one reference object matching the target location entity. For example, the first objects include the target object, object two, object three, and object four; therefore, the target object, object two, object three, and object four can be used as at least one reference object matching the target location entity.
[0101] Optionally, based on the first object, multiple object combinations are determined, each object combination including at least one object. Object combinations that include the target object and whose number of included objects is not less than a first number are designated as candidate object combinations. From these candidate object combinations, one is selected as the target object combination, and the objects included in the target object combination are used as at least one reference object matching the entity at the target location.
[0102] The first quantity is set based on experience or adjusted according to the implementation environment, and this application embodiment does not limit it. For example, the first quantity is 2. Optionally, a candidate object combination can be randomly selected from the candidate object combinations as the target object combination, or a candidate object combination can be selected as the target object combination using the argmax(arguments of the maxima) function.
[0103] For example, the first object includes the target object, object two, object three, and object four. Based on the first object, 15 object combinations can be obtained. The objects included in each object combination are shown in Table 1 below, and will not be repeated here. Object combinations that include the target object and have at least two included objects are selected as candidate object combinations. These candidate object combinations are: object combination five, object combination six, object combination seven, object combination eight, object combination nine, object combination ten, and object combination fifteen. Among the candidate object combinations, object combination fifteen is randomly selected as the target object combination. The objects included in object combination fifteen are used as at least one reference object matching the target location entity. That is, the target object, object two, object three, and object four are at least one reference object matching the target location entity.
[0104] Table 1
[0105]
[0106]
[0107] As shown in Table 1 above, the object included in object combination one is the target object. The objects included in other object combinations are shown in Table 1 above, and will not be described in detail here.
[0108] It should be noted that the process of determining at least one reference object that matches other candidate location entities is similar to the process of determining at least one reference object that matches the target location entity described above, and will not be repeated here.
[0109] According to actual online experiments, from the user's perspective, the more drastic the changes in the list of recallable merchants, the greater the changes in CVR (Conversion Rate) and scale. Moreover, the changes in scale are not simply an increase in the number of orders from newly added reference objects to location entities, but rather a phenomenon of order transfer.
[0110] like Figure 4 The diagram shown is a schematic representation of an order volume transfer according to an embodiment of this application. Before the delivery range adjustment, the list of merchants that users can recall includes merchants 1 to 7, wherein the order volume distribution of merchants 4 to 7 is shown below. Figure 4 The order distribution is shown in Figure 1. After the delivery range adjustment, the list of merchants that users can recall includes merchants 4 to 10. The order distribution for merchants 4 to 7 is shown in Figure 1. Figure 4 The single-quantity distribution in the model is shown in Figure 2. (From...) Figure 4It can be seen that the order distribution of merchants 4 to 7 changed before and after the delivery range adjustment. This is because merchants 1 to 3 were reduced, while merchants 8 to 10 were added. The relationship between the KL (Kullback-Leibler) divergence of order volume for merchants whose delivery ranges remained unchanged before and after the adjustment (i.e., merchants 4 to 7) and the degree of change in the AOI visible list is as follows: Figure 5 As shown, by Figure 5 It can be seen that the more drastic the changes in the visible merchant list of AOI, the greater the KL dispersion of the number of orders for merchants that remain unchanged before and after the adjustment.
[0111] In step 204, the expected order quantity for each candidate location entity against the target object is determined based on each candidate location entity and at least one reference object that matches each candidate location entity.
[0112] In one possible implementation, this application embodiment does not limit the process of determining the expected order quantity of each candidate location entity for the target object based on each candidate location entity and at least one reference object matching each candidate location entity. Optionally, the process of determining the expected order quantity of each candidate location entity for the target object based on each candidate location entity and at least one reference object matching each candidate location entity includes the following steps 2041 to 2043.
[0113] Step 2041: Determine the total expected order volume corresponding to each candidate location entity based on each candidate location entity and at least one reference object that matches each candidate location entity.
[0114] The process for determining the total expected order volume corresponding to each candidate location entity is similar. This embodiment only illustrates the process for determining the total expected order volume corresponding to the target location entity, where the target location entity is any one of at least one candidate location entity. For the target location entity among the at least one candidate location entities, a target feature vector is determined, which characterizes the target location entity. First feature vectors corresponding to at least one reference object matching the target location entity are also determined, each characterizing a corresponding reference object. Based on the first feature vectors corresponding to the at least one reference object matching the target location entity and the target feature vector corresponding to the target location entity, the total expected order volume corresponding to the target location entity is determined.
[0115] In this embodiment, the process of determining the target feature vector corresponding to the target location entity and the process of determining the first feature vectors corresponding to at least one reference object matching the target location entity are not limited. Optionally, an individual quantity prediction model runs in the electronic device. Based on this individual quantity prediction model, the target feature vector corresponding to the target location entity and the first feature vectors corresponding to at least one reference object matching the target location entity can be determined. The individual quantity prediction model can be optimized using lambdarank (an empirical algorithm), discrete selection model, attention mechanism, etc.
[0116] Optionally, the process of determining the expected total number of orders corresponding to the target location entity based on the first feature vector corresponding to at least one reference object matched with the target location entity and the target feature vector corresponding to the target location entity includes: determining a second feature vector based on the first feature vector corresponding to at least one reference object matched with the target location entity, wherein the second feature vector is used to characterize at least one reference object matched with the target location entity; and determining the expected total number of orders corresponding to the target location entity based on the second feature vector and the target feature vector corresponding to the target location entity.
[0117] For example, the DeepSet model (a model based on strong permutation invariance and equivariance properties) is invoked to determine the second feature vector based on the first feature vector corresponding to at least one reference object matching the target location entity. The NN model (Neural Networks) is then invoked to determine the expected total order volume corresponding to the target location entity based on the second feature vector and the target feature vector corresponding to the target location entity. The NN model is a complex network system formed by extensive interconnection of a large number of simple processing units (called neurons). It reflects many fundamental characteristics of human brain function and is a highly complex nonlinear dynamic learning system.
[0118] Optionally, the process of determining the second feature vector based on the first feature vectors corresponding to at least one reference object matching the target location entity includes: determining a first intermediate vector based on the first feature vectors corresponding to at least one reference object matching the target location entity, wherein the first intermediate vector represents at least one reference object matching the target location entity; and performing dimensionality reduction processing on the first intermediate vector to obtain the second feature vector. Specifically, the first feature vectors corresponding to at least one reference object matching the target location entity are concatenated to obtain the first intermediate vector. An encoder model is then called to perform dimensionality reduction processing on the first intermediate vector to obtain the second feature vector. The encoder model is used to perform dimensionality reduction processing on the first intermediate vector.
[0119] It should be noted that the process for determining the total expected order volume for other candidate location entities is similar to that for the target location entity, and will not be elaborated upon here.
[0120] Step 2042: Determine the expected order quantity for each candidate location entity for each candidate location entity based on the expected total order quantity corresponding to each candidate location entity and the weight parameters corresponding to at least one reference object matched with each candidate location entity.
[0121] In one possible implementation, it is necessary to first determine the weight parameters corresponding to at least one reference object that matches each candidate location entity. The sum of the weight parameters corresponding to at least one reference object that matches any candidate location entity is 1. The process of determining the weight parameters corresponding to at least one reference object that matches each candidate location entity is similar; this embodiment only uses the process of determining the weight parameters corresponding to at least one reference object that matches the target location entity as an example for illustration.
[0122] For example, for a target location entity among at least one candidate location entities, weight parameters corresponding to at least one reference object matching the target location entity are determined based on the second feature vector and the target location entity. The second feature vector is determined based on the at least one reference object matching the target location entity, and the second feature vector is used to characterize the at least one reference object matching the target location entity. Optionally, the second feature vector is obtained by concatenating the first feature vectors corresponding to the at least one reference object matching the target location entity.
[0123] Optionally, the process of determining the weight parameters corresponding to at least one reference object matching the target location entity based on the second feature vector and the target location entity includes: obtaining third feature vectors corresponding to multiple candidate objects, where the third feature vectors represent the corresponding candidate objects, and the candidate objects are different from at least one reference object matching the target location entity; determining a second intermediate vector based on the third feature vectors corresponding to the multiple candidate objects; performing dimensionality reduction on the second intermediate vector to obtain a reference feature vector, which represents the multiple candidate objects; and determining the weight parameters corresponding to at least one reference object matching the target location entity based on the second feature vector, the reference feature vector, and the target location entity.
[0124] The process of determining the second intermediate vector based on the third feature vectors corresponding to multiple candidate objects is similar to the process of determining the first intermediate vector based on the first feature vectors corresponding to at least one reference object matched to the target location entity, and will not be described again here. The process of reducing the dimensionality of the second intermediate vector to obtain the reference feature vector is similar to the process of reducing the dimensionality of the first intermediate vector to obtain the second feature vector, and will also not be described again here.
[0125] Optionally, the process of determining the weight parameters corresponding to at least one reference object matching the target location entity based on the second feature vector, the reference feature vector, and the target location entity includes: obtaining the target feature vector corresponding to the target location entity, and determining the weight parameters corresponding to at least one reference object matching the target location entity based on the second feature vector, the reference feature vector, and the target feature vector.
[0126] like Figure 6 The diagram illustrates the process of determining the weight parameters corresponding to at least one reference object that matches a target location entity, according to an embodiment of this application. Figure 6 In the diagram, T is the first intermediate vector. Inputting T into the Encoder yields the second feature vector Z1. Based on the third feature vectors corresponding to multiple candidate objects, a reference feature vector Z0 is obtained. Inputting Z1, Z0, and the target entity X into the NN yields the weight parameters w corresponding to at least one reference object matching the target entity. Figure 6 The representation model in (i.e.) Figure 6 The model corresponding to the dashed box in the middle can be a VAE model (a type of generative model) or a self-developed model; this application does not limit this. The basic idea of the VAE model is to transform a set of real samples into an ideal data distribution through an encoder network, and then pass this data distribution to a decoder network to obtain a set of generated samples. If the generated samples are close enough to the real samples, an autoencoder model is trained.
[0127] Alternatively, the second feature vector Z1 can be restored using a decoder to obtain the fourth feature vector T. ′ Determine T and T ′ The loss value between T and T. ′ When the loss value between T and T is less than the loss threshold, Z1 is used as the second feature vector. ′If the loss value between T and T is not less than the loss threshold, dimensionality reduction processing continues until the loss value between the restored feature vector and T is less than the loss threshold. Then, the dimensionality-reduced feature vector is used as the second feature vector. The loss threshold is set based on experience or adjusted according to the implementation environment; this embodiment does not limit its implementation. In one possible implementation, any loss function can be selected to determine T and Ti. ′ The loss value between these values is not limited in this embodiment. For example, the loss function can be the cross-entropy loss function.
[0128] like Figure 7 The diagram illustrates the process of determining the weight parameters corresponding to at least one reference object that matches a target location entity, according to an embodiment of this application. Figure 7 In this process, based on the target location entity (AOI_i(X_i)), the target feature vector corresponding to the target location entity is determined as AOI_embedding; a set of feature vectors of multiple reference objects matching the target location entity is determined as POI_list_i(T_i), where the first feature vector corresponding to reference object one matching the target location entity is POI_i_1, the first feature vector corresponding to reference object two matching the target location entity is POI_i_2, and the first feature vector corresponding to reference object three matching the target location entity is POI_i_3. The DeepSet model is called to process POI_i_1, POI_i_2, and POI_i_3 to obtain the second feature vector Z_i_embedding. A set of feature vectors of multiple candidate objects is determined as POI_list_m(T_m), where the third feature vector corresponding to candidate object one is POI_m_1, the third feature vector corresponding to candidate object two is POI_m_2, and the third feature vector corresponding to candidate object three is POI_m_3. The DeepSet model is used to process POI_m_1, POI_m_2, and POI_m_3 to obtain the reference feature vector Z_m_embedding. The MLP (Multilayer Perceptron) model is then used to process AOI_embedding, Z_i_embedding, and Z_m_embedding to obtain the weight parameters corresponding to each reference object matching the target location entity. Specifically, the weight parameters w1, w2, and w3 are obtained for reference object one, reference object two, and reference object three, respectively.
[0129] Among them, the MLP model is also called the Artificial Neural Network (ANN) model. In addition to the input and output layers, it can have multiple hidden layers. The simplest MLP contains only one hidden layer, that is, a three-layer structure.
[0130] In one possible implementation, after determining the total expected order volume corresponding to each candidate location entity and the weight parameters corresponding to at least one object matching each candidate location entity, the process of determining the expected order quantity of each candidate location entity for at least one reference object matching each candidate location entity is similar. This application embodiment only illustrates the example of determining the expected order quantity of the target location entity for at least one reference object matching the target location entity.
[0131] For a target location entity among at least one candidate location entity, the product of the total expected order quantity corresponding to the target location entity and the weight parameters corresponding to at least one reference object that matches the target location entity is used as the expected order quantity of the target location entity for at least one reference object that matches the target location entity.
[0132] For example, the total expected order volume corresponding to the target location entity is 1000, and at least one reference object matching the target location entity is: the target object, object two, and object three. The weight parameter for the target object is 0.3, the weight parameter for object two is 0.5, and the weight parameter for object three is 0.2. Therefore, the expected order volume for the target location entity with respect to the target object is determined to be 300, the expected order volume for the target location entity with respect to object two is determined to be 500, and the expected order volume for the target location entity with respect to object three is determined to be 200.
[0133] like Figure 8 The diagram illustrates a process for determining the expected order quantity of a target location entity for at least one reference object matching the target location entity, according to an embodiment of this application. Figure 8In this process, based on the target location entity (AOI_i(X_i)), the target feature vector (AOI_embedding) corresponding to the target location entity is determined; a set of feature vectors of multiple reference objects matching the target location entity, POI_list_i(T_i), is determined, where the first feature vector corresponding to reference object one matching the target location entity is POI_i_1, the first feature vector corresponding to reference object two matching the target location entity is POI_i_2, and the first feature vector corresponding to reference object three matching the target location entity is POI_i_3. The DeepSet model is called to process POI_i_1, POI_i_2, and POI_i_3 to obtain the second feature vector Z_i_embedding. The NN model is called to process AOI_embedding and Z_i_embedding to obtain the expected total order volume corresponding to the target location entity, Li. The neural network model is called to process POI_i_1, POI_i_2, and POI_i_3 respectively, obtaining POI_i_1embedding, POI_i_2embedding, and POI_i_3embedding. Based on Z_i_embedding and POI_i_1embedding, the weight parameter w1 corresponding to reference object one is determined; based on Z_i_embedding and POI_i_2embedding, the weight parameter w2 corresponding to reference object two is determined; based on Z_i_embedding and POI_i_3embedding, the weight parameter w3 corresponding to reference object three is determined. The product of Li and w1, Li_1, is used as the expected order quantity of the target location entity for reference object one; the product of Li and w2, Li_2, is used as the expected order quantity of the target location entity for reference object two; and the product of Li and w3, Li_3, is used as the expected order quantity of the target location entity for reference object three. Among them, POI_i_1embedding is a feature vector obtained by learning POI_i_1 through a neural network model, POI_i_2embedding is a feature vector obtained by learning POI_i_2 through a neural network model, and POI_i_3embedding is a feature vector obtained by learning POI_i_3 through a neural network model.
[0134] Step 2043: Determine the expected order quantity for each candidate location entity against the target object from the expected order quantity for each candidate location entity against at least one reference object that matches each candidate location entity.
[0135] For example, there are five candidate location entities that match the target object, designated as candidate location entity one through candidate location entity five. The reference objects matching candidate location entity one include the target object, object two, object three, and object four. The expected order quantity for candidate location entity one regarding the target object is 200, for object two it is 300, for object three it is 400, and for object four it is 100. The reference objects matching candidate location entity two include the target object, object five, object six, and object seven. The expected order quantity for candidate location entity two regarding the target object is 300, for object five it is 200, for object six it is 100, and for object seven it is 400. The reference objects matching candidate location entity three include the target object, object eight, and object nine. Candidate entity 3 has an estimated order quantity of 500 for the target object, candidate entity 3 has an estimated order quantity of 200 for object 8, and candidate entity 3 has an estimated order quantity of 100 for object 9. Reference objects matching candidate entity 4 include the target object, object 10, and object 11. Candidate entity 4 has an estimated order quantity of 200 for the target object, candidate entity 4 has an estimated order quantity of 200 for object 10, and candidate entity 4 has an estimated order quantity of 400 for object 11. Reference objects matching candidate entity 5 include the target object and object 12. Candidate entity 5 has an estimated order quantity of 600 for the target object, and candidate entity 5 has an estimated order quantity of 200 for object 12. Based on this, the estimated order quantity for the target object is determined as follows: candidate entity 1: 200; candidate entity 2: 300; candidate entity 3: 500; candidate entity 4: 200; and candidate entity 5: 600.
[0136] In step 205, the delivery range corresponding to the target object is determined based on the expected order quantity of each candidate location entity for the target object.
[0137] In one possible implementation, the estimated delivery time from the target object to each candidate location entity is determined; the average resource value of the target object is determined; and the delivery range corresponding to the target object is determined based on the average resource value of the target object, the estimated number of orders for the target object from each candidate location entity, and the estimated delivery time from the target object to each candidate location entity.
[0138] Optionally, based on the average resource value of the target object, the expected order quantity of each candidate location entity in the target object, and the expected delivery time of the target object for each candidate location entity, at least one first location entity is determined from at least one candidate location entity; based on at least one first location entity, the delivery range corresponding to the target object is determined.
[0139] This application does not limit the process of determining the average resource value of a target object. Optionally, the types of resources included in the target object and the resource value corresponding to each type of resource are obtained, and the average resource value of the target object is determined based on the resource value corresponding to each type of resource and the number of resource types included in the target object. It should be noted that other methods can also be selected to determine the average resource value of the target object, and this application does not limit this method.
[0140] For example, the target object includes five types of resources, with resource values of 100, 50, 30, 80, and 70 respectively. Based on this, the average resource value of the target object can be determined to be (100+50+30+80+70) / 5 = 66.
[0141] Optionally, this application embodiment does not limit the process of determining the estimated delivery time from the target object to each candidate location entity. The process of determining the estimated delivery time from the target object to the target location entity is described as an example. Optionally, the process of determining the estimated delivery time from the target object to the target location entity includes: obtaining multiple completed orders from the second object to the target location entity within a target time period; determining the delivery time of each completed order; determining the average delivery time from the second object to the target location entity based on the delivery time of each completed order and the order quantity of the multiple completed orders from the second object to the target location entity within the target time period; and using the average delivery time from the second object to the target location entity as the estimated delivery time from the target object to the target location entity. Here, the second object is an object located in the same area as the target object, whose delivery range includes the target location entity, and whose object type meets the type requirements.
[0142] The target time period can be any time period, and this application embodiment does not limit it. Optionally, other methods can also be used to determine the estimated delivery time from the target object to the target location entity, and this application embodiment does not limit it.
[0143] For example, there are five completed orders from the second object to the target location entity within the target time period, with delivery times of 30 minutes, 50 minutes, 40 minutes, 20 minutes, and 60 minutes for each completed order. Based on this, the average delivery time from the second object to the target location entity can be determined to be (30+50+40+20+60) / 5 = 40. Therefore, the estimated delivery time from the target object to the target location entity can be determined to be 40 minutes.
[0144] Optionally, the process of determining the estimated delivery time from the target object to the target location entity includes: determining the driving distance between the target object and the target location entity; obtaining the driving speed; and using the quotient between the driving distance and the driving speed as the estimated delivery time from the target object to the target location entity. The driving speed is set based on experience or adjusted according to the implementation environment, and this embodiment does not limit this. For example, the driving speed is 25 km / h.
[0145] In one possible implementation, the process of determining at least one first location entity from at least one candidate location entity, based on the target object's average resource value, the expected order quantity for the target object from each candidate location entity, and the expected delivery time from the target object to each candidate location entity, includes: determining an entity tag corresponding to each candidate location entity based on the target object's average resource value, the expected order quantity for the target object from each candidate location entity, and the expected delivery time from the target object to each candidate location entity. The entity tag indicates whether the candidate location entity is within the target object's delivery range. At least one first location entity is determined from at least one candidate location entity based on the entity tags corresponding to each candidate location entity.
[0146] The entity label includes a first label and a second label, wherein the first label indicates that the candidate location entity is within the delivery range of the target object, and the second label indicates that the candidate location entity is not within the delivery range of the target object. This application does not limit the process of determining the entity label corresponding to each candidate location entity. In one possible implementation, the entity label corresponding to each candidate location entity is determined according to the following formulas (1), (2), and (3).
[0147]
[0148]
[0149]
[0150] In the above formulas (1), (2) and (3), MAX represents the maximum value, and O n,mT represents the expected order quantity of the m-th candidate location entity in the n-th target object. n,m Price represents the estimated delivery time from the m-th candidate location entity to the n-th target object. n C represents the average resource value of the nth target object. n,m C represents the entity label of the m-th candidate location entity for the n-th target object. n,m The value can be 0 or 1. T0 is a preset value, representing the average delivery time of the m-th candidate location entity in the first time period. M is the number of candidate location entities, N is the number of target objects, m ranges from 1 to M, and n ranges from 1 to N.
[0151] The first time period can be any time period, and this embodiment of the application does not limit it. Optionally, the process of determining the average delivery time of the m-th candidate location entity within the first time period includes: obtaining multiple completed orders of the m-th candidate location entity within the target time period, determining the delivery time of each completed order, and determining the average delivery time of the m-th candidate location entity based on the delivery time of each completed order and the number of multiple completed orders. Optionally, other methods can also be used to determine the average delivery time of the m-th candidate location entity within the first time period, and this embodiment of the application does not limit it.
[0152] When C n,m When C is 0, it means that for the nth target object, the mth candidate location entity cannot be within the delivery range of the nth target object. n,m When the value is 1, it means that for the nth target object, the mth candidate location entity can be within the delivery range of the nth target object.
[0153] It should be noted that greedy algorithms or branch and bound methods can be used to determine the entity labels corresponding to each candidate entity location, and this application embodiment does not limit this.
[0154] In one possible implementation, after determining the entity labels corresponding to each candidate location entity, at least one candidate location entity whose entity label is the first label is selected as the first location entity. For example, the candidate location entities matching the target object include candidate location entities one through five. Specifically, based on the formulas (1) through (3) above, the entity label corresponding to candidate location entity one is determined as the first label, the entity label corresponding to candidate location entity two is determined as the first label, the entity label corresponding to candidate location entity three is determined as the second label, the entity label corresponding to candidate location entity four is determined as the first label, and the entity label corresponding to candidate location entity five is determined as the first label. Therefore, candidate location entities one, two, four, and five are selected as the first location entities.
[0155] Optionally, the process of determining the delivery range corresponding to the target object based on at least one first location entity includes: taking the smallest area that contains at least one first location entity and does not contain any other location entities among the candidate location entities as the delivery range corresponding to the target object. Figure 9 The diagram shown is a flowchart of a method for determining the delivery range provided in an embodiment of this application.
[0156] like Figure 10 The diagram shown is a schematic representation of the delivery range corresponding to a target object according to an embodiment of this application. Figure 10 In this context, the gray area is used as the delivery range corresponding to the target object.
[0157] Practical experience shows that algorithmically drawn delivery ranges for target objects significantly improve order volume, overall transaction value, and user experience compared to manually drawn delivery ranges for target objects.
[0158] The above method, when determining the delivery range corresponding to the target object, identifies at least one candidate location entity that matches the target object. For each candidate location entity, a reverse recall is performed to obtain a reference object that matches each candidate location entity. Then, based on each candidate location entity and its matching reference object, the expected order quantity for each candidate location entity within the target object is determined. Finally, the delivery range corresponding to the target object is determined based on the expected order quantity for each candidate location entity within the target object. Because the influence of the reference object on the target object is considered, i.e., the transfer of order volume is taken into account, the accuracy of the estimated order quantity for each candidate location entity within the target object is high. This results in a more accurate, reasonable, and efficient delivery range, further improving the conversion rate and order quantity of the target object.
[0159] The single-quantity prediction model provided in this application embodiment has been debiased in offline experiments, and the debiasing effect is shown in Table 2 below.
[0160] Table 2
[0161]
[0162] Among them, the KS statistic (Kolmogorov-Smirnov statistic) and the ASMD statistic (Absolute Standardized Mean Difference) are common methods for assessing sample bias in causal inference; the smaller the value, the better the bias correction. They are defined as follows:
[0163] Drawing on the principles of sample debiasing and evaluation, this paper assesses the differences between different sample distributions by analyzing the KS statistic and the ASMD statistic. The KS statistic is defined as the maximum distance between the empirical cumulative distribution functions of two sample groups. The ASMD statistic is defined as the absolute value of the difference between the means of the variances of two sample groups. Visualizations of the two statistics are shown below. Figure 11 As shown, where, Figure 11 (1) is a visualization of the KS statistic. Figure 11 (2) is a visualization of the ASMD statistic.
[0164] Figure 12 The diagram shown is a structural schematic of a delivery range determination device provided in an embodiment of this application. Figure 12 As shown, the device includes:
[0165] Module 1201 is used to obtain the geographical location information of the target object within the delivery range to be determined;
[0166] The determination module 1202 is used to determine at least one candidate location entity that matches the target object based on the geographical location information of the target object;
[0167] The determining module 1202 is further configured to determine at least one reference object that matches each candidate location entity, wherein the at least one reference object includes the target object;
[0168] The determining module 1202 is further configured to determine the expected order quantity for each candidate location entity against the target object based on each candidate location entity and at least one reference object that matches each candidate location entity.
[0169] The determination module 1202 is also used to determine the delivery range corresponding to the target object based on the expected order quantity of each candidate location entity for the target object.
[0170] In one possible implementation, the determining module 1202 is configured to: determine the total expected order volume corresponding to each candidate location entity based on each candidate location entity and at least one reference object matching each candidate location entity; determine the expected order quantity of each candidate location entity for at least one reference object matching each candidate location entity based on the total expected order volume corresponding to each candidate location entity and the weight parameters corresponding to at least one reference object matching each candidate location entity; and determine the expected order quantity of each candidate location entity for the target object from the expected order quantity of each candidate location entity for at least one reference object matching each candidate location entity.
[0171] In one possible implementation, the determining module 1202 is configured to, for a target location entity among at least one candidate location entities, determine a target feature vector corresponding to the target location entity, the target feature vector being used to characterize the target location entity; determine a first feature vector corresponding to at least one reference object matching the target location entity, the first feature vector being used to characterize the corresponding reference object; and determine the expected total order volume corresponding to the target location entity based on the first feature vector corresponding to at least one reference object matching the target location entity and the target feature vector corresponding to the target location entity.
[0172] In one possible implementation, the determining module 1202 is used to determine a second feature vector based on a first feature vector corresponding to at least one reference object that matches the target location entity, the second feature vector being used to characterize at least one reference object that matches the target location entity; and to determine the expected total order volume corresponding to the target location entity based on the second feature vector and the target feature vector corresponding to the target location entity.
[0173] In one possible implementation, the determining module 1202 is used to determine a first intermediate vector based on the first feature vectors corresponding to at least one reference object that matches the target location entity, the first intermediate vector being used to characterize at least one reference object that matches the target location entity; and to perform dimensionality reduction processing on the first intermediate vector to obtain a second feature vector.
[0174] In one possible implementation, the determining module 1202 is further configured to, for a target location entity among at least one candidate location entities, determine weight parameters corresponding to at least one reference object matching the target location entity based on the second feature vector and the target location entity, wherein the second feature vector is determined based on at least one reference object matching the target location entity and is used to characterize at least one reference object matching the target location entity.
[0175] In one possible implementation, the determining module 1202 is used to obtain third feature vectors corresponding to multiple candidate objects, the third feature vectors being used to characterize the corresponding candidate objects; determine a second intermediate vector based on the third feature vectors corresponding to the multiple candidate objects; perform dimensionality reduction processing on the second intermediate vector to obtain a reference feature vector, the reference feature vector being used to characterize the multiple candidate objects; and determine weight parameters corresponding to at least one reference object that matches the target location entity based on the second feature vector, the reference feature vector, and the target location entity.
[0176] In one possible implementation, the determining module 1202 is used to determine the estimated delivery time of the target object to each candidate location entity; determine the average resource value of the target object; and determine the delivery range corresponding to the target object based on the average resource value of the target object, the estimated number of orders for the target object from each candidate location entity, and the estimated delivery time of the target object to each candidate location entity.
[0177] In one possible implementation, the determining module 1202 is used to determine at least one first location entity among at least one candidate location entity based on the average resource value of the target object, the expected number of orders for the target object from each candidate location entity, and the expected delivery time from the target object to each candidate location entity; and to determine the delivery range corresponding to the target object based on the at least one first location entity.
[0178] In one possible implementation, the determining module 1202 is used to determine the target area based on the geographic location information of the target object; and to take the location entities located within the target area as at least one candidate location entity that matches the target object.
[0179] When determining the delivery range corresponding to a target object, the aforementioned device identifies at least one candidate location entity that matches the target object. It then performs a reverse recall for each candidate location entity to obtain a reference object that matches each candidate location entity. Based on each candidate location entity and its matching reference object, it determines the expected order quantity for each candidate location entity within the target object. Finally, it determines the delivery range corresponding to the target object based on the expected order quantity for each candidate location entity within the target object. Because it considers the influence of the reference object on the target object—that is, it takes into account the transfer of order volume—the accuracy of the determined expected order quantity for each candidate location entity within the target object is high. This results in a more accurate, reasonable, and efficient delivery range, further improving the conversion rate and order quantity of the target object.
[0180] It should be understood that the above-described apparatus is only illustrated by the division of the functional modules described above when implementing its functions. In practical applications, the functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments, which will not be repeated here.
[0181] Figure 13 A structural block diagram of a terminal device 1300 provided in an exemplary embodiment of this application is shown. The terminal device 1300 may be a portable mobile terminal, such as a smartphone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), laptop computer, or desktop computer. The terminal device 1300 may also be referred to as a user device, portable terminal, laptop terminal, desktop terminal, or other names.
[0182] Typically, terminal device 1300 includes a processor 1301 and a memory 1302.
[0183] Processor 1301 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1301 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1301 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1301 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the screen. In some embodiments, processor 1301 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0184] Memory 1302 may include one or more computer-readable storage media, which may be non-transitory. Memory 1302 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in memory 1302 is used to store at least one instruction, which is executed by processor 1301 to implement the method for determining the delivery range provided in the method embodiments of this application.
[0185] In some embodiments, the terminal device 1300 may also optionally include a peripheral device interface 1303 and at least one peripheral device. The processor 1301, memory 1302, and peripheral device interface 1303 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1303 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 1304, a display screen 1305, a camera assembly 1306, an audio circuit 1307, a positioning assembly 1308, and a power supply 1309.
[0186] Peripheral device interface 1303 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 1301 and memory 1302. In some embodiments, processor 1301, memory 1302 and peripheral device interface 1303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 1301, memory 1302 and peripheral device interface 1303 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0187] The radio frequency (RF) circuit 1304 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 1304 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1304 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 1304 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 1304 can communicate with other terminal devices through at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: the World Wide Web, metropolitan area networks, intranets, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 1304 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.
[0188] Display screen 1305 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 1305 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 1301 for processing. In this case, display screen 1305 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, display screen 1305 may be a single screen, disposed on the front panel of terminal device 1300; in other embodiments, display screen 1305 may be at least two, disposed on different surfaces of terminal device 1300 or in a folded design; in still other embodiments, display screen 1305 may be a flexible display screen, disposed on a curved or folded surface of terminal device 1300. Furthermore, display screen 1305 may also be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. The display screen 1305 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0189] The camera assembly 1306 is used to acquire images or videos. Optionally, the camera assembly 1306 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal device 1300, and the rear-facing camera is located on the back of the terminal device 1300. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting by fusion of the main camera and the wide-angle camera, VR (Virtual Reality) shooting, or other fusion shooting functions. In some embodiments, the camera assembly 1306 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cool light flash, which can be used for light compensation at different color temperatures.
[0190] The audio circuit 1307 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting the sound waves into electrical signals that are input to the processor 1301 for processing, or input to the radio frequency circuit 1304 to achieve voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each located at a different part of the terminal device 1300. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert electrical signals from the processor 1301 or the radio frequency circuit 1304 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio circuit 1307 may also include a headphone jack.
[0191] The positioning component 1308 is used to locate the current geographical location of the terminal device 1300 in order to enable navigation or LBS (Location Based Service). The positioning component 1308 can be a positioning component based on the US GPS (Global Positioning System), China's BeiDou system, or Russia's Galileo system.
[0192] Power supply 1309 is used to supply power to the various components in terminal device 1300. Power supply 1309 can be AC power, DC power, a disposable battery, or a rechargeable battery. When power supply 1309 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged via a wired line, and a wireless rechargeable battery is a battery that is charged via a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0193] In some embodiments, the terminal device 1300 further includes one or more sensors 1310. The one or more sensors 1310 include, but are not limited to: an accelerometer 1311, a gyroscope 1312, a pressure sensor 1313, a fingerprint sensor 1314, an optical sensor 1315, and a proximity sensor 1316.
[0194] Accelerometer 1311 can detect the magnitude of acceleration along the three coordinate axes of a coordinate system established by terminal device 1300. For example, accelerometer 1311 can be used to detect the components of gravitational acceleration along the three coordinate axes. Processor 1301 can control display screen 1305 to display the user interface in either a landscape or portrait view based on the gravitational acceleration signal acquired by accelerometer 1311. Accelerometer 1311 can also be used for games or for acquiring user motion data.
[0195] The gyroscope sensor 1312 can detect the orientation and rotation angle of the terminal device 1300. The gyroscope sensor 1312 can work in conjunction with the accelerometer sensor 1311 to collect 3D motion data from the user on the terminal device 1300. Based on the data collected by the gyroscope sensor 1312, the processor 1301 can perform the following functions: motion sensing (e.g., changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.
[0196] The pressure sensor 1313 can be disposed on the side bezel of the terminal device 1300 and / or on the lower layer of the display screen 1305. When the pressure sensor 1313 is disposed on the side bezel of the terminal device 1300, it can detect the user's grip signal on the terminal device 1300, and the processor 1301 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor 1313. When the pressure sensor 1313 is disposed on the lower layer of the display screen 1305, the processor 1301 can control the operable controls on the UI interface based on the user's pressure operation on the display screen 1305. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
[0197] The fingerprint sensor 1314 is used to collect a user's fingerprint. The processor 1301 identifies the user based on the fingerprint collected by the fingerprint sensor 1314, or vice versa. When the user's identity is identified as trusted, the processor 1301 authorizes the user to perform relevant sensitive operations, including unlocking the screen, viewing encrypted information, downloading software, making payments, and changing settings. The fingerprint sensor 1314 can be located on the front, back, or side of the terminal device 1300. When the terminal device 1300 has a physical button or manufacturer logo, the fingerprint sensor 1314 can be integrated with the physical button or manufacturer logo.
[0198] The optical sensor 1315 is used to collect ambient light intensity. In one embodiment, the processor 1301 can control the display brightness of the display screen 1305 based on the ambient light intensity collected by the optical sensor 1315. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1305 is increased; when the ambient light intensity is low, the display brightness of the display screen 1305 is decreased. In another embodiment, the processor 1301 can also dynamically adjust the shooting parameters of the camera assembly 1306 based on the ambient light intensity collected by the optical sensor 1315.
[0199] The proximity sensor 1316, also known as a distance sensor, is typically located on the front panel of the terminal device 1300. The proximity sensor 1316 is used to detect the distance between the user and the front of the terminal device 1300. In one embodiment, when the proximity sensor 1316 detects that the distance between the user and the front of the terminal device 1300 is gradually decreasing, the processor 1301 controls the display screen 1305 to switch from a screen-on state to a screen-off state; when the proximity sensor 1316 detects that the distance between the user and the front of the terminal device 1300 is gradually increasing, the processor 1301 controls the display screen 1305 to switch from a screen-off state to a screen-on state.
[0200] Those skilled in the art will understand that Figure 13 The structure shown does not constitute a limitation on the terminal device 1300, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0201] Figure 14This is a schematic diagram of the server structure provided in the embodiments of this application. The server 1400 can vary considerably due to different configurations or performance. It may include one or more Central Processing Units (CPUs) 1401 and one or more memories 1402. The one or more memories 1402 store at least one line of program code, which is loaded and executed by the one or more processors 1401 to implement the delivery range determination method provided in the various method embodiments described above. Of course, the server 1400 may also have wired or wireless network interfaces, a keyboard, and input / output interfaces for input and output. The server 1400 may also include other components for implementing device functions, which will not be elaborated here.
[0202] In an exemplary embodiment, a computer-readable storage medium is also provided, which stores at least one piece of program code that is loaded and executed by a processor to enable a computer to implement any of the above-described methods for determining the delivery range.
[0203] Optionally, the aforementioned computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.
[0204] In an exemplary embodiment, a computer program or computer program product is also provided, which stores at least one computer instruction that is loaded and executed by a processor to enable the computer to implement any of the above-described methods for determining the delivery range.
[0205] It should be noted that all information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this application have been authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the geographical location information of the target objects involved in this application was obtained with full authorization.
[0206] It should be understood that "multiple" as used in this article refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0207] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0208] The above description is merely an exemplary embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.
Claims
1. A method for determining a delivery range, characterized in that, The method includes: Obtain the geographic location information of the target objects within the delivery area to be determined; Based on the geographic location information of the target object, the target area is determined; The location entities located within the target area are considered as at least one candidate location entity that matches the target object; Identify at least one reference object that matches each candidate location entity, wherein the at least one reference object includes the target object; For a target location entity among the at least one candidate location entities, weight parameters corresponding to at least one reference object that matches the target location entity are determined based on the second feature vector and the target location entity. The second feature vector is determined based on at least one reference object that matches the target location entity and is used to characterize at least one reference object that matches the target location entity. The step of determining the weight parameters corresponding to at least one reference object matching the target location entity based on the second feature vector and the target location entity includes: Obtain the third feature vector corresponding to each of the multiple candidate objects, and the third feature vector is used to characterize the corresponding candidate object; The second intermediate vector is determined based on the third feature vectors corresponding to the multiple candidate objects. The second intermediate vector is subjected to dimensionality reduction to obtain a reference feature vector, which is used to characterize the plurality of candidate objects; Based on the second feature vector, the reference feature vector, and the target location entity, determine the weight parameters corresponding to at least one reference object that matches the target location entity. Based on each candidate location entity and at least one reference object that matches each candidate location entity, determine the expected order quantity for each candidate location entity for the target object; The delivery range corresponding to the target object is determined based on the expected order quantity of each candidate location entity for the target object.
2. The method according to claim 1, characterized in that, Determining the expected order quantity for the target object for each candidate location entity based on each candidate location entity and at least one reference object matching each candidate location entity includes: Based on each candidate location entity and at least one reference object that matches each candidate location entity, determine the total expected order volume corresponding to each candidate location entity; Based on the total expected order volume corresponding to each candidate location entity and the weight parameters corresponding to at least one reference object matching each candidate location entity, the expected order quantity of each candidate location entity for the at least one reference object matching each candidate location entity is determined. The expected order quantity of each candidate location entity for the target object is determined from the expected order quantity of each candidate location entity for at least one reference object that matches each candidate location entity.
3. The method according to claim 2, characterized in that, The step of determining the total expected order volume corresponding to each candidate location entity based on each candidate location entity and at least one reference object matching each candidate location entity includes: For a target location entity among the at least one candidate location entities, a target feature vector corresponding to the target location entity is determined, and the target feature vector is used to characterize the target location entity. Determine a first feature vector corresponding to at least one reference object that matches the target location entity, wherein the first feature vector is used to characterize the corresponding reference object; The total expected order volume corresponding to the target location entity is determined based on the first feature vector corresponding to at least one reference object that matches the target location entity and the target feature vector corresponding to the target location entity.
4. The method according to claim 3, characterized in that, The step of determining the expected total number of orders corresponding to the target location entity based on the first feature vector corresponding to at least one reference object matching the target location entity and the target feature vector corresponding to the target location entity includes: A second feature vector is determined based on the first feature vector corresponding to at least one reference object that matches the target location entity. The second feature vector is used to characterize at least one reference object that matches the target location entity. Based on the second feature vector and the target feature vector corresponding to the target location entity, the total expected order volume corresponding to the target location entity is determined.
5. The method according to claim 4, characterized in that, Determining the second feature vector based on the first feature vector corresponding to at least one reference object matching the target location entity includes: A first intermediate vector is determined based on the first feature vectors corresponding to at least one reference object that matches the target location entity. The first intermediate vector is used to characterize at least one reference object that matches the target location entity. The first intermediate vector is subjected to dimensionality reduction processing to obtain the second feature vector.
6. The method according to any one of claims 1 to 5, characterized in that, The step of determining the delivery range corresponding to the target object based on the expected order quantity for the target object from each candidate location entity includes: Determine the estimated delivery time from the target object to each of the candidate location entities; Determine the average resource value of the target object; The delivery range corresponding to the target object is determined based on the average resource value of the target object, the expected number of orders for the target object from each candidate location entity, and the expected delivery time from the target object to each candidate location entity.
7. The method according to claim 6, characterized in that, The step of determining the delivery range corresponding to the target object based on the average resource value of the target object, the expected order quantity of each candidate location entity for the target object, and the expected delivery time from the target object to each candidate location entity includes: Based on the average resource value of the target object, the expected number of orders for the target object from each candidate location entity, and the expected delivery time from the target object to each candidate location entity, at least one first location entity is determined from the at least one candidate location entity; The delivery range corresponding to the target object is determined based on the at least one first location entity.
8. A device for determining a delivery range, characterized in that, The device includes: The acquisition module is used to acquire the geographical location information of the target objects within the delivery range to be determined; The determination module is used to determine the target area based on the geographical location information of the target object; The determining module is further configured to identify location entities located within the target area as at least one candidate location entity that matches the target object; The determining module is further configured to determine at least one reference object that matches each candidate location entity, wherein the at least one reference object includes the target object; The determining module is further configured to, for the target location entity among the at least one candidate location entities, determine weight parameters corresponding to at least one reference object that matches the target location entity based on the second feature vector and the target location entity, wherein the second feature vector is determined based on at least one reference object that matches the target location entity, and the second feature vector is used to characterize at least one reference object that matches the target location entity. The determining module is further configured to obtain third feature vectors corresponding to multiple candidate objects respectively, and the third feature vectors are used to characterize the corresponding candidate objects; The second intermediate vector is determined based on the third feature vectors corresponding to the multiple candidate objects. The second intermediate vector is subjected to dimensionality reduction to obtain a reference feature vector, which is used to characterize the plurality of candidate objects; Based on the second feature vector, the reference feature vector, and the target location entity, determine the weight parameters corresponding to at least one reference object that matches the target location entity. The determining module is further configured to determine the expected order quantity of each candidate location entity for the target object based on each candidate location entity and at least one reference object that matches each candidate location entity; The determining module is further configured to determine the delivery range corresponding to the target object based on the expected order quantity of each candidate location entity for the target object.
9. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory storing at least one piece of program code, which is loaded and executed by the processor to enable the electronic device to implement the method for determining the delivery range as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one piece of program code, which is loaded and executed by a processor to enable the computer to implement the method for determining the delivery range as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Delivery range determination method and device, electronic equipment and storage medium
CN110570136A
