Route deviation identification method, device, computer readable storage medium and equipment
By acquiring and matching road network data to construct route images for verification, the problem of route yaw judgment errors during navigation is solved, the accuracy of yaw judgment and system efficiency are improved, and resource waste is reduced.
Patent Information
- Application Number
- CN202410033990.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-10
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-01-10
AI Technical Summary
In the existing technology, during the navigation process, the route yaw judgment is incorrect due to factors such as poor equipment positioning accuracy and environmental occlusion, resulting in voice broadcasts that are inconsistent with the actual situation, increasing the number of yaw status reports and the number of recalculations of the navigation route, resulting in Traffic waste and resource overhead.
By obtaining road network data and navigation routes, the reference route is determined, and a route image is constructed for matching verification. The matching route in the route image is used to compare the navigation route to obtain accurate route yaw recognition results and avoid the failure of a single yaw recognition algorithm. Misjudgment.
It improves the accuracy of route yaw judgment, reduces traffic waste and navigation service resource overhead due to misjudgments, and ensures user experience and system efficiency.
Smart Images

Figure CN117537842B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of freight transport, and in particular, relates to a route deviation identification method, device, computer-readable storage medium and computer equipment. Background Art
[0002] When providing navigation services to users, map navigation applications can obtain the user's real-time location through the positioning of terminal devices such as mobile phones, thereby providing real-time map navigation for users. During actual navigation, if the terminal device is found to be not on the planned navigation route through the positioning of the terminal device, the application will generally remind the user of deviation from the navigation route through voice prompts, etc., and guide the user to return to the navigation route or recalculate the navigation route for the user.
[0003] However, due to the limitations of device positioning accuracy and environmental occlusion (such as high-rise buildings and viaducts), errors in yaw judgment may occur (the user is mistakenly judged to have yawed when he has not yawed). This error will cause the voice broadcast and user guidance to be inconsistent with the actual situation, causing trouble to the user. On the other hand, it will increase the number of yaw status reports and the number of times the navigation route is recalculated, resulting in traffic waste and increased resource overhead for navigation services. Therefore, how to make accurate yaw judgment is a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention
[0004] The purpose of the present application is to provide a route deviation identification method, device, computer-readable storage medium and computer equipment, aiming to solve the problem of how to make accurate deviation judgment.
[0005] In a first aspect, the present application provides a route deviation identification method, comprising:
[0006] Obtain road network data, navigation routes, and the positioning sequence corresponding to the current device;
[0007] Determine at least one reference route corresponding to the positioning sequence according to the road network data and the positioning sequence;
[0008] Based on the road network data, the reference route and the positioning sequence, construct a route image corresponding to the reference route;
[0009] Determining, in the route image, a reference route that matches the positioning sequence as a matching route;
[0010] The navigation route and the matching route are compared to obtain a route deviation recognition result.
[0011] In a second aspect, the present application provides a route deviation identification device, comprising:
[0012] The acquisition module is used to obtain the road network data, navigation route and the positioning sequence corresponding to the current device;
[0013] A first determination module, configured to determine at least one reference route corresponding to the positioning sequence according to the road network data and the positioning sequence;
[0014] A construction module, configured to construct a route image corresponding to the reference route based on the road network data, the reference route and the positioning sequence;
[0015] A second determination module, configured to determine, in the route image, a reference route that matches the positioning sequence as a matching route;
[0016] The comparison module is used to compare the navigation route and the matching route to obtain a route deviation recognition result.
[0017] Optionally, in some embodiments of the present application, the second determining module includes:
[0018] A first acquisition unit, used to acquire a preset route matching model;
[0019] An extraction unit, used to extract global features, starting point features and end point features corresponding to each reference route from the route image;
[0020] A splicing unit, used for splicing the global feature, the starting point feature and the end point feature to obtain a splicing feature corresponding to the reference route;
[0021] A processing unit is used to process the splicing feature based on the route matching model to obtain a matching route that matches the reference route.
[0022] Optionally, in some embodiments of the present application, the splicing unit is specifically used for:
[0023] Extracting global features corresponding to each reference route in the route image through a preset first extraction subnetwork, and;
[0024] Extracting features within a preset range based on the starting point of each reference route in the route image by using a preset second extraction subnetwork to obtain starting point features corresponding to the reference route, and;
[0025] The features of each reference route in the route image within a preset range based on the end point are extracted by a preset second extraction subnetwork to obtain the end point features corresponding to the reference route.
[0026] Optionally, in some embodiments of the present application, a training unit is further included, wherein the training unit is used to:
[0027] Obtain basic matching model, sample positioning sequence and sample road network data;
[0028] Determine sample road network information within a preset range of each sample point in the sample positioning sequence according to the sample road network data;
[0029] Based on the sample road network data and each sample point in the sample positioning sequence, determining at least one sample reference route corresponding to the sample positioning sequence;
[0030] Constructing a sample route image including the sample reference route according to the sample road network information, the sample positioning sequence and the sample reference route;
[0031] Inputting the sample route image into the basic matching model to estimate the sample matching route corresponding to the sample positioning sequence;
[0032] The basic matching model is trained according to the annotation information corresponding to the sample reference route and the sample matching route.
[0033] Optionally, in some embodiments of the present application, the building blocks include:
[0034] A second acquisition unit, used to acquire reference road network information corresponding to the reference route from the road network data;
[0035] A construction unit is used to construct a route image corresponding to the reference route based on the reference road network information and the positioning points in the positioning sequence.
[0036] Optionally, in some embodiments of the present application, the construction unit is specifically used for:
[0037] Acquire the road network attributes of the reference road network information;
[0038] Determine the point information corresponding to the positioning point in the positioning sequence;
[0039] Based on the road network attributes and point information, a route image corresponding to the reference route is constructed.
[0040] Optionally, in some embodiments of the present application, the first determining module is specifically configured to:
[0041] Get the preset route recall model;
[0042] Based on the route recall model and the positioning sequence, at least one reference route corresponding to the positioning sequence is determined in the road network data.
[0043] In a third aspect, the present application further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0044] In a fourth aspect, the present application also provides a computer device, comprising one or more processors; a memory; and one or more computer programs, wherein the processor and the memory are connected via a bus, wherein the one or more computer programs are stored in the memory and are configured to be executed by the one or more processors, wherein the processor executes the program as in any of the steps of the method described above.
[0045] In the present application, at least one reference route corresponding to the positioning sequence is determined through road network data and positioning sequence, and a route image corresponding to the reference route is constructed based on the road network data, the reference route and the positioning sequence; then, the reference route matching the positioning sequence is determined as the matching route in the route image, that is, the reference route matching the positioning sequence is secondary verified using the route image, and finally, the navigation route and the matching route are compared to obtain the route deviation recognition result, so as to avoid the misjudgment that is prone to occur when a single deviation recognition algorithm is used when the positioning accuracy of the hardware device is poor. Therefore, the solution of the present application can improve the accuracy of deviation judgment. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 This is a flow chart of a route deviation identification method provided in one embodiment of the present application.
[0047] Figure 2 It is a structural schematic diagram of a route matching model in a route deviation identification method provided by an embodiment of the present application.
[0048] Figure 3 This is a functional module block diagram of a route deviation identification device provided in one embodiment of the present application.
[0049] Figure 4 It is a specific structural block diagram of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solution and beneficial effects of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0051] In order to illustrate the technical solution described in this application, a specific embodiment is provided below for illustration.
[0052] See also Figure 1, is a flow chart of a route deviation identification method provided by an embodiment of the present application. This embodiment mainly uses the route deviation identification method applied to a computer device as an example to illustrate. The route deviation identification method provided by an embodiment of the present application includes the following steps:
[0053] S101, obtaining road network data, navigation routes, and a positioning sequence corresponding to the current device.
[0054] A road network refers to a road system composed of various roads that are interconnected and interwoven into a network within a certain area. A navigation route is a route that moves from the navigation starting point to the navigation end point in the road network. The positioning sequence corresponding to the current device is a sequence of points at each location reporting time of the current device. It can be understood that the positioning sequence corresponding to the current device can be the starting point of route planning and the positioning point during route navigation. The positioning sequence can be a Global Positioning System (GPS) positioning sequence or a Beidou Navigation Satellite System (BDS) positioning sequence, which can be determined based on actual conditions.
[0055] Among them, the road network data can be obtained through the network, and the navigation route and the positioning sequence corresponding to the current device can be obtained through the navigation application. The current device can be a mobile phone, tablet or car terminal, which depends on the actual situation and will not be elaborated here.
[0056] S102: Determine at least one reference route corresponding to the positioning sequence according to the road network data and the positioning sequence.
[0057] The reference route is at least one route recalled based on the road network data and the positioning sequence. For example, three reference routes may be recalled, or five reference routes may be recalled. The specific selection may be made based on actual conditions.
[0058] It should be noted that the recalled reference routes can be sorted in descending order based on the degree of matching with the positioning sequence, and the reference routes can be driving routes, cycling routes, walking routes, etc.
[0059] Among them, it is particularly important to quantify the relationship between roads in the city. At present, the research on the quantification of the relationship between roads in the industry is mainly divided into two categories: data mining solutions and machine learning. Among them, the data mining solution is also called a data statistics solution. Its main idea is to mine the co-occurrence relationship between roads based on a large amount of user route data. For example, based on a large amount of user route data, the probability of vehicle diversion at the intersection can be mined, or based on a large amount of user route data, the probability of vehicle diversion at the intersection under the constraints of the starting and ending points can be mined; and machine learning can include a probabilistic descriptive statistical model of Hidden Markov Model (HMM), which optimizes the implicit unknown parameters in the model through the input user route data to obtain a Markov process that approximates the description of the training set, and can estimate the transfer probability of topologically connected roads; it can also include a deep learning method based on the recurrent neural network (RNN) of the long short-term memory network (LSTM) and its related improvement solutions. This model can estimate the probability of co-occurrence between roads in a context interval of a certain length.
[0060] Optionally, in some embodiments, the present application adopts an HMM model to determine at least one reference route corresponding to the positioning sequence, that is, the step of "determining at least one reference route corresponding to the positioning sequence according to the road network data and the positioning sequence" may specifically include:
[0061] Get the preset route recall model;
[0062] Based on the route recall model and the positioning sequence, at least one reference route corresponding to the positioning sequence is determined in the road network data.
[0063] Specifically, the route recall model is an HMM model, which uses a hidden Markov model to perform a road network matching operation in combination with the connectivity relationship between each positioning point and the road network data, and matches the positioning sequence to the road network data to achieve high-accuracy road network matching.
[0064] Specifically, for the positioning sequence, a hidden Markov model can be used, combined with the contextual relationship between each trajectory segment in the positioning sequence, to determine the probability (i.e., similarity) between each route in the road network data and the positioning sequence, and the segment with the highest probability corresponding to the positioning sequence is determined as the segment matching the positioning sequence, and then these segments are spliced to form a reference route corresponding to the positioning sequence. It should be noted that since positioning information such as GPS may drift, or there are dense parallel roads in the area, the above-mentioned reference route based on HMM matching may have matching errors. Therefore, in this application, the above-mentioned HMM matching reference route is further verified twice, that is, steps S103 and S014 are executed.
[0065] It is understandable that the positioning sequence can obtain multiple routes matching the road network based on the HMM model. In the present application, the first N (N is a positive integer) routes with the highest similarity can be determined as reference routes.
[0066] S103: constructing a route image corresponding to the reference route based on the road network data, the reference route and the positioning sequence.
[0067] For each reference route matched as above, a route image corresponding to the reference route may be constructed based on the road network information within a preset range of the reference route, wherein the road network information within a preset range of the reference route may include data such as the location, direction, and shape of the road, so as to facilitate the subsequent secondary verification of the reference route using the constructed route image. That is, optionally, in some embodiments, the step of "constructing a route image corresponding to the reference route based on the road network data, the reference route, and the positioning sequence" may specifically include:
[0068] Obtain reference road network information corresponding to the reference route from the road network data;
[0069] Based on the reference road network information and the positioning points in the positioning sequence, a route image corresponding to the reference route is constructed.
[0070] Among them, the reference road network information corresponding to the reference route may specifically include: information such as the location, direction, road type, road form, and road function level of all roads within the preset range of the reference route. It should be noted that the location of the road may be relative to the reference route, and the direction of the road may be the direction in which the vehicle is traveling on the road. For example, road a is located on the left side of the reference route, and road b is located on the right side of the reference route, and the direction of road a is from west to east (the same as the driving direction of the reference route), and the direction of road b is from east to east (opposite to the driving direction of the reference route). Optionally, in some embodiments, since the direction of road b is opposite to the driving direction of the reference route, the information of road b can be filtered out.
[0071] In order to ensure that the constructed route image carries not only the road network data but also the positioning sequence data, during construction, the reference road network information corresponding to the reference route can be obtained from the road network data, and the positioning sequence can be added to the reference road network information based on the reference road network information, thereby forming a route image.
[0072] Specifically, different information may be marked in advance, that is, the speed of the positioning point is marked s1, the direction of the positioning point is marked s2, and the position confidence of the positioning point is marked s3. In addition, the road type in the road network data is marked d1, the road form is marked d2, and the road function is marked d3, etc., which can be set according to actual conditions. That is, optionally, in some embodiments, the step of "constructing a route image corresponding to the reference route based on the reference road network information and the positioning points in the positioning sequence" may specifically include:
[0073] Get the road network attributes of the reference road network information;
[0074] Determine the point information corresponding to the positioning point in the positioning sequence;
[0075] Based on the road network attributes and point information, a route image corresponding to the reference route is constructed.
[0076] For example, specifically, the reference route and the positioning point sequence information are drawn into a three-channel image according to the relative position relationship, the connection relationship between the reference route and the positioning point is represented by a straight line connection, and the positioning point is represented by a point with direction and length, wherein the direction represents the direction of the positioning point and the length represents the speed information of the positioning point. In addition, the brightness of the positioning point can be used to represent the confidence of the positioning point, and the positioning point with lower confidence is represented as a darker point. In addition, the direction, position, and length attribute information in the surrounding road network information are drawn into a three-channel image; the road type, road form, road function level and other attribute information in the surrounding road network information are represented in the form of image channels, that is, the M total categories corresponding to the above attributes, each category is used as an image channel, if a road belongs to the M1 category, then in the channel corresponding to the M1 category, the location of the road is found, and the relevant pixels are set to 1, and the pixels of other road positions that do not belong to the M1 category are all set to 0.
[0077] S104: Determine in the route image a reference route that matches the positioning sequence as a matching route.
[0078] In specific matching, matching can be performed through a preset route matching model, which can be a convolutional neural network model or other models. Optionally, in some embodiments, the present application provides a new route matching model, which uses the route matching network to extract the global features, starting features, and end features corresponding to each reference route from the route image. Finally, based on the global features, starting features, and end features, the reference route matching the positioning sequence in the route image is determined as the matching route, that is, optionally, in some embodiments, the step of "determining the reference route matching the positioning sequence in the route image as the matching route" can specifically include:
[0079] Get the preset route matching model;
[0080] Extracting global features, starting point features, and end point features corresponding to each reference route from the route image;
[0081] Splicing the global features, the starting point features and the end point features to obtain the splicing features corresponding to the reference route;
[0082] The splicing features are processed based on a route matching model to obtain a matching route that matches the reference route.
[0083] See also Figure 2 The route matching model is specifically composed of a feature extraction network T1, a feature extraction network T2, and a classification network T3. Since the present application converts route matching into an image matching problem, a deep residual network (ResNet), a visual geometry group network (Visual Geometry Group, VGG) or a mobile phone embedding network (MobileNet) can be used as the feature extraction network T1 and the feature extraction network T2. Optionally, in some embodiments, the feature extraction network T1 and the feature extraction network T2 are the same network, but the parameters are different.
[0084] Specifically, the route image is input into the feature extraction network T1, and the feature extraction network T1 extracts the global features corresponding to the route image; at the same time, data within a preset range of the starting point of the positioning sequence is intercepted in the route image, and the features corresponding to the intercepted starting point image are extracted using the feature extraction network T2 to obtain the starting point features; similarly, data within a preset range of the end point of the positioning sequence is intercepted in the route image, and the features corresponding to the intercepted end point image are extracted using the feature extraction network T2 to obtain the end point features, that is, optionally, in some embodiments, the step of "extracting the global features, starting point features and end point features corresponding to each reference route from the route image" may specifically include:
[0085] The global features corresponding to each reference route in the route image are extracted by a preset first extraction subnetwork, the features within a preset range based on the starting point of each reference route in the route image are extracted by a preset second extraction subnetwork, and the starting point features corresponding to the reference route are obtained; and the features within a preset range based on the end point of each reference route in the route image are extracted by a preset second extraction subnetwork, and the end point features corresponding to the reference route are obtained.
[0086] Then, the extracted global features, starting features and end features are spliced. The splicing method can be connection, merging or fusion, which can be selected according to the actual situation. The significance of feature splicing is that different features are spliced so that the content represented by the final splicing result is more comprehensive and rich, and the matching result will be more accurate when the splicing result is used for subsequent matching.
[0087] Finally, the classification network T3 in the route matching model is used to process the splicing result to obtain a matching route that matches the reference route, and then step S105 is executed.
[0088] It should be noted that the route matching model is pre-built, and since the task performed by the route matching model is a binary classification task, that is, judging whether the route matches, the loss function used in its training can be a binary classification loss function, such as a binary cross entropy loss function (BCELoss), of course, it can also be a cross entropy loss function based on the sigmoid function (BCEWithLogitsLoss). Among them, BCELoss: The last layer needs to be scaled by sigmoid first and then passed through the function. BCEWithLogitsLoss: BCEWithLogitsLoss is to synthesize Sigmoid + BCELoss in one step, and no longer needs to be scaled by sigmoid at the end, and directly process the final logits, where logits refers to the result that has not been scaled by sigmoid and softmax. BCEWithLogitsLoss can be applied to multi-label estimation. In this application, it is only applied to two labels (i.e., judging correctness and error), so preferably, BCELoss is used.
[0089] Specifically, during training, first, a basic matching model is obtained, and then, the basic matching model is catenated using the sample positioning sequence and the sample road network data, so as to obtain a route matching model. That is, optionally, in some embodiments, the route deviation identification method of the present application may further specifically include:
[0090] Obtain basic matching model, sample positioning sequence and sample road network data;
[0091] Determine the sample road network information within a preset range of each sample point in the sample positioning sequence according to the sample road network data;
[0092] Based on the sample road network data and each sample point in the sample positioning sequence, determining at least one sample reference route corresponding to the sample positioning sequence;
[0093] Constructing a sample route image including the sample reference route according to the sample road network information, the sample positioning sequence and the sample reference route;
[0094] Input the sample route image into the basic matching model to estimate the sample matching route corresponding to the sample positioning sequence;
[0095] The basic matching model is trained according to the annotation information corresponding to the sample matching route.
[0096] Among them, the sample positioning sequence is the positioning sequence generated in the sample road network data, thereby ensuring that the subsequent sample route image has the data of the sample positioning sequence. The training process is different from the previous embodiment in that the matching route of the reference route is determined in advance, that is, the sample reference route is marked with information whether the sample reference route is deviated. During training, the parameters of the basic matching model are adjusted through the sample matching route corresponding to the sample reference route and the marked information of the sample reference route, thereby completing the training of the basic matching model and obtaining the route matching model.
[0097] S105: Compare the navigation route and the matching route to obtain a route deviation recognition result.
[0098] After obtaining the matching route, the difference between the navigation route and the matching route is compared, and when the user is determined to have deviated, a prompt is given, such as through voice or text. The present application uses the route image to perform a secondary check on the reference route matched by the positioning sequence, and can obtain a matching route with higher accuracy. Therefore, the accuracy of the route deviation recognition result is improved, and the inconsistency between the deviation prompt and the actual situation is avoided, which causes trouble to the user, and also greatly reduces the number of times the route is recalculated due to deviation, thereby reducing traffic waste and navigation service resources.
[0099] The above is the route deviation identification process provided by this application.
[0100] The present application provides a route deviation identification method. After obtaining the road network data, the navigation route and the positioning sequence corresponding to the current device, at least one reference route corresponding to the positioning sequence is determined according to the road network data and the positioning sequence. Then, based on the road network data, the reference route and the positioning sequence, a route image corresponding to the reference route is constructed. Then, in the route image, the reference route matching the positioning sequence is determined as the matching route. Finally, the navigation route and the matching route are compared to obtain the route deviation identification result. In the route deviation identification scheme provided by the present application, the reference route matching the positioning sequence is secondary verified using the route image. Finally, the navigation route and the matching route are compared to obtain the route deviation identification result. This avoids the situation where a single deviation identification algorithm is prone to misjudgment when the positioning accuracy of the hardware device is poor. Therefore, the scheme of the present application can improve the accuracy of deviation judgment.
[0101] See also Figure 3 The route deviation identification device provided in an embodiment of the present application may be a computer program or a program code running in a computer device, for example, the route deviation identification device is an application software; the route deviation identification device may be used to execute the corresponding steps in the route deviation identification method provided in an embodiment of the present application. The route deviation identification device provided in an embodiment of the present application includes an acquisition module 201, a first determination module 202, a construction module 203, a second determination module 204 and a comparison module 205, which are specifically as follows:
[0102] The acquisition module 201 is used to acquire the road network data, the navigation route and the positioning sequence corresponding to the current device.
[0103] The first determining module 202 is used to determine at least one reference route corresponding to the positioning sequence according to the road network data and the positioning sequence.
[0104] Optionally, in some embodiments, the first determining module 202 may be specifically configured to:
[0105] Get the preset route recall model;
[0106] Based on the route recall model and the positioning sequence, at least one reference route corresponding to the positioning sequence is determined in the road network data.
[0107] The construction module 203 is used to construct a route image corresponding to the reference route based on the road network data, the reference route and the positioning sequence.
[0108] Optionally, in some embodiments, the construction module 203 may specifically include:
[0109] A second acquisition unit, used to acquire reference road network information corresponding to the reference route from the road network data;
[0110] The construction unit is used to construct a route image corresponding to the reference route based on the reference road network information and the positioning points in the positioning sequence.
[0111] Optionally, in some embodiments, the construction unit can be specifically used to: obtain road network attributes of reference road network information; determine point information corresponding to the positioning points in the positioning sequence; and construct a route image corresponding to the reference route based on the road network attributes and the point information.
[0112] The second determining module 204 is configured to determine, in the route image, a reference route that matches the positioning sequence as a matching route.
[0113] Optionally, in some embodiments, the second determining module 204 may specifically include:
[0114] A first acquisition unit, used to acquire a preset route matching model;
[0115] An extraction unit, used for extracting global features, starting point features and end point features corresponding to each reference route from the route image;
[0116] A splicing unit, used for splicing the global feature, the starting point feature and the end point feature to obtain the splicing feature corresponding to the reference route;
[0117] The processing unit is used to process the splicing features based on the route matching model to obtain a matching route that matches the reference route.
[0118] Optionally, in some embodiments, the stitching unit can be specifically used to: extract global features corresponding to each reference route in the route image through a preset first extraction subnetwork, extract features within a preset range based on the starting point of each reference route in the route image through a preset second extraction subnetwork, and obtain starting point features corresponding to the reference route; and extract features within a preset range based on the end point of each reference route in the route image through a preset second extraction subnetwork, and obtain end point features corresponding to the reference route.
[0119] Optionally, in some embodiments, a training unit is further included, and the training unit can be specifically used for:
[0120] Obtain basic matching model, sample positioning sequence and sample road network data;
[0121] Determine the sample road network information within a preset range of each sample point in the sample positioning sequence according to the sample road network data;
[0122] Based on the sample road network data and each sample point in the sample positioning sequence, determining at least one sample reference route corresponding to the sample positioning sequence;
[0123] Constructing a sample route image including the sample reference route according to the sample road network information, the sample positioning sequence and the sample reference route;
[0124] Inputting the sample route image into the basic matching model to estimate the sample matching route corresponding to the sample positioning sequence;
[0125] The basic matching model is trained according to the annotation information corresponding to the sample reference route and the sample matching route.
[0126] The comparison module 205 is used to compare the navigation route and the matching route to obtain a route deviation recognition result.
[0127] The route deviation identification device provided in one embodiment of the present application and the route deviation identification method provided in one embodiment of the present application belong to the same concept. The specific implementation process is detailed in the full text of the specification and will not be repeated here.
[0128] The present application provides a route deviation identification device. After the acquisition module 201 acquires the road network data, the navigation route and the positioning sequence corresponding to the current device, the first determination module 202 determines at least one reference route corresponding to the positioning sequence according to the road network data and the positioning sequence. Then, the construction module 203 constructs a route image corresponding to the reference route based on the road network data, the reference route and the positioning sequence. Then, the second determination module 204 determines the reference route matching the positioning sequence in the route image as the matching route. Finally, the comparison module 205 compares the navigation route and the matching route to obtain the route deviation identification result. In the route deviation identification scheme provided by the present application, the route image is used to perform a secondary check on the reference route matching the positioning sequence. Finally, the navigation route and the matching route are compared to obtain the route deviation identification result, so as to avoid the situation that when the positioning accuracy of the hardware device is poor, the use of a single deviation identification algorithm is prone to misjudgment. Therefore, the scheme of the present application can improve the accuracy of deviation judgment.
[0129] An embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the route deviation identification method provided in the embodiment of the present application are implemented.
[0130] Figure 4The specific structural block diagram of a computer device provided in an embodiment of the present application is shown, and the computer device 100 includes: one or more processors 101, a memory 102, and one or more computer programs, wherein the processor 101 and the memory 102 are connected via a bus, and the one or more computer programs are stored in the memory 102 and are configured to be executed by the one or more processors 101, and the processor 101 implements the steps of the route deviation identification method provided in an embodiment of the present application when executing the computer program. The computer device includes a server and a terminal, etc. The computer device can be a desktop computer, a mobile terminal or a vehicle-mounted device, and the mobile terminal includes at least one of a mobile phone, a tablet computer, a personal digital assistant or a wearable device, etc.
[0131] It should be understood that each step in each embodiment of the present application is not necessarily performed in sequence according to the order indicated by the step number. Unless there is clear explanation in this article, the execution of these steps does not have strict order restriction, and these steps can be performed in other orders. Moreover, at least a part of the steps in each embodiment can include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a part of other steps or sub-steps or stages of other steps.
[0132] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0133] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0134] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for those of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A route deviation identification method, characterized in that: include: Obtain road network data, navigation routes, and the positioning sequence corresponding to the current device; Determine at least one reference route corresponding to the positioning sequence according to the road network data and the positioning sequence; Based on the road network data, the reference route and the positioning sequence, construct a route image corresponding to the reference route; Determining, in the route image, a reference route that matches the positioning sequence as a matching route; Comparing the navigation route with the matching route to obtain a route deviation recognition result; The step of constructing a route image corresponding to the reference route based on the road network data, the reference route and the positioning sequence includes: Acquire reference road network information corresponding to the reference route from the road network data; Based on the reference road network information and the positioning points in the positioning sequence, constructing a route image corresponding to the reference route; The step of constructing a route image corresponding to the reference route based on the reference road network information and the positioning points in the positioning sequence includes: Acquire the road network attributes of the reference road network information; Determine the point information corresponding to the positioning point in the positioning sequence; Based on the road network attributes and point information, a route image corresponding to the reference route is constructed; and the reference route matching the positioning sequence in the route image is determined as a matching route, including: Get the preset route matching model; Extracting global features, starting point features, and end point features corresponding to each reference route from the route image; Splicing the global feature, the starting point feature and the end point feature to obtain a splicing feature corresponding to the reference route; The splicing features are processed based on the route matching model to obtain a matching route that matches the reference route.
2. The route deviation identification method according to claim 1, characterized in that: The extracting the global features, the starting point features and the end point features corresponding to each reference route from the route image includes: Extracting global features corresponding to each reference route in the route image through a preset first extraction subnetwork, and; Extracting features within a preset range based on the starting point of each reference route in the route image by using a preset second extraction subnetwork to obtain starting point features corresponding to the reference route, and; The features of each reference route in the route image within a preset range based on the end point are extracted by a preset second extraction subnetwork to obtain the end point features corresponding to the reference route.
3. The route deviation identification method according to claim 1, characterized in that: Also includes: Obtain basic matching model, sample positioning sequence and sample road network data; Determine sample road network information within a preset range of each sample point in the sample positioning sequence according to the sample road network data; Based on the sample road network data and each sample point in the sample positioning sequence, determining at least one sample reference route corresponding to the sample positioning sequence; Constructing a sample route image including the sample reference route according to the sample road network information, the sample positioning sequence and the sample reference route; Inputting the sample route image into the basic matching model to estimate the sample matching route corresponding to the sample positioning sequence; The basic matching model is trained according to the annotation information corresponding to the sample reference route and the sample matching route.
4. The route deviation identification method according to any one of claims 1 to 3, characterized in that: The determining, according to the road network data and the positioning sequence, at least one reference route corresponding to the positioning sequence comprises: Get the preset route recall model; Based on the route recall model and the positioning sequence, at least one reference route corresponding to the positioning sequence is determined in the road network data.
5. A route deviation identification device, characterized in that: include: The acquisition module is used to obtain the road network data, navigation route and the positioning sequence corresponding to the current device; A first determination module, configured to determine at least one reference route corresponding to the positioning sequence according to the road network data and the positioning sequence; A construction module, for constructing a route image corresponding to the reference route based on the road network data, the reference route and the positioning sequence, specifically comprising: obtaining reference road network information corresponding to the reference route from the road network data; constructing a route image corresponding to the reference route based on the reference road network information and the positioning points in the positioning sequence; the construction of a route image corresponding to the reference route based on the reference road network information and the positioning points in the positioning sequence specifically comprising: obtaining road network attributes of the reference road network information; determining point information corresponding to the positioning points in the positioning sequence; and constructing a route image corresponding to the reference route based on the road network attributes and the point information; The second determination module is used to determine in the route image that the reference route matching the positioning sequence is a matching route, specifically comprising: obtaining a preset route matching model; extracting global features, starting point features and end point features corresponding to each reference route from the route image; splicing the global features, starting point features and end point features to obtain splicing features corresponding to the reference route; processing the splicing features based on the route matching model to obtain a matching route matching the reference route; The comparison module is used to compare the navigation route and the matching route to obtain a route deviation recognition result.
6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the route deviation identification method according to any one of claims 1 to 4 are implemented.
7. A computer device comprising: one or more processors; Memory; and one or more computer programs, the processor and the memory are connected via a bus, wherein the one or more computer programs are stored in the memory and are configured to be executed by the one or more processors, wherein the processor implements the steps of the route deviation identification method as described in any one of claims 1 to 4 when executing the computer program.
