Delivery area division methods and devices, electronic equipment, storage media
By constructing a location access network and using community discovery algorithms to determine the regional division of successful delivery locations, the problem of inaccurate delivery route planning was solved, and delivery personnel's acceptance and delivery efficiency were improved.
Patent Information
- Application Number
- CN202010478027.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-29
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-05-29
AI Technical Summary
The accuracy of delivery route planning in existing technologies is low, and delivery personnel have a low acceptance of the planned routes, resulting in low delivery efficiency.
By acquiring historical order data and delivery trajectory data, a location access network is constructed, and a community discovery algorithm is used to determine the regional division of successful delivery locations. This allows delivery personnel to freely choose routes within the same area, improving the accuracy and acceptance of route planning.
This improved the accuracy of delivery routes and increased acceptance among delivery personnel, thereby enhancing delivery efficiency.
Smart Images

Figure CN113743845B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of logistics distribution, and in particular to a distribution area division method, a distribution area division device, an electronic device, and a computer-readable storage medium. Background Art
[0002] With the development of the e-commerce industry, users can get the items they need without leaving home. After purchasing the items, users generate order data, and the delivery staff can deliver the items according to the address information in the order data.
[0003] In order to improve delivery efficiency, logistics operators can provide delivery personnel with route planning guidance. Specifically, they can plan the shortest delivery route based on the delivery personnel’s current location and the location of the remaining packages. The location of the remaining packages can be obtained based on the latitude and longitude coordinates of the geocoded delivery address of the packages. However, the delivery route planned by this method is less accurate and less accepted by delivery personnel.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] The purpose of the present disclosure is to provide a delivery area division method, a delivery area division device, an electronic device and a computer-readable storage medium, thereby overcoming to a certain extent the problems of low accuracy of planned delivery routes and low acceptance of delivery routes by delivery personnel due to limitations and defects of related technologies.
[0006] According to a first aspect of the present disclosure, a method for dividing a delivery area is provided, comprising:
[0007] Obtain multiple historical order data and multiple historical delivery track data;
[0008] Determine the delivery position sequence corresponding to the single historical delivery trajectory data according to the time period corresponding to each dwelling point in the single historical delivery trajectory data and the delivery time in the multiple historical order data;
[0009] Taking all the delivery locations in the delivery location sequence corresponding to the plurality of historical delivery trajectory data as vertices, and determining the edges between all two adjacent delivery locations, so as to construct a location access network;
[0010] According to the location access network, the regional division results of all the delivery locations are determined, wherein the routes between the multiple delivery locations in the same divided area are not unique.
[0011] Optionally, determining the delivery position sequence corresponding to the single historical delivery trajectory data according to the time period corresponding to each dwelling point in the single historical delivery trajectory data and the delivery time in the plurality of historical order data includes:
[0012] Determine the delivery point corresponding to the single historical delivery trajectory data according to the time period corresponding to each residence point in the single historical delivery trajectory data and the delivery time in the multiple historical order data;
[0013] Clustering all the successful delivery points corresponding to the multiple historical delivery trajectory data to obtain multiple successful delivery locations;
[0014] A delivery location that matches each dwelling point in a single historical delivery trajectory data is selected from the multiple delivery locations to determine a delivery location sequence corresponding to the single historical delivery trajectory data.
[0015] Optionally, determining the successful delivery point corresponding to the single historical delivery trajectory data according to the time period corresponding to each dwelling point in the single historical delivery trajectory data and the successful delivery time in the plurality of historical order data includes:
[0016] For each residence point in a single historical delivery trajectory data, if the successful delivery time of at least one historical order data among the multiple historical order data is within the time period corresponding to the residence point, then the residence point is taken as the successful delivery point;
[0017] Otherwise, the retention point will not be regarded as a delivery point.
[0018] Optionally, before determining the delivery position sequence corresponding to the single historical delivery trajectory data according to the time period corresponding to each dwelling point in the single historical delivery trajectory data and the delivery time in the plurality of historical order data, the method further comprises:
[0019] Determine the delivery speed between all two adjacent residence points based on the time period corresponding to each residence point in the single historical delivery trajectory data;
[0020] For two residence points whose corresponding delivery speeds are greater than the speed threshold, the latter of the two residence points is deleted to update the single historical delivery trajectory data.
[0021] Optionally, before determining the delivery position sequence corresponding to the single historical delivery trajectory data according to the time period corresponding to each dwelling point in the single historical delivery trajectory data and the delivery time in the plurality of historical order data, the method further comprises:
[0022] The first dwelling point in the single historical delivery trajectory data is used as an anchor point;
[0023] Determine a last dwell point after the anchor point and within a first distance threshold from the anchor point;
[0024] When the time difference between the time period corresponding to the last dwell point and the time period corresponding to the anchor point is greater than the time difference threshold, the trajectory between the dwell point and the last dwell point is taken as a dwell point, and the dwell point is taken as the anchor point;
[0025] When there is a dwelling point after the anchor point, updating the anchor point to the first dwelling point after the anchor point, and returning to the step of determining the last dwelling point after the anchor point and whose distance from the anchor point is within the first distance threshold;
[0026] When there is no dwell point after the anchor point, the process ends.
[0027] Optionally, clustering all successful delivery points corresponding to the plurality of historical delivery track data includes:
[0028] According to the distances between all the successful delivery points corresponding to the multiple historical delivery trajectory data, hierarchical clustering is performed on all the successful delivery points.
[0029] Optionally, the step of accessing the network according to the location to determine the regional division results of all the successful delivery locations includes:
[0030] The location access network is processed based on a community discovery algorithm to determine the regional division results of all successful delivery locations.
[0031] Optionally, after determining the regional division results of all successful delivery locations, the method further includes:
[0032] Based on the area division result, the delivery routes between the multiple areas corresponding to the current delivery point are determined.
[0033] Optionally, the weight of the edge between any two delivery locations in the location access network is positively correlated with the number of passes between the any two delivery locations.
[0034] According to a second aspect of the present disclosure, there is provided a distribution area division device, comprising:
[0035] A historical data acquisition module is used to acquire multiple historical order data and multiple historical delivery track data;
[0036] A successful delivery position sequence determination module, used to determine the successful delivery position sequence corresponding to the single historical delivery trajectory data according to the time period corresponding to each residence point in the single historical delivery trajectory data and the successful delivery time in the multiple historical order data;
[0037] A location access network construction module is used to take all the delivery locations in the delivery location sequence corresponding to the plurality of historical delivery trajectory data as vertices, and determine the edges between all two adjacent delivery locations to construct a location access network;
[0038] The area division result determination module is used to determine the area division results of all the delivery locations according to the location access network, wherein the routes between the multiple delivery locations in the same divided area are not unique.
[0039] Optionally, the successful delivery position sequence determination module includes:
[0040] A successful delivery point determination unit, configured to determine the successful delivery point corresponding to the single historical delivery trajectory data according to the time period corresponding to each residence point in the single historical delivery trajectory data and the successful delivery time in the plurality of historical order data;
[0041] A delivery point clustering unit, used for clustering all the delivery points corresponding to the plurality of historical delivery track data to obtain a plurality of delivery locations;
[0042] The delivery position sequence determination unit is used to select a delivery position that matches each residence point in a single historical delivery trajectory data from the multiple delivery positions to determine the delivery position sequence corresponding to the single historical delivery trajectory data.
[0043] Optionally, the delivery point determination unit is specifically used to, for each residence point in a single historical delivery trajectory data, if the delivery time of at least one historical order data among the multiple historical order data is within the time period corresponding to the residence point, then the residence point is used as the delivery point; otherwise, the residence point is not used as the delivery point.
[0044] Optionally, the delivery area division device of the embodiment of the present disclosure further includes:
[0045] The data preprocessing module is used to determine the delivery speed between all two adjacent residence points based on the time period corresponding to each residence point in the single historical delivery trajectory data; for two residence points whose corresponding delivery speed is greater than the speed threshold, the latter of the two residence points is deleted to update the single historical delivery trajectory data.
[0046] Optionally, the delivery area division device of the embodiment of the present disclosure further includes:
[0047] A dwell point aggregation module is used to take the first dwell point in the single historical delivery trajectory data as an anchor point; determine the last dwell point after the anchor point and whose distance from the anchor point is within a first distance threshold;
[0048] When the time difference between the time period corresponding to the last dwell point and the time period corresponding to the anchor point is greater than the time difference threshold, the trajectory between the dwell point and the last dwell point is taken as a dwell point, and the dwell point is taken as the anchor point;
[0049] When there is a dwelling point after the anchor point, the anchor point is updated to the first dwelling point after the anchor point, and the process returns to the step of determining the last dwelling point after the anchor point and whose distance from the anchor point is within the first distance threshold; when there is no dwelling point after the anchor point, the process ends.
[0050] Optionally, the delivery point clustering unit is specifically configured to hierarchically cluster all the delivery points according to the distances between all the delivery points corresponding to the plurality of historical delivery trajectory data.
[0051] Optionally, the area division result determination module is specifically configured to process the location access network based on a community discovery algorithm to determine the area division results of all successful delivery locations.
[0052] Optionally, the delivery area division device of the embodiment of the present disclosure further includes:
[0053] The delivery sequence determination module is used to determine the delivery routes between multiple areas corresponding to the current delivery point based on the area division result.
[0054] Optionally, the weight of the edge between any two delivery locations in the location access network is positively correlated with the number of passes between the any two delivery locations.
[0055] According to a third aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the above-mentioned methods by executing the executable instructions.
[0056] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, any one of the methods described above is implemented.
[0057] The exemplary embodiments of the present disclosure may have at least some or all of the following beneficial effects:
[0058] In the delivery area division method provided in an example embodiment of the present disclosure, a delivery location sequence that is more suitable for the delivery personnel can be determined based on the delivery personnel's actual delivery trajectory. In this way, by constructing a location access network based on the delivery location sequence and determining the regional division results of all delivery locations, the accuracy of regional division can be improved. When planning the route, within the same area, since the routes between multiple delivery locations are not unique, the delivery personnel can freely choose the delivery route. The logistics operation personnel can set the delivery routes between areas for the delivery personnel. In this way, the planned routes are more suitable for the delivery personnel, thereby improving the accuracy of the delivery routes, and then improving the delivery personnel's acceptance of the delivery routes, and ultimately improving the delivery efficiency.
[0059] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0061] Figure 1 A flow chart of the method for dividing the delivery area in the embodiment of the present disclosure is shown;
[0062] Figure 2 A schematic diagram for realizing the above-mentioned distribution area division method;
[0063] Figure 3 A schematic diagram of noise filtering in an embodiment of the present disclosure is shown;
[0064] Figure 4 A flow chart showing a convergence operation on a resident point in an embodiment of the present disclosure is shown;
[0065] Figure 5 A schematic diagram of the dwell point detection in the embodiment of the present disclosure is shown;
[0066] Figure 6 A flow chart for determining a sequence of successful delivery positions in an embodiment of the present disclosure is shown;
[0067] Figure 7 A schematic diagram of hierarchical clustering in an embodiment of the present disclosure is shown;
[0068] Figure 8 A schematic diagram showing a clustering result in an embodiment of the present disclosure;
[0069] Fig. 9 A schematic diagram showing the construction of a location access network in an embodiment of the present disclosure is shown;
[0070] Fig.10 A schematic diagram showing the distribution area division result in an embodiment of the present disclosure;
[0071] Fig.11 A schematic diagram of the structure of a distribution area division device in an embodiment of the present disclosure is shown;
[0072] Fig.12 A schematic diagram of the structure of an electronic device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0073] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.
[0074] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0075] At present, more and more users choose to buy items online, and accordingly, logistics and delivery are becoming more and more common in people's lives. Since the efficiency of delivery directly affects the user's purchasing experience, logistics operators can plan delivery routes for delivery personnel to improve delivery efficiency.
[0076] However, the current route planning method is not widely accepted by couriers, who are reluctant to deliver packages according to the planned route. The reasons include the following: 1) the delivery address is not the actual delivery location (for example, it may need to be delivered to a courier cabinet); 2) the road network data used for planning is not detailed enough; 3) there may be some actual constraints in different geographical locations that the algorithm cannot consider; 4) couriers have their own delivery order preferences that do not affect delivery efficiency, etc.
[0077] It can be seen that the delivery routes planned by logistics operators in the prior art are of low accuracy and low acceptance by delivery personnel. In order to solve this problem, the embodiments of the present disclosure provide a delivery area division method, which can improve the accuracy of the delivery routes planned by logistics operators and the acceptance of delivery personnel to the delivery routes planned by logistics operators.
[0078] See also Figure 1 , Figure 1 A flow chart of the method for dividing the delivery area in the embodiment of the present disclosure is shown, comprising the following steps:
[0079] Step S110, obtaining a plurality of historical order data and a plurality of historical delivery track data.
[0080] Step S120, determining a delivery position sequence corresponding to the single historical delivery trajectory data according to the time period corresponding to each dwelling point in the single historical delivery trajectory data and the delivery time in the multiple historical order data.
[0081] Step S130, taking all the delivery locations in the delivery location sequence corresponding to the plurality of historical delivery trajectory data as vertices, and determining the edges between all two adjacent delivery locations, so as to construct a location access network.
[0082] Step S140, determining the regional division results of all the delivery locations according to the location access network, wherein the routes between multiple delivery locations in the same divided area are not unique.
[0083] The method for dividing the delivery area of the embodiment of the present disclosure can determine a sequence of delivery locations that is more suitable for the delivery personnel based on the delivery personnel's actual delivery trajectory. In this way, by constructing a location access network based on the delivery location sequence and determining the regional division results of all the delivery locations, the accuracy of the regional division can be improved. Moreover, within the same area, since the routes between multiple delivery locations are not unique, the delivery personnel can freely choose the delivery route. When planning the route, the logistics operation personnel can set the delivery routes between areas for the delivery personnel. In this way, the planned routes are more suitable for the delivery personnel, thereby improving the accuracy of the delivery routes, and then improving the delivery personnel's acceptance of the delivery routes, and ultimately improving the delivery efficiency.
[0084] Figure 2 To realize a schematic diagram of the above distribution area division method, refer to Figure 2 The system architecture diagram shown illustrates the main operation process in the above steps S110 to S140.
[0085] In step S110, a plurality of historical order data and a plurality of historical delivery track data are obtained.
[0086] In the disclosed embodiments, historical order data refers to the order data generated when a user purchases a product, and historical delivery trajectory data refers to the movement trajectory of the deliveryman when the deliveryman delivers the product to the user after the order data is generated. During the delivery process, the deliveryman can record his or her movement trajectory through a PDA (Personal Digital Assistant).
[0087] It is understandable that each historical delivery trajectory data may include the corresponding trajectory generation time, and each historical order data may include the delivery time, which is the time when the delivery is completed. When obtaining multiple historical order data and multiple historical delivery trajectory data, data in the same historical time period can be obtained. For example, historical order data with a delivery time in a certain historical time period can be obtained, and at the same time, historical delivery trajectory data with a trajectory generation time in the same historical time period can be obtained.
[0088] In the disclosed embodiment, each historical delivery trajectory data may include multiple dwelling points. When a moving object stays in a certain spatial range for more than a certain period of time, the spatial range can be called a dwelling point. Usually, the spatial range has certain semantic information, such as waiting for a traffic light, delivering a package, resting at a delivery station, etc.
[0089] It should be noted that, since the historical delivery trajectory data usually contains noise, each historical delivery trajectory data can be subjected to noise filtering to improve the accuracy of the dwelling points in the historical delivery trajectory data. In one implementation of the present disclosure, the delivery speed between all two adjacent dwelling points can be determined based on the time period corresponding to each dwelling point in a single historical delivery trajectory data; for two dwelling points whose corresponding delivery speed is greater than the speed threshold, the latter of the two dwelling points is deleted to update the single historical delivery trajectory data.
[0090] Specifically, in a real environment, the delivery speed of the deliveryman generally does not exceed the speed threshold. On this basis, when the delivery speed of the deliveryman exceeds the speed threshold, it can be considered that the subsequent stay point is noise, not the real location, and may be hundreds of meters away from its real location, and the subsequent stay point is deleted. The speed threshold can be 54 kilometers per hour, etc., which is not limited here.
[0091] See also Figure 3 , Figure 3 A schematic diagram of noise filtering in an embodiment of the present disclosure is shown. The historical delivery trajectory data contains 8 dwelling points. Two dwelling points adjacent in time can be detected in the order of the 8 dwelling points, namely p1 and p2, p2 and p3, ..., p7 and p8. By calculation, it is found that the speed from dwelling point p3 to dwelling point p4, and from dwelling point p6 to dwelling point p7 are both greater than the speed threshold. It can be determined that p4 and p7 are noises. P4 and p7 are deleted to obtain new delivery trajectory data. It can be seen that Figure 3 The dotted line part in the figure is the new delivery track.
[0092] In the embodiment of the present disclosure, the number of dwelling points in the historical delivery trajectory data may be large. After the noise filtering of the historical delivery trajectory data, the continuous multiple dwelling points in the historical delivery trajectory data can also be aggregated, that is, the trajectory composed of the continuous multiple dwelling points is regarded as a dwelling point. In this way, the total number of dwelling points can be reduced and the amount of calculation can be reduced. For details, please refer to Figure 4 , which may include the following steps:
[0093] Step S410: taking the first dwelling point in the single historical delivery trajectory data as an anchor point.
[0094] It should be noted that the dwelling point in a single historical delivery trajectory data in this step may be a dwelling point after noise filtering. According to the order of the dwelling points in the historical delivery trajectory data, each dwelling point may be used as an anchor point to find the last dwelling point whose distance does not exceed the first distance threshold. The first distance threshold may be 20 meters, etc., which is not limited here.
[0095] Step S420: determine the last dwelling point that is after the anchor point and whose distance to the anchor point is within a first distance threshold.
[0096] In the embodiment of the present disclosure, the last dwell point within the first distance threshold is selected. On the one hand, the distance between the last dwell point and the anchor point is within the first distance threshold, which can avoid the distance between the two being too large. On the other hand, among all the dwell points within the first distance threshold, the distance between the last dwell point and the anchor point is the largest, so that the trajectory formed by the anchor point to the last dwell point is as long as possible. In this way, multiple dwell points with close distances can be converged as much as possible, thereby reducing the total number of dwell points.
[0097] Step S430, when the time difference between the time period corresponding to the last dwell point and the time period corresponding to the anchor point is greater than the time difference threshold, the trajectory between the dwell point and the last dwell point is taken as a dwell point, and the dwell point is taken as an anchor point.
[0098] Specifically, when the time difference between the time period corresponding to the last dwelling point and the time period corresponding to the anchor point is greater than the time difference threshold, it means that the delivery person stays for a long time in the trajectory from the anchor point to the last dwelling point, and the trajectory between the dwelling point and the last dwelling point can be regarded as a dwelling point. Of course, when the trajectory is regarded as a dwelling point, the center of gravity position of the trajectory can be determined as the position of the dwelling point.
[0099] When the time difference between the time period corresponding to the last dwell point and the time period corresponding to the anchor point is not greater than the time difference threshold, the track cannot be used as a dwell point, and step S440 can be directly executed. The time difference threshold can be 30 seconds or 60 seconds, etc.
[0100] Step S440, determining whether there is a dwelling point after the anchor point. If there is a dwelling point after the anchor point, executing step S450; if there is no dwelling point after the anchor point, the process ends.
[0101] Step S450, updating the anchor point to the first dwelling point after the anchor point, and returning to step S420.
[0102] See also Figure 5 , Figure 5 A schematic diagram of the dwell point detection in the embodiment of the present disclosure is shown. Assuming that the anchor point is p3, the last distance after it does not exceed the first distance threshold D max The point is p6. If the time difference between p6 and p3 is greater than T min , then the trajectory segments p3 to p6 constitute a dwell point, and the anchor point of the next dwell point detection moves to p8, otherwise, the next anchor point is p5.
[0103] After performing noise filtering and aggregation operations on the residence points in the historical delivery trajectory data, the updated residence points corresponding to each historical delivery trajectory data can be obtained.
[0104] In step S120, the delivery position sequence corresponding to the single historical delivery trajectory data is determined according to the time period corresponding to each residence point in the single historical delivery trajectory data and the delivery time in the multiple historical order data.
[0105] In the disclosed embodiment, after obtaining the updated residence point corresponding to each historical delivery trajectory data, the residence point generated by the successful delivery in the historical delivery trajectory data, i.e., the successful delivery point, can be identified based on the updated residence point and combined with the successful delivery time in the historical order data. The successful delivery points can also be clustered to obtain the successful delivery position. Finally, the successful delivery position sequence corresponding to each historical delivery trajectory data can also be determined. The successful delivery position sequence is a sequence composed of multiple successful delivery positions, which can represent the transfer order relationship between multiple successful delivery positions.
[0106] In one implementation of the present disclosure, the method for determining the sequence of successful delivery positions can be found in Figure 6 , which may include the following steps:
[0107] Step S610, determining the successful delivery point corresponding to the single historical delivery trajectory data according to the time period corresponding to each residence point in the single historical delivery trajectory data and the successful delivery time in the multiple historical order data.
[0108] It should be noted that since the delivery personnel may stay for a variety of reasons, corresponding stay points are generated. For the division of the delivery area, only the stay points generated by successful delivery are meaningful. Therefore, the present disclosure can further combine the successful delivery time in the order data to filter out the successful delivery points from the stay points. Since the successful delivery time is included in the historical order data, if the time period corresponding to a stay point corresponds to the successful delivery time of at least one historical order, then the stay point can be considered as a successful delivery point.
[0109] In one implementation of the present disclosure, for each residence point in a single historical delivery trajectory data, if the successful delivery time of at least one historical order data among multiple historical order data is within the time period corresponding to the residence point, the residence point will be regarded as the successful delivery point; otherwise, it means that the delivery person has not successfully delivered the package at the residence point, and therefore, the residence point will not be regarded as the successful delivery point.
[0110] Of course, the method for determining the delivery point disclosed in the present disclosure is not limited to this. For example, a mapping relationship between the time periods corresponding to each residence point and the delivery times can be established first, and when the time period corresponding to the residence point corresponds to at least one delivery time, the residence point is used as the delivery point; when the time period corresponding to the residence point does not have a corresponding delivery time, the residence point is not used as the delivery point.
[0111] Step S620: clustering all the successful delivery points corresponding to the multiple historical delivery trajectory data to obtain multiple successful delivery locations.
[0112] In practical applications, since there are usually errors in the positioning data of the delivery personnel, the delivery points can be spatially clustered to obtain multiple delivery locations. In addition, when the delivery personnel deliver the package, the location generally rarely changes. Unlike traditional clustering methods (such as density-based clustering, etc.), the present disclosure can hierarchically cluster all the delivery points according to the distances between all the delivery points corresponding to multiple historical delivery trajectory data. For example, the second distance threshold is used as a condition for stopping further merging between clusters.
[0113] Here we take one dimension as an example. Figure 7 As shown, in the initial case, each successful delivery point is a cluster, and then the two closest clusters are merged in sequence to form a new cluster. When there are no two clusters whose distance is less than the second distance threshold, the cluster merging ends. In this state, each cluster corresponds to a successful delivery position, and the corresponding successful delivery position can be the center position of the cluster. The second distance threshold can be 30 meters, etc. Figure 8 , Figure 8 A schematic diagram of the clustering result in the embodiment of the present disclosure is shown, each point in the figure is a successful delivery point, 810, 820 and 830 respectively represent the successful delivery positions after hierarchical clustering. It should be noted that after hierarchical clustering, more successful delivery positions are also included, which are not all shown in the figure.
[0114] Step S630, selecting a delivery location that matches each dwelling point in a single historical delivery trajectory data from a plurality of delivery locations to determine a delivery location sequence corresponding to the single historical delivery trajectory data.
[0115] After all the successful delivery locations are obtained based on multiple historical delivery trajectory data, each historical delivery trajectory data can be converted into a successful delivery location sequence. Specifically, if a single historical delivery trajectory data is represented as: tr = <p1,p2,…,p n >, p i represents the i-th dwelling point, and n represents the total number of dwelling points. <sp1,sp2,…,sp m >Through nearest neighbor matching, obtain the sequence of successful delivery positions <l1,l2,…,l m >, the delivery position sequence represents the transfer order relationship between different delivery positions of the delivery personnel. sp j represents the jth successful delivery point, m represents the total number of successful delivery points, and m is less than or equal to n. j Indicates that sp j The matching delivery position, that is, among all the delivery positions, l j With sp j The distance is the closest.
[0116] It should be noted that, in addition to Figure 6In addition to determining the successful delivery position sequence in the manner shown, the present disclosure may also directly use the successful delivery point sequence corresponding to the historical delivery trajectory data as the successful delivery position sequence corresponding to the historical delivery trajectory data.
[0117] In step S130, all the delivery locations in the delivery location sequence corresponding to the plurality of historical delivery trajectory data are taken as vertices, and the edges between all two adjacent delivery locations are determined to construct a location access network.
[0118] In the embodiment of the present disclosure, after obtaining the delivery position sequence, a location access network G can be constructed according to the delivery position sequence, where G = (L, E). L is all the delivery positions that have appeared in the delivery position sequence, and E is the edge between two adjacent delivery positions. i , l j When it appears continuously in the sequence of successful delivery positions, that is, l i and l j When adjacent, the correct position l i and l j There is an edge e between i,j , for two non-adjacent delivery locations, there is no edge between them. The schematic diagram of the location access network construction can be found in Fig. 9 .
[0119] It should be noted that each edge can correspond to a weight, and the weight of the edge between any two delivery locations in the location access network is positively correlated with the number of passes between the two delivery locations. That is, the higher the number of passes between the two delivery locations, the higher the corresponding edge weight. i,j The weight w(e i,j ) can be used to capture the two delivery positions l i and l j The number of passages between.
[0120] In step S140, the regional division results of all the delivery locations are determined according to the location access network, wherein the routes between multiple delivery locations in the same divided area are not unique.
[0121] After building the location access network, the location access network can be processed based on the community discovery algorithm to determine the regional division results of all delivery locations. In order to discover the delivery area so that orders in the delivery area are often and continuously delivered, the community discovery algorithm Infomap based on flow and information theory can be used.
[0122] The core idea of Infomap is to minimize the average description length of random walks in the network. It uses Huffman coding to describe any vertex in the network. Each vertex has a module code, and vertices in the same community (group) share a group code. When the random walk enters the next group, a new group code needs to be inserted. The average code length of a random walk includes the group code length and the module code length. A good group division can achieve a shorter code length.
[0123] Assuming that there is a group partition M that divides the set of successful delivery positions L into m groups, the average coding length describing the random walk can be quantified by the following formula:
[0124]
[0125] Where H(Q) is the average byte length required to encode the group name, H(P i ) is the average byte length required to encode all nodes in group i, is the probability of switching groups in a random walk, It is the sum of the probabilities of wandering in a group and exiting the current group.
[0126] The specific process of the Infomap algorithm can be:
[0127] First, each vertex is considered as an independent group. Second, a sequence is randomly sampled from the vertices in the network, and each vertex is assigned to the group of its neighbor vertices in order. The group with the maximum decrease in L(M) is assigned to the vertex. If there is no decrease, the group of the vertex remains unchanged. Repeat this step until L(M) can no longer be optimized. When the algorithm stops iterating, the area formed by the vertices belonging to the same group is a distribution area. See Fig.10 , Fig.10 A schematic diagram showing the distribution area division result in the embodiment of the present disclosure is shown. It can be seen that the delivery point is finally divided into multiple areas of different sizes.
[0128] It should be noted that, in addition to the above method, the present disclosure can also determine the region division result through other graph algorithms. For example, the region division result can be determined through a path search algorithm, a centrality calculation algorithm, etc., which is not limited here.
[0129] In one implementation of the present disclosure, after determining the regional division results of all successful delivery locations, the delivery routes between multiple regions corresponding to the current delivery point can also be determined based on the regional division results. That is, each region is taken as a whole to determine the optimal route between the regions for the delivery personnel. In this way, when the delivery route is given, the delivery personnel can choose a free delivery order within the same delivery area, which improves the delivery personnel's acceptance of the delivery route, thereby improving the delivery efficiency.
[0130] The method for dividing the delivery area of the embodiment of the present disclosure performs noise filtering and proper delivery point detection on the historical delivery trajectory of the delivery personnel, and the actual proper delivery point can be determined. The proper delivery points are clustered to obtain proper delivery positions, which can avoid the excessive number of proper delivery points and reduce the complexity of calculation. Further, a proper delivery position sequence that is more suitable for the delivery personnel can be determined. In this way, a location access network is constructed according to the proper delivery position sequence, and the regional division results of all proper delivery positions are determined according to the community discovery algorithm, which can improve the accuracy of regional division. Moreover, within the same area, since the routes between multiple proper delivery positions are not unique, that is, within the same area, there is no need to plan routes for delivery personnel, and delivery personnel can freely choose delivery routes. The logistics operation personnel can set the delivery routes between areas for the delivery personnel, so that the planned routes are more suitable for the delivery personnel, which can improve the accuracy of the delivery route planning, and then improve the delivery personnel's acceptance of the delivery routes planned by the logistics operation personnel, and ultimately improve the delivery efficiency.
[0131] It should be noted that although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0132] Furthermore, in this exemplary embodiment, a distribution area division device 1100 is also provided, referring to Fig.11 As shown, including:
[0133] A historical data acquisition module 1110 is used to acquire a plurality of historical order data and a plurality of historical delivery track data;
[0134] The successful delivery position sequence determination module 1120 is used to determine the successful delivery position sequence corresponding to the single historical delivery trajectory data according to the time period corresponding to each residence point in the single historical delivery trajectory data and the successful delivery time in the multiple historical order data;
[0135] The location access network construction module 1130 is used to take all the delivery locations in the delivery location sequence corresponding to the plurality of historical delivery trajectory data as vertices, and determine the edges between all two adjacent delivery locations to construct a location access network;
[0136] The area division result determination module 1140 is used to determine the area division results of all the successful delivery locations according to the location access network, wherein the routes between multiple successful delivery locations in the same divided area are not unique.
[0137] In an exemplary embodiment of the present disclosure, a successful delivery position sequence determination module includes:
[0138] A successful delivery point determination unit, used to determine the successful delivery point corresponding to the single historical delivery trajectory data according to the time period corresponding to each residence point in the single historical delivery trajectory data and the successful delivery time in the multiple historical order data;
[0139] A delivery point clustering unit is used to cluster all the delivery points corresponding to a plurality of historical delivery trajectory data to obtain a plurality of delivery locations;
[0140] The delivery position sequence determination unit is used to select a delivery position that matches each residence point in a single historical delivery trajectory data from multiple delivery positions to determine the delivery position sequence corresponding to the single historical delivery trajectory data.
[0141] In an exemplary embodiment of the present disclosure, the delivery point determination unit is specifically used to, for each residence point in a single historical delivery trajectory data, if the delivery time of at least one historical order data among multiple historical order data is within the time period corresponding to the residence point, then the residence point is used as the delivery point; otherwise, the residence point is not used as the delivery point.
[0142] In an exemplary embodiment of the present disclosure, the above-mentioned distribution area division device further includes:
[0143] The data preprocessing module is used to determine the delivery speed between all two adjacent residence points based on the time period and location information corresponding to each residence point in a single historical delivery trajectory data; for two residence points whose corresponding delivery speed is greater than the speed threshold, the latter of the two residence points is deleted to update the single historical delivery trajectory data.
[0144] In an exemplary embodiment of the present disclosure, the above-mentioned distribution area division device further includes:
[0145] A dwell point aggregation module is used to take the first dwell point in the single historical delivery trajectory data as an anchor point; determine the last dwell point after the anchor point and whose distance from the anchor point is within a first distance threshold;
[0146] When the time difference between the time period corresponding to the last dwell point and the time period corresponding to the anchor point is greater than the time difference threshold, the trajectory between the dwell point and the last dwell point is taken as a dwell point, and the dwell point is taken as an anchor point;
[0147] When there is a dwelling point after the anchor point, the anchor point is updated to the first dwelling point after the anchor point, and the process returns to the step of determining the last dwelling point after the anchor point and whose distance from the anchor point is within the first distance threshold; when there is no dwelling point after the anchor point, the process ends.
[0148] In an exemplary embodiment of the present disclosure, the delivery point clustering unit is specifically used to hierarchically cluster all the delivery points according to the distances between all the delivery points corresponding to a plurality of historical delivery trajectory data.
[0149] In an exemplary embodiment of the present disclosure, the region division result determination module is specifically used to process the location access network based on the community discovery algorithm to determine the region division results of all successful delivery locations.
[0150] In an exemplary embodiment of the present disclosure, the above-mentioned distribution area division device further includes:
[0151] The delivery sequence determination module is used to determine the delivery routes between multiple areas corresponding to the current delivery point based on the area division results.
[0152] In an exemplary embodiment of the present disclosure, the weight of the edge between any two delivery locations in the location access network is positively correlated with the number of passes between the any two delivery locations.
[0153] The specific details of each module or unit in the above device have been described in detail in the corresponding method, so they will not be repeated here.
[0154] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0155] In an exemplary embodiment of the present disclosure, an electronic device is also provided, including: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute all or part of the steps of the delivery area division method in this exemplary embodiment.
[0156] Fig.12FIG. 1 shows a schematic diagram of the structure of an electronic device in an embodiment of the present disclosure. It should be noted that: Fig.12 The electronic device 1200 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0157] like Fig.12 As shown, the electronic device 1200 includes a central processor 1201, which can perform various appropriate actions and processes according to the program stored in the read-only memory 1202 or the program loaded from the storage part 1208 to the random access memory 1203. In the random access memory 1203, various programs and data required for system operation are also stored. The central processor 1201, the read-only memory 1202 and the random access memory 1203 are connected to each other through a bus 1204. An input / output interface 1205 is also connected to the bus 1204.
[0158] The following components are connected to the input / output interface 1205: an input section 1206 including a keyboard, a mouse, etc.; an output section 1207 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1208 including a hard disk, etc.; and a communication section 1209 including a network interface card such as a local area network (LAN) card, a modem, etc. The communication section 1209 performs communication processing via a network such as the Internet. A drive 1210 is also connected to the input / output interface 1205 as needed. A removable medium 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1210 as needed, so that a computer program read therefrom is installed into the storage section 1208 as needed.
[0159] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 1209, and / or installed from a removable medium 1211. When the computer program is executed by the central processor 1201, various functions defined in the device of the present application are executed.
[0160] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is further provided, on which a computer program is stored. When the computer program is executed by a processor, any one of the above-mentioned methods is implemented.
[0161] It should be noted that the computer-readable storage medium shown in the present disclosure may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, radio frequency, etc., or any suitable combination of the above.
[0162] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0163] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for dividing a distribution area, characterized in that: include: Obtain multiple historical order data and multiple historical delivery track data; According to the time period corresponding to each residence point in the single historical delivery trajectory data and the successful delivery time in the multiple historical order data, determining the successful delivery position sequence corresponding to the single historical delivery trajectory data, including: determining the successful delivery point corresponding to the single historical delivery trajectory data according to the time period corresponding to each residence point in the single historical delivery trajectory data and the successful delivery time in the multiple historical order data; clustering all the successful delivery points corresponding to the multiple historical delivery trajectory data to obtain multiple successful delivery positions; selecting a successful delivery position matching each residence point in the single historical delivery trajectory data from the multiple successful delivery positions to determine the successful delivery position sequence corresponding to the single historical delivery trajectory data; Taking all the delivery locations in the delivery location sequence corresponding to the plurality of historical delivery trajectory data as vertices, and determining all edges between two adjacent delivery locations in the delivery location sequence, so as to construct a location access network; Determining the regional division results of all the delivery locations according to the location access network includes: processing the location access network based on a community discovery algorithm to determine the regional division results of all the delivery locations, wherein the routes between the multiple delivery locations in the same divided area are not unique.
2. The method according to claim 1, characterized in that The determining, according to the time period corresponding to each dwelling point in the single historical delivery trajectory data and the successful delivery time in the plurality of historical order data, the successful delivery point corresponding to the single historical delivery trajectory data comprises: For each residence point in a single historical delivery trajectory data, if the successful delivery time of at least one historical order data among the multiple historical order data is within the time period corresponding to the residence point, then the residence point is taken as the successful delivery point; Otherwise, the retention point will not be regarded as a delivery point.
3. The method according to claim 1, characterized in that Before determining the delivery position sequence corresponding to the single historical delivery trajectory data according to the time period corresponding to each dwelling point in the single historical delivery trajectory data and the delivery time in the plurality of historical order data, the method further includes: Determine the delivery speed between all two adjacent residence points based on the time period and location information corresponding to each residence point in the single historical delivery trajectory data; For two residence points whose corresponding delivery speeds are greater than the speed threshold, the latter of the two residence points is deleted to update the single historical delivery trajectory data.
4. The method according to claim 1, characterized in that: Before determining the delivery position sequence corresponding to the single historical delivery trajectory data according to the time period corresponding to each dwelling point in the single historical delivery trajectory data and the delivery time in the plurality of historical order data, the method further includes: Taking the first dwelling point in the single historical delivery trajectory data as an anchor point; Determine a last dwell point after the anchor point and within a first distance threshold from the anchor point; When the time difference between the time period corresponding to the last dwell point and the time period corresponding to the anchor point is greater than the time difference threshold, the trajectory between the first dwell point and the last dwell point is taken as a dwell point, and the dwell point is taken as the anchor point; When there is a dwelling point after the anchor point, updating the anchor point to the first dwelling point after the anchor point, and returning to the step of determining the last dwelling point after the anchor point and whose distance from the anchor point is within the first distance threshold; When there is no dwell point after the anchor point, the process ends.
5. The method according to claim 1, characterized in that The clustering of all the successful delivery points corresponding to the plurality of historical delivery trajectory data includes: According to the distances between all the successful delivery points corresponding to the multiple historical delivery trajectory data, hierarchical clustering is performed on all the successful delivery points.
6. The method according to claim 1, characterized in that After determining the regional division results of all successful delivery locations, the method further includes: Based on the area division result, the delivery routes between the multiple areas corresponding to the current delivery point are determined.
7. The method according to claim 1, characterized in that The weight of the edge between any two delivery locations in the location access network is positively correlated with the number of passes between the any two delivery locations.
8. A distribution area division device, characterized in that: include: A historical data acquisition module is used to acquire multiple historical order data and multiple historical delivery track data; The module for determining a sequence of successful delivery positions is used to determine a sequence of successful delivery positions corresponding to a single piece of the historical delivery trajectory data according to a time period corresponding to each dwelling point in the single piece of the historical delivery trajectory data and the successful delivery time in the multiple pieces of the historical order data, including: determining a successful delivery point corresponding to a single piece of the historical delivery trajectory data according to a time period corresponding to each dwelling point in the single piece of the historical delivery trajectory data and the successful delivery time in the multiple pieces of the historical order data; clustering all the successful delivery points corresponding to the multiple pieces of the historical delivery trajectory data to obtain a plurality of successful delivery positions; selecting a successful delivery position that matches each dwelling point in the single piece of the historical delivery trajectory data from the multiple successful delivery positions to determine a sequence of successful delivery positions corresponding to a single piece of the historical delivery trajectory data; A location access network construction module is used to take all the delivery locations in the delivery location sequence corresponding to the plurality of historical delivery trajectory data as vertices, and determine the edges between all two adjacent delivery locations to construct a location access network; The regional division result determination module is used to determine the regional division results of all the successful delivery locations based on the location access network, including: processing the location access network based on a community discovery algorithm to determine the regional division results of all the successful delivery locations, wherein the routes between multiple successful delivery locations in the same divided area are not unique.
9. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the method of any one of claims 1 to 7 by executing the executable instructions.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
