Path planning method and device, storage medium and electronic equipment
By determining the target key road section information for adsorption of non-critical road section information in the path planning method, and using the thinning trajectory information and path completion algorithm, the existing technology problems of incomplete path planning and slow online service response are solved, achieving for more efficient and accurate path planning.
Patent Information
- Application Number
- CN202310401612.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-07
- Publication Date
- 2024-10-15
AI Technical Summary
Existing path planning methods are difficult to achieve millisecond-level response in online services, and cannot effectively handle path segment information that does not appear in historical trajectories, resulting in incomplete path planning.
By obtaining the initial section information of the path to be generated, the target key section information for adsorption of non-critical section information is determined, and the target path information is generated based on the target key section information, including target trajectory information and target completion path information, and the thinned trajectory information and path are used Completion algorithm optimizes path planning.
It reduces the resource overhead of path planning, improves processing speed and user experience, solves memory limitations and online service timeliness issues, and achieves more complete and accurate path planning.
Smart Images

Figure CN118776575A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a path planning method and device, a storage medium, and an electronic device. Background Art
[0002] At present, when performing path planning, conventional offline trajectory engines need to load a large amount of data in order to accurately search for complete trajectories and times. They can only perform path planning offline and cannot provide millisecond-level services online. They have no generalization capabilities. When the road section information for the path to be generated does not appear in the historical trajectory, the corresponding path cannot be searched. Although online trajectory query occupies less memory, since the road section information for the path to be generated must be a backbone section, only sparse road information strings can be output, resulting in incomplete path planning.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present application provide a path planning method and device, a storage medium, and an electronic device to at least solve the technical problems of memory limitations of path planning in related technologies and difficulty in meeting the timeliness requirements of online services.
[0005] According to one aspect of an embodiment of the present application, a path planning method is provided, including: obtaining initial road section information of a path to be generated; in a case where the initial road section information includes non-critical road section information, determining target critical road section information to be adsorbed by the non-critical road section information, wherein the road attributes of the non-critical road section information and the road attributes of the target critical road section information satisfy a preset adsorption condition; generating target path information according to the target critical road section information, wherein the target path information includes target trajectory information and target completed path information, the target trajectory information includes trajectory information containing the target critical road section information determined from the thinned trajectory information, and the target completed path information represents the path information between the non-critical road section information and the target critical road section information.
[0006] According to another aspect of an embodiment of the present application, a path planning device is also provided, including: an acquisition module, used to acquire initial road section information of a path to be generated; a determination module, used to determine, when the initial road section information includes non-critical road section information, target critical road section information adsorbed by the non-critical road section information, wherein the road attributes of the non-critical road section information and the road attributes of the target critical road section information satisfy a preset adsorption condition; an extraction module, used to generate target path information according to the target critical road section information, wherein the target path information includes target trajectory information and target completed path information, the target trajectory information includes trajectory information containing the target critical road section information determined from the thinned trajectory information, and the target completed path information represents the path information between the non-critical road section information and the target critical road section information.
[0007] Optionally, the device is used to determine the target critical road section information absorbed by the non-critical road section information when the initial road section information includes non-critical road section information in the following manner: obtain the starting point information and the end point information in the initial road section information; when the starting point information is the non-critical road section information and the end point information is the critical road section information, determine the first critical road section information absorbed by the starting point information; when the starting point information is the critical road section information and the end point information is the non-critical road section information, determine the second critical road section information absorbed by the end point information.
[0008] Optionally, the device is also used to: obtain the stop point information in the initial road section information, wherein the stop point information is not the starting point information or the end point information; when the stop point information is the non-critical road section information, determine the third critical road section information absorbed by the stop point information.
[0009] Optionally, the device is used to extract target path information from the thinned trajectory information according to the target key section information in the following manner: when the starting point information is the non-key section information and the end point information is the key section information, first trajectory information is determined from the thinned trajectory information according to the first key section information and the end point information, and first completed path information between the starting point information and the first key section information is completed based on a path completion algorithm to generate the target path information consisting of the first trajectory information and the first completed path information, wherein the first trajectory information is trajectory information passing through the end point information and the first key section information; when the starting point information is the key section information and the end point information is the non-key section information, second trajectory information is determined from the thinned trajectory information according to the starting point information and the second key section information, and second completed path information between the second key section information and the end point information is completed based on the path completion algorithm to generate the target path information consisting of the second trajectory information and the second completed path information, wherein the second trajectory information is trajectory information passing through the starting point information and the second key section information.
[0010] Optionally, the device is used to determine the target critical section information adsorbed by the non-critical section information in the following manner when the initial section information includes non-critical section information: obtain the starting point information and the end point information in the initial section information; when the starting point information and the end point information are both non-critical section information, determine the first critical section information adsorbed by the starting point information and the second critical section information adsorbed by the end point information, wherein the target critical section information includes the first critical section information and the second critical section information; determine the third trajectory information from the thinned trajectory information according to the first critical section information and the second critical section information, and based on the path completion algorithm, complete the first completion path information between the starting point information and the first critical section and the second completion path information between the second critical section information and the end point information to generate the target path information composed of the third trajectory information, the first completion path information and the second completion path information, wherein the third trajectory information is the trajectory information passing through the first critical section information and the second critical section information.
[0011] Optionally, the device is also used for: before extracting the target path information from the thinned trajectory information according to the target key road section information, thinning the historical trajectory information according to the out-degree to obtain initial thinned trajectory information, and recording a road section identifier set, wherein the initial thinned trajectory information is the trajectory information obtained after deleting the road section information corresponding to the first road section in the historical trajectory information, the first road section is a road section with a preceding road section number of 1 and a succeeding road section number of 1, the preceding road section represents a road section adjacent to the first road section and located along the road direction. The section before the first section, the subsequent section represents a section adjacent to the first section and located after the first section along the road direction, the section identifier set includes the identifier of the first section and the key section identifier corresponding to the key section information associated with the first section; the initial thinned trajectory information is thinned according to the number of passes to obtain the thinned trajectory information, wherein the thinned trajectory information is the trajectory information obtained by deleting the section information corresponding to the second section in the initial thinned trajectory information, and the second section is a section whose number of passes meets the preset number condition.
[0012] Optionally, the device is used to determine the target critical section information adsorbed by the non-critical section information when the initial section information includes non-critical section information in the following manner: when the initial section information includes non-critical section information, determine the target section identifier of the non-critical section information; when the target section identifier is the same as the section identifier of the first section, determine the critical section information corresponding to the critical section identifier as the target critical section information.
[0013] Optionally, the device is used to determine the key section information corresponding to the key section identifier as the target key section information in the following manner when the target section identifier is the same as the section identifier of the first section: obtain the starting point information and the end point information in the initial section information; when the non-critical section information is the starting point information, and the section identifier of the starting section is the same as the section identifier of the first section, determine the subsequent key section information in the key section information as the target key section information, wherein the subsequent key section information is the first key section information located after the starting section along the road direction; when the non-critical section information is the end point information, and the section identifier of the end point section is the same as the section identifier of the first section, determine the preceding key section information in the key section information as the target key section information, wherein the preceding key section information is the last key section information located before the end point along the road direction.
[0014] Optionally, the device is used to determine the target critical road section information adsorbed by the non-critical road section information when the initial road section information includes non-critical road section information in the following manner: obtain multiple critical road section information within a preset range of the non-critical road section information; perform feature extraction on the road attributes of each of the multiple critical road section information to obtain multiple feature information; input the multiple feature information into a pre-trained target ranking learning model to obtain the target critical road section information, wherein the target ranking learning model is used to sort the path quality associated with each of the multiple critical road section information, the target critical road section information corresponds to the target feature information, the target feature information is the feature information whose ranking result of the path quality meets the preset ranking condition, the multiple feature information include the target feature information, and the path quality represents the travel quality of the path associated with the critical road section information.
[0015] Optionally, the device is used to input the multiple feature information into a pre-trained target sorting learning model respectively to obtain the target key road section information in the following manner: obtain the starting point information and the end point information in the initial road section information; when the non-critical road section information is the starting point information, obtain multiple starting point key road section information within a preset range of the starting point information; extract features of road attributes of each starting point key road section information in the multiple starting point key road section information respectively to obtain multiple starting point feature information; input the multiple starting point feature information together with the end point information into a pre-trained target sorting learning model respectively to obtain the target key road section information, wherein the target key road section information corresponds to the target starting point feature information, the target starting point feature information is feature information whose sorting result of the starting point path quality satisfies the preset sorting condition, and the starting point path quality represents the passage quality of the trajectory information including the target key road section information and the end point information in the thinned trajectory information.
[0016] Optionally, the device is used to input the multiple feature information into a pre-trained target sorting learning model in the following manner to obtain the target key road section information: obtain the starting point information and the end point information in the initial road section information; when the non-critical road section information is the end point information, obtain multiple end point key road section information within a preset range of the end point information; extract features of road attributes of each end point key road section information in the multiple end point key road section information respectively to obtain multiple end point feature information; input the multiple end point feature information together with the starting point information into a pre-trained target sorting learning model to obtain the target key road section information, wherein the target key road section information corresponds to the target end point feature information, the target end point feature information is feature information whose sorting result of the end point path quality satisfies the preset sorting condition, and the end point path quality represents the travel quality of the trajectory information including the target key road section information and the starting point information in the thinned trajectory information.
[0017] Optionally, the device is also used to: train the initial sorting learning model to be trained in the following manner to obtain the target sorting learning model: obtain sample starting point information and sample end point information, wherein the sample starting point information is pre-labeled non-critical road section information, and the sample end point information is pre-labeled critical road section information; obtain multiple sample critical road section information within a preset range of the sample starting point information and a plurality of predetermined first sorting results corresponding to the multiple sample critical road section information, wherein the first sorting result represents a path quality sorting result corresponding to the sample critical road section information as the starting point and the sample end point information as the end point; respectively sort the multiple sample critical road section information. The road attributes of each sample key road section information in the key road section information are extracted to obtain multiple sample feature information; the multiple sample feature information are respectively input into the initial sorting learning model together with the sample end point information to obtain multiple second sorting results, wherein the second sorting result is a sorting result of the path quality corresponding to the target sample key road section information as the starting point and the sample end point information as the end point after the target sample key road section information and the sample end point information are input into the initial sorting learning model; the parameters of the initial sorting learning model are adjusted according to the loss value between the first sorting result and the second sorting result to determine the target sorting learning model.
[0018] Optionally, the device is used to extract target path information from the thinned trajectory information based on the target key road section information in the following manner: extract first path information and the number of passes corresponding to the first path information from the thinned trajectory information based on the target key road section information, wherein the first path information is path information including the target key road section information; merge the number of passes of the same path information in the first path information to obtain the target path information, wherein the target path information includes the generated path and the corresponding number of passes.
[0019] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned path planning method when running.
[0020] According to another aspect of the embodiment of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above path planning method.
[0021] According to another aspect of the embodiments of the present application, there is further provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the path planning method through the computer program.
[0022] In an embodiment of the present application, initial road section information of a path to be generated is obtained. When the initial road section information includes non-critical road section information, target critical road section information to be absorbed by the non-critical road section information is determined, wherein the road attributes of the non-critical road section information and the road attributes of the target critical road section information satisfy a preset absorption condition, and target path information is generated according to the target critical road section information, wherein the target path information includes target trajectory information and target completed path information, the target trajectory information includes trajectory information containing target critical road section information determined from the thinned trajectory information, and the target completed path information represents the path information between the non-critical road section information and the target critical road section information. By adding an absorption step of non-critical road section information on the basis of the existing path planning method, the non-critical road section information can be absorbed on the target critical road section information, so as to achieve the purpose of extracting the path based on the target critical road section information in the thinned trajectory information, thereby achieving the technical effect of reducing the resource overhead of path planning, accelerating the processing speed of path planning, and optimizing the user experience of path planning, thereby solving the technical problems of memory limitation of path planning and difficulty in meeting the timeliness requirements of online services in related technologies.
[0023] In addition, the stop points can be set as the initial road section information to further speed up the processing speed of path planning. Moreover, the target path information can be obtained by training the sorting learning model. This model can be applied to online services. Only the starting point and the end point need to be entered to automatically complete the above path planning method, thereby improving the efficiency of path planning. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0025] Figure 1 is a schematic diagram of an application environment of an optional path planning method according to an embodiment of the present application;
[0026] Figure 2 is a flowchart of an optional path planning method according to an embodiment of the present application;
[0027] Figure 3 is a schematic diagram of an optional path planning method according to an embodiment of the present application;
[0028] Figure 4 is a schematic diagram of another optional path planning method according to an embodiment of the present application;
[0029] Figure 5 is a schematic diagram of another optional path planning method according to an embodiment of the present application;
[0030] Figure 6 is a schematic diagram of another optional path planning method according to an embodiment of the present application;
[0031] Figure 7 is a schematic diagram of another optional path planning method according to an embodiment of the present application;
[0032] Figure 8 is a schematic diagram of another optional path planning method according to an embodiment of the present application;
[0033] Fig. 9 is a schematic diagram of another optional path planning method according to an embodiment of the present application;
[0034] Fig.10 is a schematic diagram of another optional path planning method according to an embodiment of the present application;
[0035] Fig.11 is a schematic diagram of another optional path planning method according to an embodiment of the present application;
[0036] Fig.12 is a schematic diagram of another optional path planning method according to an embodiment of the present application;
[0037] Fig.13 is a schematic diagram of another optional path planning method according to an embodiment of the present application;
[0038] Fig.14 is a schematic diagram of another optional path planning method according to an embodiment of the present application;
[0039] Fig.15 is a schematic diagram of another optional path planning method according to an embodiment of the present application;
[0040] Fig.16 is a schematic diagram of another optional path planning method according to an embodiment of the present application;
[0041] Fig.17 is a schematic diagram of another optional path planning method according to an embodiment of the present application;
[0042] Fig.18 is a schematic diagram of another optional path planning method according to an embodiment of the present application;
[0043] Fig.19 is a schematic structural diagram of an optional path planning device according to an embodiment of the present application;
[0044] Fig. 20 is a schematic diagram of the structure of an optional path planning product according to an embodiment of the present application;
[0045] Fig.21 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0047] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0048] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following interpretation:
[0049] Link: The smallest segmentation unit in a road network. Generally, a road network can be divided into hundreds of millions of links.
[0050] Thinning: Extract some data from the original data, and basically ensure that it can reflect the basic shape characteristics of the original figure or curve.
[0051] Backbone link: the remaining link data after thinning the historical trajectory data.
[0052] o_link: starting point link.
[0053] d_link: Destination link.
[0054] RTree: A tree-like data structure used for spatial data storage, such as creating indexes for multidimensional data such as geographic locations, rectangles, and polygons.
[0055] The present application is described below in conjunction with embodiments:
[0056] According to one aspect of an embodiment of the present application, a path planning method is provided. Optionally, in this embodiment, the path planning method can be applied to Figure 1 In the hardware environment composed of the server 101 and the terminal device 103 shown in FIG. Figure 1As shown, the server 101 is connected to the terminal 103 via a network, and can be used to provide services for the terminal device or the application installed on the terminal device. The application can be a video application, an instant messaging application, a browser application, an educational application, a game application, etc. A database 105 may be set up on the server or independently of the server to provide data storage services for the server 101, for example, a game data storage server. The above-mentioned network may include, but is not limited to, a wired network and a wireless network, wherein the wired network includes, for example, a local area network, a metropolitan area network, and a wide area network; the wireless network includes, for example, Bluetooth, WIFI, and other networks that implement wireless communication; the terminal device 103 may be a terminal configured with an application program, and may include, but is not limited to, at least one of the following: a mobile phone (such as an Android phone, an iOS phone, etc.), a laptop computer, a tablet computer, a PDA, a MID (Mobile Internet Devices), a PAD, a desktop computer, a smart TV, an intelligent voice interaction device, a smart home appliance, a vehicle-mounted terminal, an aircraft, a virtual reality (VR) terminal, an augmented reality (AR) terminal, a mixed reality (MR) terminal, and other computer devices; the above-mentioned server may be a single server, a server cluster consisting of multiple servers, or a cloud server.
[0057] Combination Figure 1 As shown, the above path planning method can be implemented in the terminal device 103 through the following steps:
[0058] S1, obtaining initial road segment information of the path to be generated on the terminal device 103;
[0059] S2, when the initial road section information includes non-critical road section information, determining target critical road section information to be adsorbed by the non-critical road section information on the terminal device 103, wherein the road attributes of the non-critical road section information and the road attributes of the target critical road section information satisfy a preset adsorption condition;
[0060] S3, generating target path information based on the target key section information on the terminal device 103, wherein the target path information includes target trajectory information and target completed path information, the target trajectory information includes trajectory information containing the target key section information determined from the thinned trajectory information, and the target completed path information represents the path information between the non-key section information and the target key section information.
[0061] Optionally, in this embodiment, the above path planning method can also be implemented by a server, for example, Figure 1It is implemented in the server 101 shown; or it is implemented by the terminal device and the server together.
[0062] The above is only an example and is not specifically limited in this embodiment.
[0063] Optionally, as an optional implementation, as Figure 2 As shown, the above path planning method includes:
[0064] S202, obtaining initial road section information of the path to be generated;
[0065] The scheme of the embodiment of the present application involves an intelligent transportation system, such as in driving navigation, logistics transportation, food delivery, online car-hailing and other scenarios. Based on the scheme of the embodiment of the present application, the quality of path planning in each scenario can be improved. For example, in the driving navigation scenario, it is helpful to assist users to choose a suitable travel route faster and better. Among them, the intelligent transportation system (Intelligent Traffic System, ITS), also known as the intelligent transportation system (Intelligent Transportation System), is to effectively and comprehensively apply advanced science and technology (information technology, computer technology, data communication technology, sensor technology, electronic control technology, automatic control theory, operations research, artificial intelligence, etc.) to transportation, service control and vehicle manufacturing, strengthen the connection between vehicles, roads and users, and thus form a comprehensive transportation system that ensures safety, improves efficiency, improves the environment and saves energy.
[0066] The solution of the embodiment of the present application also involves artificial intelligence technology, such as mining historical trajectory information through artificial intelligence technology to realize preprocessing of historical trajectory information. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science. It attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that the machines have the functions of perception, reasoning and decision-making. Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level technology and software-level technology. Basic artificial intelligence technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, large path planning technology, operation / interaction systems, and mechatronics. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, as well as machine learning / deep learning, autonomous driving, and smart transportation.
[0067] Optionally, the data involved in the path planning method provided by this application (such as sparse trajectory information, historical trajectory information, etc.) can be stored in the blockchain. The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchain is essentially a decentralized database. It is a string of data blocks generated by cryptographic methods. Each data block contains a certain amount of processed data to verify the validity of its information (anti-counterfeiting) and generate the next block. The blockchain can include the blockchain underlying platform, the platform product service layer, and the application service layer.
[0068] Optionally, in this embodiment, the above-mentioned initial road section information may include but is not limited to the road section information entered by the user in the application that needs to generate a path. The initial road section information may include but is not limited to the road section information corresponding to the starting point and end point of the path that needs to be generated, and may also include but is not limited to the road section information corresponding to the stop point, etc.
[0069] The starting point is the starting point information of the path to be generated. For example, for a driving scenario, the starting point information can be the location information corresponding to the starting point of the driving trip (such as GPS positioning information); for a takeaway delivery scenario, the starting point information can be the location information of the merchant, or the current location information of the rider. The end point information is the end point information of the path. For example, for a driving scenario, the end point information can be the location information corresponding to the destination of the driving trip; for a takeaway delivery scenario, the end point information can be the location information specified by the ordering user.
[0070] Among them, the road section link is the smallest segmentation unit in the preset road network. Generally speaking, the side network of a country or region can be divided into hundreds of millions of road sections. The road section information may include the road section identification (also known as the road section number, link id), the location information corresponding to the road section, the road section sequence, etc. The road section information corresponding to the starting point information and the end point information can be understood as including the starting point information and the end point information in the same road section information, or the starting point information and the end point information correspond to different road section information respectively; optionally, the head position and the end position of the road section do not necessarily correspond to the starting point information and the end point information. It can be understood that since the amount of historical trajectory information stored is relatively large, the road section information corresponding to the starting point information and the end point information may include multiple pieces.
[0071] Among them, the preset road network can be a topological map constructed based on road map data, in which roads are edges and intersections are nodes; therefore, road sections can be divided based on at least one of roads and intersections, and each road section corresponds to each segmentation unit.
[0072] Optionally, the starting point information and the end point information can be information of different states to adapt to different scenarios, such as static information or dynamic information. For example, in scenarios such as map navigation, food delivery, and logistics, the starting point information and the end point information can be static information; in a wedding car-following scenario, the starting point information can be the real-time positioning information of the first-ranked leading car, and the end point information can be the real-time positioning information of the current driving vehicle; in a location sharing scenario (at least two users enter the same map navigation page, can view the real-time location of other users to adjust the user's own direction of travel, and realize that all users are gathered at a certain location), the starting point information can be the user's own real-time positioning information, and the end point information can be the real-time positioning information of other users who enter the location sharing.
[0073] S204, when the initial road section information includes non-critical road section information, determining target critical road section information to be adsorbed by the non-critical road section information, wherein the road attributes of the non-critical road section information and the road attributes of the target critical road section information satisfy a preset adsorption condition;
[0074] Optionally, in this embodiment, the above-mentioned non-critical road section information refers to the initial road section information that does not exist in the critical road section information included in the predetermined thinned trajectory information or the road attribute record of the initial road section information so that the road section information is not critical road section information, the above-mentioned critical road section information can be understood as backbone link data, and the above-mentioned non-critical road section information can be understood as non-backbone link data.
[0075] In an exemplary embodiment, the above-mentioned initial road section information includes non-critical road section information, which may include but is not limited to at least one corresponding road section information of the starting point, the end point, and the stopover point is non-critical road section information. At this time, the target critical road section information absorbed by the non-critical road section information can be determined.
[0076] Specifically, taking the above-mentioned non-critical road section information as the starting point as an example, a set of critical road section information within a preset distance around the starting point can be obtained, and the above-mentioned critical road section information set can be input into a pre-trained sorting learning model to obtain the traffic quality sorting results of the paths corresponding to each critical road section information in the critical road section information set, and then the optimal N critical road section information are selected as the above-mentioned target critical road section information according to the traffic quality sorting results.
[0077] It should be noted that the above-mentioned road attributes may include but are not limited to road type, road direction, etc., and the road attributes of the above-mentioned non-critical road section information and the road attributes of the target critical road section information satisfying the preset adsorption conditions can be understood as whether the relative position between the road corresponding to the non-critical road section information and the road corresponding to the target critical road section information satisfies the preset adsorption conditions, and the relative position may be but is not limited to being determined by a combination of one or more dimensions such as straight-line distance and azimuth angle.
[0078] In an exemplary embodiment, Figure 3 is a schematic diagram of an optional path planning method according to an embodiment of the present application, such as Figure 3 As shown, it includes critical section information 302, critical section information 304, non-critical section information 306 and a set of road attributes corresponding to the critical section information 302. When the starting point or end point input by the user includes the above-mentioned non-critical section information 306, the above-mentioned non-critical section information 306 is adsorbed to one of the critical section information 302 and the critical section information 304 according to whether the road attributes of the non-critical section information and the road attributes of the target critical section information meet the preset adsorption conditions.
[0079] Specifically, the distance between the critical road section information 302 and the non-critical road section information 306 is 100 meters, and the distance between the critical road section information 304 and the non-critical road section information 306 is 200 meters. The critical road section information 302 is prioritized as the critical road section information that needs to be absorbed by the non-critical road section information 306. It should be noted that in the specific application process, the critical road section information 302 and the non-critical road section information 306 and the critical road section information 304 and the non-critical road section information 306 can be input into the pre-trained sorting learning model respectively to obtain the sorting result between the critical road section information 302 and the critical road section information 304, and the critical road section information with better sorting result is used as the target critical road section information for absorption of the above-mentioned non-critical road section information 306.
[0080] S206, generating target path information according to the target key section information, wherein the target path information includes target trajectory information and target completed path information, the target trajectory information includes trajectory information containing the target key section information determined from the thinned trajectory information, and the target completed path information represents path information between the non-key section information and the target key section information.
[0081] Optionally, in this embodiment, the above-mentioned thinned trajectory information is the key road section information retained after thinning the road section information in the historical trajectory information, wherein the thinning process refers to a data processing process that uses a certain set rule to minimize the number of data points while ensuring that the meaning of data representation remains unchanged. In the embodiment of the present application, since a trajectory may contain multiple road section information that is not very important or has a large repetitiveness, it is possible to obtain thinned trajectory information that only retains the key road section information by thinning several road section information in the historical trajectory information that matches the preset road network, so as to greatly reduce the amount of data required to be stored and reduce the amount of calculation in subsequent steps while ensuring that the difference in meaning represented by the obtained thinned trajectory information and the historical trajectory information is within an acceptable range.
[0082] It should be noted that the historical trajectory information can also be preprocessed. For example, the preprocessing process can be a periodic, one-time or real-time implementation process, wherein periodicity refers to the preprocessing of historical trajectory information at intervals, and the pre-established data used when updating online services; one-time refers to completing the preprocessing of the currently stored historical trajectory information once when the solution goes online, and the pre-established data used when the online service is no longer updated subsequently; real-time refers to the preprocessing of historical trajectory information in real time as new historical trajectory information is continuously acquired over time, and the pre-established data used when the online service is updated in real time. The preprocessing process of the embodiment of the present application can be selected from the periodic, one-time and real-time implementation processes based on actual needs, and the present application does not limit this.
[0083] In an exemplary embodiment, performing thinning processing on the historical trajectory information to obtain the thinned trajectory information includes the following steps:
[0084] S1, obtaining historical trajectory information for a preset time period;
[0085] S2, determining a positioning point in the historical trajectory information based on at least one of time, distance, and trajectory landmarks;
[0086] S3, matching the positioning points in the acquired historical trajectory information with the road section information in the preset road network to obtain matching trajectory information;
[0087] S4, based on a preset thinning strategy, performing thinning processing on the matching trajectory information to obtain thinned trajectory information.
[0088] Specifically, Figure 4 is a schematic diagram of another optional path planning method according to an embodiment of the present application, such as Figure 4As shown, the embodiment of the present application can obtain multiple historical trajectory information of multiple users, and then access the positioning point (such as GPS point) of the historical trajectory information, and match the GPS point on the corresponding trajectory with the preset road network section link for each historical trajectory information to obtain matching trajectory information with a matching relationship between the positioning point and the road section information. Among them, considering the limitation of computer device memory, data processing volume and the suitability of reference data with actual needs, the historical trajectory information that can be obtained can be set based on time. Specifically, the historical trajectory information obtained can be the full amount of historical trajectory information generated after the platform is launched, that is, the preset time can be set from the moment the platform is launched to the current moment of path planning; in addition, considering the update of road map data (such as changes in road imports and exports, the establishment of highways, etc.), in order to effectively improve the accuracy of the planned path, the historical trajectory information of a recent period can be screened for processing, such as setting the preset time period to the most recent year. If the time for path planning is January 1, the historical trajectory information stored in the time period from January 1 to December 31 of the previous year can be obtained.
[0089] Optionally, in this embodiment, the above-mentioned target completion path information may include but is not limited to using Dijkstra, A*, D*, LPA*, D*lite and other algorithms, intelligent labeling and other path completion methods, and completing the path between the adsorption point and the adsorbed point where adsorption occurs as the target completion path, that is, the path information between non-critical road sections and the target critical road sections.
[0090] Optionally, in this embodiment, the above-mentioned generation of target path information based on target key road section information can be understood as searching for target trajectory information including target key road section information from the sparse trajectory information, and completing the path information between non-critical road section information and target key road sections through various path completion methods to obtain target completed path information, and then the target path information is composed of the target trajectory information and the target completed path information.
[0091] Through this embodiment, the initial section information of the path to be generated is obtained. When the initial section information includes non-critical section information, the target critical section information adsorbed by the non-critical section information is determined, wherein the road attributes of the non-critical section information and the road attributes of the target critical section information meet the preset adsorption conditions, and the target path information is generated according to the target critical section information, wherein the target path information includes target trajectory information and target supplementary path information, the target trajectory information includes trajectory information containing the target critical section information determined from the thinned trajectory information, and the target supplementary path information represents the path information between the non-critical section information and the target critical section information. By adding the adsorption step of the non-critical section information on the basis of the existing path planning method, the non-critical section information can be adsorbed on the target critical section information, so as to achieve the purpose of extracting the path based on the target critical section information in the thinned trajectory information, thereby achieving the technical effects of reducing the resource overhead of path planning, accelerating the processing speed of path planning, and optimizing the user experience of path planning, thereby solving the technical problems of memory limitation of path planning and difficulty in meeting the timeliness requirements of online services in related technologies.
[0092] As an optional solution, when the initial road section information includes non-critical road section information, the target critical road section information absorbed by the non-critical road section information is determined, including: obtaining the starting point information and the end point information in the initial road section information; when the starting point information is non-critical road section information and the end point information is critical road section information, determining the first critical road section information absorbed by the starting point information; when the starting point information is critical road section information and the end point information is non-critical road section information, determining the second critical road section information absorbed by the end point information.
[0093] Optionally, in this embodiment, the above-mentioned first key section information may include but is not limited to information on key sections selected for adsorption at a preset distance in a preset direction with the starting point as the center; the above-mentioned second key information may include but is not limited to information on key sections selected for adsorption at a preset distance in a preset direction with the starting point as the center, wherein, when the starting point information is non-key section information and the end point information is key section information, the path information from the starting point to the end point includes the first key section information adsorbed by the starting point information and the section information from the first key section to the end point; similarly, when the starting point information is key section information and the end point information is non-key section information, the path information from the starting point to the end point includes the second key section information adsorbed by the end point information and the section information from the starting point to the second key section.
[0094] In an exemplary embodiment, Figure 5 is a schematic diagram of another optional path planning method according to an embodiment of the present application, such as Figure 5As shown, taking the starting point as non-critical road section information and the end point as critical road section information as an example, the above-mentioned extraction of target path information from the thinned trajectory information based on the target critical road section information can be understood as extracting the trajectory including the target critical road section information and the end point from the thinned trajectory information as the above-mentioned target road section information.
[0095] Through this embodiment, the starting point information and the end point information in the initial road section information are obtained. When the starting point information is non-critical road section information and the end point information is critical road section information, the first critical road section information adsorbed by the starting point information is determined; when the starting point information is critical road section information and the end point information is non-critical road section information, the second critical road section information adsorbed by the end point information is determined. On the basis of the existing path planning method, the adsorption step of non-critical road section information is added, so that when the starting point or the end point is non-critical road section information, it can be adsorbed to the critical road section information, thereby achieving the purpose of generating a path based on the adsorbed critical road section information in the sparse trajectory information, thereby improving the generalization ability of path search and improving path generation efficiency.
[0096] As an optional solution, the above method also includes: obtaining stop point information in the initial road section information, wherein the stop point information is not the starting point information or the end point information; when the stop point information is non-critical road section information, determining the third critical road section information absorbed by the stop point information.
[0097] Optionally, in this embodiment, the stop point may be a stop point preset by the user, and the setting method may be that the user inputs a name to set it, or the user inputs the type of location point to be stopped and automatically fills it in.
[0098] For example, the stop point can be a specific location set by the user, or it can be a location point type input by the user, such as a gas station, a public toilet, etc., and then the above-mentioned stop point is generated by a recommendation algorithm to ultimately determine the above-mentioned third key section information for the selected stop point or multiple unselected stop points, and then, the above-mentioned target path information is jointly generated using the third key section information and the aforementioned target key section information.
[0099] Through this embodiment, the stop point information in the initial section information is obtained, and when the stop point information is non-critical section information, the third critical section information adsorbed by the stop point information is determined. When the user searches for non-critical section information other than the starting point or the end point, the stop point information can be adsorbed to the critical section information, and then a path is generated in the thinned trajectory information based on the adsorbed critical section information. This can solve the path planning problem when the stop point information of the non-critical section information appears in the process from the starting point to the end point, and achieve the technical effect of improving the ability of path planning to cope with emergencies, enhancing the path planning ability, and improving the efficiency of path planning.
[0100] As an optional scheme, target path information is extracted from the thinned trajectory information according to target key section information, including: when the starting point information is non-key section information and the end point information is key section information, the first trajectory information is determined from the thinned trajectory information according to the first key section information and the end point information, and the first completed path information between the starting point information and the first key section information is completed based on a path completion algorithm to generate target path information consisting of the first trajectory information and the first completed path information, wherein the first trajectory information is trajectory information passing through the end point information and the first key section information; when the starting point information is key section information and the end point information is non-key section information, the second trajectory information is determined from the thinned trajectory information according to the starting point information and the second key section information, and the second completed path information between the second key section information and the end point information is completed based on a path completion algorithm to generate target path information consisting of the second trajectory information and the second completed path information, wherein the second trajectory information is trajectory information passing through the starting point information and the second key section information.
[0101] Optionally, in this embodiment, the above-mentioned path completion algorithm may include but is not limited to using Dijkstra, A*, D*, LPA*, D*lite and other algorithms to realize automatic completion of the path.
[0102] Optionally, in this embodiment, the above-mentioned first completion path information and second completion path information may include but are not limited to those generated by path completion algorithms such as Dijkstra, A*, D*, LPA*, D*lite, etc., and the first completion path corresponding to the first completion path information is used to connect the starting point in the non-critical section and the first critical section corresponding to the first critical section information.
[0103] It should be noted that the generation method of the first completed path information and the second completed path information may be the same or different, and the generation method of the completed path information may be flexibly configured according to the type of non-critical road section information. For example, when the starting point is non-critical information, the first completed path information may be generated by the Dijkstra algorithm, and when the end point is non-critical information, the second completed path information may be generated by the LPA* algorithm.
[0104] In an exemplary embodiment, the first trajectory information and the second trajectory information are both trajectory information derived from the thinned trajectory information, that is, the first trajectory information or the second trajectory information composed of the key road section information can be first determined from the thinned trajectory information, and then the path completion algorithm is used to complete the path between the adsorption point and the adsorbed point as the first completed path information or the second completed path information, and then, finally, the target path information is composed of the first trajectory information and the first completed path information or the second trajectory information and the second completed path information.
[0105] For example, Figure 6 is a schematic diagram of another optional path planning method according to an embodiment of the present application, such as Figure 6 As shown, taking the starting point as non-critical section information and the end point as critical section information as an example, the first trajectory information is determined from the thinned trajectory information according to the first critical section information and the end point information, and the first completed path information between the starting point information and the first critical section information is completed based on the path completion algorithm to generate the target path information consisting of the first trajectory information and the first completed path information.
[0106] Through this embodiment, when the starting point information is non-critical section information and the end point information is critical section information, the first trajectory information is determined from the thinned trajectory information according to the first critical section information and the end point information, and the first completed path information between the starting point information and the first critical section information is completed based on the path completion algorithm to generate the target path information composed of the first trajectory information and the first completed path information; when the starting point information is critical section information and the end point information is non-critical section information, the second trajectory information is determined from the thinned trajectory information according to the starting point information and the second critical section information, and the second completed path information between the second critical section information and the end point information is completed based on the path completion algorithm to generate the target path information composed of the second trajectory information and the second completed path information. On the basis of the existing path planning method, the step of absorbing non-critical section information is added, so that when the starting point or the end point is non-critical section information, it can be absorbed to the critical section information, thereby achieving the purpose of generating a path based on the absorbed critical section information in the thinned trajectory information, thereby improving the generalization ability of path search and improving the path generation efficiency.
[0107] As an optional solution, when the initial road section information includes non-critical road section information, the target critical road section information absorbed by the non-critical road section information is determined, including: obtaining the starting point information and the end point information in the initial road section information; when the starting point information and the end point information are both non-critical road section information, determining the first critical road section information absorbed by the starting point information and the second critical road section information absorbed by the end point information, wherein the target critical road section information includes the first critical road section information and the second critical road section information; determining the third trajectory information from the thinned trajectory information according to the first critical road section information and the second critical road section information, and completing the first completed path information between the starting point information and the first critical road section and the second completed path information between the second critical road section information and the end point information based on a path completion algorithm, to generate the target path information composed of the third trajectory information, the first completed path information and the second completed path information, wherein the third trajectory information is the trajectory information passing through the first critical road section information and the second critical road section information.
[0108] Optionally, in this embodiment, the starting point information and the end point information in the above-mentioned initial road section information can be understood as the starting point information and the end point information input by the user in the application program that needs to generate a path.
[0109] It should be noted that the starting point information and the end point information can be non-critical section information or critical section information. If the starting point information and the end point information are both non-critical section information, it is necessary to determine the critical section information adsorbed by the starting point information and the end point information respectively, and the critical section information adsorbed by the starting point information and the end point information respectively can be the same or different. When the information of the critical sections adsorbed by the starting point information and the key information is the same, the above-mentioned first critical section information is the same as the above-mentioned second critical section information.
[0110] Optionally, in this embodiment, the above-mentioned target path information can be understood as including the section information between the starting point information and the third trajectory information (first completed path information), the third trajectory information, and the section information between the third trajectory information and the end point information (second completed path information).
[0111] In another exemplary embodiment, Figure 7 is a schematic diagram of another optional path planning method according to an embodiment of the present application, such as Figure 7 As shown, taking the example that both the starting point and the end point are non-critical road section information, the above-mentioned extraction of target path information from the thinned trajectory information based on the target critical road section information can be understood as extracting a trajectory including two target critical road section information (the target critical road section information corresponding to the starting point and the target critical road section information corresponding to the end point) from the thinned trajectory information as the above-mentioned target road section information.
[0112] Through this embodiment, the starting point information and the end point information in the initial road section information are obtained; when the starting point information and the end point information are both non-critical road section information, the first critical road section information adsorbed by the starting point information and the second critical road section information adsorbed by the end point information are determined, wherein the target critical road section information includes the first critical road section information and the second critical road section information; the third trajectory information is determined from the thinned trajectory information according to the first critical road section information and the second critical road section information, and the first completed path information between the starting point information and the first critical road section and the second completed path information between the second critical road section information and the end point information are completed based on the path completion algorithm to generate the target path information composed of the third trajectory information, the first completed path information and the second completed path information. On the basis of the existing path planning method, the adsorption step of the non-critical road section information is added. When the starting point information and the end point information are both in the non-critical road section information, the starting point information and the end point information can be adsorbed to the critical road section information respectively, thereby achieving the purpose of generating a path based on the adsorbed critical road section information in the thinned trajectory information.
[0113] As an optional solution, before extracting the target path information from the thinned trajectory information according to the target key road section information, the method further includes: performing thinning processing on the historical trajectory information according to the out-degree to obtain initial thinned trajectory information, and recording a road section identifier set, wherein the initial thinned trajectory information is trajectory information obtained after deleting the road section information corresponding to the first road section in the historical trajectory information, the first road section is a road section in which the number of road sections of the preceding road section is 1 and the number of road sections of the succeeding road section is also 1, the preceding road section indicates that it is adjacent to the first road section and is along the road section. The road section is located before the first road section in the road direction, and the subsequent road section refers to the road section adjacent to the first road section and located after the first road section along the road direction. The road section identification set includes the identification of the first road section and the key road section identification corresponding to the key road section information associated with the first road section; the initial thinned trajectory information is thinned according to the number of passes to obtain the thinned trajectory information, wherein the thinned trajectory information is the trajectory information obtained by deleting the road section information corresponding to the second road section in the initial thinned trajectory information, and the second road section is a road section whose number of passes meets the preset number condition.
[0114] Optionally, in this embodiment, the above-mentioned historical trajectory information may include but is not limited to path data historically planned or traveled using an intelligent navigation system, path data historically traveled using intelligent assisted driving, etc. The above-mentioned thinning out of the historical trajectory information according to the out-degree can be understood as extracting some road section information with a degree of 1 from the historical trajectory information. If there is only one adjacent road section before section A and one adjacent road section after section A in the road direction, the section information corresponding to section A will be deleted.
[0115] Optionally, in this embodiment, the above-mentioned initial thinned trajectory information can be understood as the trajectory information obtained by deleting the segment information corresponding to the segments in the historical trajectory information whose segment number of the preceding segment is 1 and whose segment number of the succeeding segment is also 1. The initial thinned trajectory information is basically guaranteed to reflect the basic shape characteristics of the original segment. Thinning is widely used in GIS vector data processing and graphic data compression.
[0116] It should be noted that the above-mentioned preset number conditions may include but are not limited to the historical number of passes being greater than or equal to a preset threshold, the historical number of passes being within a preset number interval, etc. The initial thinned trajectory information is thinned according to the number of passes, and the obtained thinned trajectory information can be understood as follows: when the preset number condition is that the historical number of passes is greater than or equal to the preset threshold, the section information corresponding to the sections whose historical number of passes is less than the preset threshold in the initial thinned trajectory information is deleted, and the obtained thinned trajectory information is a set of section information corresponding to sections whose number of sections of the preceding section is 1, whose number of sections of the subsequent section is also 1, and whose historical number of passes is greater than the preset threshold; when the preset number condition is that the historical number of passes is within the preset number interval, the section information corresponding to the sections whose historical number of passes is not within the preset number interval in the initial thinned trajectory information is deleted, and the obtained thinned trajectory information is a set of section information corresponding to sections whose out-degree is not 1 and whose historical number of passes is within the preset number interval.
[0117] Optionally, in this embodiment, the above-mentioned section identification set can be understood as the section identification corresponding to the section whose out-degree does not meet the preset conditions in the historical trajectory information and the section identification corresponding to the key section in the road direction of the section whose out-degree does not meet the preset conditions that meets the associated conditions, wherein the section identification may include but is not limited to the section name, section category (urban roads, rural roads, test roads, test roads, factory roads), and section length.
[0118] Among them, the association conditions in the above-mentioned "key section information associated with the first road section" may include but are not limited to the key section that is closest to the first road section in the road direction, the key section with the largest number of historical passes in the road direction, and the key section that meets the preset lane number conditions in the road direction.
[0119] In an exemplary embodiment, Figure 8 is a schematic diagram of another optional path planning method according to an embodiment of the present application, such as Figure 8 As shown, taking the section A in the road direction as an example, the number of sections of the preceding section is 1, and the number of sections of the succeeding section is also 1, the above-mentioned historical trajectory information is thinned out according to the out-degree (the section information corresponding to the section A is deleted from the historical trajectory information) to obtain the initial thinned trajectory information.
[0120] Through this embodiment, the historical trajectory information is thinned according to the out-degree to obtain the initial thinned trajectory information, and a road segment identification set is recorded. The initial thinned trajectory information is thinned according to the number of passes to obtain the thinned trajectory information. By thinning the historical trajectory information, the purpose of reducing memory usage and improving memory utilization efficiency is achieved while basically retaining the road trajectory.
[0121] As an optional scheme, when the initial road section information includes non-critical road section information, the target critical road section information to be adsorbed by the non-critical road section information is determined, including: when the initial road section information includes non-critical road section information, the target road section identifier of the non-critical road section information is determined; when the target road section identifier is the same as the road section identifier of the first section, the critical road section information corresponding to the critical road section identifier is determined as the target critical road section information.
[0122] Optionally, in this embodiment, the above-mentioned target section identifier may include but is not limited to the section name, section number and other identification information that can be used to distinguish the section. The above-mentioned target section identifier is the same as the section identifier of the first section, which can be understood as: the non-critical section identifier included in the initial section information is the same as the section identifier of the above-mentioned preceding section, where the section number is 1, and the section number of the subsequent section is also 1.
[0123] It should be noted that the above-mentioned determination of the critical section information corresponding to the critical section identifier as the target critical section information can be understood as: when the non-critical section information included in the initial section information is the section information corresponding to the section whose section number of the preceding section is 1 and whose section number of the subsequent section is also 1 (i.e. the section information corresponding to the first section), then the critical section information associated with the first section is determined as the target critical section information.
[0124] As an optional solution, when the target section identifier is the same as the section identifier of the first section, the key section information corresponding to the key section identifier is determined as the target key section information, including: obtaining the starting point information and the end point information in the initial section information; when the non-critical section information is the starting point information, and the section identifier of the starting section is the same as the section identifier of the first section, determining the subsequent key section information in the key section information as the target key section information, wherein the subsequent key section information is the first key section information located after the starting section along the road direction; when the non-critical section information is the end point information, and the section identifier of the end point section is the same as the section identifier of the first section, determining the preceding key section information in the key section information as the target key section information, wherein the preceding key section information is the last key section information located before the end point along the road direction.
[0125] Optionally, in the present embodiment, in the case where the non-critical road section information is the starting point information, and the road section identifier of the starting point road section is the same as the road section identifier of the first road section, determining the subsequent critical road section information in the critical road section information as the target critical road section information can be understood as, when the starting point road section is a road section in which the number of sections of the preceding road section is 1, and the number of sections of the subsequent road section is also 1, then the first critical road section information located after the starting point road section along the road direction is determined as the target critical road section information.
[0126] Optionally, in the present embodiment, when the non-critical road section information is the end point information and the road section identifier of the end point road section is the same as the road section identifier of the first road section, determining the preceding critical road section information in the critical road section information as the target critical road section information can be understood as, when the end point road section is a road section in which the number of road sections of the preceding road section is 1 and the number of road sections of the subsequent road section is also 1, then the last critical road section information located before the end point road section along the road direction is determined as the target critical road section information.
[0127] Through this embodiment, the starting point information and the end point information in the initial road section information are obtained, and then when the non-critical road section information is the starting point information and the road section identifier of the starting road section is the same as the road section identifier of the first road section, the subsequent critical road section information in the critical road section information is determined as the target critical road section information; when the non-critical road section information is the end point information and the road section identifier of the end point road section is the same as the road section identifier of the first road section, the preceding critical road section information in the critical road section information is determined as the target critical road section information. By adding the step of absorbing the non-critical road section information on the basis of the existing path planning method, When the starting section is a section whose number of sections is 1 and whose number of sections is 1, the first key section information after the starting section along the road direction can be determined as the target key section information; when the terminal section is a section whose number of sections is 1 and whose number of sections is 1, the last key section information before the terminal section along the road direction can be determined as the target key section information, thereby achieving the purpose of being able to quickly perform path planning when the first section is deleted after the thinning process is performed according to the out-degree, thereby achieving the technical effect of basically reducing memory usage and improving memory utilization efficiency.
[0128] As an optional solution, when the initial road section information includes non-critical road section information, the target critical road section information absorbed by the non-critical road section information is determined, including: obtaining multiple critical road section information within a preset range of the non-critical road section information; performing feature extraction on the road attributes of each of the multiple critical road section information to obtain multiple feature information; inputting the multiple feature information into a pre-trained target sorting learning model to obtain target critical road section information, wherein the target sorting learning model is used to sort the path quality associated with each of the multiple critical road section information, the target key road section information corresponds to the target feature information, the target feature information is feature information whose sorting result of the path quality meets the preset sorting condition, the multiple feature information include the target feature information, and the path quality represents the travel quality of the path associated with the critical road section information.
[0129] Optionally, in this embodiment, the preset range may include but is not limited to an area of 1 kilometer in radius, 500 meters in radius, etc., which are pre-set by relevant technical personnel according to factors such as vehicle performance, road conditions, road type, weather conditions, etc., and can be adjusted according to changes in key factors. The preset range may include but is not limited to an area centered on the location of the target object or a non-critical section of road, with a preset distance as the radius, or an area centered on a non-critical section of road, with a preset distance as the radius, and within a preset angle.
[0130] Optionally, in this embodiment, the road attributes may include but are not limited to the number of road lanes (2 lanes, 3 lanes, etc.), road categories (examination roads, urban roads, rural roads, factory roads, etc.). The above-mentioned multiple feature information may be understood as feature information of multiple key sections within a preset range of non-key section information.
[0131] Optionally, in this embodiment, the above-mentioned target ranking learning model may include but is not limited to being used to sort the path quality associated with each key road section information of the input multiple road section information terminals, wherein the path quality may include but is not limited to the path quality obtained by performing intelligent comprehensive scoring after artificial marking or intelligent statistics of factors such as the historical average travel time, historical travel times, and historical number of traffic accidents associated with the key road section information. The quality of the path associated with the key road section information can be judged by the score of the intelligent comprehensive score.
[0132] Optionally, in this embodiment, the preset sorting condition may include but is not limited to the path quality score associated with the key section information being greater than a preset value or within a preset range. The target feature information may include but is not limited to the feature information corresponding to the key section with the associated path quality score being greater than a preset value or within a preset range.
[0133] Through this embodiment, a method is adopted in which a plurality of key road section information within a preset range of non-key road section information is obtained, and then feature extraction is performed on the road attributes of each of the plurality of key road section information to obtain a plurality of feature information, and then the plurality of feature information are respectively input into a pre-trained target ranking learning model to obtain target key road section information. By sorting the travel quality of paths associated with the plurality of key road section information, feature information that meets the preset sorting conditions is obtained, so as to prepare for subsequent training of the target ranking learning model.
[0134] As an optional solution, multiple feature information are respectively input into a pre-trained target sorting learning model to obtain target key section information, including: obtaining the starting point information and the end point information in the initial section information; when the non-key section information is the starting point information, obtaining multiple starting point key section information within a preset range of the starting point information; performing feature extraction on the road attributes of each of the multiple starting point key section information to obtain multiple starting point feature information; inputting the multiple starting point feature information together with the end point information into a pre-trained target sorting learning model to obtain target key section information, wherein the target key section information corresponds to the target starting point feature information, the target starting point feature information is feature information whose sorting result of the starting point path quality meets the preset sorting conditions, and the starting point path quality represents the travel quality of the trajectory information including the target key section information and the end point information in the thinned trajectory information.
[0135] Optionally, in the present embodiment, in the case where the non-critical road section information is the starting point information, obtaining multiple starting point critical road section information within a preset range of the starting point information can be understood as, if the starting point information is non-critical road section information, then taking the starting point section as the center, obtaining the road section information corresponding to multiple starting point critical road sections that meet the conditions according to the preset range, preset direction, preset angle and other conditions, wherein the starting point critical road section information may include but is not limited to the road section information corresponding to the starting point section of the data critical section associated with the starting point section within the preset range.
[0136] In an exemplary embodiment, Fig. 9 is a schematic diagram of another optional path planning method according to an embodiment of the present application, such as Fig. 9 As shown, taking the non-critical road section information being the starting point information as an example, multiple starting point critical road section information within a preset range of the starting point information is obtained.
[0137] Optionally, in this embodiment, the above starting point characteristic information may include but is not limited to the number of lanes in the starting point key section, the number of historical passes, the road category, the road name, etc.
[0138] As an optional solution, multiple feature information are respectively input into a pre-trained target sorting learning model to obtain target key section information, including: obtaining the starting point information and the end point information in the initial section information; when the non-critical section information is the end point information, obtaining multiple end point key section information within a preset range of the end point information; performing feature extraction on the road attributes of each of the multiple end point key section information to obtain multiple end point feature information; and inputting the multiple end point feature information together with the starting point information into a pre-trained target sorting learning model to obtain target key section information, wherein the target key section information corresponds to the target end point feature information, the target end point feature information is feature information whose sorting result of the end point path quality meets the preset sorting condition, and the end point path quality represents the travel quality of the trajectory information including the target key section information and the starting point information in the thinned trajectory information.
[0139] Optionally, in the present embodiment, when the above-mentioned non-critical road section information is the terminal information, obtaining multiple terminal critical road section information within a preset range of the terminal information can be understood as, if the terminal information is non-critical road section information, then taking the terminal section as the center, obtaining the road section information corresponding to multiple terminal critical road sections that meet the conditions according to the preset range, preset direction, preset angle and other conditions, wherein the terminal critical road section information may include but is not limited to the road section information corresponding to the terminal section of the data critical section associated with the terminal section within the preset range.
[0140] In an exemplary embodiment, Fig.10 is a schematic diagram of another optional path planning method according to an embodiment of the present application, such as Fig.10 As shown, taking the case where the non-critical road section information is the terminal information as an example, multiple terminal critical road section information within a preset range of the terminal information is obtained.
[0141] Optionally, in this embodiment, the above-mentioned terminal characteristic information may include but is not limited to the number of lanes of the terminal key section, the number of historical passes, the road category, the road name, etc.
[0142] As an optional solution, the above method also includes: training the initial sorting learning model to be trained in the following manner to obtain a target sorting learning model: obtaining sample starting point information and sample end point information, wherein the sample starting point information is pre-labeled non-critical road section information, and the sample end point information is pre-labeled critical road section information; obtaining multiple sample critical road section information within a preset range of the sample starting point information and multiple predetermined first sorting results corresponding to the multiple sample critical road section information, wherein the first sorting result represents the path quality sorting result corresponding to the sample critical road section information as the starting point and the sample end point information as the end point; extracting features of the road attributes of each sample critical road section information in the multiple sample critical road section information respectively to obtain multiple sample feature information; inputting the multiple sample feature information and the sample end point information into the initial sorting learning model respectively to obtain multiple second sorting results, wherein the second sorting result is the sorting result of the path quality corresponding to the target sample critical road section information as the starting point and the sample end point information as the end point after the target sample critical road section information and the sample end point information are input into the initial sorting learning model; adjusting the parameters of the initial sorting learning model according to the loss value between the first sorting result and the second sorting result to determine the target sorting learning model.
[0143] Optionally, in this embodiment, the above-mentioned sample starting point information may include but is not limited to multiple pre-labeled non-critical road section information, which may include but is not limited to classifying the roads through k-nearest neighbor, decision tree, naive Bayes, neural network, support vector machine classification algorithm, and then using manual labeling, machine intelligent labeling and other methods to mark whether the road section is a critical section based on historical travel times, detailed road characteristics and other information.
[0144] Optionally, in this embodiment, the sample endpoint information may include but is not limited to a plurality of pre-marked key road section information.
[0145] Optionally, in this embodiment, the above-mentioned first sorting result may include but is not limited to the results obtained by ascending or descending order of the path quality corresponding to the sample key section information as the starting point and the sample end point information as the end point. If the first sorting result is the result obtained by descending order of the path quality corresponding to the sample key section information as the starting point and the sample end point information as the end point, the higher the ranking, the higher the path quality of the section, the higher the passing quality, that is, the higher the possibility of meeting the preset adsorption conditions.
[0146] Optionally, in this embodiment, the above-mentioned second sorting result may include but is not limited to the sample feature information obtained by extracting the road attributes of the sample key section information from a sample key section information and the corresponding sample end point information input into the initial sorting learning model, and the sorting result of the path quality corresponding to the target sample key section information as the starting point and the sample end point information as the end point is obtained.
[0147] It should be noted that inputting the multiple sample feature information together with the sample endpoint information into the initial sorting learning model to obtain multiple second sorting results can be understood as the number of the obtained second sorting results is equal to the number of input sample feature information.
[0148] Optionally, in this embodiment, the parameters of the initial sorting learning model are adjusted according to the loss value between the first sorting result and the second sorting result, and the determination of the target sorting learning model can be understood as, when the difference between the first sorting result and the plurality of second sorting results meets the preset training condition, the initial sorting learning model can be determined as the target sorting learning model. When the difference between the first sorting result and the plurality of second sorting results does not meet the preset training condition, the parameters of the initial sorting learning model are adjusted and the method of this embodiment is repeated again, wherein the preset training condition may include but is not limited to the ratio of the difference between the first sorting result and the second sorting result being less than or equal to the preset value being greater than a preset threshold, which can be understood as, for example, the 10 sample feature information and the sample endpoint information are respectively input into the initial sorting learning model to obtain 10 second sorting results, if the above preset threshold is 80%, the preset value is 5, and if the difference between the 9 second sorting results and the first sorting result is less than or equal to 5, then the initial sorting learning model can be determined as the target sorting learning model at this time.
[0149] Through this embodiment, the initial ranking learning model is trained to obtain the target ranking learning model, so as to prepare for the subsequent selection of the most appropriate key road section information as the adsorption object of the non-key road section information.
[0150] As an optional solution, target path information is extracted from the thinned trajectory information based on target key road section information, including: extracting first path information and the number of passes corresponding to the first path information from the thinned trajectory information based on the target key road section information, wherein the first path information is path information including the target key road section information; merging the number of passes of the same path information in the first path information to obtain the target path information, wherein the target path information includes the generated path and the corresponding number of passes.
[0151] Through this embodiment, the starting point information and the end point information in the initial road section information are obtained. When the starting point information is non-critical road section information and the end point information is critical road section information, the first critical road section information adsorbed by the starting point information is determined; when the starting point information is critical road section information and the end point information is non-critical road section information, the second critical road section information adsorbed by the end point information is determined. On the basis of the existing path planning method, the adsorption step of non-critical road section information is added, so that when the starting point or the end point is non-critical road section information, it can be adsorbed to the critical road section information, thereby achieving the purpose of generating a path based on the adsorbed critical road section information in the sparse trajectory information, thereby improving the generalization ability of path search and improving path generation efficiency.
[0152] The following is a further explanation of this application with reference to specific examples:
[0153] In an exemplary embodiment, the track link string can be thinned, and the inverted index from backbone link_id to track_id and the detailed data from track_id to track thinned link string can be constructed. When given o_link and d_link are backbone links, all routes and times with this as the starting and ending points can be quickly searched. When o_link and d_link are not backbone links, the non-backbone link is bound to the backbone link, thereby realizing path extraction, and then the extracted sparse link string is completed using the path calculation engine to obtain multiple paths and the number of times each path is passed for use by the navigation service.
[0154] For example, Fig.11 is a schematic diagram of another optional path planning method according to an embodiment of the present application, such as Fig.11 As shown, the above-mentioned method of extracting target path information from sparse trajectory data may include but is not limited to: when the starting point is the key section information, the section information corresponding to the starting point is used as O_link, when the starting point is not the key section information, the key section information adsorbed by the starting point is used as O_link, when the end point is the key section information, the section information corresponding to the end point is used as D_link, when the end point is not the key section information, the key section information adsorbed by the end point is used as D_link, and then according to O_link and D_link, the target path information is extracted from the sparse trajectory data, given O_link and D_link, through distributed tasks, the inverted list is read, and then the intersection is taken to obtain the trajectory containing both links, and then the link string is searched through the trajectory, the count is intercepted, to obtain the complete route and the number of times, and output.
[0155] In another exemplary embodiment, Fig.12is a schematic diagram of another optional path planning method according to an embodiment of the present application, such as Fig.12 As shown, the original trajectory link string is thinned out, and then the inverse order of backbone link→trajectory id is constructed. O_link and D_link are input, and the inverse order is checked respectively to obtain the Link id. Then, the trajectory links including the link ids 1 and 2 are searched from the thinned trajectory data, and finally the trajectory string 1 and trajectory string 2 are determined as the above target path information.
[0156] This application achieves the effect of low memory usage and fast search by adding adsorption and path calculation steps. It also solves the problem that the starting and ending points are non-backbone links and the link string that is searched is incomplete. It also has generalization capabilities. When the link is not in the original trajectory but is nearby, it can also be searched out.
[0157] This application can be applied to navigation in scenarios such as mobile maps, vehicle-mounted systems, food delivery, online car-hailing, and logistics systems.
[0158] Fig.13 is a schematic diagram of another optional path planning method according to an embodiment of the present application, such as Fig.13 As shown, the routes frequently taken by the public can be queried in real time as a way of route recall to increase route diversity; it can also be used to optimize the true value samples of the route (more walking times are better than fewer), automatically evaluate the route effect (comparing the number of walking times at different places, when the road conditions are the same, more times are better), etc.
[0159] In an exemplary embodiment, the above adsorption data can be understood as recording the deletion reason and the preceding and following backbone links when thinning the trajectory link string. Fig.14 is a schematic diagram of another optional path planning method according to an embodiment of the present application, such as Fig.14 As shown, including but not limited to:
[0160] (1) Because the out-degree is 1, it is deleted and its previous and subsequent backbone links are recorded, B->(A,C).
[0161] (2) The record is deleted due to low traffic, and B->null, which can be understood as low traffic and can be ignored.
[0162] Fig.15 is a schematic diagram of another optional path planning method according to an embodiment of the present application, such as Fig.15 As shown in Figure 2, the training process of the adsorption model is as follows:
[0163] S1, extract the start and end links from the historical data, and filter the start and end links that are backbones or in the adsorption data (this type of case can be directly searched), so that the input data is obtained.
[0164] S2: For the starting or ending links that are not backbone and not in the adsorption data, RTree is used to quickly recall the backbone links within 1 km around them.
[0165] S3, for the current backbone link, obtain the road attributes and direction, and then extract features based on its original link attributes, direction, relative position, including but not limited to straight-line distance, azimuth angle, etc.
[0166] S4, pick up the peripheral backbone links corresponding to the destination offline to search and calculate the route (many-to-many), and mark the ranking labels of these backbone links according to the quality of these routes.
[0167] S5: Train the backbone link ranking model based on the samples generated in step S3 and step S4, and train the quality assessment model based on the routes searched out by the top1 link.
[0168] Fig.16 is a schematic diagram of another optional path planning method according to an embodiment of the present application, such as Fig.16 As shown, the online module includes: an adsorption module, which is used to perform the following steps:
[0169] S1, input link and whether it is the starting point.
[0170] S2, read Fig.11 The adsorption data generated in step S1 is used to determine whether the current link exists.
[0171] If the current link exists, the deletion reason is obtained: if it is deleted because the out-degree is 1, then continue to read the previous and next backbone link information, such as Fig.17 As shown in the figure, B->(A,C), if the input link B is the starting point, then the post-order backbone link C is returned, otherwise the pre-order link A is returned; if it is deleted due to low traffic, null is directly returned. If the current link does not exist, then the same Fig.11 Step S2: Recall the surrounding backbone links of the input link, and then Fig.11 Step S3, extract features from the recalled link, and finally use the same Fig.11 In step S5, the trained model is scored and the link with the highest score is selected and returned.
[0172] Fig.18 is a schematic diagram of another optional path planning method according to an embodiment of the present application, such as Fig.18 As shown, the overall process includes the following steps:
[0173] S1, input o_link, d_link.
[0174] S2, determine whether it is a backbone link, if so, continue, otherwise call the adsorption module to obtain the bound backbone link.
[0175] S3, using the start and end point backbone links of step S2, searches the entire trajectory, intercepts it with the start and end points, merges the same ones, and counts the number of times.
[0176] S4: Select the top 10 trajectories. If the starting point / end point is adsorbed, add the starting point / end point of the original request. Then use the path calculation engine to fill in other links between the backbone links segment by segment.
[0177] S5, output the route with the complete link string and its number.
[0178] The beneficial effects brought about by the technical solution of this application are: it realizes real-time planning query of routes frequently taken by the public, which can be used as a part of the driving navigation route recall to improve the quality and diversity of the recall; in addition, it can be used to quickly analyze cases and determine whether it is a problem with the original route or a personalized problem based on the number of traffic.
[0179] It should be noted that the above-mentioned adsorption model for selecting the backbone is not limited to the ranking model, but can also be a multi-classification model, a regression model, etc., and the relevant features are not limited to link attributes, direction, distance, azimuth angle, etc.
[0180] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0181] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0182] According to another aspect of the embodiments of the present application, a path planning device for implementing the above path planning method is also provided. Fig.19 As shown, the device comprises:
[0183] The acquisition module 1902 is used to acquire the initial road segment information of the path to be generated;
[0184] A determination module 1904 is used to determine, when the initial road section information includes non-critical road section information, target critical road section information to be adsorbed by the non-critical road section information, wherein the road attribute of the non-critical road section information and the road attribute of the target critical road section information satisfy a preset adsorption condition;
[0185] Extraction module 1906 is used to generate target path information based on the target key section information, wherein the target path information includes target trajectory information and target completed path information, the target trajectory information includes trajectory information containing the target key section information determined from the thinned trajectory information, and the target completed path information represents the path information between the non-critical section information and the target key section information.
[0186] As an optional scheme, the device is used to determine the target critical road section information adsorbed by the non-critical road section information when the initial road section information includes non-critical road section information in the following manner: obtain the starting point information and the end point information in the initial road section information; when the starting point information is the non-critical road section information and the end point information is the critical road section information, determine the first critical road section information adsorbed by the starting point information; when the starting point information is the critical road section information and the end point information is the non-critical road section information, determine the second critical road section information adsorbed by the end point information.
[0187] As an optional solution, the device is also used to: obtain the stop point information in the initial road section information, wherein the stop point information is not the starting point information or the end point information; and when the stop point information is the non-critical road section information, determine the third critical road section information adsorbed by the stop point information.
[0188] As an optional solution, the device is used to extract target path information from the thinned trajectory information according to the target key section information in the following manner: when the starting point information is the non-key section information and the end point information is the key section information, first trajectory information is determined from the thinned trajectory information according to the first key section information and the end point information, and the first completed path information between the starting point information and the first key section information is completed based on a path completion algorithm to generate the target path information composed of the first trajectory information and the first completed path information, wherein the first trajectory information is trajectory information passing through the end point information and the first key section information; when the starting point information is the key section information and the end point information is the non-key section information, second trajectory information is determined from the thinned trajectory information according to the starting point information and the second key section information, and the second completed path information between the second key section information and the end point information is completed based on the path completion algorithm to generate the target path information composed of the second trajectory information and the second completed path information, wherein the second trajectory information is trajectory information passing through the starting point information and the second key section information.
[0189] As an optional scheme, the device is used to determine the target critical section information adsorbed by the non-critical section information in the following manner when the initial section information includes non-critical section information: obtain the starting point information and the end point information in the initial section information; when the starting point information and the end point information are both non-critical section information, determine the first critical section information adsorbed by the starting point information and the second critical section information adsorbed by the end point information, wherein the target critical section information includes the first critical section information and the second critical section information; determine the third trajectory information from the thinned trajectory information according to the first critical section information and the second critical section information, and based on the path completion algorithm, complete the first completion path information between the starting point information and the first critical section and the second completion path information between the second critical section information and the end point information, to generate the target path information composed of the third trajectory information, the first completion path information and the second completion path information, wherein the third trajectory information is the trajectory information passing through the first critical section information and the second critical section information.
[0190] As an optional solution, the device is also used for: before extracting the target path information from the thinned trajectory information according to the target key road section information, the historical trajectory information is thinned according to the out-degree to obtain initial thinned trajectory information, and a road section identifier set is recorded, wherein the initial thinned trajectory information is the trajectory information obtained after deleting the road section information corresponding to the first road section in the historical trajectory information, the first road section is a road section with a preceding road section number of 1 and a succeeding road section number of 1, the preceding road section represents a road section adjacent to the first road section and located along the road direction. The section before the first section, the subsequent section refers to the section adjacent to the first section and located after the first section along the road direction, the section identifier set includes the identifier of the first section and the key section identifier corresponding to the key section information associated with the first section; the initial thinned trajectory information is thinned according to the number of passes to obtain the thinned trajectory information, wherein the thinned trajectory information is the trajectory information obtained after deleting the section information corresponding to the second section in the initial thinned trajectory information, and the second section is a section whose number of passes meets the preset number condition.
[0191] As an optional scheme, the device is used to determine the target critical section information adsorbed by the non-critical section information when the initial section information includes non-critical section information in the following manner: when the initial section information includes non-critical section information, determine the target section identifier of the non-critical section information; when the target section identifier is the same as the section identifier of the first section, determine the critical section information corresponding to the critical section identifier as the target critical section information.
[0192] As an optional solution, the device is used to determine the key section information corresponding to the key section identifier as the target key section information in the following manner when the target section identifier is the same as the section identifier of the first section: obtain the starting point information and the end point information in the initial section information; when the non-critical section information is the starting point information and the section identifier of the starting section is the same as the section identifier of the first section, determine the subsequent key section information in the key section information as the target key section information, wherein the subsequent key section information is the first key section information located after the starting section along the road direction; when the non-critical section information is the end point information and the section identifier of the end point is the same as the section identifier of the first section, determine the preceding key section information in the key section information as the target key section information, wherein the preceding key section information is the last key section information located before the end point along the road direction.
[0193] As an optional solution, the device is used to determine the target critical road section information adsorbed by the non-critical road section information when the initial road section information includes non-critical road section information in the following manner: obtain multiple critical road section information within a preset range of the non-critical road section information; perform feature extraction on the road attributes of each of the multiple critical road section information to obtain multiple feature information; input the multiple feature information into a pre-trained target ranking learning model to obtain the target critical road section information, wherein the target ranking learning model is used to sort the path quality associated with each of the multiple critical road section information, the target critical road section information corresponds to the target feature information, the target feature information is the feature information whose ranking result of the path quality meets the preset ranking condition, the multiple feature information include the target feature information, and the path quality represents the travel quality of the path associated with the critical road section information.
[0194] As an optional solution, the device is used to input the multiple feature information into a pre-trained target sorting learning model to obtain the target key road section information in the following manner: obtain the starting point information and the end point information in the initial road section information; when the non-key road section information is the starting point information, obtain multiple starting point key road section information within a preset range of the starting point information; extract features of road attributes of each starting point key road section information in the multiple starting point key road section information to obtain multiple starting point feature information; input the multiple starting point feature information together with the end point information into a pre-trained target sorting learning model to obtain the target key road section information, wherein the target key road section information corresponds to the target starting point feature information, the target starting point feature information is the feature information whose sorting result of the starting point path quality meets the preset sorting condition, and the starting point path quality represents the travel quality of the trajectory information including the target key road section information and the end point information in the thinned trajectory information.
[0195] As an optional solution, the device is used to input the multiple feature information into a pre-trained target sorting learning model in the following manner to obtain the target key road section information: obtain the starting point information and the end point information in the initial road section information; when the non-critical road section information is the end point information, obtain multiple end point key road section information within a preset range of the end point information; extract features of road attributes of each end point key road section information in the multiple end point key road section information to obtain multiple end point feature information; input the multiple end point feature information together with the starting point information into a pre-trained target sorting learning model to obtain the target key road section information, wherein the target key road section information corresponds to the target end point feature information, the target end point feature information is feature information whose sorting result of the end point path quality meets the preset sorting condition, and the end point path quality represents the travel quality of the trajectory information including the target key road section information and the starting point information in the thinned trajectory information.
[0196] As an optional solution, the device is also used to: train the initial sorting learning model to be trained in the following manner to obtain the target sorting learning model: obtain sample starting point information and sample end point information, wherein the sample starting point information is pre-labeled non-critical road section information, and the sample end point information is pre-labeled critical road section information; obtain multiple sample critical road section information within a preset range of the sample starting point information and a plurality of predetermined first sorting results corresponding to the multiple sample critical road section information, wherein the first sorting result represents a path quality sorting result corresponding to the sample critical road section information as the starting point and the sample end point information as the end point; respectively sort the multiple Feature extraction is performed on the road attributes of each sample key road section information in the sample key road section information to obtain multiple sample feature information; the multiple sample feature information are respectively input into the initial sorting learning model together with the sample end point information to obtain multiple second sorting results, wherein the second sorting result is a sorting result of the path quality corresponding to the target sample key road section information as the starting point and the sample end point information as the end point after the target sample key road section information and the sample end point information are input into the initial sorting learning model; the parameters of the initial sorting learning model are adjusted according to the loss value between the first sorting result and the second sorting result to determine the target sorting learning model.
[0197] As an optional scheme, the device is used to extract target path information from the thinned trajectory information according to the target key road section information in the following manner: extract first path information and the number of passes corresponding to the first path information from the thinned trajectory information according to the target key road section information, wherein the first path information is the path information including the target key road section information; merge the number of passes of the same path information in the first path information to obtain the target path information, wherein the target path information includes the generated path and the corresponding number of passes.
[0198] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program / instruction, the computer program / instruction comprising a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication section 2009, and / or installed from a removable medium 2011. When the computer program is executed by a central processing unit 2001, various functions provided by the embodiments of the present application are executed.
[0199] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0200] Fig. 20 The structure block diagram of a computer system for implementing an electronic device according to an embodiment of the present application is schematically shown.
[0201] It should be noted that Fig. 20 The computer system 2000 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0202] like Fig. 20 As shown, the computer system 2000 includes a central processing unit 2001 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 2002 (ROM) or the program loaded from the storage part 2008 to the random access memory 2003 (RAM). Various programs and data required for system operation are also stored in the random access memory 2003. The central processing unit 2001, the read-only memory 2002 and the random access memory 2003 are connected to each other through a bus 2004. The input / output interface 2005 (Input / Output interface, i.e., I / O interface) is also connected to the bus 2004.
[0203] The following components are connected to the input / output interface 2005: an input section 2006 including a keyboard, a mouse, etc.; an output section 2007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 2008 including a hard disk, etc.; and a communication section 2009 including a network interface card such as a LAN card, a modem, etc. The communication section 2009 performs communication processing via a network such as the Internet. A drive 2010 is also connected to the input / output interface 2005 as needed. A removable medium 2011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 2010 as needed so that a computer program read therefrom is installed into the storage section 2008 as needed.
[0204] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program includes a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 2009, and / or installed from the removable medium 2011. When the computer program is executed by the central processing unit 2001, various functions defined in the system of the present application are executed.
[0205] According to another aspect of the embodiment of the present application, an electronic device for implementing the above-mentioned path planning method is also provided. The electronic device may be Figure 1 The terminal device or server shown in the figure. This embodiment is described by taking the electronic device as a terminal device as an example. Fig.21 As shown, the electronic device includes a memory 2102 and a processor 2104. The memory 2102 stores a computer program. The processor 2104 is configured to execute the steps in any of the above method embodiments through the computer program.
[0206] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.
[0207] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0208] S1, obtaining the initial section information of the path to be generated;
[0209] S2, when the initial road section information includes non-critical road section information, determining target critical road section information to be adsorbed by the non-critical road section information, wherein the road attributes of the non-critical road section information and the road attributes of the target critical road section information satisfy a preset adsorption condition;
[0210] S3, generating target path information according to the target key section information, wherein the target path information includes target trajectory information and target completed path information, the target trajectory information includes trajectory information containing the target key section information determined from the thinned trajectory information, and the target completed path information represents path information between the non-key section information and the target key section information.
[0211] Alternatively, a person skilled in the art may understand that: Fig.21 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID), a PAD, and other terminal devices. Fig.21 The electronic device and the electronic equipment described above are not limited in structure. Fig.21 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.21 Different configurations are shown.
[0212] Among them, the memory 2102 can be used to store software programs and modules, such as the program instructions / modules corresponding to the path planning method and device in the embodiments of the present application. The processor 2104 executes various functional applications and data processing by running the software programs and modules stored in the memory 2102, that is, to implement the above-mentioned path planning method. The memory 2102 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 2102 may further include a memory remotely located relative to the processor 2104, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 2102 can be specifically, but not limited to, used for historical trajectory information, sparse trajectory information, and other information. As an example, such as Fig.21 As shown, the memory 2102 may include but is not limited to the acquisition module 1902, the determination module 1904 and the extraction module 1906 in the path planning device. In addition, it may also include but is not limited to other module units in the path planning device, which will not be repeated in this example.
[0213] Optionally, the transmission device 2106 is used to receive or send data via a network. Specific examples of the network may include wired networks and wireless networks. In one example, the transmission device 2106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 2106 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0214] In addition, the electronic device further includes: a display 2108 for displaying the target path information; and a connection bus 2110 for connecting various module components in the electronic device.
[0215] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. Among them, the nodes may form a peer-to-peer (P2P, Peer To Peer) network, and any form of computing device, such as a server, terminal and other electronic devices, may become a node in the blockchain system by joining the peer-to-peer network.
[0216] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the path planning method provided in various optional implementations of the above-mentioned path planning aspects.
[0217] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0218] S1, obtaining the initial section information of the path to be generated;
[0219] S2, when the initial road section information includes non-critical road section information, determining target critical road section information to be adsorbed by the non-critical road section information, wherein the road attributes of the non-critical road section information and the road attributes of the target critical road section information satisfy a preset adsorption condition;
[0220] S3, generating target path information according to the target key section information, wherein the target path information includes target trajectory information and target completed path information, the target trajectory information includes trajectory information containing the target key section information determined from the thinned trajectory information, and the target completed path information represents path information between the non-key section information and the target key section information.
[0221] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0222] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0223] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
[0224] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0225] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0226] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0227] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0228] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A path planning method, It is characterized in that include: Obtaining the initial road segment information of the path to be generated; In the case where the initial road section information includes non-critical road section information, determining target critical road section information to be adsorbed by the non-critical road section information, wherein the road attribute of the non-critical road section information and the road attribute of the target critical road section information satisfy a preset adsorption condition; Target path information is generated according to the target key road section information, wherein the target path information includes target trajectory information and target completed path information, the target trajectory information includes trajectory information containing the target key road section information determined from the thinned trajectory information, and the target completed path information represents path information between the non-critical road section information and the target key road section information.
2. The method according to claim 1, It is characterized in that When the initial road section information includes non-critical road section information, determining the target critical road section information adsorbed by the non-critical road section information includes: Obtaining the starting point information and the end point information in the initial road section information; When the starting point information is the non-critical section information and the end point information is the critical section information, determining the first critical section information adsorbed by the starting point information; In a case where the starting point information is the critical section information and the end point information is the non-critical section information, second critical section information adsorbed by the end point information is determined.
3. The method according to claim 2, It is characterized in that The method further comprises: Acquire the stop point information in the initial road section information, wherein the stop point information is not the starting point information or the end point information; In a case where the stop point information is the non-critical road section information, third critical road section information adsorbed by the stop point information is determined.
4. The method according to claim 2, It is characterized in that The generating target path information according to the target key road section information includes: In the case where the starting point information is the non-critical section information and the end point information is the critical section information, first trajectory information is determined from the thinned trajectory information according to the first critical section information and the end point information, and first completed path information between the starting point information and the first critical section information is completed based on a path completion algorithm to generate the target path information composed of the first trajectory information and the first completed path information, wherein the first trajectory information is trajectory information passing through the end point information and the first critical section information; In the case where the starting point information is the critical road section information and the end point information is the non-critical road section information, the second trajectory information is determined from the thinned trajectory information according to the starting point information and the second critical road section information, and the second completed path information between the second critical road section information and the end point information is completed based on the path completion algorithm to generate the target path information composed of the second trajectory information and the second completed path information, wherein the second trajectory information is trajectory information passing through the starting point information and the second critical road section information.
5. The method according to claim 1, It is characterized in that When the initial road section information includes non-critical road section information, determining the target critical road section information adsorbed by the non-critical road section information includes: Obtaining the starting point information and the end point information in the initial road section information; In the case where both the starting point information and the end point information are the non-critical section information, determining the first critical section information adsorbed by the starting point information and the second critical section information adsorbed by the end point information, wherein the target critical section information includes the first critical section information and the second critical section information; The third trajectory information is determined from the thinned trajectory information according to the first key road section information and the second key road section information, and the first completed path information between the starting point information and the first key road section and the second completed path information between the second key road section information and the end point information are completed based on the path completion algorithm to generate the target path information composed of the third trajectory information, the first completed path information and the second completed path information, wherein the third trajectory information is trajectory information passing through the first key road section information and the second key road section information.
6. The method according to claim 1, It is characterized in that Before generating the target path information according to the target key road section information, the method further includes: The historical trajectory information is thinned out according to the out-degree to obtain initial thinned trajectory information, and a set of segment identifiers is recorded, wherein the initial thinned trajectory information is trajectory information obtained by deleting the segment information corresponding to the first segment in the historical trajectory information, the first segment is a segment whose number of segments of the preceding segment is 1 and whose number of segments of the succeeding segment is also 1, the preceding segment indicates a segment adjacent to the first segment and located before the first segment along the road direction, the succeeding segment indicates a segment adjacent to the first segment and located after the first segment along the road direction, and the segment identifier set includes the identifier of the first segment and a key segment identifier corresponding to the key segment information associated with the first segment; The initial thinned trajectory information is thinned out according to the number of passes to obtain the thinned trajectory information, wherein the thinned trajectory information is the trajectory information obtained after deleting the section information corresponding to the second section in the initial thinned trajectory information, and the second section is a section whose number of passes meets a preset number condition.
7. The method according to claim 6, It is characterized in that When the initial road section information includes non-critical road section information, determining the target critical road section information adsorbed by the non-critical road section information includes: In a case where the initial road section information includes non-critical road section information, determining a target road section identifier of the non-critical road section information; In a case where the target road segment identifier is the same as the road segment identifier of the first road segment, the key road segment information corresponding to the key road segment identifier is determined as the target key road segment information.
8. The method according to claim 7, It is characterized in that When the target road segment identifier is the same as the road segment identifier of the first road segment, determining the key road segment information corresponding to the key road segment identifier as the target key road segment information includes: Obtaining the starting point information and the end point information in the initial road section information; In the case where the non-critical road section information is the starting point information, and the road section identifier of the starting point road section is the same as the road section identifier of the first road section, determining the subsequent critical road section information in the critical road section information as the target critical road section information, wherein the subsequent critical road section information is the first critical road section information located after the starting point road section along the road direction; When the non-critical road section information is the endpoint information and the road section identifier of the endpoint road section is the same as the road section identifier of the first road section, the preceding critical road section information in the critical road section information is determined as the target critical road section information, wherein the preceding critical road section information is the last critical road section information located before the endpoint road section along the road direction.
9. The method according to claim 1, It is characterized in that When the initial road section information includes non-critical road section information, determining the target critical road section information adsorbed by the non-critical road section information includes: Acquire multiple critical road section information within a preset range of the non-critical road section information; Extracting features of the road attributes of each key road section information in the plurality of key road section information respectively to obtain a plurality of feature information; The multiple feature information are respectively input into a pre-trained target sorting learning model to obtain the target key road section information, wherein the target sorting learning model is used to sort the path quality associated with each key road section information in the multiple key road section information, the target key road section information corresponds to the target feature information, the target feature information is the feature information whose sorting result of the path quality meets the preset sorting condition, the multiple feature information includes the target feature information, and the path quality represents the passing quality of the path associated with the key road section information.
10. The method according to claim 9, It is characterized in that The step of inputting the plurality of feature information into a pre-trained target ranking learning model to obtain the target key road section information comprises: Obtaining the starting point information and the end point information in the initial road section information; In the case where the non-critical road section information is the starting point information, obtaining a plurality of starting point critical road section information within a preset range of the starting point information; Extracting features of road attributes of each of the plurality of starting point key road section information respectively to obtain a plurality of starting point feature information; The multiple starting point feature information are respectively input into a pre-trained target sorting learning model together with the end point information to obtain the target key section information, wherein the target key section information corresponds to the target starting point feature information, the target starting point feature information is feature information whose sorting result of the starting point path quality satisfies the preset sorting condition, and the starting point path quality represents the travel quality of the trajectory information including the target key section information and the end point information in the thinned trajectory information.
11. The method according to claim 9, It is characterized in that The step of inputting the plurality of feature information into a pre-trained target ranking learning model to obtain the target key road section information comprises: Obtaining the starting point information and the end point information in the initial road section information; In the case where the non-critical road section information is the endpoint information, obtaining a plurality of endpoint critical road section information within a preset range of the endpoint information; Extracting features of road attributes of each of the plurality of terminal key road section information respectively to obtain a plurality of terminal feature information; The multiple terminal feature information are respectively input into a pre-trained target sorting learning model together with the starting point information to obtain the target key section information, wherein the target key section information corresponds to the target terminal feature information, the target terminal feature information is feature information whose sorting result of the terminal path quality satisfies the preset sorting condition, and the terminal path quality represents the travel quality of the trajectory information including the target key section information and the starting point information in the thinned trajectory information.
12. The method according to claim 9, It is characterized in that The method further comprises: The target ranking learning model is obtained by training the initial ranking learning model to be trained in the following manner: Acquire sample starting point information and sample end point information, wherein the sample starting point information is pre-marked non-critical road section information, and the sample end point information is pre-marked critical road section information; Acquire multiple sample key section information within a preset range of the sample starting point information and multiple predetermined first sorting results corresponding to the multiple sample key section information, wherein the first sorting result represents a path quality sorting result corresponding to the sample key section information as the starting point and the sample end point information as the end point; Extracting features of the road attributes of each of the plurality of sample key road section information respectively to obtain a plurality of sample feature information; Input the plurality of sample feature information and the sample endpoint information into the initial sorting learning model respectively to obtain a plurality of second sorting results, wherein the second sorting result is a sorting result of the path quality corresponding to the target sample key section information as the starting point and the sample endpoint information as the endpoint after inputting the target sample key section information and the sample endpoint information into the initial sorting learning model; The parameters of the initial sorting learning model are adjusted according to the loss value between the first sorting result and the second sorting result to determine the target sorting learning model.
13. The method according to any one of claims 1 to 12, It is characterized in that The generating target path information according to the target key road section information includes: extracting first path information and the number of passes corresponding to the first path information from the thinned trajectory information according to the target key road section information, wherein the first path information is path information including the target key road section information; The number of passes of the same path information in the first path information is combined to obtain the target path information, wherein the target path information includes the generated path and the corresponding number of passes.
14. A path planning device, It is characterized in that include: An acquisition module, used to obtain the initial road section information of the path to be generated; a determination module, configured to determine, when the initial road section information includes non-critical road section information, target critical road section information to be adsorbed by the non-critical road section information, wherein the road attribute of the non-critical road section information and the road attribute of the target critical road section information satisfy a preset adsorption condition; An extraction module is used to generate target path information according to the target key section information, wherein the target path information includes target trajectory information and target completed path information, the target trajectory information includes trajectory information containing the target key section information determined from the thinned trajectory information, and the target completed path information represents path information between the non-critical section information and the target key section information.
15. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored program, wherein the program can be executed by a terminal device or a computer to execute the method described in any one of claims 1 to 13.
16. A computer program product comprising a computer program / instructions, It is characterized in that When the computer program / instructions are executed by a processor, the steps of the method described in any one of claims 1 to 13 are implemented.
17. An electronic device comprising a memory and a processor, It is characterized in that A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 13 through the computer program.
