A method, device, system and storage medium for identifying a potential danger zone
The similarity value is calculated based on the type proportion and relative position distribution of information points to identify potentially dangerous areas, which solves the public safety problems caused by group rentals and the difficulty in grasping information, and achieves fast and accurate identification of dangerous areas.
Patent Information
- Application Number
- CN202011005249.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-22
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-09-22
AI Technical Summary
The phenomenon of group renting has led to frequent public safety incidents and conflicts in the process of urbanization. Due to the information explosion and the complexity of the urban structure, it is difficult for people to fully grasp the information of various urban areas and to quickly identify potential dangerous areas.
By obtaining the basic information of the information points in the area to be identified, after aggregation processing, the proportion distribution and relative position distribution of the information point types are calculated, and the similarity value between the area to be identified and the preset reference area is calculated. If the similarity value is greater than the preset threshold, then Determined as a potentially hazardous area.
A method of quickly and accurately identifying potentially dangerous areas is realized. Regional characteristics are described through the type proportion distribution and relative position distribution of information points, which improves the efficiency and accuracy of identifying potentially dangerous areas.
Smart Images

Figure CN112132460B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data analysis technology, and in particular to a potential danger area identification method, device, system and storage medium. Background Art
[0002] Group renting is a "chronic disease" in my country's urbanization process. Group renting is a model that changes the original layout of the house, divides the room into multiple compartments and rents them out by room or bed. This has led to the phenomenon of many people living in a small space, which is easy to cause public safety incidents, various disputes and conflicts. Although various places have introduced measures, and Beijing, Shanghai, Hangzhou and other places have repeatedly carried out rectification actions on the group renting phenomenon, the group renting phenomenon still exists in large numbers.
[0003] With the popularity of mobile devices, more and more location data is generated, such as Point of Interest (POI), traffic index, etc. Through this information, people can understand the basic situation of a specific area, such as whether it is livable, whether there are safety hazards, whether it is suitable for opening a store, etc. However, with the explosion of information and the increasing complexity of urban structures, people are usually only familiar with a small part of the area around where they live, and it is difficult to grasp the information of every area in the entire city. Summary of the invention
[0004] In order to solve the problems existing in the prior art, at least one embodiment of the present invention provides a potential danger zone identification method, device, system and storage medium.
[0005] In a first aspect, an embodiment of the present invention provides a method for identifying a potential danger zone, the method comprising:
[0006] Obtaining basic information of each information point in the area to be identified, and aggregating the information points by type according to the basic information;
[0007] Obtaining information point type weight distribution and information point relative position distribution of each type of information point in the to-be-identified area according to the basic information;
[0008] Obtaining a similarity value between the area to be identified and a preset reference area according to the information point weight distribution and the information point relative position distribution;
[0009] The areas to be identified whose similarity values are greater than a preset threshold are regarded as potential danger areas.
[0010] In combination with the first aspect, in a first embodiment of the first aspect, obtaining the information point type weight distribution and the information point relative position distribution of each type of information point in the to-be-identified area according to the basic information includes:
[0011] Obtaining, according to the basic information, an importance evaluation value of each type of information point in the to-be-identified area within the to-be-identified area;
[0012] Obtaining an information point type weight vector according to the importance evaluation value of each type of the information point in the to-be-identified area as the information point type weight distribution;
[0013] Obtaining the relative distance between each of the information points and each preset position in the area to be identified according to the basic information;
[0014] A relative position distribution vector of each type of the information point in the to-be-identified area is obtained according to the relative spacing as the relative position distribution of the information point.
[0015] In combination with the first embodiment of the first aspect, in the second embodiment of the first aspect, obtaining the importance evaluation value of each type of information point in the to-be-identified area according to the basic information includes:
[0016] Obtaining, according to the basic information, a ratio of the number of the information points of any type to the number of all the information points;
[0017] According to the basic information, the number of the to-be-recognized regions including the information points of any type is obtained in the pre-stored to-be-recognized region candidate set; wherein the to-be-recognized region candidate set includes at least two to-be-recognized regions;
[0018] Obtaining an importance evaluation value of the information point of any type in the area to be identified according to the proportion of the number of the information points of any type in all the information points, the number of areas to be identified that include the information points of any type in the candidate set of areas to be identified, and the number of areas to be identified in the candidate set of areas to be identified;
[0019] The importance evaluation value of each type of information point in the to-be-identified area is obtained in turn.
[0020] In combination with the second embodiment of the first aspect, in the third embodiment of the first aspect, obtaining the importance evaluation value of the information point of any type in the area to be identified according to the proportion of the number of the information points of any type in all the information points, the number of areas to be identified including the information points of any type, and the number of areas to be identified in the candidate set of areas to be identified, includes:
[0021] The importance evaluation value is calculated by the following formula:
[0022]
[0023]
[0024] CF-IRF ij =CF ij ×IRF i ;
[0025] Among them, CF-IRF ij is the importance evaluation value of any information point of type i in the to-be-identified area j; ij is the number of information points of any type i in the to-be-identified area j; j is the type of information point in the area j to be identified, n kj is the number of information points of type k in the to-be-identified area j, a is the first preset scaling constant; log x is the logarithm with a preset constant x greater than 1, N total is the number of regions to be identified in the candidate set of regions to be identified, D i is the number of areas to be identified that include information points of any type i in the candidate set of areas to be identified, and b is a second preset scaling constant.
[0026] In combination with the first embodiment of the first aspect, in a fourth embodiment of the first aspect, obtaining a relative position distribution vector of each type of information point in the to-be-identified area according to the relative spacing includes:
[0027] According to the relative distance between each of the information points and each preset position in the area to be identified, an average value of the relative distance between any type of information point and each preset position in the area to be identified is obtained;
[0028] A relative position distribution vector is formed according to an average value of relative distances between all information points of any type and each preset position of the to-be-identified area;
[0029] The relative position distribution vector of each type of the information point in the area to be identified is obtained in turn.
[0030] In combination with the fourth embodiment of the first aspect, in a fifth embodiment of the first aspect, obtaining the average value of the relative distances between all information points of any type and each preset position in the area to be identified based on the relative distances between each of the information points and each preset position in the area to be identified includes:
[0031] The average value of the relative distances between all information points of any type and each preset position of the area to be identified is calculated by the following calculation formula:
[0032]
[0033] Wherein, d is the average value of the relative distance between the information point of any type i and the preset position h in the area to be identified j, n ij is the number of information points of any type i in the area to be identified j, P is the set of all information points of any type i in the area to be identified j, p is the information point of any type i in the area to be identified j, and dist(p,h) is the relative distance between the information point p and the preset position h.
[0034] In combination with the first embodiment of the first aspect, in a sixth embodiment of the first aspect, obtaining the similarity value between the to-be-identified area and the preset reference area according to the information point weight distribution and the information point relative position distribution includes:
[0035] Comparing the information point type weight distribution of the to-be-identified area with the information point type weight distribution of a preset reference area to obtain a first similarity value;
[0036] Comparing the relative position distribution of the information points in the to-be-identified area with the relative position distribution of the information points in a preset reference area to obtain a second similarity value;
[0037] A third similarity value between the to-be-identified region and the preset reference region is obtained according to the first similarity value and the second similarity value as a similarity value between the to-be-identified region and the preset reference region.
[0038] In combination with the sixth embodiment of the first aspect, in a seventh embodiment of the first aspect, the identification method further includes:
[0039] Obtaining information of surrounding persons in the area to be identified;
[0040] Obtaining characteristic distribution of surrounding persons according to the surrounding persons information;
[0041] Comparing the feature distribution of the people around the area to be identified with the feature distribution of the people around a preset reference area to obtain a fourth similarity value;
[0042] A fifth similarity value between the to-be-identified region and the preset reference region is obtained according to the first similarity value, the second similarity value, and the fourth similarity value as a similarity value between the to-be-identified region and the preset reference region.
[0043] In combination with the seventh embodiment of the first aspect, in an eighth embodiment of the first aspect, obtaining the characteristic distribution of surrounding persons according to the surrounding person information includes:
[0044] According to the surrounding personnel information, obtain the ratio of different genders, the ratio of each preset age group and the ratio of each preset income group of the surrounding personnel in the to-be-identified area;
[0045] A surrounding personnel feature vector is formed according to the proportion of people of different genders, the proportion of people of each age group and the proportion of people of each preset income group in the surrounding area to be identified, as the surrounding personnel feature distribution of the area to be identified.
[0046] In combination with the seventh embodiment of the first aspect, in a ninth embodiment of the first aspect, the identification method further includes:
[0047] Obtain the average housing price of the area to be identified;
[0048] Comparing the average housing price of the to-be-identified area with the average housing price of the preset reference area to obtain a sixth similarity value;
[0049] A seventh similarity value between the region to be identified and the preset reference region is obtained according to the first similarity value, the second similarity value, the fourth similarity value and the sixth similarity value as a similarity value between the region to be identified and the preset reference region.
[0050] In combination with the ninth embodiment of the first aspect, in a tenth embodiment of the first aspect, comparing the average housing price of the to-be-identified area with the average housing price of a preset reference area to obtain a sixth similarity value includes:
[0051] Calculating the distance measure between the average housing price of each area to be identified in the pre-stored candidate set of areas to be identified and the average housing price of the preset reference area; the candidate set of areas to be identified includes at least two areas to be identified;
[0052] The sixth similarity value is calculated by the following formula:
[0053]
[0054] Among them, Sim(R q ,R j ) is the sixth similarity value between the region to be identified j and the preset reference region, E qj is the distance measure between the average housing price of the area to be identified j and the average housing price of the preset reference area, E min is the minimum value of the distance measurement between the average housing price of all the areas to be identified and the average housing price of the preset reference area, E max The maximum value of the distance measurement between the average housing price of all the areas to be identified and the average housing price of the preset reference area.
[0055] In combination with the first aspect or the first, second, third, fourth, fifth, sixth, seventh, eighth, ninth or tenth embodiment of the first aspect, in an eleventh embodiment of the first aspect, before obtaining the similarity value between the area to be identified and the preset reference area according to the information point weight distribution and the information point relative position distribution, the identification method further includes:
[0056] Obtaining the type proportion of each type of information point in the area to be identified according to the type proportion distribution of the information points in the area to be identified;
[0057] Sort the category proportions in descending order, and obtain the categories of information points corresponding to the category proportions of the top preset rankings as comparison categories;
[0058] Determine whether the types of information points in the preset reference area include all the comparison types;
[0059] If yes, the step of obtaining a similarity value between the area to be identified and the preset reference area is performed according to the information point weight distribution and the information point relative position distribution;
[0060] If not, the to-be-recognized area is removed from the pre-stored candidate set of to-be-recognized areas.
[0061] In a second aspect, an embodiment of the present invention provides a device for identifying a potential danger zone, the device comprising:
[0062] An acquisition unit, used to acquire basic information of each information point in the area to be identified;
[0063] A first processing unit, configured to aggregate the information points by type according to the basic information;
[0064] A second processing unit is used to obtain the information point type weight distribution and the information point relative position distribution of each type of information point in the to-be-identified area according to the basic information;
[0065] A third processing unit, configured to obtain a similarity value between the to-be-identified area and a preset reference area according to the information point weight distribution and the information point relative position distribution;
[0066] The fourth processing unit 15 is used to regard the to-be-identified area whose similarity value is greater than a preset threshold as a potential danger area.
[0067] In a third aspect, an embodiment of the present invention provides a potential danger zone identification system, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0068] Memory, used to store computer programs;
[0069] The processor is used to implement the potential danger area identification method described in any embodiment of the first aspect when executing the program stored in the memory.
[0070] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the potential danger area identification method described in any embodiment of the first aspect.
[0071] Compared with the prior art, the above-mentioned technical scheme of the present invention has the following advantages: the embodiment of the present invention obtains the information point type weight distribution and the information point relative position distribution of each type of information point in the area to be identified through the basic information of the information points, determines the similarity value between the area to be identified and the preset reference area according to the information point type weight distribution and the information point relative position distribution, and regards the area to be identified with a similarity value greater than a preset threshold as a potential danger area. This scheme describes the characteristics of the area to be identified through the type weight distribution and the relative position distribution of the information points in the area to be identified, and determines whether the area to be identified is a potential danger area based on the characteristics, thereby realizing fast and accurate identification of potential danger areas. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 It is a flowchart of a method for identifying a potential danger zone provided by an embodiment of the present invention;
[0073] Figure 2 is a flowchart of a method for identifying a potential danger zone provided by another embodiment of the present invention;
[0074] Figure 3 This is a flowchart of a method for identifying a potential danger zone provided by another embodiment of the present invention;
[0075] Figure 4 This is a second flow chart of a method for identifying a potential danger zone provided by another embodiment of the present invention;
[0076] Figure 5 This is a third flow chart of a method for identifying a potential danger zone provided by another embodiment of the present invention;
[0077] Figure 6 This is a fourth flow chart of a method for identifying a potential danger zone provided by another embodiment of the present invention;
[0078] Figure 7 This is a fifth flow chart of a method for identifying a potential danger zone provided by another embodiment of the present invention;
[0079] Figure 8This is a sixth flow chart of a method for identifying a potential danger zone provided by another embodiment of the present invention;
[0080] Fig. 9 FIG7 is a flowchart of a method for identifying a potential danger zone provided by another embodiment of the present invention;
[0081] Fig.10 FIG8 is a flowchart of a method for identifying a potential danger zone provided by another embodiment of the present invention;
[0082] Fig.11 is a schematic structural diagram of a potential danger zone identification device provided by another embodiment of the present invention;
[0083] Fig.12 It is a schematic diagram of the structure of a potential danger area identification system provided by another embodiment of the present invention. DETAILED DESCRIPTION
[0084] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.
[0085] like Figure 1 As shown, an embodiment of the present invention provides a method for identifying a potential danger zone. Figure 1 , the identification method comprises the following steps:
[0086] S11. Obtain basic information of each information point in the area to be identified, and aggregate the information points by type based on the basic information.
[0087] In this embodiment, POI is the abbreviation of "Point of Information", which can be translated into "information point" in Chinese. In a geographic information system, a POI can be a house, a shop, a mailbox, a bus stop, etc. Each POI contains four aspects of information: name, category, coordinates, and classification. Comprehensive POI information is essential information for enriching navigation maps. Timely POI information points can remind users of detailed information about road branches and surrounding buildings, and can also facilitate navigation to find the places you need, and choose the most convenient and unobstructed road for route planning. Therefore, the number of POI conditions on the navigation map directly affects the usability of navigation. Information points are classified into primary and secondary categories, and each category has a corresponding industry code and name. It is convenient to record and distinguish information collection.
[0088] In this embodiment, after obtaining the basic information of each information point in the area to be identified, the category to which the information point belongs can be determined through the basic information, such as category information such as transportation stations, factories, shops, community buildings, self-built buildings, etc., and the various information points can be aggregated and classified by category so that information points of the same category can be aggregated.
[0089] S12. Obtaining information point type weight distribution and information point relative position distribution of each type of information point in the area to be identified according to the basic information.
[0090] In this embodiment, based on the clustering processing results of the information points and the basic information of each information point, the weight distribution and relative position distribution of each type of information point in the area to be identified are obtained. For example, the weight distribution can be the weight of the number of each type of information points in the area to be identified, or it can be the weight obtained according to the importance of each type of information points in the area to be identified, or it can be the weight obtained according to the area occupied by each type of information points in the area to be identified. The relative position distribution can be the relative position situation between different types of information points, or it can be the relative position situation of the information points relative to a preset position, or it can be obtained according to the position discreteness of each type of information points.
[0091] In this embodiment, the types and structures of information points around communities with group rental housing are often very similar. For example, there is a greater possibility of group rental housing around transportation hubs and large factories, and there are often many small life service businesses around group rental housing, which are all within the scope of attention of information points. In this solution, by analyzing the basic information of information points, the proportion distribution and relative position distribution of information points in the area to be identified are obtained, and the description of information points in the area to be identified is used as the feature of the area to be identified.
[0092] S13. Obtaining a similarity value between the area to be identified and the preset reference area according to the information point weight distribution and the information point relative position distribution.
[0093] In this embodiment, the preset reference area is the same as the area to be identified, and the information point weight distribution and the relative position distribution of the information points in the preset reference area are obtained by acquiring the basic information of the information points in the preset reference area. The preset reference area in this scheme can be an already determined potential danger area, which can be selected by the user on the map, or the area near the shared rental area can be directly obtained as a reference area.
[0094] In this embodiment, the similarity values of the two areas are obtained by comparing the information point weight distribution and the information point relative position distribution. The higher the part where the information point weight distribution and the information point relative position distribution are consistent, the higher the similarity value. Whether the data distribution is similar can be determined by, for example, calculating the variance, mean value, and mean square error. For example, the smaller the difference in the mean value and the difference in the variance value, the more similar the data distribution is.
[0095] S14. The to-be-identified area whose similarity value is greater than a preset threshold is regarded as a potential danger area.
[0096] In this embodiment, when the similarity value is greater than a preset threshold, it is determined that the area to be identified is similar to the preset reference area, and the area to be identified is regarded as a potential danger area.
[0097] like Figure 2 As shown, an embodiment of the present invention provides a method for identifying a potential danger zone. Figure 2 , the identification method comprises the following steps:
[0098] S21. Obtain basic information of each information point in the area to be identified, and aggregate the information points by type based on the basic information.
[0099] For details of step S21, please refer to the description of step S11, which will not be repeated here in this embodiment.
[0100] S22. Obtaining an importance evaluation value of each type of information point in the area to be identified according to the basic information.
[0101] In this embodiment, the importance evaluation value of each type of information point in the area to be identified is obtained based on the basic information of the information points in the area to be identified. For example, the importance evaluation value of the information point of each type in the area to be identified can be obtained based on the number of information points of each type in the area to be identified. The larger the number, the more important the information point of this type may be. It can also be based on whether the type of information point is only owned by the area to be identified. If only the area to be identified has information points of this type, it can also be indirectly explained that for this area to be identified, this type of information point is very important. Alternatively, the fewer the number of areas to be identified that contain a certain type of information point, it can also be explained that the information points containing this type are important to the corresponding area to be identified. Specifically, the importance evaluation value in this step can be obtained based on the basic information by setting a correspondence table between the proportion of the number of information points in the number of all information points and the importance evaluation value.
[0102] S23. Obtain an information point type weight vector according to the importance evaluation value of each type of information point in the to-be-identified area as the information point type weight distribution.
[0103] In this embodiment, the importance evaluation values of each type of information point in the to-be-identified area are used as elements of a vector to form an information point type weight vector, and the vector is used as the information point type weight distribution.
[0104] S24. Obtaining the relative distance between each information point and each preset position in the area to be identified according to the basic information.
[0105] In this embodiment, the relative distance between the information point and each preset position in the area to be identified is obtained based on the basic information of the information point. The preset position can be pre-set by the user or automatically generated by the system. However, the preset position should be in the same position in each area to be identified to ensure that the reference position of the obtained result is consistent. For example, the preset positions selected in the first area to be identified are the upper left corner, upper right corner, lower left corner, lower right corner and center point of the area to be identified, then the preset positions selected in the reference area should also be the above five points, and they should also be points at corresponding positions in other areas to be identified.
[0106] S25. Obtain the relative position distribution vector of each type of information point in the to-be-identified area according to the relative spacing as the relative position distribution of the information point.
[0107] In this embodiment, the relative position distribution of each type of information point in the area to be identified is obtained based on the relative spacing obtained in the above steps. The average value of the relative spacing of each type of information point can be calculated as an element of a vector to form the above vector. The variance value of the relative spacing of each type of information can be calculated as an element of a vector to form a relative position distribution vector. The relative spacing can also be directly used as an element of a vector to form a relative position distribution vector.
[0108] By combining the proportion of each type of information point in the area to be identified obtained in the above steps and the relative position distribution vector of each type of information point in the area to be identified obtained in this step, it is possible to determine which type of information point in the area to be identified has a larger proportion and the position of each type of information point in the area to be identified. The above two vectors are constructed by extracting data from the area to be identified to represent the characteristics of various information points in the area to be identified.
[0109] S26. Obtain a similarity value between the area to be identified and the preset reference area according to the information point weight distribution and the information point relative position distribution.
[0110] For details of step S26, please refer to the description of step S13, which will not be repeated here in this embodiment.
[0111] S27: The to-be-identified area with a similarity value greater than a preset threshold is regarded as a potential danger area.
[0112] For details of step S26, please refer to the description of step S14, which will not be repeated here in this embodiment.
[0113] In this embodiment, if Figure 3 As shown, S23 obtains the importance evaluation value of each type of information point in the to-be-identified area according to the basic information, which may include the following steps:
[0114] S31. Obtain, based on the basic information, a ratio of the number of any type of information points to the number of all information points.
[0115] In this embodiment, the proportion of the number of any type of information points in the number of all information points is obtained through the basic information of the information points. Simply put, when the number of information points of a certain type is large, it can be reflected from the side that the information points of this type are more important to the area to be identified, and the more important information points can better represent the area to be identified and are used to represent the characteristics of the area to be identified.
[0116] In this embodiment, since the density of information points in different areas to be identified is inconsistent, just like in a shared housing area, shared housing in an area with higher housing prices is more dense, while shared housing in an area with lower housing prices is not very dense, and the number of stores in shared housing areas with different densities will also change with the change of people. Therefore, in this scheme, by obtaining the proportion of the number of any type of information points in the number of all information points, it is possible to express the "quantity" of any type of information points in the area to be identified, or to express the density of any type of information points in the area to be identified.
[0117] S32. According to the basic information, in the pre-stored candidate set of regions to be identified, the number of regions to be identified that include any type of information points is obtained; wherein the candidate set of regions to be identified includes at least two regions to be identified.
[0118] In this embodiment, since the number of types of each information point in different areas has a certain degree of randomness, if a certain type of information point exists in a large number in each area to be identified, such as trash cans, trees, and guardrails, although the number of such information points is large in the area to be identified, such information points cannot explain the characteristics of the area to be identified. Therefore, in this scheme, the number of areas to be identified that include any type of information point in the previous step is also obtained from the candidate set of areas to be identified. If the number of areas to be identified that include any type of information point is large, it can also be indirectly explained that any type of information point is not very important to the area to be identified, that is, any type of information point cannot clearly point to a certain characteristic of the area to be identified.
[0119] In this embodiment, the pre-stored candidate set of regions to be identified may be regions that need to be identified that are freely selected by the user, or may be regions that are freely selected by the system, and this solution does not impose any special limitation on this.
[0120] S33. Obtain an importance evaluation value of any type of information point in the area to be identified based on the proportion of the number of any type of information points in all information points, the number of areas to be identified that include any type of information points in the candidate set of areas to be identified, and the number of areas to be identified in the candidate set of areas to be identified.
[0121] In this embodiment, by summarizing the proportion values obtained in the above steps, the number of areas to be identified including any type of information points and the total number of areas to be identified, the importance evaluation value of the information point of any type to the area to be identified is obtained. For example, a corresponding first evaluation value table can be set in advance corresponding to the proportion values, and a corresponding second evaluation value table can be set corresponding to the value obtained by dividing the number of areas to be identified including any type of information points by the total number of areas to be identified. The corresponding first evaluation value and the second evaluation value are obtained according to the actually obtained proportion values, and the first evaluation value is added or multiplied by the second evaluation value to obtain the above-mentioned importance evaluation value. It is also possible to analyze the importance of the information points to the area to be identified and determine that the size of the proportion value is directly proportional to the importance and the number of areas to be identified including any type of information points is inversely proportional to the importance to obtain the above-mentioned importance evaluation value.
[0122] S34, sequentially obtaining the importance evaluation value of each type of information point in the area to be identified.
[0123] In this embodiment, according to the scheme of the above steps, the importance evaluation value of each type of information point in the area to be identified is obtained. The steps in this step can be performed in any order. Specifically, the importance evaluation value of each type of information point in the area to be identified can be obtained in a single operation, or in a concurrent manner. The importance evaluation value of each type of information point in the area to be identified is obtained by the importance of each type of information point to the area to be identified to complete the characteristic description of the area to be identified, so as to ensure the accuracy of the identification of the area to be identified.
[0124] Specifically, in step S33, the importance evaluation value can be calculated by the following formula:
[0125]
[0126]
[0127] CF-IRF ij =CF ij ×IRF i ;
[0128] Among them, CF-IRF ij is the importance evaluation value of any information point of type i in the area to be identified j; n ij is the number of information points of any type i in the area to be identified j; M j is the type of information point in the area j to be identified, n kj is the number of information points of type k in the to-be-identified area j, a is the first preset scaling constant; log x is the logarithm with a preset constant x greater than 1, N total is the number of regions to be identified in the candidate set of regions to be identified, D i is the number of areas to be identified that include information points of any type i in the candidate set of areas to be identified, and b is a second preset scaling constant.
[0129] In this embodiment, the ratio of the number of information points of any type to the number of all information points is obtained according to the basic information. However, since the ratio is a percentage value, and in this solution, the relationship between the number of to-be-identified areas including information points of any type k and the total number of to-be-identified areas in the candidate set of to-be-identified areas and importance is calculated in logarithmic form. Therefore, in order to prevent the two values from having a large difference in influence on the final importance evaluation value due to inconsistent orders of magnitude, the first preset scaling constant and the second preset scaling constant are set so that the CF calculated in the above formula ij and IRF i Reasonable.
[0130] In this embodiment, M j is the type of information point in the area j to be identified, n kj is the number of information points of type k in the to-be-identified area j, which can be implemented by numerically numbering the types of information points in the to-be-identified area j. The calculation can of course also be done by The number of all types of information points in the area j to be identified is counted in the form of.
[0131] In this embodiment, if Figure 4 As shown, obtaining the relative position distribution vector of each type of information point in the to-be-identified area according to the relative spacing in S25 may include the following steps:
[0132] S41. Obtain an average value of the relative distances between any type of information point and each preset position in the area to be identified based on the relative distances between each information point and each preset position in the area to be identified.
[0133] In this embodiment, since the relative distance between the information point and the preset position can be obtained according to the basic information of the information point, for any type of information point, the average value of the relative distances between all information points of the type and a preset position can also be calculated.
[0134] S42. Construct a relative position distribution vector according to the average value of the relative distances between all information points of any type and each preset position of the area to be identified.
[0135] In this embodiment, if there are five preset positions, the final average values of the relative spacing are five. The five data are used as elements of a vector to form a relative position distribution vector to represent the position distribution of this type of information point in the area to be identified.
[0136] S43, sequentially obtaining the relative position distribution vector of each type of information point in the area to be identified.
[0137] According to the above steps, the relative position distribution vectors of each type of information points in the area to be identified are obtained respectively to describe the distribution of different types of information points in the area to be identified.
[0138] In this embodiment, the method of sequentially obtaining the relative position distribution vector of each type of information point in the to-be-identified area can refer to the description of the above steps, and this solution will not be repeated here.
[0139] Specifically, in this implementation, S41 can be calculated by the following calculation formula to obtain the average value:
[0140]
[0141] Where d is the average relative distance between the information point of any type i and the preset position h in the area to be identified j, n ij is the number of information points of any type i in the area to be identified j, P is the set of all information points of any type i in the area to be identified j, p is the information point of any type i in the area to be identified j, and dist(p,h) is the relative distance between the information point p and the preset position h.
[0142] like Figure 5 As shown, the embodiment of the present invention provides a method for identifying a potential danger zone, referring to Figure 5 As shown, the identification method includes the following steps:
[0143] S51, obtaining basic information of each information point in the area to be identified, and performing aggregation processing on the information points by type according to the basic information.
[0144] For details of step S51, please refer to the description of step S11, which will not be repeated here in this embodiment.
[0145] S52: Obtain information point type weight distribution and information point relative position distribution of each type of information point in the area to be identified according to the basic information.
[0146] For details of step S52, please refer to the description of step S11, which will not be repeated here in this embodiment.
[0147] S53: Compare the information point type proportion distribution of the to-be-identified area with the information point type proportion distribution of a preset reference area to obtain a first similarity value.
[0148] In this embodiment, the Euclidean distance of the information point proportions of the same type in the area to be identified and the preset reference area can be calculated. The smaller the Euclidean distance, the more similar the two are. Similarity values are obtained according to the Euclidean distances corresponding to the preset similarity correspondence table, and then accumulated to obtain a first similarity value. Information points of a type that exist in the area to be identified but not in the preset reference area are not considered in their similarity. Alternatively, a preset constant can be set as an influencing factor and accumulated into the first similarity value. It can also be transformed into a type weight vector based on the type weight distribution, and the cosine value between the vectors is calculated to realize fast calculation of the similarity value. The larger the cosine value, the more similar the two are.
[0149] In combination with the above embodiment, the weight distribution of the information point gravity is a vector, and the Euclidean distance or cosine value of two vectors can be directly calculated to obtain the first similarity value.
[0150] S54: Compare the relative position distribution of the information points in the area to be identified with the relative position distribution of the information points in a preset reference area to obtain a second similarity value.
[0151] In this embodiment, as above, the second similarity value may be calculated in the same manner as the first similarity value.
[0152] The relative position distribution of information points includes the relative position distribution vector of each type of information point in the area to be identified. Therefore, the Euclidean distance or cosine value of the relative position distribution vector of each type of information point can be calculated separately according to the type of information point, and then the obtained results are accumulated to obtain the second similarity value.
[0153] S55 . Obtain a third similarity value between the region to be identified and the preset reference region according to the first similarity value and the second similarity value, as the similarity value between the region to be identified and the preset reference region.
[0154] In this embodiment, the first similarity value and the second similarity value may be added to obtain a third similarity value. The first similarity value and the second similarity value may be normalized and then added to obtain the third similarity value. Weight values may be set according to the importance of the data of the first similarity value and the second similarity value, and then weighted addition may be performed to obtain the third similarity value.
[0155] Specifically, the first similarity value and the second similarity value calculated may be linearly weighted to obtain a similarity value between the to-be-identified region and the preset reference region, as follows:
[0156] S3 = W1 × S1 + W2 × S2;
[0157] Wherein, S3 is the third similarity value, S1 is the first similarity value, S2 is the second similarity value, W1 is the weight of the first similarity, and W2 is the weight of the second similarity; wherein, W1+W2=1.
[0158] like Figure 6 As shown, an embodiment of the present invention provides a method for identifying a potential danger zone. Figure 5 Compared with the embodiment shown, the difference is that the identification method further includes the following steps:
[0159] S61. Obtain information about surrounding persons in the area to be identified.
[0160] In this embodiment, based on the proportion and relative position of the information points in the area to be identified, the characteristic distribution of the surrounding people in the area to be identified is obtained. The data can be obtained through personnel registration information, or obtained by the street community, or obtained by face recognition through a camera. This solution does not specifically limit this.
[0161] S62. Obtain characteristic distribution of surrounding persons according to the information of surrounding persons.
[0162] In this embodiment, the surrounding personnel characteristics released may be the gender ratio characteristics of the surrounding personnel. For example, due to the poor environment of shared housing, women may generally choose to rent a residential area or an apartment when choosing a house to rent. Therefore, the gender ratio may also reflect whether the area to be identified is the area where the shared housing is located. It may also be the age group of the surrounding personnel, or the income status of the surrounding personnel and other characteristics.
[0163] S63: Compare the feature distribution of people around the area to be identified with the feature distribution of people around a preset reference area to obtain a fourth similarity value.
[0164] In this embodiment, combined with the above description, the difference in gender ratio can be divided by the gender ratio of the preset reference area to obtain a relative deviation value as the fourth similarity value. The difference in the number of people in each age group can be divided by the number of people in the corresponding age group in the preset reference area to obtain a relative deviation value as the fourth similarity value. The difference in the average income of surrounding people can also be divided by the average income in the preset reference area to obtain a relative deviation value as the fourth similarity value.
[0165] S64. Obtain a fifth similarity value between the region to be identified and the preset reference region according to the first similarity value, the second similarity value, and the fourth similarity value as a similarity value between the region to be identified and the preset reference region.
[0166] In this embodiment, the fourth similarity in this embodiment is combined with the first similarity value and the second similarity value calculated in the above embodiment to obtain a fifth similarity value, which is used as the similarity value between the area to be identified and the preset reference area to improve the accuracy of identifying the area to be identified.
[0167] In this embodiment, the first similarity value, the second similarity value, and the fourth similarity value that have been calculated may be linearly weighted to obtain a similarity value between the region to be identified and the preset reference region, as follows:
[0168] S5 = W1 × S1 + W2 × S2 + W4 × S4;
[0169] Among them, S5 is the fifth similarity value, S1 is the first similarity value, S2 is the second similarity value, S4 is the fourth similarity value, W1 is the weight of the first similarity, W2 is the weight of the second similarity, and W4 is the weight of the fourth similarity; wherein W1+W2+W4=1.
[0170] In this embodiment, specifically, obtaining the characteristic distribution of surrounding persons according to the surrounding persons information in S62 includes the following steps:
[0171] S71. Obtain the percentage of the number of people of different genders, the percentage of the number of people of each preset age group, and the percentage of the number of people of each preset income group in the surrounding personnel in the area to be identified based on the information of the surrounding personnel.
[0172] S72. According to the percentage of the number of people of different genders, the percentage of the number of people of each age group, and the percentage of the number of people of each preset income group in the surrounding area to be identified, a surrounding personnel feature vector is formed as the surrounding personnel feature distribution of the area to be identified.
[0173] In this embodiment, the characterization of the personnel is completed by obtaining the gender, age and income information of the surrounding personnel in the area to be identified, so as to represent the situation of the personnel in the area to be identified.
[0174] like Figure 8 As shown, an embodiment of the present invention provides a method for identifying a potential danger zone. Figure 8 ,and Figure 6 Compared with the identification method shown in the figure, the difference is that the identification method further includes the following steps:
[0175] S81. Obtain the average housing price of the area to be identified.
[0176] In this embodiment, since the housing prices in a shared housing area and the characteristics of users in the area often have certain similarities, the housing prices and the basic information of users in the area can also be used to compare the similarities between different areas.
[0177] Specifically, the average housing price of the area to be identified can be obtained by obtaining the average housing price of each community, shop and commercial residence in the area to be identified as the average housing price of the area to be identified. For example, the average housing price is calculated by the following formula:
[0178]
[0179] Where V is the average house price in the area to be identified, A is the set of house prices of all types of houses in the area to be identified, |A| is the number of elements in set A, and v a is the housing price value of element a in set A.
[0180] S82: Compare the average housing price of the area to be identified with the average housing price of a preset reference area to obtain a sixth similarity value.
[0181] In this embodiment, the housing price level of the area to be identified is determined by comparing the average housing price of the area to be identified with the average housing price of a preset reference area, wherein, in order to ensure the accuracy of the similarity, the area to be identified and the preset reference area should be areas in cities with similar housing price levels. Alternatively, the sixth similarity value can be obtained based on the ratio of the average housing price of the area to be identified to the average housing price of the city where the area to be identified is located and the ratio of the average housing price of the preset reference area to the average housing price of the city where the preset reference area is located.
[0182] Among them, the sixth similarity value can be obtained by directly calculating the relative deviation value of the two average housing prices, for example, the difference between the average housing price of the area to be identified and the average housing price of the preset reference area is divided by the average housing price of the preset reference area to obtain the relative deviation value, and the similarity value is obtained according to the relative deviation value. The smaller the relative deviation value, the higher the similarity. Alternatively, similar to the above situation, the difference between the ratio of the average housing price of the area to be identified and the average housing price of the city where the area to be identified is located, and the ratio of the average housing price of the preset reference area to the average housing price of the city where the preset reference area is located can be divided by the ratio of the average housing price of the preset reference area to the average housing price of the city where the preset reference area is located to obtain the relative deviation value, and the similarity value is obtained according to the relative deviation value. The smaller the relative deviation value, the higher the similarity, so as to achieve the comparison of housing prices of the areas to be identified and the preset reference areas in different cities or regions.
[0183] S83. Obtain a seventh similarity value between the region to be identified and the preset reference region according to the first similarity value, the second similarity value, the fourth similarity value, and the sixth similarity value as a similarity value between the region to be identified and the preset reference region.
[0184] In this embodiment, the sixth similarity in this embodiment is combined with the first similarity value, the second similarity value, and the fourth similarity calculated in the above embodiment to obtain a seventh similarity value, which is used as the similarity value between the area to be identified and the preset reference area to improve the accuracy of identifying the area to be identified.
[0185] In this embodiment, the first similarity value, the second similarity value, the fourth similarity value, and the sixth similarity value that have been calculated may be linearly weighted to obtain a similarity value between the region to be identified and the preset reference region, as follows:
[0186] S7=W1×S1+W2×S2+W4×S4+W6×S6;
[0187] Among them, S7 is the seventh similarity value, S1 is the first similarity value, S2 is the second similarity value, S4 is the fourth similarity value, S6 is the sixth similarity value, W1 is the weight of the first similarity, W2 is the weight of the second similarity, W4 is the weight of the fourth similarity, and W6 is the weight of the sixth similarity; among them, W1+W2+W4+W6=1.
[0188] In this embodiment, the sixth similarity in this embodiment can also be combined with the first similarity value and the second similarity value calculated in the above embodiment to obtain a similarity value as the similarity value between the area to be identified and the preset reference area, thereby realizing identification of the area to be identified.
[0189] In this embodiment, in S82, comparing the average housing price of the area to be identified with the average housing price of the preset reference area to obtain the sixth similarity value may include the following steps:
[0190] S91, calculating the distance measure between the average housing price of each area to be identified in the pre-stored candidate set of areas to be identified and the average housing price of a preset reference area; the candidate set of areas to be identified includes at least two areas to be identified.
[0191] S92. Calculate a sixth similarity value using the following formula:
[0192]
[0193] Among them, Sim(R q ,R j ) is the sixth similarity value between the region to be identified j and the preset reference region, E qj is the distance measure between the average housing price of the area to be identified j and the average housing price of the preset reference area, E min is the minimum value of the distance measurement between the average housing price of all the areas to be identified and the average housing price of the preset reference area, E max It is the maximum value of the distance measurement between the average housing price of all areas to be identified and the average housing price of the preset reference area.
[0194] In this embodiment, the distance measurement between the average housing prices of the reference area and the different areas to be identified is obtained, and the housing price similarity is normalized by min-max to facilitate the calculation of the similarity calculated based on other data.
[0195] like Fig.10 As shown, the embodiment of the present invention provides a method for identifying a potential danger zone, referring to Fig.10 , the identification method comprises the following steps:
[0196] S101, obtaining basic information of each information point in the area to be identified, and performing aggregation processing on the information points by type according to the basic information.
[0197] For details of step S101, please refer to the description of step S11, which will not be repeated here in this embodiment.
[0198] S102: Obtain information point type weight distribution and information point relative position distribution of each type of information point in the area to be identified according to the basic information.
[0199] For details of step S102, please refer to the description of step S12, which will not be repeated here in this embodiment.
[0200] S103, obtaining the type proportion of each type of information point in the area to be identified according to the type proportion distribution of the information points in the area to be identified.
[0201] In this embodiment, combined with the identification in the above embodiment, if the weight distribution is the proportion of the number of information points of each type in the area to be identified, then the type proportion obtained in this step is the proportion of the number of information points of each type in the number of all information points; if the weight distribution is the proportion obtained according to the importance of each type of information points in the area to be identified, then the type proportion obtained in this step is the ratio of the importance of each type of information points to the cumulative value of the importance of all types of information points; if the weight distribution is the proportion obtained according to the area occupied by each type of information points in the area to be identified, then the type proportion in this step is the proportion of the cumulative value of the area occupied by each type of information points in the area to be identified.
[0202] S104, sorting the category proportions in descending order, and obtaining the categories of information points corresponding to the category proportions of the top preset rankings as comparison categories.
[0203] In this embodiment, the type proportions of each type of information points in the area to be identified are sorted, and finally the types of information points with the highest type proportions are obtained.
[0204] S105: Determine whether the types of information points in the preset reference area include all comparison types.
[0205] In this embodiment, it is determined whether the types of information points in the preset reference area include the comparison types obtained in the above steps. If not, it can be explained that the preset reference area does not contain the types of information points that are more important to the area to be identified, that is, there are information points in the area to be identified that are not in the preset reference area, and this type of information points is more important to the area to be identified. At this time, in order to reduce workload and improve work efficiency, it can be determined that the area to be identified is not similar to the preset reference area. Of course, because the areas of group rental houses are not completely consistent, there can also be multiple different types of preset reference areas for comparison in this scheme, so the area to be identified can still be compared with other preset reference areas to determine whether the area to be identified is a potential danger area.
[0206] In this embodiment, a shared house is used to illustrate the potential danger zone. The potential danger zone does not only include the shared house area, but can also be dangerous areas such as accident prone areas and areas with high incidence of falling objects.
[0207] S106a, if yes, execute S107, obtain the similarity value between the area to be identified and the preset reference area according to the information point weight distribution and the information point relative position distribution, and S108, regard the area to be identified with a similarity value greater than a preset threshold as a potential danger area.
[0208] For details of steps S107 and S108, please refer to the description of steps S13 and S14, which will not be repeated here in this embodiment.
[0209] S106b: If not, remove the region to be identified from the pre-stored candidate set of regions to be identified.
[0210] In this embodiment, if there is no information point corresponding to the comparison type in the area to be identified in the preset reference area, it can be directly determined that the area to be identified is not similar to the preset reference area, and the area to be identified is no longer identified based on the preset reference area.
[0211] like Fig.11 As shown, an embodiment of the present invention provides a device for identifying a potential danger zone. Fig.11 The device includes: an acquisition unit 11, a first processing unit 12, a second processing unit 13, a third processing unit 14 and a fourth processing unit 15.
[0212] In this embodiment, the acquiring unit 11 is used to acquire basic information of each information point in the area to be identified.
[0213] In this embodiment, the first processing unit 12 is used to aggregate the information points by type according to the basic information.
[0214] In this embodiment, the second processing unit 13 is used to obtain the information point type ratio distribution and the information point relative position distribution of each type of information points in the to-be-identified area according to the basic information.
[0215] In this embodiment, the third processing unit 14 is used to obtain a similarity value between the to-be-identified area and the preset reference area according to the information point weight distribution and the information point relative position distribution.
[0216] In this embodiment, the fourth processing unit 15 is used to regard the to-be-identified area with a similarity value greater than a preset threshold as a potential danger area.
[0217] In this embodiment, the second processing unit 13 is specifically used to obtain an importance evaluation value of each type of information point in the area to be identified based on the basic information; obtain an information point type weight vector based on the importance evaluation value of each type of information point in the area to be identified as the information point type weight distribution; obtain a relative distance between each information point and each preset position in the area to be identified based on the basic information; obtain a relative position distribution vector of each type of information point in the area to be identified based on the relative distance as the information point relative position distribution.
[0218] In this embodiment, the second processing unit 13 is specifically used to obtain the ratio of the number of the information points of any type to the number of all the information points according to the basic information; according to the basic information, obtain the number of areas to be identified that include the information points of any type in the pre-stored candidate set of areas to be identified; wherein the candidate set of areas to be identified includes at least two areas to be identified; according to the ratio of the number of the information points of any type to all the information points, the number of areas to be identified that include the information points of any type in the candidate set of areas to be identified, and the number of areas to be identified in the candidate set of areas to be identified, obtain the importance evaluation value of the information points of any type in the area to be identified; and obtain the importance evaluation value of each type of information point in the area to be identified in turn.
[0219] In this embodiment, the second processing unit 13 is specifically configured to calculate the importance evaluation value by the following formula:
[0220]
[0221]
[0222] CF-IRF ij =CF ij ×IRF i ;
[0223] Among them, CF-IRF ij is the importance evaluation value of any information point of type i in the to-be-identified area j; ij is the number of information points of any type i in the to-be-identified area j; j is the type of information point in the area j to be identified, n kj is the number of information points of type k in the to-be-identified area j, a is the first preset scaling constant; log x is the logarithm with a preset constant x greater than 1, N total is the number of regions to be identified in the candidate set of regions to be identified, Di is the number of areas to be identified that include information points of any type i in the candidate set of areas to be identified, and b is a second preset scaling constant.
[0224] In this embodiment, the second processing unit 13 is specifically used to obtain the average value of the relative distance between any type of information point and each preset position in the area to be identified based on the relative distance between each of the information points and each preset position in the area to be identified; to form a relative position distribution vector based on the average value of the relative distance between all information points of any type and each preset position in the area to be identified; and to obtain the relative position distribution vector of the information point of each type in the area to be identified in turn.
[0225] like Fig.12 As shown, an embodiment of the present invention provides a potential danger zone identification system, including a processor 1110, a communication interface 1120, a memory 1130 and a communication bus 1140, wherein the processor 1110, the communication interface 1120, and the memory 1130 communicate with each other through the communication bus 1140;
[0226] Memory 1130, used for storing computer programs;
[0227] The processor 1110 is used to implement the potential danger area identification method as shown below when executing the program stored in the memory 1130:
[0228] Obtain basic information of each information point in the area to be identified, and aggregate the information points by type based on the basic information;
[0229] According to the basic information, the information point type weight distribution and the information point relative position distribution of each type of information point in the area to be identified are obtained;
[0230] According to the weight distribution of information points and the relative position distribution of information points, a similarity value between the area to be identified and the preset reference area is obtained;
[0231] The areas to be identified whose similarity values are greater than a preset threshold are regarded as potential danger areas.
[0232] In the electronic device provided by the embodiment of the present invention, the processor 1110 obtains the information point type weight distribution and the information point relative position distribution of each type of information point in the area to be identified through the basic information of the information points by executing the program stored in the memory 1130, determines the similarity value between the area to be identified and the preset reference area according to the information point type weight distribution and the information point relative position distribution, and regards the area to be identified with a similarity value greater than a preset threshold as a potential danger area. This scheme describes the characteristics of the area to be identified through the type weight distribution and the relative position distribution of the information points in the area to be identified, and determines whether the area to be identified is a potential danger area based on the characteristics, thereby realizing rapid and accurate identification of potential danger areas.
[0233] The communication bus 1140 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus 1140 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0234] The communication interface 1120 is used for communication between the above electronic device and other devices.
[0235] The memory 1130 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory 1130 may also be at least one storage device located away from the processor 1110 .
[0236] The above-mentioned processor 1110 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0237] An embodiment of the present invention provides a computer-readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the potential danger area identification method described in any of the above embodiments.
[0238] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk SolidStateDisk (SSD)), etc.
[0239] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention 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 invention.
Claims
1. A method for identifying a potential dangerous area, characterized in that: The identification method comprises: Obtaining basic information of each information point in the area to be identified, and aggregating the information points by type according to the basic information; Obtaining information point type weight distribution and information point relative position distribution of each type of information point in the to-be-identified area according to the basic information; Obtaining a similarity value between the area to be identified and a preset reference area according to the information point weight distribution and the information point relative position distribution, including: Acquire basic information of information points in the preset reference area, and obtain the information point weight distribution and information point relative position distribution in the preset reference area; By comparing the information point weight distribution and the information point relative position distribution of the preset reference area with the information point weight distribution and the information point relative position distribution of the area to be identified, a similarity value of the two areas is obtained, and the preset reference area is a potential danger area that has been determined; The areas to be identified whose similarity values are greater than a preset threshold are regarded as potential danger areas; The step of obtaining the information point type weight distribution and the information point relative position distribution of each type of information point in the to-be-identified area according to the basic information includes: Obtaining the importance evaluation value of each type of information point in the to-be-identified area according to the basic information includes: Determining the importance evaluation value according to whether the type of information point is only in the area to be identified, or determining the importance evaluation value according to the number of areas to be identified that contain information points of a certain type; Obtaining an information point type weight vector according to the importance evaluation value of each type of the information point in the to-be-identified area as the information point type weight distribution; Obtaining the relative distance between each of the information points and each preset position in the area to be identified according to the basic information; A relative position distribution vector of each type of the information point in the to-be-identified area is obtained according to the relative spacing as the relative position distribution of the information point.
2. The identification method according to claim 1, characterized in that: The step of obtaining the importance evaluation value of each type of information point in the to-be-identified area according to the basic information comprises: Obtaining, according to the basic information, a ratio of the number of the information points of any type to the number of all the information points; According to the basic information, the number of the to-be-recognized regions including the information points of any type is obtained in the pre-stored to-be-recognized region candidate set; wherein the to-be-recognized region candidate set includes at least two to-be-recognized regions; Obtaining an importance evaluation value of the information point of any type in the to-be-identified area according to the proportion of the number of the information points of any type in all the information points, the number of to-be-identified areas in the to-be-identified area candidate set that includes the information points of any type, and the number of to-be-identified areas in the to-be-identified area candidate set; The importance evaluation value of each type of information point in the to-be-identified area is obtained in turn.
3. The identification method according to claim 2, characterized in that: The obtaining, according to the proportion of the number of the information points of any type in all the information points, the number of the to-be-identified areas including the information points of any type and the number of the to-be-identified areas in the candidate set of to-be-identified areas, an importance evaluation value of the information points of any type in the to-be-identified area comprises: The importance evaluation value is calculated by the following formula: CF-IRF ij =CF ij ×IRF i ; Among them, CF-IRF ij is the importance evaluation value of any information point of type i in the to-be-identified area j; ij is the number of information points of any type i in the to-be-identified area j; j is the type of information point in the area j to be identified, n kj is the number of information points of type k in the to-be-identified area j, a is the first preset scaling constant; log x is the logarithm with a preset constant x greater than 1, N total is the number of regions to be identified in the candidate set of regions to be identified, D i is the number of areas to be identified that include information points of any type i in the candidate set of areas to be identified, and b is a second preset scaling constant.
4. The identification method according to claim 1, characterized in that: The step of obtaining the relative position distribution vector of each type of information point in the to-be-identified area according to the relative spacing includes: According to the relative distance between each of the information points and each preset position in the area to be identified, an average value of the relative distance between any type of information point and each preset position in the area to be identified is obtained; A relative position distribution vector is formed according to an average value of relative distances between all information points of any type and each preset position of the to-be-identified area; The relative position distribution vector of each type of the information point in the area to be identified is obtained in turn.
5. The identification method according to claim 4, characterized in that: The step of obtaining the average value of the relative distances between all information points of any type and each preset position in the area to be identified based on the relative distances between each information point and each preset position in the area to be identified includes: The average value of the relative distances between all information points of any type and each preset position of the area to be identified is calculated by the following calculation formula: Wherein, d is the average value of the relative distance between the information point of any type i and the preset position h in the area to be identified j, n ij is the number of information points of any type i in the area to be identified j, P is the set of all information points of any type i in the area to be identified j, p is the information point of any type i in the area to be identified j, and dist(p,h) is the relative distance between the information point p and the preset position h.
6. The identification method according to claim 1, characterized in that: The obtaining, according to the information point weight distribution and the information point relative position distribution, a similarity value between the to-be-identified area and a preset reference area comprises: Comparing the information point type weight distribution of the to-be-identified area with the information point type weight distribution of a preset reference area to obtain a first similarity value; Comparing the relative position distribution of the information points in the to-be-identified area with the relative position distribution of the information points in a preset reference area to obtain a second similarity value; A third similarity value between the to-be-identified region and the preset reference region is obtained according to the first similarity value and the second similarity value as a similarity value between the to-be-identified region and the preset reference region.
7. The identification method according to claim 6, characterized in that: The identification method further comprises: Obtaining information of surrounding persons in the area to be identified; Obtaining characteristic distribution of surrounding persons according to the surrounding persons information; Comparing the feature distribution of the people around the area to be identified with the feature distribution of the people around a preset reference area to obtain a fourth similarity value; A fifth similarity value between the to-be-identified region and the preset reference region is obtained according to the first similarity value, the second similarity value, and the fourth similarity value as a similarity value between the to-be-identified region and the preset reference region.
8. The identification method according to claim 7, characterized in that: The obtaining of the characteristic distribution of surrounding persons according to the surrounding persons information includes: According to the surrounding personnel information, obtain the ratio of different genders, the ratio of each preset age group and the ratio of each preset income group of the surrounding personnel in the to-be-identified area; A surrounding personnel feature vector is formed according to the proportion of people of different genders, the proportion of people of each age group and the proportion of people of each preset income group in the surrounding area to be identified, as the surrounding personnel feature distribution of the area to be identified.
9. The identification method according to claim 7, characterized in that: The identification method further comprises: Obtain the average housing price of the area to be identified; Comparing the average housing price of the to-be-identified area with the average housing price of the preset reference area to obtain a sixth similarity value; A seventh similarity value between the region to be identified and the preset reference region is obtained according to the first similarity value, the second similarity value, the fourth similarity value and the sixth similarity value as a similarity value between the region to be identified and the preset reference region.
10. The identification method according to claim 9, characterized in that: The step of comparing the average housing price of the to-be-identified area with the average housing price of a preset reference area to obtain a sixth similarity value includes: Calculating the distance measure between the average housing price of each area to be identified in the pre-stored candidate set of areas to be identified and the average housing price of the preset reference area; the candidate set of areas to be identified includes at least two areas to be identified; The sixth similarity value is calculated by the following formula: Among them, Sim(R q ,R j ) is the sixth similarity value between the region to be identified j and the preset reference region, E qj is the distance measure between the average housing price of the area to be identified j and the average housing price of the preset reference area, E min is the minimum value of the distance measurement between the average housing price of all the areas to be identified and the average housing price of the preset reference area, E max The maximum value of the distance measurement between the average housing price of all the areas to be identified and the average housing price of the preset reference area.
11. The identification method according to any one of claims 1 to 10, characterized in that: Before obtaining the similarity value between the area to be identified and the preset reference area according to the information point weight distribution and the information point relative position distribution, the identification method further includes: Obtaining the type proportion of each type of information point in the area to be identified according to the type proportion distribution of the information points in the area to be identified; Sort the category proportions in descending order, and obtain the categories of information points corresponding to the category proportions of the top preset rankings as comparison categories; Determine whether the types of information points in the preset reference area include all the comparison types; If yes, the step of obtaining a similarity value between the area to be identified and the preset reference area is performed according to the information point weight distribution and the information point relative position distribution; If not, the to-be-recognized area is removed from the pre-stored candidate set of to-be-recognized areas.
12. A device for identifying a potential dangerous area, characterized in that: The device comprises: An acquisition unit, used to acquire basic information of each information point in the area to be identified; A first processing unit, configured to aggregate the information points by type according to the basic information; A second processing unit is used to obtain the information point type weight distribution and the information point relative position distribution of each type of information point in the to-be-identified area according to the basic information; The third processing unit is used to obtain a similarity value between the to-be-identified area and the preset reference area according to the information point weight distribution and the information point relative position distribution, including: Acquire basic information of information points in the preset reference area, and obtain the information point weight distribution and information point relative position distribution in the preset reference area; By comparing the information point weight distribution and the information point relative position distribution of the preset reference area with the information point weight distribution and the information point relative position distribution of the area to be identified, a similarity value of the two areas is obtained, and the preset reference area is a potential danger area that has been determined; A fourth processing unit, configured to treat the to-be-identified area with a similarity value greater than a preset threshold as a potential danger area; The step of obtaining the information point type weight distribution and the information point relative position distribution of each type of information point in the to-be-identified area according to the basic information includes: Obtaining the importance evaluation value of each type of information point in the to-be-identified area according to the basic information includes: Determining the importance evaluation value according to whether the type of information point is only in the area to be identified, or determining the importance evaluation value according to the number of areas to be identified that contain information points of a certain type; Obtaining an information point type weight vector according to the importance evaluation value of each type of the information point in the to-be-identified area as the information point type weight distribution; Obtaining the relative distance between each of the information points and each preset position in the area to be identified according to the basic information; A relative position distribution vector of each type of the information point in the to-be-identified area is obtained according to the relative spacing as the relative position distribution of the information point.
13. A potential danger zone identification system, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The processor is used to implement the potential danger area identification method described in any one of claims 1 to 11 when executing the program stored in the memory.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the potential danger area identification method described in any one of claims 1 to 11.
