A city address positioning method based on congestion index map
By adding the annual average congestion index of the road to the knowledge map, combined with the longitude and latitude information, it solves the problem in the existing technology that longitude and latitude are difficult to accurately describe urban roads, and achieves more accurate address positioning, especially the distinction and error at intersections. solve.
Patent Information
- Application Number
- CN202011386234.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-01
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-12-01
AI Technical Summary
Existing address positioning methods rely on latitude and longitude information and are difficult to accurately describe urban roads, especially at intersections, which are prone to errors.
A method based on the congestion index map is used to obtain and process the annual average congestion index of the road, and combine the longitude and latitude information to build a knowledge map to assist in address location.
It improves the accuracy of address positioning, can distinguish roads through congestion index at intersections with the same longitude and latitude, solves the error problem, and enhances the reliability of geographical positioning.
Smart Images

Figure CN112445976B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of address positioning, and in particular relates to a city address positioning method based on a congestion index map. Background Art
[0002] With the rapid development of information technology, building smart cities has become an irreversible trend. However, in today's big data environment, building a diversified and systematic smart city must be based on excellent address positioning methods when dealing with geographic information issues. Today's address positioning methods mostly rely on the address coordinate information provided by GPS, that is, the basic location of the address is confirmed by the latitude and longitude of the address.
[0003] The current address positioning method mainly matches the location through the longitude and latitude of the address, which requires that the longitude and latitude information of the address must be accurate. However, it is difficult to verify the accuracy of the longitude and latitude information of the address. On the one hand, the roads in the city often occupy a large area, and it is difficult to describe them with only one longitude and latitude of the address; on the other hand, due to the existence of intersections, the two intersecting roads share the same longitude and latitude coordinates of the address, and errors will occur during matching. Summary of the invention
[0004] The purpose of the present invention is to propose a method for locating urban addresses that includes a congestion index map, and to store road information through a knowledge map method. In addition to recording the longitude and latitude coordinates of the road address, the entities in the knowledge map also add a new dimension indicator, the annual average congestion index of the road. When locating an address, in addition to matching the longitude and latitude of the address, its congestion index must also be roughly the same, thereby playing an auxiliary role in geographic positioning.
[0005] In order to achieve the above object, the present invention adopts the following technical solution: a city address positioning method based on a congestion index map, comprising the following steps:
[0006] 1) Acquire address data and clean up duplicate data in the address data to form a standard address data set. The address data set includes entities, entity relationships, and latitude and longitude coordinates of entities. Entities include standard names of roads and names of address elements at the provincial, municipal, and district levels;
[0007] 2) Obtain all traffic congestion data of the entity in a year, and after processing the traffic congestion data, form the entity's annual average congestion index;
[0008] 3) Form a knowledge graph based on the obtained entities, entity relationships, longitude and latitude coordinates, and the average congestion index throughout the year;
[0009] 4) Find the best matching address with the highest similarity to the address to be located in the knowledge graph through entities and entity relationships;
[0010] 5) Compare the longitude and latitude coordinates and the annual average congestion index of the address to be located with the best matching address to see if they meet the requirements. If they do, the positioning is successful, otherwise the positioning fails.
[0011] As a further description of the above technical solution:
[0012] In step 1), the address data includes standard address data and POI address data crawled from the web.
[0013] As a further description of the above technical solution:
[0014] In step 1), after traversing all the address data, the selected data is processed in full-width / half-width format to remove illegal characters and English letters or numbers that may affect entity relationships, and to remove duplicate address data in the data to achieve address data cleaning.
[0015] As a further description of the above technical solution:
[0016] In step 1), the entity relationships include "parallel", "intersecting" and "included", and the entity relationships are used to represent the relationship between roads and the province, city and district where the roads are located.
[0017] As a further description of the above technical solution:
[0018] In step 2), all traffic congestion data of the entity in one year are obtained through Baidu Maps, and then the data are preprocessed and standardized using the minimum and maximum normalization method to eliminate the impact of differences in dimensions and value ranges between indicators.
[0019] As a further description of the above technical solution:
[0020] In step 4), the knowledge graph entity similarity is calculated using a text similarity algorithm based on feature attribute weights to find the best matching address that is most similar to the address to be located.
[0021] As a further description of the above technical solution:
[0022] In step 5), the longitude and latitude distance between the most matching address and the address to be located is calculated by longitude and latitude coordinates, and the difference in their annual average congestion index is calculated at the same time. If the difference between the longitude and latitude distance and the annual average congestion index meets the requirements, the address to be located is successfully located. If any one of the longitude and latitude distance and the difference in the address entity congestion index does not meet the requirements, the address to be located fails to be located.
[0023] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0024] 1. In the present invention, firstly, an address location knowledge graph is established. The knowledge graph includes entities, entity relationships, longitude and latitude coordinates, and the average congestion index throughout the year. In addition to the single indicator of address longitude and latitude, the traffic congestion index is added as a second indicator to assist in urban address location. Since the average congestion index throughout the year for each road is different, when judging the roads at the intersection, this indicator can be used to accurately distinguish the roads, thereby solving the problem that the intersection roads have the same longitude and latitude and cannot be judged.
[0025] 2. In the present invention, the congestion index represents the relationship between the actual speed and the free flow speed. When the traffic congestion data are processed to obtain the congestion index, if the traffic congestion index varies greatly, the minimum and maximum normalization method is first used to standardize these data to eliminate the influence of the differences in the dimensions and value ranges between the indicators, and then the support vector machine method is used to calculate the standardized data to obtain the final congestion index. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0027] Figure 1 The present invention is an address location flow chart of a city address location method based on a congestion index map.
[0028] Figure 2 This is a knowledge graph entity matching flowchart for a city address location method based on a congestion index graph.
[0029] Figure 3 This is an example diagram of a knowledge graph entity for a city address location method based on a congestion index graph. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] See also Figure 1-3 The present invention provides a technical solution: a city address positioning method based on a congestion index map, comprising the following steps:
[0032] 1) Acquire address data and clean up duplicate data in the address data to form a standard address data set. The address data set includes entities, entity relationships, and latitude and longitude coordinates of entities. Entities include standard names of roads and names of address elements at the provincial, municipal, and district levels;
[0033] 2) Obtain all traffic congestion data of the entity in a year, and after processing the traffic congestion data, form the entity's annual average congestion index;
[0034] 3) Form a knowledge graph based on the obtained entities, entity relationships, longitude and latitude coordinates, and the average congestion index throughout the year;
[0035] 4) Find the best matching address with the highest similarity to the address to be located in the knowledge graph through entities and entity relationships;
[0036] 5) Compare the longitude and latitude coordinates and the annual average congestion index of the address to be located with the best matching address to see if they meet the requirements. If they do, the positioning is successful, otherwise the positioning fails.
[0037] In step 1), the address data includes standard address data and POI address data crawled from the web.
[0038] In step 1), after traversing all the address data, the selected data is processed in full-width / half-width format to remove illegal characters and English letters or numbers that may affect entity relationships, and to remove duplicate address data in the data to achieve address data cleaning.
[0039] In step 1), the entity relationships include "parallel", "intersecting" and "included", and the entity relationships are used to represent the relationship between roads and the province, city and district where the roads are located.
[0040] In step 2), all traffic congestion data of the entity in one year are obtained through Baidu Maps, and then the data are preprocessed and standardized using the minimum and maximum normalization method to eliminate the impact of differences in dimensions and value ranges between indicators.
[0041] In step 4), the knowledge graph entity similarity is calculated using a text similarity algorithm based on feature attribute weights to find the best matching address that is most similar to the address to be located.
[0042] In step 5), the longitude and latitude distance between the most matching address and the address to be located is calculated by longitude and latitude coordinates, and the difference in their annual average congestion index is calculated at the same time. If the difference between the longitude and latitude distance and the annual average congestion index meets the requirements, the address to be located is successfully located. If any one of the longitude and latitude distance and the difference in the address entity congestion index does not meet the requirements, the address to be located fails to be located.
[0043] Working principle:
[0044] (1) Knowledge Graph Construction Framework
[0045] First, we build an address location knowledge graph. The knowledge graph contains entities and entity relationships. Address entities are composed of standard road names and address element names such as provinces, cities, and districts. Address element names also include more detailed town / street names. Entity relationships include "parallel", "intersecting", and "included", which are used to indicate the relationship between roads and the province, city, district, etc. where the roads are located. Then the entity also contains important attributes required for address location: address latitude and longitude and the average congestion index throughout the year. We build an address location knowledge graph based on entities, entity relationships, and entity attributes.
[0046] (2) Dataset and feature selection
[0047] The address data in the knowledge graph consists of standard address data and POI address data crawled from the Internet. The acquired address data is cleaned, and after traversing all the address data, the selected data is processed in full-width / half-width format to remove illegal characters in the data and English letters or numbers that may affect entity relationships, and to remove duplicate address data in the data, and finally a standard address data set is formed, which can provide relatively accurate address latitude and longitude information.
[0048] The congestion index is represented by the relationship between the actual speed and the free flow speed. This method first obtains all the traffic congestion data of urban roads in a year through Baidu Maps, and then preprocesses these data. Since the traffic congestion index varies greatly, the minimum and maximum normalization method is used to standardize these data to eliminate the impact of the differences in the dimensions and value ranges between the indicators.
[0049] The minimum and maximum normalization formula is as follows:
[0050]
[0051] Among them, x represents the original traffic congestion index value, x * represents the traffic congestion index after processing, x max and x min Respectively represent the maximum and minimum values of the traffic congestion index.
[0052] Then, the standardized data is calculated using the support vector machine method to obtain the final congestion index. The principle of the support vector machine is to construct a hyperplane that can maximize the interval to split the sample, which is a fully supervised learning. Assume that a training data in a feature space is given:
[0053] T={(x1, y1), (x2, y2), Λ, (x n ,yn )}
[0054] Among them, x i ∈R d ,y i ∈{+1,-1},i=1,2,Λ,n.
[0055] n is the number of samples, d is x i The characteristic dimension of the sample. Define the label y i When it is +1, it is a positive example, y i When it is -1, it is a negative example.
[0056] For any input, the corresponding output value can be inferred based on the decision function. In practical applications, there are usually two types of problems: linearly separable and linearly inseparable, namely hard-margin support vector machines and soft-margin support vector machines.
[0057] The sample set is (x i ,y i ), i = 1, 2, Λ, n, for linearly separable problems, the classification function of the support vector machine can be expressed as follows:
[0058]
[0059] b * =y i -ω·x i (3)
[0060] Among them, a i represents the Lagrange multiplier, ω represents the weight vector, and “·” represents the dot product operation.
[0061] For linearly inseparable problems, nonlinear transformation methods are used to map the data sample set into a higher-dimensional space to establish a linear model.
[0062] f(x,ω)=ωφ(x)+b (4)
[0063] After determining the kernel function of the support vector machine and setting the relevant kernel function parameters, the support vector machine can be used to learn the sample set of the traffic congestion index, so as to establish a classification decision function for calculating the traffic congestion index.
[0064] Finally, the future traffic congestion index is calculated through the classification decision function, and the final traffic congestion index result is output.
[0065] (3) Address location method
[0066] The text similarity algorithm based on feature attribute weights is used to calculate the knowledge graph entity similarity to find the address that best matches the address to be located.
[0067] Assuming that the address to be matched is segmented into a sequence according to its entity relationship, the address in the matching knowledge graph is sequenced in the same way. Using the text space vector representation, X i , X j Represented as two n-dimensional vectors, namely X i =(X i1 , X i2 , ΛX in ), X j =(X j1 , X j2 , Λ X jn ).n represents the total number of sequences of two address names, X i With X j The cosine of the angle can be calculated using the following formula (1). When the cosine value is closer to 1, the two address texts are more similar.
[0068]
[0069] An entity usually includes multiple entity relationships. Different entity relationships have different abilities in identifying and distinguishing entities. In a dataset that does not have the same entities, the more complete the entity relationships and the greater the differences between them, the better the entity recognition ability is. In the entity matching process, the more stable the recognition ability of the entity relationship is, the higher the weight assigned to it.
[0070] In the matching knowledge graph, the address entity generates entity relationships based on the address elements, including the city, district, road, etc. The weights of these entity relationships on the address information are different due to different address elements. The smaller the level of the address element, the higher the weight of the entity relationship is assigned. The specific value of the weight is obtained through experimental analysis of the address data to be tested. The entity similarity calculation formula (2) based on the entity relationship weight is as follows:
[0071]
[0072] Where N represents the number of shared entity relationships between entities, E1 and E2 represent entities, and E 1ai 、E 2ai represents the i-th entity relationship between entities E1 and E2, Indicates the similarity of shared entity relationships. In the entity matching process, the entity similarity threshold β is used to determine whether the entity matches. It is defined that when sim(E1, E2)>β, entities E1 and E2 match, otherwise, entities E1 and E2 do not match.
[0073] After finding a matching address, calculate the latitude and longitude distance between the best matching address and the address to be located through the latitude and longitude information, and compare the annual average congestion index of the two addresses. Set the latitude and longitude distance threshold to 500 and the congestion index difference to 0.01. If the calculated latitude and longitude distance between the two addresses is less than 500m, and the congestion index difference is less than 0.01, the address to be located is determined to be located successfully.
[0074] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A city address positioning method based on congestion index map, It is characterized in that The following steps are involved: 1) Obtain address data and clean up duplicate data in the address data to form a standard address data set. The address data set includes entities, entity relationships, and the latitude and longitude coordinates of entities. Entity relationships include "parallel", "intersecting", and "included". Entity relationships are used to represent the relationship between roads and the province, city, and district where the roads are located. Entities include the standard names of roads and the names of the three-level address elements of provinces, cities, and districts; 2) Obtain all traffic congestion data of the entity in one year. After processing, the traffic congestion data forms the entity's annual average congestion index. The congestion index is represented by the relationship between the actual traffic speed and the free flow speed. This method first obtains all traffic congestion data of urban roads in one year through Baidu Maps, standardizes these data using the minimum and maximum normalization method, and then uses the support vector machine method to calculate the standardized data to obtain the final congestion index; 3) Form a knowledge graph based on the obtained entities, entity relationships, longitude and latitude coordinates, and the average congestion index throughout the year; 4) Find the best matching address with the highest similarity to the address to be located in the knowledge graph through entities and entity relationships; 5) Compare the longitude and latitude coordinates and the average congestion index throughout the year of the address to be located with the best matching address to see if they meet the requirements. If they do not meet the requirements, the positioning is successful, otherwise the positioning fails. The longitude and latitude distance between the best matching address and the address to be located is calculated by the longitude and latitude coordinates, and the difference in the average congestion index throughout the year between the two is calculated. If the difference between the longitude and latitude distance and the average congestion index throughout the year meets the requirements, the address to be located is successfully located. If any of the difference between the longitude and latitude distance and the address entity congestion index does not meet the requirements, the address to be located fails to be located. Specifically, the longitude and latitude distance threshold is set to 500, and the congestion index difference is set to 0.
01. If the longitude and latitude distance between the two addresses is calculated to be less than 500m, and the congestion index difference is less than 0.01, the address to be located is determined to be successfully located. In the step 4), the knowledge graph entity similarity is calculated using a text similarity algorithm based on feature attribute weights to find the best matching address that is most similar to the address to be located; Assuming that the addresses to be matched are segmented into sequences according to their entity relationships, the addresses in the matching knowledge graph are sequenced in the same way. , Expressed as two dimensional vector, i.e. , . represents the total number of sequences of two address names, and The cosine of the angle can be calculated using the following formula. When the cosine value is closer to 1, the two address texts are more similar; An entity usually includes multiple entity relationships; different entity relationships have different abilities in identifying and distinguishing entities; in a dataset that does not have the same entities, the more complete the entity relationships and the greater the differences between them, the better the entity recognition ability is; in the entity matching process, the more stable the recognition ability of the entity relationship is, the higher the weight assigned to it; In the matching knowledge graph, the address entity generates entity relationships such as the city, district, and road based on the address elements. The weights of these entity relationships on the address information vary depending on the address elements. The smaller the level of the address element, the higher the weight of the entity relationship. The specific value of the weight is obtained through experimental analysis of the address data to be tested. The formula for calculating entity similarity based on entity relationship weights is as follows: in Represents the number of shared entity relationships between entities. , Represents an entity, , Representing Entities , No. Entity relationships, Indicates the similarity of shared entity relationships; during entity matching, the entity similarity threshold is used , to determine whether the entity matches; define when When the entity , Match, otherwise, entity , No match.
2. A city address positioning method based on a congestion index map according to claim 1, It is characterized in that In the step 1), the address data includes standard address data and POI address data crawled from the web.
3. A city address positioning method based on a congestion index map according to claim 1, It is characterized in that In the step 1), after traversing all the address data, the selected data is processed in full-width / half-width format to remove illegal characters and English letters or numbers that may affect entity relationships, and to remove duplicate address data in the data, thereby achieving address data cleaning.
4. A city address positioning method based on a congestion index map according to claim 1, It is characterized in that In the step 2), all traffic congestion data of the entity in one year are obtained through Baidu Maps, and then the data are preprocessed and standardized using the minimum and maximum normalization method to eliminate the impact of differences in dimensions and value ranges between indicators.
