Order information processing method, system, device and storage medium
By dividing orders into batches and expressing them as mathematical arrays or matrices, the problem of redundant road section information in the ETA calculation of the online ride-hailing platform is solved, and the calculation efficiency and timeliness are improved.
Patent Information
- Application Number
- CN202010639875.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-06
- Publication Date
- 2024-09-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When calculating ETA, online ride-hailing platforms are affected by redundant road section information, resulting in complex calculations and low efficiency.
By obtaining order and related road segment data in real time, the order is divided into multiple batches, and the order is represented as a mathematical array or matrix to reduce the impact of redundant data and improve calculation efficiency.
It effectively reduces the impact of redundant data in ETA calculation, improves calculation efficiency, and meets the timeliness requirements of ETA prediction.
Smart Images

Figure CN111784475B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and in particular to an order information processing method, system, device and storage medium. Background Art
[0002] When calculating ETA (estimated time of arrival), online ride-hailing platforms involve a large amount of road information associated with the order, and much of this information is redundant and invalid. When calculating ETA using the current encoding method for road information, the calculation is too complicated and inefficient due to the large amount of redundant data. Summary of the invention
[0003] One aspect of the present application provides an order information processing method, the order representation method comprising: acquiring in real time at least two orders and road segment data respectively related to the at least two orders, the road segment data at least including the number of road segments involved in the order at the current moment; based on the number of road segments, dividing the at least two orders into at least two batches according to at least two preset intervals; for each batch, determining each order in the batch as a first mathematical representation based on the preset interval corresponding to the batch; and determining the order as a second mathematical representation based on the first mathematical representation.
[0004] In some embodiments, the order representation method further includes: determining the density of the batch, the density being the percentage of the quantity of orders in the batch to the total quantity of orders obtained; determining whether the density is greater than a first threshold; in response to the density being greater than the first threshold, dividing the preset interval corresponding to the batch into at least two adjustment intervals, and designating the orders whose number of road sections falls within the same adjustment interval as a new batch.
[0005] In some embodiments, the order representation method further includes: determining whether the density is less than a second threshold; in response to the density being less than the second threshold, merging the batch with one or more sequentially adjacent batches; the density of the merged batch is greater than the second threshold and less than the first threshold.
[0006] In some embodiments, the first mathematical representation includes at least a one-dimensional array, and the length of the array is the maximum value of a preset interval corresponding to the batch to which the order belongs.
[0007] In some embodiments, determining the order as an array includes: determining the difference between the number of road segments involved in the order at the current moment and the maximum value of a preset interval corresponding to the batch to which the order is located; using a first numerical value of a first quantity and a second numerical value of a second quantity to form an array to determine the order; the first quantity is equal to the number of road segments, and the second quantity is equal to the difference.
[0008] In some embodiments, the second mathematical expression includes at least a matrix, and representing the order as a second mathematical representation based on the first mathematical representation includes: obtaining a vector representation of a road segment related to the order; and determining a matrix representation of the order based on the array and the vector representation of the road segment.
[0009] In some embodiments, the second mathematical representation of the order can be used for arrival time estimation.
[0010] Another aspect of the present application provides an order information processing system, which includes an acquisition module, a division module and a determination module. The acquisition module is used to acquire at least two orders and road segment data respectively related to the at least two orders in real time; the road segment data at least includes the number of road segments involved in the order at the current moment; the division module is used to divide the at least two orders into at least two batches according to at least two preset intervals based on the number of road segments; the determination module is used to determine each order in each batch as a first mathematical representation based on the preset interval corresponding to the batch; and, based on the first mathematical representation, determine the order as a second mathematical representation.
[0011] In some embodiments, the division module is further used to: determine the density of the batch, where the density is the percentage of the number of orders in the batch to the total number of orders obtained; determine whether the density is greater than a first threshold; in response to the density being greater than the first threshold, divide the preset interval corresponding to the batch into at least two adjustment intervals, and designate the orders whose number of road sections falls within the same adjustment interval as a new batch.
[0012] In some embodiments, the partitioning module is further used to: determine whether the density is less than a second threshold; in response to the density being less than the second threshold, merge the batch with one or more sequentially adjacent batches; the density of the merged batch is greater than the second threshold and less than the first threshold.
[0013] In some embodiments, the first mathematical representation includes at least a one-dimensional array, and the length of the array is the maximum value of a preset interval corresponding to the batch to which the order belongs.
[0014] In some embodiments, the determination module is further used to: determine the difference between the number of road sections involved in the order at the current moment and the maximum value of a preset interval corresponding to the batch to which the order is located; use the first numerical value of the first quantity and the second numerical value of the second quantity to form an array to determine the order; the first quantity is equal to the number of road sections, and the second quantity is equal to the difference.
[0015] In some embodiments, the second mathematical expression includes at least a matrix, and the acquisition module is further used to obtain a vector representation of a road segment related to the order; the determination module is further used to determine the matrix representation of the order based on the array and the vector representation of the road segment.
[0016] Another aspect of the present application provides an order representation device, which includes a processor and a memory; the memory is used to store instructions, and when the instructions are executed by the processor, the device causes the device to implement operations corresponding to the order information processing method described in any embodiment of the present application.
[0017] Another aspect of the present application provides a computer-readable storage medium, which stores computer instructions. When a computer reads the computer instructions in the storage medium, the computer runs the order information processing method described in any embodiment of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The present application will be further described in the form of exemplary embodiments, which will be described in detail by way of the accompanying drawings. These embodiments are not restrictive, and in these embodiments, the same number represents the same structure, wherein:
[0019] Figure 1 is an exemplary flow chart of an order representation method according to some embodiments of the present application;
[0020] Figure 2 is an exemplary flow chart of dividing order batches according to some embodiments of the present application;
[0021] Figure 3 is an exemplary flow chart of an array representation of orders according to some embodiments of the present application;
[0022] Figure 4 is an exemplary flow chart of a matrix representation of an order according to some embodiments of the present application;
[0023] Figure 5 is a block diagram of an exemplary processing device according to some embodiments of the present application. DETAILED DESCRIPTION
[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. Unless it is obvious from the language environment or otherwise explained, the same reference numerals in the figures represent the same structure or operation.
[0025] It should be understood that the "system", "device", "unit" and / or "module" used herein are a method for distinguishing different components, elements, parts, portions or assemblies at different levels. However, if other words can achieve the same purpose, the words can be replaced by other expressions.
[0026] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "comprises" and "includes" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.
[0027] Flowcharts are used in the present application to illustrate the operations performed by the system according to the embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed accurately in order. On the contrary, the various steps may be processed in reverse order or simultaneously. At the same time, other operations may also be added to these processes, or one or more operations may be removed from these processes.
[0028] The system and method of the present application may be applicable to any other on-demand service. For example, the system and method of the present application can be applied to transportation systems in different environments, including one or more combinations of land, sea, aerospace, etc. The vehicles of the transportation system may include one or more combinations of taxis, private cars, rideshares, buses, trains, bullet trains, high-speed railways, subways, ships, airplanes, spacecrafts, hot air balloons, unmanned vehicles, etc. The transportation system may also include any transportation system for management and / or distribution, for example, a system for receiving and / or delivering express delivery. The application of the system and method of the present application may include one or more combinations of web pages, browser plug-ins, clients, customized systems, internal analysis systems, artificial intelligence robots, etc. It should be understood that the application scenarios of the system and method of the present application are only some examples or embodiments of the present application. For ordinary technicians in this field, without paying creative labor, the present application can also be applied to other similar scenarios based on these drawings. For example, other similar on-demand service systems may be taxi call services, driving services, cargo delivery services, car driver services, express car services, ride-sharing services, bus services, short-term driver rental services, shuttle services, etc.
[0029] Figure 1is an exemplary flow chart of an order representation method according to some embodiments of the present application. In some embodiments, process 100 may be performed by processing logic, which may include hardware (e.g., circuits, dedicated logic, programmable logic, microcode, etc.), software (instructions running on a processing device to perform hardware simulation), etc., or any combination thereof. Figure 1 One or more operations in the process 100 for order presentation shown may be performed by Figure 5 For example, the process 100 may be stored in a storage device in the form of instructions and called and / or executed by the processing device 500. Figure 1 As shown, process 100 may include at least one of the following operations:
[0030] Step 110 , obtaining at least two orders and the road section data respectively related to the at least two orders in real time. Step 110 may be executed by the obtaining module 510 .
[0031] In some embodiments, the order may be a service order such as an online car-hailing service order, a housekeeping service order, a courier order, a takeaway order, etc. The acquisition module 510 may acquire the order in real time from at least one user terminal through the network. The user terminal may be a service requester terminal or a service provider terminal, which has the function of issuing / receiving orders. In some embodiments, when acquiring the at least two orders, order information related to the order may be acquired. The order information may include service requester information, the time when the service requester puts forward the service demand, the service location, service provider information, road section data, etc. Taking online car-hailing as an example, the order information may include the passenger's personal information (such as age, gender, certificate number, contact information, etc.), the passenger's credit information, the time when the passenger makes an appointment, the place where the passenger gets on the car, the destination, the driving trajectory, the link data of the road section, the driver's personal information (such as age, gender, certificate number, contact information, etc.), the driver's credit information, the order completion time and other information.
[0032] In some embodiments, when acquiring the at least two orders, only the road section data related to the order may be acquired. The road section refers to a section of a road. There will be intersections between a road and other roads, and the road itself has a starting point and / or an end point. The road section may refer to a section between two adjacent intersections on the road, or a section between a starting point or an end point and an intersection adjacent to it. The length of each road section may be the same or different. In some embodiments, the road section data of the order may include the number of road sections related to the order at the current moment, the length of the road section, the location of the road section (for example, the coordinate value, longitude and latitude value, etc. under a certain set coordinate system), the direction of the road section, the road level to which the road section belongs (for example, highway level one, level two, level three, etc.), the traffic volume of the road section, the passenger volume of the road section, etc. In some embodiments, the road section data may include at least the number of road sections involved in the order at the current moment.
[0033] Step 120 , based on the number of road sections, divide the at least two orders into at least two batches according to at least two preset intervals. Step 120 may be performed by the division module 520 .
[0034] In some embodiments, the preset interval can be a preset numerical range, for example, 0-10. The numerical range can be set based on experience or a mathematical algorithm, which is not specifically limited in this application. Each batch can correspond to a preset interval. When the number of road sections falls into a preset interval, the corresponding orders can be divided into the preset interval. For example, assuming that the preset interval corresponding to the first batch is 0-10, the preset interval corresponding to the second batch is 11-30, and the preset interval corresponding to the third batch is 31-50, the preset interval corresponding to the first batch is greater than 50. If the number of road sections involved in the order at the current moment is 8, the order will be divided into the first batch. In some embodiments, the preset interval can be adjusted. It should be noted that the order division has nothing to do with the order of passing through the road sections, but only with the number of road sections.
[0035] In some embodiments, the at least two batches may be further adjusted. For example, if the number of orders in a batch is large (for example, the orders in the batch account for more than 80% of the total number of orders obtained), the batch may be subdivided. For another example, if the number of orders in a batch is small (for example, the orders in the batch account for less than 20% of the total number of orders obtained) or is zero, it may be merged with an adjacent batch. For detailed descriptions of batch adjustment, please refer to the description of the present invention. Figure 2 Introduction in.
[0036] Step 130 , determining each order in the batch as a first mathematical representation based on a preset interval corresponding to the batch. Step 130 may be performed by the determination module 530 .
[0037] In some embodiments, the first mathematical representation may include an array. The array may be a data structure composed of a collection of elements of the same type, and may include a one-dimensional array, a two-dimensional array (also called a matrix), a three-dimensional array, and other multi-dimensional arrays. The elements may include numbers, letters, identifiers, and the like. In some embodiments, the array is a one-dimensional array. The one-dimensional array may also be a single-dimensional array, which is a linear array in which the access of elements is represented by a single subscript of a row or column index. In some embodiments, the length of the one-dimensional array may be set according to the maximum value of the number of preset intervals. The length may refer to the number of elements contained in the one-dimensional array. For example, assuming that the preset interval corresponding to the batch is 0 to 10, the length of the one-dimensional array may be 10. In some embodiments, the elements of the one-dimensional array may be set to 0 or 1. The elements corresponding to the road sections involved in the order at the current moment in the one-dimensional array may be set to 1, and the remaining missing elements may be supplemented with 0. As an example only, the preset interval corresponding to a batch is 1 to 7, and there is only one order included in the batch, which may be named Order A. There are two road sections involved in Order A at the current moment, namely L1 and L2. Then, in the one-bit array representing the order, there are two elements "1". At the same time, "0" needs to be supplemented with 5 elements "0" to meet the required 7 elements. Finally, the order will be represented as the array [1,1,0,0,0,0,0]. For details about the array representation of the order, please refer to the present invention. Figure 3 Introduction in.
[0038] Step 140 , determining the order as a second mathematical representation based on the first mathematical representation. Step 140 may be performed by the determination module 530 .
[0039] In some embodiments, the second mathematical representation may include a matrix. The matrix can be used for subsequent ETA calculations, travel route recommendations, etc. Typically, the road segment corresponding to an order can be represented by a multidimensional (e.g., two-dimensional, three-dimensional, etc.) vector. In some embodiments, the determination module 530 can replace the elements corresponding to the road segment in the array representing the order with a multidimensional vector representing the road segment to obtain a multidimensional matrix, and use the multidimensional matrix as a representation of the order. For example, an order currently involves three road segments, represented as L1, L2, and L3. The divided batches are batches with a number of road segments ranging from 3 to 5. After the array is completed, it is [L1, L2, L3, 0, 0]. If each road segment is described by a vector, such as a vector with a dimension of 3, the order can be converted into a matrix, for example, a 5*3 or 3*5 matrix. For specific matrix representations of orders, please refer to the present invention. Figure 4 Introduction in.
[0040] In some embodiments, the matrix can be used for matrix calculations of a deep learning framework. In some embodiments, the deep learning framework may include but is not limited to TensorFlow, Keras, PyTorch, MXNet, Caffe, Caffe2, Theano, FastAI, CNTK, Gluon, Torch, Deeplearning4j, Chainer, CNN, RNN, GPU, etc. In some embodiments, the matrix can be used for various linear transformations or nonlinear transformations in the above-mentioned deep learning framework. The linear transformation refers to the mapping of a vector space V to itself and maintains addition operations and quantity multiplication operations, and the nonlinear transformation refers to the conversion in which the ratio of the change in each output value to the change in its corresponding input value is not a constant. In some embodiments, the data of the relevant orders represented by the matrix is input into the deep learning framework, and after a series of operations, the ETA or recommended path of the order can be finally obtained.
[0041] It should be noted that the above description of the process 100 is only for example and illustration, and does not limit the scope of application of the present application. For those skilled in the art, various modifications and changes can be made to the process 100 under the guidance of the present application. However, these modifications and changes are still within the scope of the present application. For example, one or more other optional steps (for example, storage steps, pre-processing steps) can be added elsewhere in the process 100. For example, all steps in the process 100 can be implemented in a computer-readable medium including a set of instructions. Instructions can be transmitted in the form of electronic streams or electrical signals.
[0042] Figure 2is an exemplary flow chart of dividing order batches according to some embodiments of the present application. In some embodiments, process 200 can be performed by processing logic, which can include hardware (e.g., circuits, dedicated logic, programmable logic, microcode, etc.), software (instructions running on a processing device to perform hardware simulation), etc., or any combination thereof. Figure 2 One or more operations in the process 200 for dividing order batches can be performed by Figure 5 The process 200 may be implemented by the processing device 500 (e.g., the partitioning module 520) shown in FIG. For example, the process 200 may be stored in a storage device in the form of instructions and called and / or executed by the processing device 500. Figure 2 As shown, the process 200 may include at least one of the following operations.
[0043] Step 210, determining the density of the batch.
[0044] In some embodiments, the density can be used to indicate the density of orders and / or the number of orders in each batch. In the process of batching orders, the problem of uneven order distribution may occur. For example, some batches have a large number of orders, while some batches have a small number of orders. That is, some batches have a large density, while some batches have a small density. In some instances, the density can be expressed as the percentage of the number of orders in the batch to the total number of orders obtained. For example, the total number of orders obtained is 20, which are divided into two batches. There are 5 orders in the first batch and 15 orders in the second batch. Then, the density of the first batch is 25% (5 / 20) and the density of the second batch is 75% (15 / 20).
[0045] Step 220: Determine whether the density is greater than a first threshold.
[0046] In some embodiments, the first threshold value may be a pre-set fixed value, for example, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, etc., or may be adjusted based on the actual density of each batch, which is not specifically limited in this application. If the density is greater than the first threshold value, the process 200 may proceed to step 230. Otherwise, the process 200 may proceed to step 240.
[0047] Step 230: divide the preset interval corresponding to the batch into at least two adjustment intervals, and designate the orders whose number of road sections falls within the same adjustment interval as a new batch.
[0048] In some embodiments, the adjustment interval may refer to at least two sub-intervals obtained by further dividing the preset interval corresponding to the batch. The division of the adjustment interval may be an average division of the preset interval corresponding to the batch, for example, the batch with a preset interval of 0 to 15 is divided into three sub-intervals of equal length, 0 to 5, 6 to 10, and 11 to 15. The division of the adjustment interval may also be a random processing of the preset interval corresponding to the batch, for example, the batch with a preset interval of 0 to 15 is divided into three sub-intervals of 0 to 3, 4 to 9, and 10 to 15 of unequal length. In some embodiments, the division module 520 may count the distribution of the number of road sections of the batch orders, and divide the adjustment interval based on the distribution. For example, the division module 520 counts that in the preset interval of the number of road sections of 0 to 20, the orders including the number of road sections of 0 to 5 account for 30% of the number of orders in the batch, the orders including the number of road sections of 6 to 10 account for 30% of the number of orders in the batch, and the orders including the number of road sections of 11 to 20 account for 40% of the number of orders in the batch. The preset interval can be divided into three adjustment intervals of 0-5, 6-10, and 11-20.
[0049] Step 240: Determine whether the density is less than a second threshold.
[0050] In some embodiments, the second threshold value may be a preset fixed value, such as 0.01, 0.05, 0.1, 0.15, 0.2, etc., or may be adjusted based on the density of each batch. If the density is less than the second threshold value, process 200 may proceed to step 250. Otherwise, process 200 is executed and the batch division of the order is completed. It should be noted that step 240 may determine the density of the original batch or the density of the new batch obtained through step 230.
[0051] Step 250, merging the batch with one or more batches that are adjacent in sequence.
[0052] In some embodiments, adjacent batches may mean that the preset intervals corresponding to the batches are adjacent. For example, the batch corresponding to the preset interval 0 to 5 is adjacent to the batch corresponding to 6 to 10. The merging may be to form a new merged interval from two adjacent preset intervals. At the same time, the order batches corresponding to the two merged preset intervals are merged into a new batch, which corresponds to the merged interval. The number of orders in the merged interval is the sum of the number of orders in the original two preset intervals. In some embodiments, the merging can be completed in multiple times. For example, first merge two adjacent preset intervals and the corresponding batches. If the number of orders in the merged interval obtained is still less than the second threshold, continue to merge the next preset interval adjacent to the merged interval obtained after the last merge. Until the number of orders in the merged interval is greater than the second threshold.
[0053] It should be noted that the above description of the process 200 is only for example and explanation, and does not limit the scope of application of the present application. For those skilled in the art, various modifications and changes can be made to the process 200 under the guidance of the present application. However, these modifications and changes are still within the scope of the present application. For example, in step 230, it can be determined whether the density of the new batch is less than the second threshold. In response to the density of the new batch being less than the second threshold, jump to step 250 to merge the divided new batch. For another example, in step 250, it can continue to determine whether the density of the merged new batch is greater than the first threshold. In response to the density of the merged new batch being greater than the first threshold, jump to step 230 to divide the merged new batch. For another example, one or more other optional steps (e.g., storage steps, preprocessing steps) can be added elsewhere in the process 200. For another example, all steps in the process 200 can be implemented in a computer-readable medium including a set of instructions. Instructions can be transmitted in the form of electronic streams or electrical signals.
[0054] Figure 3 is an exemplary flow chart of an array representation of orders according to some embodiments of the present application. In some embodiments, process 300 can be performed by processing logic, which can include hardware (e.g., circuits, dedicated logic, programmable logic, microcode, etc.), software (instructions running on a processing device to perform hardware simulation), etc., or any combination thereof. Figure 4 One or more operations in the process 300 shown for an array representation of an order may be performed by Figure 5 The process 300 may be implemented by the processing device 500 (e.g., the determination module 530) shown in FIG. 300. For example, the process 300 may be stored in a storage device in the form of instructions and called and / or executed by the processing device 500. Figure 3 As shown, the process 300 may include at least one of the following operations.
[0055] Step 310, determining the difference between the number of road sections involved in the order at the current moment and the maximum value of the preset interval corresponding to the batch to which the order belongs.
[0056] In some embodiments, the difference may be obtained by subtracting the number of road segments involved in the order from the maximum value of the preset interval corresponding to the batch in which the order is located. For example, the number of road segments involved in a certain order B at the current moment is 8, and the batches in which order B is located are 1 to 10. Then the maximum value 10 of the preset interval of the batch in which order B is located minus the corresponding number of road segments 8, and the value 2 obtained is the difference. For another example, the preset interval of a certain batch is 9 to 15, and there are two orders in the interval, namely order C and order D. The number of road segments involved in order C is 10, and the number of road segments involved in order D is 12. Then the difference of order C is 15-10=5, and the difference of order D is 15-12=3.
[0057] Step 320: Use the first value of the first quantity and the second value of the second quantity to form an array representing the order.
[0058] In some embodiments, the first number may be the number of road sections involved in the order, and the second number may be the difference obtained in step 310. For example, the number of road sections involved in a certain order B at the current moment is 8, and the batches of order B are 1 to 10. The difference is 10-8=2, then the first number is 8, and the second number is 2. The first value may be used to indicate the road sections involved in the order. The second value may be used to indicate the road sections used for completion. In some embodiments, the first value may be set to 1, and the second value may be set to 0. Specifically, the "1" indicates the road sections involved in the order, and the "0" indicates the road sections used for completion but not involved in the order. For example, the number of road sections involved in a certain order B at the current moment is 8, and the corresponding road sections are L1 to L8 (including L1, L2, L3...L8). The batches where order B is located are 1 to 10. After completion, the array of order B is represented as [1,1,1,1,1,1,1,1,0,0], with a total of 10 elements, namely 8 "1"s and 2 "0"s. Among them, 8 "1"s indicate that there are 8 road sections involved in order B, and 2 "0"s are used to complete the road sections not involved in order B. For another example, the preset interval of a batch is 9 to 15, and there are two orders in the interval, namely order C and order D. The number of road sections involved in order C is 10, and the corresponding road sections are L1 to L 10 (including L1, L2, L3...L 10 ), the number of road sections involved in order D is 12, and the corresponding road sections are L1 to L 12 (including L1, L2, L3...L 12 ), after completion, the array representation of order C is [1,1,1,1,1,1,1,1,1,1,0,0,0,0,0], and the array representation of order D is [1,1,1,1,1,1,1,1,1,1,1,1,0,0,0].
[0059] It should be noted that the above description of the process 300 is only for example and illustration, and does not limit the scope of application of the present application. For those skilled in the art, various modifications and changes can be made to the process 300 under the guidance of the present application. However, these modifications and changes are still within the scope of the present application. For example, one or more other optional steps (for example, storage steps, pre-processing steps) can be added elsewhere in the process 300. For example, all steps in the process 300 can be implemented in a computer-readable medium including a set of instructions. Instructions can be transmitted in the form of electronic streams or electrical signals.
[0060] Figure 4 is an exemplary flowchart of a matrix representation of an order according to some embodiments of the present application. In some embodiments, process 400 can be performed by processing logic, which can include hardware (e.g., circuits, dedicated logic, programmable logic, microcode, etc.), software (instructions running on a processing device to perform hardware simulation), etc., or any combination thereof. Figure 4 One or more operations in the process 400 for the matrix representation of the order shown may be performed by Figure 5 The processing device 500 shown is implemented (e.g., determining module 530). For example, the process 400 can be stored in a storage device in the form of instructions and called and / or executed by the processing device 400. Figure 4 As shown, process 400 may include at least one of the following operations.
[0061] Step 410, obtaining a vector representation of the road segment associated with the order.
[0062] In some embodiments, the vector representation can be the location information of a road section on a map represented by an N-dimensional vector. In some embodiments, the content represented by the vector can be road number, maximum speed limit, number of lanes, starting intersection number, end intersection number, whether it is bidirectional, or other information or any other combination. For example, L1 (21, 6, 4, 7, 8, 1) represents a road numbered 21, a speed limit of 6 km / h, a 4-lane section, a starting intersection 7, an end intersection 8, and two-way lanes. In some embodiments, after obtaining the road section data involved in the order at the current moment, the determination module 530 can obtain the vector representation of the road section by reading the information related to the road section pre-stored in the internal memory of the processing device 500 or the external storage device.
[0063] Step 420, determining a matrix representation of the order based on the array and the vector representation of the road segment.
[0064] In some embodiments, the matrix representation can be a set of routes involved in the current order represented by an M×N matrix. M is the length of the array used to represent the order, and N is the dimension of the road segment vector representation. In some embodiments, the matrix of the order can be obtained by multiplying the array of the order and the vector of the road segments contained therein. For example, the road segments involved in an order are L1, L2, and L3, which are divided into batches with a preset interval of 3 to 5. The order is represented by an array [L1, L2, L3, 0, 0]. Each road segment (L1, L2, L3) is represented by a 6-dimensional vector (road number, maximum speed limit, number of lanes, starting intersection number, end intersection number, whether it is bidirectional). The matrix representation of the order is a 5×6 matrix:
[0065]
[0066] In some embodiments, the matrix representation of the order can be used for matrix calculations of a deep learning framework. Deep learning frameworks may include, but are not limited to, TensorFlow, Keras, PyTorch, MXNet, Caffe, Caffe2, Theano, FastAI, CNTK, Gluon, Torch, Deeplearning4j, Chainer, CNN, RNN, GPU, etc. The calculation of the matrix may include linear transformations, for example, linear transformation of the matrix using linear function normalization (Min-Max Scaling) to map the data to the range of [0,1]. The calculation of the matrix may also include nonlinear transformations, for example, dimension reduction operations on the matrix using a sigmoid function. In some embodiments, the matrix representation of the order can be used as input to a deep learning framework, and the output of the deep learning framework may be an estimated time of arrival (ETA).
[0067] It should be noted that the above description of process 400 is only for example and explanation, and does not limit the scope of application of the present application. For those skilled in the art, various modifications and changes can be made to process 400 under the guidance of the present application. However, these modifications and changes are still within the scope of the present application. For example, the matrix representation can also be an N×M matrix, where M is the length of the array used to represent the order, and N is the dimension of the road segment vector representation. For another example, one or more other optional steps (e.g., storage steps, preprocessing steps) can be added elsewhere in process 400. For another example, all steps in process 400 can be implemented in a computer-readable medium including a set of instructions. Instructions can be transmitted in the form of electronic streams or electrical signals.
[0068] Figure 5 is a block diagram of an exemplary processing device according to some embodiments of the present application. Figure 5As shown, the processing device 500 may include an acquisition module 510 , a division module 520 , and a determination module 530 .
[0069] The acquisition module 510 can be used to acquire at least two orders and the road section data respectively related to the at least two orders in real time. In some embodiments, the acquisition module 510 can acquire the order in real time from at least one user terminal through the network. In some embodiments, the road section data of the order may include the number of road sections related to the order at the current moment, the length of the road section, the location of the road section (for example, the coordinate value, longitude and latitude value, etc. under a certain set coordinate system), the direction of the road section, the road level to which the road section belongs (for example, the first, second, third level of the highway, etc.), the traffic volume of the road section, the passenger volume of the road section, etc. In some embodiments, the road section data may at least include the number of road sections involved in the order at the current moment. In some embodiments, the acquisition module 510 is further used to obtain the vector representation of the road section related to the order.
[0070] The division module 520 can be used to divide the at least two orders into at least two batches based on the number of road sections and according to at least two preset intervals. In some embodiments, the preset interval can be a preset numerical range, for example, 0-10. The numerical range can be set based on experience or based on a mathematical algorithm, and this application does not make specific limitations. Each batch can correspond to a preset interval. When the number of road sections falls within a preset interval, the corresponding order can be divided into the preset interval. In some embodiments, the at least two batches can be further adjusted.
[0071] The determination module 530 may be used to represent each order in each batch as a first mathematical representation based on the preset interval corresponding to the batch. In some embodiments, the first mathematical representation may include an array. The array may be a data structure composed of a collection of elements of the same type, and may include a one-dimensional array, a two-dimensional array (also called a matrix), a three-dimensional array, or other multi-dimensional arrays. The elements may include numbers, letters, identifiers, etc. The length of the array is the maximum value of the preset interval corresponding to the batch.
[0072] The determination module 530 can also be used to represent the order as a second mathematical representation based on the array. In some embodiments, the second mathematical representation may include a matrix. The matrix can be used for subsequent ETA calculations, travel route recommendations, etc. In some embodiments, the determination module 530 can replace the elements corresponding to the road sections in the array representing the order with multidimensional vectors representing the road sections to obtain a multidimensional matrix, and use the multidimensional matrix as a representation of the order. In some embodiments, the matrix can be used for matrix calculations in a deep learning framework, and various linear or nonlinear transformations can be performed in the deep learning framework. In some embodiments, the data of the relevant orders represented by the matrix is input into the deep learning framework, and after a series of operations, the ETA or recommended route of the order can be finally obtained.
[0073] It should be understood that Figure 5 The system and its modules shown can be implemented in various ways. For example, in some embodiments, the system and its modules can be implemented by hardware, software or a combination of software and hardware. Among them, the hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or a dedicated design hardware. Those skilled in the art will understand that the above-mentioned method and system can be implemented using computer executable instructions and / or included in a processor control code, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. The system and its modules of the present application can not only be implemented by hardware circuits such as ultra-large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., but can also be implemented by software such as executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software (for example, firmware).
[0074] It should be noted that the above description of the candidate item display and determination system and its modules is only for convenience of description and does not limit the present application to the scope of the embodiments. It is understandable that, after understanding the principle of the system, those skilled in the art may arbitrarily combine the modules or form a subsystem to connect with other modules without deviating from the principle. For example, in some embodiments, Figure 5The acquisition module 510, the division module 520, and the determination module 530 disclosed in the disclosure may be different modules in a system, or one module may realize the functions of two or more modules mentioned above. For example, the acquisition module 510 and the division module 520 may be two modules, or one module may have the functions of both order data acquisition and batch division. For another example, each module may share a storage module, or each module may have its own storage module. Such variations are all within the protection scope of the present application.
[0075] The beneficial effects that may be brought about by the embodiments of the present application include but are not limited to: (1) Based on the number of road sections in historical orders, the orders are divided into multiple batches. By comparing the number of road sections in real-time orders, similar numbers of road sections are divided into the same batch, which can effectively reduce a large amount of irrelevant data information in the ETA calculation process, thereby improving the calculation efficiency of ETA; (2) For each order in each batch, the order is represented as an array, and the order is represented as a matrix based on the array, which can make high-dimensional sparse data present a distribution state that is easier to calculate and can meet the timeliness requirements of ETA prediction. It should be noted that different embodiments may produce different beneficial effects. In different embodiments, the beneficial effects that may be produced may be any one or a combination of the above, or any other possible beneficial effects.
[0076] The basic concepts have been described above. Obviously, for those skilled in the art, the above detailed disclosure is only for example and does not constitute a limitation of the present application. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements and amendments to the present application. Such modifications, improvements and amendments are suggested in the present application, so such modifications, improvements and amendments still belong to the spirit and scope of the exemplary embodiments of the present application.
[0077] At the same time, the present application uses specific words to describe the embodiments of the present application. For example, "one embodiment", "an embodiment", and / or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of the present application. Therefore, it should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" mentioned twice or more in different positions in this specification does not necessarily refer to the same embodiment. In addition, some features, structures or characteristics in one or more embodiments of the present application can be appropriately combined.
[0078] In addition, it will be appreciated by those skilled in the art that various aspects of the present application may be illustrated and described by a number of patentable categories or situations, including any new and useful process, machine, product or combination of substances, or any new and useful improvements thereto. Accordingly, various aspects of the present application may be performed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The above hardware or software may all be referred to as "data blocks", "modules", "engines", "units", "components" or "systems". In addition, various aspects of the present application may be represented as a computer product located in one or more computer-readable media, which includes computer-readable program code.
[0079] A computer storage medium may include a propagated data signal containing computer program code, for example, in baseband or as part of a carrier wave. The propagated signal may be in a variety of forms, including electromagnetic, optical, etc., or a suitable combination. A computer storage medium may be any computer-readable medium other than a computer-readable storage medium, which can be connected to an instruction execution system, device or apparatus to communicate, propagate or transmit the program for use. The program code on the computer storage medium may be transmitted via any suitable medium, including radio, cable, fiber optic cable, RF, or similar media, or any combination of the above media.
[0080] The computer program coding required for the operation of each part of the application can be written in any one or more programming languages, including object-oriented programming languages such as Java, Scala, Smalltalk, Eiffel, JADE, Emerald, C++, C#, VB.NET, Python, etc., conventional procedural programming languages such as C language, VisualBasic, Fortran2003, Perl, COBOL2002, PHP, ABAP, dynamic programming languages such as Python, Ruby and Groovy, or other programming languages, etc. The program coding can be run completely on the user's computer, or run on the user's computer as an independent software package, or run partly on the user's computer and partly on the remote computer, or run completely on the remote computer or processing device. In the latter case, the remote computer can be connected to the user's computer through any network form, such as a local area network (LAN) or a wide area network (WAN), or connected to an external computer (e.g., via the Internet), or in a cloud computing environment, or used as a service such as software as a service (SaaS).
[0081] In addition, unless explicitly stated in the claims, the order of the processing elements and sequences described in this application, the use of alphanumeric characters, or the use of other names are not intended to limit the order of the processes and methods of this application. Although the above disclosure discusses some invention embodiments that are currently considered useful through various examples, it should be understood that such details are only for illustrative purposes, and the attached claims are not limited to the disclosed embodiments. On the contrary, the claims are intended to cover all modifications and equivalent combinations that are consistent with the essence and scope of the embodiments of this application. For example, although the system components described above can be implemented by hardware devices, they can also be implemented only by software solutions, such as installing the described system on an existing processing device or mobile device.
[0082] Similarly, it should be noted that in order to simplify the description of the disclosure of this application and thus help understand one or more embodiments of the invention, in the above description of the embodiments of this application, multiple features are sometimes combined into one embodiment, figure or description thereof. However, this disclosure method does not mean that the features required by the object of this application are more than the features mentioned in the claims. In fact, the features of the embodiments are less than all the features of the single embodiment disclosed above.
[0083] In some embodiments, numbers describing the number of components and attributes are used. It should be understood that such numbers used in the description of the embodiments are modified by the modifiers "about", "approximately" or "substantially" in some examples. Unless otherwise specified, "about", "approximately" or "substantially" indicate that the numbers are allowed to vary by ±20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximate values, which may change according to the required features of individual embodiments. In some embodiments, the numerical parameters should take into account the specified significant digits and adopt the general method of retaining digits. Although the numerical domains and parameters used to confirm the breadth of their range in some embodiments of the present application are approximate values, in specific embodiments, the setting of such numerical values is as accurate as possible within the feasible range.
[0084] Each patent, patent application, patent application disclosure, and other materials, such as articles, books, instructions, publications, documents, etc., cited in this application are hereby incorporated by reference in their entirety. Except for application history documents that are inconsistent with or conflicting with the content of this application, documents that limit the broadest scope of the claims of this application (currently or later attached to this application) are also excluded. It should be noted that if the descriptions, definitions, and / or use of terms in the attached materials of this application are inconsistent or conflicting with the content described in this application, the descriptions, definitions, and / or use of terms in this application shall prevail.
[0085] Finally, it should be understood that the embodiments described in this application are only used to illustrate the principles of the embodiments of the present application. Other variations may also fall within the scope of the present application. Therefore, as an example and not a limitation, the alternative configurations of the embodiments of the present application may be considered to be consistent with the teachings of the present application. Accordingly, the embodiments of the present application are not limited to the embodiments explicitly introduced and described in the present application.
Claims
1. A method for processing order information, characterized in that: The method comprises: Acquire at least two orders and road segment data respectively related to the at least two orders in real time; the road segment data at least includes the number of road segments involved in the order at the current moment; Based on the number of road sections, dividing the at least two orders into at least two batches according to at least two preset intervals; For each batch, determining each order in the batch as a first mathematical representation based on a preset interval corresponding to the batch; The order is determined as a second mathematical representation based on the first mathematical representation, the first mathematical representation comprising an array and the second mathematical representation comprising a matrix.
2. The method according to claim 1, characterized in that The method further comprises: Determine the density of the batch, where the density is the percentage of the quantity of orders in the batch to the total quantity of orders obtained; determining whether the density is greater than a first threshold; In response to the density being greater than the first threshold, the preset interval corresponding to the batch is divided into at least two adjustment intervals, and the orders whose number of road sections falls within the same adjustment interval are designated as a new batch.
3. The method according to claim 2, characterized in that The method further comprises: determining whether the density is less than a second threshold; In response to the density being less than the second threshold, the batch is merged with one or more batches that are sequentially adjacent; the density of the merged batch is greater than the second threshold and less than the first threshold.
4. The method according to claim 1, characterized in that: The first mathematical representation includes at least a one-dimensional array, and the length of the array is the maximum value of a preset interval corresponding to the batch to which the order belongs.
5. The method according to claim 4, characterized in that The order is determined as an array, including: Determine the difference between the number of road sections involved in the order at the current moment and the maximum value of the preset interval corresponding to the batch to which the order belongs; An array for determining the order is formed using a first numerical value of a first quantity and a second numerical value of a second quantity; the first quantity is equal to the number of road sections, and the second quantity is equal to the difference.
6. The method according to claim 5, characterized in that The step of determining the order as a second mathematical representation based on the first mathematical representation comprises: Obtaining a vector representation of a road segment associated with the order; A matrix representation of the order is determined based on the array and the vector representation of the road segment.
7. The method according to claim 1, characterized in that The second mathematical representation of the order can be used for arrival time estimation.
8. An order information processing system, characterized in that: The system includes an acquisition module, a division module and a determination module. The acquisition module is used to acquire at least two orders and the road segment data respectively related to the at least two orders in real time; the road segment data at least includes the number of road segments involved in the order at the current moment; The division module is used to divide the at least two orders into at least two batches according to at least two preset intervals based on the number of road sections; The determining module is used to determine each order in each batch as a first mathematical representation based on a preset interval corresponding to the batch; and for determining the order as a second mathematical representation based on the first mathematical representation, the first mathematical representation comprising an array and the second mathematical representation comprising a matrix.
9. An order representation device, comprising a processor and a memory; the memory is used to store instructions, and when the instructions are executed by the processor, the device implements operations corresponding to the order information processing method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The storage medium stores computer instructions. When the computer reads the computer instructions in the storage medium, the computer runs the order information processing method as described in any one of claims 1 to 7.
