A classification method, classification device and storage medium based on points of interest (POI)
By extracting and classifying features of POI data sets in electronic maps, and using machine learning models for automatic classification, the problem of time-consuming and costly manual collection is solved, and the applicability and imitability of the classification method are improved.
Patent Information
- Application Number
- CN202010081675.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-06
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-02-06
AI Technical Summary
The existing technology requires manual collection when classifying POI names in electronic maps, which is time-consuming and costly, difficult to imitate and copy, and has poor applicability.
By obtaining the POI data set, extracting the longitude, latitude and floor distribution characteristics, inputting the preset classification model, and using the convolutional neural network and decision tree algorithm for automatic classification, the machine learning classification method is implemented.
It saves collection time and cost, improves the applicability and imitability of the classification method, and can automatically classify POI names.
Smart Images

Figure CN113221026B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a classification method, a classification device and a storage medium based on points of interest (POI). Background Art
[0002] At present, electronic maps can provide users with services such as navigation, direction guidance, and resource recommendations. Points of interest (POI) are generally set in electronic maps. POIs can be stores, bars, gas stations, hospitals, train stations, scenic spots, and historical sites. In addition, in order to provide users with more humane services, some electronic maps will set map function areas based on human activities, such as residences, business districts, etc. The map function areas contain a large number of POIs, which are basically related to the main functions provided by the map function areas.
[0003] However, when classifying the names corresponding to POIs, such as "Zhengjia Plaza" and "Wanda Plaza", the names are usually collected and classified manually, which takes a lot of time and cost. In addition, there are differences in the granularity of the classification of names belonging to different types such as residential and commercial districts. This manual collection method is difficult to imitate and replicate, and has poor applicability.
[0004] Therefore, how to further improve the applicability of the name classification method while saving time and effort is an urgent problem that needs to be solved. Summary of the invention
[0005] The embodiments of the present application provide a classification method, a classification device and a storage medium based on points of interest (POI), which are used to save collection time and collection costs. Moreover, the machine learning method of the preset classification model can be imitated and copied, and the applicability is greatly improved.
[0006] In a first aspect, an embodiment of the present application provides a classification method based on points of interest (POIs), which may include:
[0007] Acquire a first POI data set corresponding to the target name, where the first POI data set includes at least one POI;
[0008] Performing feature extraction on the first POI data set to obtain latitude and longitude distribution features of a first entity corresponding to the POI, where the first entity is included in the target name;
[0009] Determining a floor distribution feature of the first entity corresponding to the POI;
[0010] The latitude and longitude distribution characteristics and the floor distribution characteristics are input into a preset classification model to obtain a classification result of the target name.
[0011] In a second aspect, an embodiment of the present application provides a classification device, which may include:
[0012] An acquiring unit, configured to acquire a first POI data set corresponding to the target name, wherein the first POI data set includes at least one POI;
[0013] an extraction unit, configured to perform feature extraction on the first POI data set obtained by the acquisition unit to obtain a latitude and longitude distribution feature of a first entity corresponding to the POI, wherein the first entity is included in the target name;
[0014] A determination unit, configured to determine a floor distribution feature of a first entity corresponding to the POI;
[0015] An input unit is used to input the longitude and latitude distribution characteristics obtained by the extraction unit and the floor distribution characteristics obtained by the determination unit into a preset classification model to obtain a classification result of the target name.
[0016] Optionally, in combination with the second aspect, in a first possible implementation manner, the extracting unit includes:
[0017] a processing module, configured to input the first POI data set into a convolutional neural network to obtain a softmax probability value of the first entity corresponding to the POI, wherein the convolutional neural network is trained using a second POI data set, and the second POI data set is different from the first POI data set;
[0018] The first determining module is used to determine the softmax probability value as the longitude and latitude distribution feature of the first entity corresponding to the POI.
[0019] Optionally, in combination with the first possible implementation manner of the second aspect, in a second possible implementation manner, the processing module may include:
[0020] A determination submodule, configured to determine the latitude and longitude information of a second entity corresponding to each POI in the second POI data set, wherein the second entity is included in the target name;
[0021] An encoding submodule, used for performing Geohash encoding on the latitude and longitude information to obtain a first character string corresponding to each POI;
[0022] The determination submodule determines a grayscale image matrix based on a second character string and the first character string, wherein the second character string is a Geohash character string corresponding to a POI corresponding to which the longitude and the latitude in the longitude and latitude information of each second entity are both minimum values;
[0023] A training submodule is used to train the grayscale image matrix to obtain the convolutional neural network.
[0024] Optionally, in combination with the second possible implementation of the second aspect, in a third possible implementation,
[0025] The determination submodule is used to determine a first coordinate value and a second coordinate value when the POI corresponds to the Geohash area, wherein the first coordinate value is the number of Geohash areas between the first character string and the second character string in the longitude direction, and the second coordinate value is the number of Geohash areas between the first character string and the second character string in the latitude direction; each Geohash character string corresponds to a Geohash area; and the convolutional neural network is obtained by training based on the grayscale image matrix.
[0026] Optionally, in combination with the second aspect and the first to third possible implementations of the second aspect, in a fourth possible implementation, the determining unit may include:
[0027] A second determination module is used to determine the floor information where the POI is located;
[0028] The second determination module is used to determine the proportion of POIs in the floor corresponding to the floor information where the POI is located;
[0029] The second determining module is used to determine the POI proportion as a floor distribution feature of the first entity corresponding to the POI.
[0030] Optionally, in combination with the second aspect and the first to fourth possible implementations of the second aspect, in a fifth possible implementation, the input unit may include:
[0031] An input module is used to input the latitude and longitude distribution characteristics and the floor distribution characteristics into a decision tree classification algorithm to obtain a classification result of the target name.
[0032] In a third aspect, an embodiment of the present application provides a classification device, which may include: a processor and a memory; the memory is used to store program instructions, and when the classification device is running, the processor executes the program instructions stored in the memory to enable the point of interest classification device to perform a classification method based on points of interest (POI) such as the first aspect or any possible implementation of the first aspect.
[0033] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a computer, enables the computer to execute a method as in the first aspect or any possible implementation of the first aspect.
[0034] In a fifth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute a method as in the first aspect or any possible implementation of the first aspect.
[0035] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0036] In the embodiment of the present application, after extracting features from the first POI data set corresponding to the target name and obtaining the longitude and latitude distribution features of the first entity corresponding to the POI, the longitude and latitude distribution features of the first entity corresponding to the POI and the floor distribution features of the first entity corresponding to the POI are input into a preset classification model, and the classification result of the target name can be obtained. In the embodiment of the present application, not only does it not rely on manual collection, saving collection time and collection costs, but also the longitude and latitude distribution features of the first entity corresponding to the POI and the floor distribution features of the first entity corresponding to the POI are analyzed by a preset classification model to obtain the classification result of the target name. This machine learning method can be imitated and copied, and its applicability is greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 is a schematic diagram of POI distribution provided in an embodiment of the present application;
[0039] Figure 2 is a schematic diagram of an embodiment of the POI-based classification method provided in this embodiment;
[0040] Figure 3a This is a schematic diagram of the POI location distribution of a certain business district entity provided in an embodiment of the present application;
[0041] Figure 3b is a schematic diagram of POI location distribution of a residential entity provided in an embodiment of the present application;
[0042] Figure 4 is another schematic diagram of an embodiment of the POI-based classification method provided in this embodiment;
[0043] Figure 5a It is a schematic diagram of a matrix visualization image of the POI location distribution of a business district entity provided in an embodiment of the present application;
[0044] Figure 5b It is a schematic diagram of a matrix visualization image of the POI location distribution of a residential entity provided in an embodiment of the present application;
[0045] Figure 6 is a flow chart for classifying target names provided by an embodiment of the present application;
[0046] Figure 7 is a schematic diagram of an embodiment of a classification device provided in an embodiment of the present application;
[0047] Figure 8 is a schematic diagram of another embodiment of the classification device provided in an embodiment of the present application;
[0048] Fig. 9 It is a schematic diagram of the hardware structure of the communication device in the embodiment of the present application. DETAILED DESCRIPTION
[0049] The embodiments of the present application provide a classification method based on points of interest (POI), a point of interest classification device and a storage medium, which are used to save collection time and collection costs. Moreover, this machine learning method can be imitated and copied through a preset classification model, and its applicability is greatly improved.
[0050] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions 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 are within the scope of protection of this application.
[0051] The terms "first", "second", "third", "fourth", etc. (if any) 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 interchanged 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 that includes 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. The naming or numbering of steps in the present application does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The process steps that have been named or numbered can change the execution order according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved.
[0052] The POI-based classification method provided in the embodiment of the present application can be applied to the scenarios of the business district positioning function of the entry service project of various clients, such as: Tencent WIFI Butler Client, etc. By classifying the names corresponding to the POIs, more humane services can be provided to users. However, when classifying the names corresponding to the POIs, it is usually necessary to manually collect the names and classify them, which takes time and cost; and there are also differences in the granularity of the division of names belonging to different types such as residential and business districts. This manual collection method is difficult to imitate and copy, and its applicability is poor.
[0053] Therefore, in order to solve the above problems, a classification method based on points of interest (POIs) is provided in the embodiment of the present application. The latitude and longitude distribution characteristics of the first entity corresponding to the POI can be obtained by extracting features from the first POI data set corresponding to the target name, and then the floor distribution characteristics of the first entity corresponding to the POI can be further determined. The latitude and longitude distribution characteristics and floor distribution characteristics are calculated by a preset classification model to obtain the classification result of the target name. For example: Please refer to Figure 1 , is a schematic diagram of POI distribution provided in the embodiment of the present application. Figure 1 It can be seen that the POI in the first POI dataset can be an apartment, a shop, a bar, a flower shop, a rice noodle shop, etc., and each POI can correspond to an entity, and the entity also has a corresponding name. For example, an apartment can belong to a residential entity, and a shop or a bar can also belong to a business district entity, etc., so as to provide corresponding services for different scenarios in the future.
[0054] It should be understood that the POI described above may include not only an apartment, a shop, a bar, a flower shop, and a rice noodle shop, but in actual applications, it may also include a clothing store, a shoe store, etc., which will not be specifically limited in the embodiments of the present application.
[0055] In addition, it is further explained that the aforementioned entities may include but are not limited to residential entities, business district entities, pure business district entities, etc., and will not be specifically limited in the embodiments of the present application.
[0056] In order to better understand the solution proposed in the embodiment of the present application, the specific process of this embodiment is introduced below. Figure 2 , is a schematic diagram of an embodiment of a POI-based classification method provided in this embodiment, and the method may include:
[0057] 201. Obtain a first POI dataset corresponding to a target name, where the first POI dataset includes at least one POI.
[0058] In this embodiment, before obtaining the first POI data set, the target name must first be determined, and then the first POI data set belonging to the target name is obtained from the target name. The target name can be the entity name of a certain business district, such as "Zhengjia Plaza", "Classic Home", "Inda Shopping Mall", etc. The business district is also known as the commercial center, shopping street, commercial district, and bustling street. It refers to the area in the city composed of commercial facilities such as shops, shopping malls, restaurants, office buildings, hotels, and public facilities such as streets, stations, and pedestrian streets. It is the main core area and downtown area in the city. The first POI data set may include at least three types of POIs, and these three types of POIs include but are not limited to residential, pure business districts, and mixed business districts. For example, if the target name is "Zhengjia Plaza", there may be A residential area, B shopping mall, C building, etc. in the area where this "Zhengjia Plaza" is located.
[0059] It should be understood that in this application, only the relevant data of POIs corresponding to three types of entities, namely residential, pure business district and mixed business district, are used as an example to form the aforementioned first POI data set. In addition, the residential entity here can be understood as an entity whose lower floors (generally the first floor, second floor, etc.) are business places such as shops, while the upper floors are residential areas; the pure business district entity can be understood as an entity without residential areas; the mixed business district entity can be understood as a building with higher floors, such as: the tenth floor and below are business places such as shops, while the tenth floor and above are residential areas.
[0060] 202. Perform feature extraction on the first POI data set to obtain longitude and latitude distribution features of a first entity corresponding to the POI, where the first entity is included in the target name.
[0061] In this embodiment, the target name may include the first entity, for example, "Zhengjia Plaza" may include residential entities, non-residential entities, etc. The longitude and latitude distribution characteristics can be understood as whether the characteristic distribution of the first entity corresponding to a POI is dense or discrete, and further indicates whether the entity corresponding to the target name is in a dense distribution or a discrete distribution. Figure 3a , is a schematic diagram of POI location distribution of a certain business district entity provided in an embodiment of the present application. Since the business district entity may include a pure business district entity and a mixed business district entity, Figure 3a As can be seen from the figure, the POI location distribution of pure business district entities and mixed business district entities is generally dense. Therefore, if the feature distribution of the first entity corresponding to a POI is dense, it will be initially divided into a pure business district entity or a mixed business district entity. Figure 3b , is a schematic diagram of POI location distribution of a residential entity provided in an embodiment of the present application, from Figure 3b It can be seen that the POI location distribution of residential entities is generally distributed along the structure of streets or communities, mostly linear, and relatively discrete. Therefore, if the characteristic distribution of the first entity corresponding to a POI is discrete, it will be preliminarily classified as a residential entity. It should be understood that in actual applications, it can also be other distribution states, which are not specifically limited in the embodiments of this application.
[0062] 203. Determine a floor distribution feature of a first entity corresponding to the POI.
[0063] In this embodiment, since the calculated latitude and longitude distribution characteristics of the first entity corresponding to the POI can indicate whether the first entity is a discrete distribution or a dense distribution, however, for the business district entity, assuming that the convolutional neural network is trained by the second POI data set formed by residential entities and business district entities, then when further considering the name classification of pure business district entities and mixed business district entities, since mixed business district entities are generally located in high-rise buildings, it is also necessary to consider the floor distribution characteristics of the first entity corresponding to each POI to dig out the subcategories of pure business districts and mixed business districts.
[0064] Optionally, in some other embodiments, the floor distribution feature of the first entity corresponding to the POI may be determined in the following manner:
[0065] Determine the floor information where the POI is located;
[0066] Determine the proportion of POIs in the floor corresponding to the floor information where the POI is located;
[0067] The POI proportion is determined as a floor distribution feature of the first entity corresponding to the POI.
[0068] It should be noted that the floor information is the floor or building where the POI corresponding to the target name is located, and the POI ratio can be understood as the ratio of the total number of POIs on the floor to the total number of POIs of the entire target name. At this time, the POI ratio can be determined as the floor distribution feature of the first entity corresponding to the POI. For example: Assuming that the target name is "Zhuoyuehui Shopping Mall", the longitude and latitude distribution feature of the first entity corresponding to the POI obtained by feature extraction is intensive. If the number of POIs in the entire "Zhuoyuehui Shopping Mall" is 500, the number of POIs on the negative 2nd floor is 10, the number of POIs on the negative 1st floor is 40, the number of POIs on the 1st floor is 50, the number of POIs on the 2nd floor is 100, the number of POIs on the 3rd floor is 125, the number of POIs on the 4th floor is 75, the number of POIs on the 5th floor is 25, the number of POIs on the 6th floor is 10, the number of POIs on the 7th floor is 5, the number of POIs on the 8th floor is 5, and the number of POIs above the 8th floor is 5. In this way, the floor distribution characteristics constructed at this time can be: the POI proportion of the negative 2nd floor is 2%, the POI proportion of the negative 1st floor is 8%, the POI proportion of the 1st floor is 10%, the POI proportion of the 2nd floor is 20%, the POI proportion of the 3rd floor is 25%, the POI proportion of the 4th floor is 15%, the POI proportion of the 5th floor is 5%, the POI proportion of the 6th floor is 2%, the POI proportion of the 7th floor is 1%, the POI proportion of the 8th floor is 1%, the POI proportion of the 8th floor and above is 1%, etc., and no specific limitation is made here.
[0069] In addition, you can also consider the highest floor of food POIs, the highest floor of POIs in pure business district entities or mixed business district entities, etc.
[0070] 204. Input the latitude and longitude distribution characteristics and the floor distribution characteristics into a preset classification model to obtain a classification result of the target name.
[0071] In this embodiment, the classification results may include but are not limited to residential, pure business district or mixed business district types. The preset classification model may be a decision tree classification algorithm. The decision tree classification algorithm is a tree structure (which may be a binary tree or a non-binary tree). The basic principle is that each non-leaf node represents a test on a feature attribute, each branch represents the output of this feature attribute in a certain value range, and each leaf node stores a category. The process of making decisions using the decision tree classification algorithm starts from the root node, tests the corresponding feature attributes in the item to be classified, and selects the output branch according to its value until the leaf node is reached, and the category stored in the leaf node is used as the classification result. It should be noted that in addition to the aforementioned decision tree classification algorithm, the preset classification model can also be other classification algorithms in other machine learning, which will not be specifically limited in this application.
[0072] Optionally, in some other embodiments, the latitude and longitude distribution characteristics and the floor distribution characteristics are input into a decision tree classification algorithm to obtain a classification result of the target name.
[0073] In an embodiment of the present application, by performing feature extraction on the first POI data set to obtain the longitude and latitude distribution characteristics of the first entity corresponding to the POI, the longitude and latitude distribution characteristics of the first entity corresponding to the POI and the floor distribution characteristics of the first entity corresponding to the POI are input into a preset classification model to obtain the classification result of the target name. This not only does not rely on manual collection, saving collection time and collection cost, but also analyzes the longitude and latitude distribution characteristics of the first entity corresponding to the POI and the floor distribution characteristics of the first entity corresponding to the POI through a preset classification model to obtain the classification result of the target name. This machine learning method can be imitated and replicated, and its applicability is greatly improved.
[0074] To facilitate a better understanding of the solution proposed in the embodiment of the present application, the specific process of determining the latitude and longitude distribution characteristics of the first entity corresponding to the POI in this embodiment is introduced below. Figure 4 , is a schematic diagram of another embodiment of the POI-based classification method provided in this embodiment, and the method may include:
[0075] 401. Obtain a first POI dataset corresponding to a target name, where the first POI dataset includes at least one POI.
[0076] In this embodiment, step 401 can refer to the aforementioned Figure 2 The contents described in step 201 in the above description can be understood, and the details will not be repeated here.
[0077] 402. Input the first POI data set into a convolutional neural network to obtain a softmax probability value of a first entity corresponding to the POI, wherein the convolutional neural network is trained using a second POI data set corresponding to the target name, and the second POI data set is different from the first POI data set.
[0078] In this embodiment, the second POI dataset may include at least two types of POIs, such as residential and commercial districts, etc. In this embodiment, only the data related to POIs corresponding to the two types of entities, residential and commercial districts, are used as an example to form the second POI dataset.
[0079] Therefore, after the second POI data set is used to train a convolutional neural network (CNN), the aforementioned first POI data set is used as the input of the convolutional neural network to train the softmax probability value of the first entity corresponding to the corresponding POI. It should be understood that the obtained softmax probability value of the first entity corresponding to the POI is actually the probability value of the target name being able to be divided into a residential entity and a commercial entity, and the corresponding probability value of the residential entity and the probability value of the commercial entity can be used to indicate whether the distribution of the first entity corresponding to the POI is in a discrete distribution or a dense distribution.
[0080] Optionally, in some embodiments, how to use the second POI data set to train the aforementioned convolutional neural network, the training process can be understood by referring to the following content:
[0081] Determine the latitude and longitude information of a second entity corresponding to each POI in the second POI data set, where the second entity is included in the target name;
[0082] Performing Geohash encoding on the latitude and longitude information to obtain a first character string corresponding to each POI;
[0083] Determining a grayscale image matrix based on a second character string and the first character string, wherein the second character string is a Geohash character string corresponding to a POI corresponding to a minimum value of the longitude and the latitude in the longitude and the latitude information of each of the second entities;
[0084] The convolutional neural network is obtained based on the grayscale image matrix training.
[0085] That is to say, it is understood that, since the second entities to which each POI in the second POI dataset belongs are correspondingly marked, and the second entities are included in the aforementioned target names, after obtaining the second POI dataset, the latitude and longitude information of the second entity corresponding to each POI in the second POI dataset is Geohash encoded to obtain the corresponding first character string.
[0086] It should be noted that the second entity may include but is not limited to a residential entity and a business district entity. The basic principle of Geohash encoding is to understand the electronic geography of a specified range as a two-dimensional plane, decompose the plane into smaller Geohash areas, and each Geohash area corresponds to a Geohash string, so that a Geohash string can uniquely correspond to a geographical location range, so that the POIs in each second POI data set can be divided into different Geohash areas. It is understandable that the Geohash area can be a square grid of a rectangular shape.
[0087] In addition, in Geohash encoding, a binary string identifying the position can be obtained through the relative position of the longitude and latitude in the area, the length of the binary string is added to the data header, and then the entire data is encoded using a base64 encoding method.
[0088] The parameters of Geohash encoding will affect the effect of Geohash area division. If the Geohash parameter is too small, the larger the side length of the Geohash area, the wider the boundary of the obtained map function area may be, which may greatly affect the correctness of the division result; on the contrary, if the Geohash parameter is too large, the smaller the side length of the Geohash area, at this time, if the POI density in the map function area is not large enough, it may cause the final map function area boundary to be too small. Therefore, the selection of Geohash parameters is closely related to the density distribution of POIs. In general, according to the empirical value of Geohash parameters, parameter 41 will be selected. It should be understood that in actual applications, the Geohash parameter can also be other parameter values besides parameter 41, which will not be specifically limited in the embodiments of the present application. In the embodiments of the present application, only the Geohash parameter is taken as parameter 41 as an example for explanation.
[0089] After obtaining the corresponding first string, the Geohash string corresponding to the POI with the minimum longitude and latitude in each second entity can be determined as the second string, and the second string is used as the reference string. In this way, the grayscale image matrix can be determined based on the first string and the reference string, and the convolutional neural network can be trained using the grayscale image matrix.
[0090] It should be noted that in some other embodiments, after the convolutional neural network is trained, the convolutional neural network can be saved in the net.pkl format. For example, the network structure and parameters that the convolutional neural network can refer to are as follows:
[0091]
[0092]
[0093] In addition, in practical applications, the convolutional neural network can also be saved in other formats, which will not be specifically limited in the embodiments of the present application.
[0094] Optionally, in some other embodiments, determining the grayscale image matrix based on the second character string and the first character string is actually determining the coordinate value of each Geohash character string in a rectangular coordinate system established with the longitude direction as the horizontal coordinate and the latitude direction as the vertical coordinate. The following method can be used:
[0095] When the POI corresponds to the Geohash area, a first coordinate value and a second coordinate value are determined, wherein the first coordinate value is the number of Geohash areas between the first character string and the second character string in the longitude direction, and the second coordinate value is the number of Geohash areas between the first character string and the second character string in the latitude direction;
[0096] A grayscale image matrix is determined based on the first coordinate value and the second coordinate value.
[0097] For example, the area range of a pure business district entity or a mixed business district entity is generally within 1 kilometer. Since the Geohash parameter will affect the side length of the Geohash area, if the Geohash parameter selects parameter 41, the corresponding side length of the Geohash area is 20 meters. In this way, the maximum values of the first coordinate value and the second coordinate value obtained are both 50.
[0098] If the first coordinate value and the second coordinate value of the second string take the origin (0,0), then the number (x, y) of Geohash areas corresponding to the movement from the second string to the first string in the longitude and latitude directions can be calculated. If the Geohash area where the first string corresponding to (x, y) is located includes POI, then the number (x, y) of Geohash areas corresponding to the movement from the second string to the first string in the longitude and latitude directions can be used as the matrix value of the grayscale image matrix. The elements of the corresponding row and column positions of the grayscale image matrix are 1, otherwise they are 0. Please refer to 5a, which is a schematic diagram of a matrix visualization image of the POI location distribution of a business district entity provided in an embodiment of the present application. Figure 5a corresponds to the above described Figure 3a Refer to 5b, which is a schematic diagram of a matrix visualization image of the POI location distribution of a residential entity provided in an embodiment of the present application. Figure 5b corresponds to the above described Figure 3b The location distribution of POIs in .
[0099] It should be noted that Figure 5a and Figure 5b The black color in the figure indicates that there is a POI in the Geohash area corresponding to the Geohash string, and the white color indicates that there is no POI in the Geohash area corresponding to the Geohash string.
[0100] In addition, it should be noted that in other embodiments, when each Geohash area corresponds to at least one POI, the number of POIs in each Geohash area may be determined; and the number of POIs may be determined as the first coordinate value and the second coordinate value.
[0101] It can be understood that in order to describe the longitude and latitude distribution of the first entity corresponding to the POI in terms of the degree of aggregation, the number of POIs in each Geohash area can be calculated, and the number of POIs in each Geohash area can be used as the coordinate value for determining the grayscale image matrix.
[0102] 403. Determine the softmax probability value as the longitude and latitude distribution feature of the first entity corresponding to the POI.
[0103] In this embodiment, after obtaining the softmax probability value of the first entity corresponding to the POI through the convolutional neural network, the softmax probability value of the first entity corresponding to the POI can be determined as the latitude and longitude distribution characteristics of the first entity corresponding to the corresponding POI.
[0104] 404. Determine a floor distribution feature of a first entity corresponding to the POI.
[0105] 405. Input the latitude and longitude distribution characteristics and the floor distribution characteristics into a preset classification model to obtain a classification result of the target name.
[0106] In this embodiment, steps 404 to 405 can refer to the aforementioned Figure 2 The contents described in steps 203 to 204 in FIG. 2 can be understood by referring to the contents described in steps 203 to 204 in FIG.
[0107] Therefore, in this embodiment, after the convolutional neural network is trained using the second POI data set, it is used as the training model of the first POI data set. After the longitude and latitude distribution characteristics of the first entity corresponding to the POI are obtained, the floor distribution characteristics of the first entity corresponding to the POI are combined, and the classification result of the target name is determined by the decision tree classification algorithm. For details, please refer to Figure 6 The flowchart for classifying target names is described for understanding.
[0108] In the embodiment of the present application, by inputting the first POI data set into the convolutional neural network trained by the second POI data set, the latitude and longitude distribution characteristics of the first entity corresponding to the corresponding POI can be obtained, and the latitude and longitude distribution characteristics of the first entity corresponding to the POI and the floor distribution characteristics of the first entity corresponding to the POI are input into the preset classification model to obtain the classification result of the target name. Not only does it not rely on manual collection, saving collection time and collection costs, but also the machine learning method of convolutional neural network and preset classification model can be imitated and copied, and the applicability is greatly improved.
[0109] The above mainly introduces the scheme provided by the embodiment of the present application from the perspective of the method. It can be understood that in order to realize the above functions, the hardware structure and / or software module corresponding to the execution of each function are included. Those skilled in the art should easily realize that, in combination with the modules and algorithm steps of each example described in the embodiment disclosed in this application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0110] The embodiment of the present application can divide the functional modules of the device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0111] The classification device 70 in the embodiment of the present application is described in detail below. Figure 7 , Figure 7 This is a schematic diagram of an embodiment of a classification device 70 provided in an embodiment of the present application. The classification device 70 includes:
[0112] An acquiring unit 701 is configured to acquire a first POI data set corresponding to a target name, wherein the first POI data set includes at least one POI;
[0113] An extraction unit 702 is used to perform feature extraction on the first POI data set obtained by the acquisition unit 701 to obtain the latitude and longitude distribution features of the first entity corresponding to the POI;
[0114] A determination unit 703, configured to determine a floor distribution feature of a first entity corresponding to a POI;
[0115] The input unit 704 is used to input the longitude and latitude distribution features obtained by the extraction unit 702 and the floor distribution features obtained by the determination unit 703 into a preset classification model to obtain a classification result of the target name.
[0116] Optionally, in the above Figure 7 Based on the corresponding embodiments, please refer to Figure 8 , is a schematic diagram of another embodiment of the classification device 70 provided in an embodiment of the present application, wherein the extraction unit 702 includes:
[0117] The processing module 7021 is used to input the first POI data set into a convolutional neural network to obtain a softmax probability value of the first entity corresponding to the POI, wherein the convolutional neural network is trained using a second POI data set corresponding to the target name, and the second POI data set is different from the first POI data set;
[0118] The first determination module 7022 is used to determine the softmax probability value as the longitude and latitude distribution feature of the first entity corresponding to the POI.
[0119] Optionally, in the above Figure 8 On the basis of the corresponding embodiment, in another embodiment of the classification device 70 provided in the embodiment of the present application, the processing module 7021 may include:
[0120] A determination submodule, used to determine the latitude and longitude information of the second entity corresponding to each POI in the second POI data set;
[0121] The encoding submodule is used to perform Geohash encoding on the latitude and longitude information to obtain a first character string;
[0122] A determination submodule determines a grayscale image matrix based on a second character string and a first character string, wherein the second character string is a Geohash character string corresponding to a POI corresponding to a minimum value of longitude and latitude in the longitude and latitude information of each second entity;
[0123] The training submodule is used to train the grayscale image matrix to obtain a convolutional neural network.
[0124] Optionally, in the above Figure 8On the basis of the corresponding optional embodiment, in another embodiment of the classification device 70 provided in the embodiment of the present application, a determination submodule is used to determine a first coordinate value and a second coordinate value when the POI corresponds to the Geohash area, wherein the first coordinate value is the number of Geohash areas between the first character string and the second character string in the longitude direction, and the second coordinate value is the number of Geohash areas between the first character string and the second character string in the latitude direction; each Geohash string corresponds to a Geohash area; and a convolutional neural network is obtained based on grayscale image matrix training.
[0125] Optionally, in the above Figure 7 as well as Figure 8 On the basis of the corresponding optional embodiment, in another embodiment of the classification device 70 provided in the embodiment of the present application, the determination unit 703 includes:
[0126] The second determination module is used to determine the floor information where the POI is located;
[0127] The second determination module is used to determine the proportion of POIs in the floor corresponding to the floor information where the POI is located;
[0128] The second determining module is configured to determine the POI ratio as the floor distribution feature of the first entity corresponding to the POI when the POI ratio is within a preset range.
[0129] Optionally, in the above Figure 7 as well as Figure 8 On the basis of the corresponding optional embodiment, in another embodiment of the classification device 70 provided in the embodiment of the present application, the input unit 704 may include:
[0130] The input module is used to input the latitude and longitude distribution features and the floor distribution features into the decision tree classification algorithm to obtain the classification result of the target name.
[0131] The above describes the classification device 70 in the embodiment of the present application from the perspective of modular functional entities, and the following describes the classification device 70 in the embodiment of the present application from the perspective of hardware processing. Fig. 9 FIG. 1 is a schematic diagram of the hardware structure of the communication device in the embodiment of the present application. Fig. 9 As shown, the communication device may include:
[0132] The communication device includes at least one processor 801 , a communication line 807 , a memory 803 and at least one communication interface 804 .
[0133] The processor 801 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (server IC), or one or more integrated circuits for controlling the execution of the program of the present application.
[0134] The communication link 807 may include a pathway to transmit information between the above-mentioned components.
[0135] The communication interface 804 uses any transceiver-like device for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.
[0136] The memory 803 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, and the memory may exist independently and be connected to the processor via a communication line 807. The memory may also be integrated with the processor.
[0137] The memory 803 is used to store computer-executable instructions for executing the solution of the present application, and the execution is controlled by the processor 801. The processor 801 is used to execute the computer-executable instructions stored in the memory 803, thereby realizing the POI-based classification method provided in the above embodiment of the present application.
[0138] Optionally, the computer-executable instructions in the embodiments of the present application may also be referred to as application code, which is not specifically limited in the embodiments of the present application.
[0139] In a specific implementation, as an embodiment, the communication device may include multiple processors, such as processor 801 and processor 802 in FIG. 9. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0140] In a specific implementation, as an embodiment, the communication device may further include an output device 805 and an input device 806. The output device 805 communicates with the processor 801 and may display information in a variety of ways. The input device 806 communicates with the processor 801 and may receive user input in a variety of ways. For example, the input device 806 may be a mouse, a touch screen device, or a sensor device.
[0141] The communication device can be a general purpose device or a dedicated device. In a specific implementation, the communication device can be a desktop computer, a portable computer, a network server, an independent server, a cluster server, a wireless terminal device, an embedded device or a Fig. 9 The embodiments of the present application do not limit the type of communication device.
[0142] In the embodiment of the present application, the processor 801 included in the computer device also has the following functions:
[0143] Acquire a first POI data set corresponding to the target name, where the first POI data set includes at least one POI;
[0144] Performing feature extraction on the first POI data set to obtain latitude and longitude distribution features of a first entity corresponding to the POI;
[0145] Determining a floor distribution feature of the first entity corresponding to the POI;
[0146] The latitude and longitude distribution characteristics and the floor distribution characteristics are input into a preset classification model to obtain a classification result of the target name.
[0147] The acquisition unit 701 and the input unit 704 can be implemented by the input device 806. The extraction unit 702, the determination unit 703, the processing module 7021, the first determination module 7022, the determination submodule, the encoding submodule, the training submodule, the second determination module, the input module, etc. can be implemented by the processor 801 or the processor 802.
[0148] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0149] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0150] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the unit is only a logical function division. There may be other division methods in actual implementation, such as 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0151] 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.
[0152] 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.
[0153] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially 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, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method of each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0154] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A classification method based on points of interest (POI), characterized in that: include: Acquire a first POI data set corresponding to the target name, where the first POI data set includes at least one POI; Performing feature extraction on the first POI data set to obtain longitude and latitude distribution features of a first entity corresponding to the POI, the first entity being included in the target name, the longitude and latitude distribution features being used to characterize whether feature distribution of the first entity corresponding to the POI is intensive or discrete; Determining a floor distribution feature of the first entity corresponding to the POI; The latitude and longitude distribution characteristics and the floor distribution characteristics are input into a preset classification model to obtain a classification result of the target name, and the classification result includes the types of residential type, pure commercial district or mixed commercial district.
2. The method according to claim 1, characterized in that Performing feature extraction on the first POI data set to obtain the latitude and longitude distribution features of the first entity corresponding to the POI includes: Inputting the first POI data set into a convolutional neural network to obtain a softmax probability value of the first entity corresponding to the POI, wherein the convolutional neural network is trained using a second POI data set corresponding to the target name, and the second POI data set is different from the first POI data set; The softmax probability value is determined as the longitude and latitude distribution feature of the first entity corresponding to the POI.
3. The method according to claim 2, characterized in that The convolutional neural network is trained using a second POI data set corresponding to the target name, and includes: Determine the latitude and longitude information of a second entity corresponding to each POI in the second POI data set, where the second entity is included in the target name; Performing Geohash encoding on the latitude and longitude information to obtain a first character string; Determining a grayscale image matrix based on a second character string and the first character string, wherein the second character string is a Geohash character string corresponding to a POI corresponding to a minimum value of longitude and latitude in the longitude and latitude information of each second entity; The convolutional neural network is obtained based on the grayscale image matrix training.
4. The method according to claim 3, characterized in that Each Geohash string corresponds to a Geohash region, and determining the grayscale image matrix based on the second string and the first string includes: When the POI corresponds to the Geohash area, a first coordinate value and a second coordinate value are determined, wherein the first coordinate value is the number of Geohash areas between the first character string and the second character string in the longitude direction, and the second coordinate value is the number of Geohash areas between the first character string and the second character string in the latitude direction; A grayscale image matrix is determined based on the first coordinate value and the second coordinate value.
5. The method according to any one of claims 1 to 4, characterized in that: Determining the floor distribution characteristics of the first entity corresponding to the POI includes: Determine the floor information where the POI is located; Determine the proportion of POIs in the floor corresponding to the floor information where the POI is located; The POI proportion is determined as a floor distribution feature of the first entity corresponding to the POI.
6. The method according to any one of claims 1 to 4, characterized in that: The preset classification model includes a decision tree classification algorithm, and the latitude and longitude distribution features and the floor distribution features are input into the preset classification model to obtain the classification result of the target name, including: The latitude and longitude distribution features and the floor distribution features are input into the decision tree classification algorithm to obtain the classification result of the target name.
7. A point of interest classification device, characterized in that: include: An acquiring unit, configured to acquire a first POI data set corresponding to the target name, wherein the first POI data set includes at least one POI; an extraction unit, configured to perform feature extraction on the first POI data set obtained by the acquisition unit to obtain a latitude and longitude distribution feature of a first entity corresponding to the POI, the first entity being included in the target name, the latitude and longitude distribution feature being used to characterize whether a feature distribution of the first entity corresponding to the POI is intensive or discrete; A determination unit, configured to determine a floor distribution feature of a first entity corresponding to the POI; An input unit is used to input the latitude and longitude distribution characteristics obtained by the extraction unit and the floor distribution characteristics obtained by the determination unit into a preset classification model to obtain a classification result of the target name, wherein the classification result includes residential type, pure commercial district or mixed commercial district type.
8. The point of interest classification device according to claim 7, characterized in that: The extraction unit comprises: A processing module, configured to input the first POI data set into a convolutional neural network to obtain a softmax probability value of the first entity corresponding to the POI, wherein the convolutional neural network is trained using a second POI data set corresponding to the target name, and the second POI data set is different from the first POI data set; A determination module is used to determine the softmax probability value as the longitude and latitude distribution feature of the first entity corresponding to the POI.
9. The device according to claim 8, characterized in that The processing module comprises: A determination submodule, configured to determine the latitude and longitude information of a second entity corresponding to each POI in the second POI data set, wherein the second entity is included in the target name; An encoding submodule, used for performing Geohash encoding on the latitude and longitude information to obtain a first character string; A determination submodule, configured to determine a grayscale image matrix based on a second character string and the first character string, wherein the second character string is a Geohash character string corresponding to a POI corresponding to a minimum value of longitude and latitude in the longitude and latitude information of each second entity; A training submodule is used to obtain the convolutional neural network based on the grayscale image matrix training.
10. The device according to any one of claims 7 to 9, characterized in that The determining unit comprises: A second determination module is used to determine the floor information where the POI is located; A second determination module is used to determine the proportion of POIs in the floor corresponding to the floor information where the POI is located; The second determining module is used to determine the POI proportion as the floor distribution feature of the first entity corresponding to the POI.
11. The device according to any one of claims 7 to 9, characterized in that The preset classification model includes a decision tree classification algorithm, and the input unit includes: An input module is used to input the latitude and longitude distribution characteristics and the floor distribution characteristics into the decision tree classification algorithm to obtain the classification result of the target name.
12. A classification device, characterized in that: The classification device comprises: Input / output (I / O) interfaces, processors, and memory, The memory stores program instructions; The processor is used to execute program instructions stored in the memory to perform the method according to any one of claims 1 to 6.
13. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on a computer device, the computer device is caused to execute the method according to any one of claims 1 to 6.
14. A computer program product comprising instructions, characterized in that When the method is executed on a computer device, the computer device is caused to execute the method according to any one of claims 1 to 6.
