Grid-based user business risk analysis method, device and electronic device

Through the grid-based user business risk analysis method, using Geohash coding and risk prediction model, the problem that risk analysis strategies in the existing technology are difficult to apply to different groups of people, and the risk analysis of large-scale populations is achieved with high accuracy and Universal effect.

CN113554281BActive Publication Date: 2024-11-05BEIJING QIYU INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110748084.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-02
Publication Date
2024-11-05
Estimated Expiration
2041-07-02

AI Technical Summary

Technical Problem

The existing risk analysis strategies are difficult to apply to different groups of people and cannot be widely applied to a large range of people, because different factors such as the economic level and population density of different groups are in, resulting in insufficient accuracy and universality of risk analysis.

Method used

The user's business risk analysis method is adopted based on the grid. By obtaining the user's geographical location information, identifying the grid where the user is located, and calculating the user's business risk indicators based on the historical business risk characteristics statistics within the grid, using Geohash encoding and risk Predictive models improve the accuracy and universality of the analysis.

Benefits of technology

It has achieved high accuracy and universality in risk analysis of large groups of people, can accurately reflect the user's chances of business risks, and trigger preset pre-disposal behavior when risk events occur.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113554281B_ABST
    Figure CN113554281B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device and electronic device for analyzing user business risk based on a grid, wherein a grid refers to a geographic grid used to divide a geographic area, and the method comprises: obtaining the geographic location information of the user; identifying the grid where the user is located from a plurality of pre-divided grids according to the geographic location information of the user; calculating the business risk index of the grid where the user is located according to the historical business risk characteristic statistical data of the historical user group in units of grids, and using it as the business risk index of the user, wherein the business risk index reflects the probability of the user having business risk. According to the technical solution of the present invention, the business risk index of the grid where the user is located is calculated based on the historical business risk characteristic statistical data of the historical user group divided by grids, and used as the business risk index of the user, which has high accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer information processing, and in particular to a grid-based user business risk analysis method, device, electronic device and computer-readable medium. Background Art

[0002] Generally, there are different types of risks in different industries, and there is a need to analyze risks. For example, in the field of transportation, it is necessary to analyze risks such as traffic congestion and traffic accidents, and in the financial field, it is necessary to analyze financial fraud. For the purpose of risk response, various types of risk analysis strategies have been generated in various fields. However, existing risk analysis strategies are often only effective for a few people and cannot be applied to a larger number of people. This is because the economic level, population density and other factors that affect the risk of different groups of people are different, and the probability of risk events occurring due to the influence of the environment is also different. The risk analysis of users in environment A is difficult to apply to users in environment B. Therefore, a technical solution for risk analysis is needed that can be widely applied to a wide range of people. Summary of the invention

[0003] The present invention aims to provide a technical solution for risk analysis, which can be widely applied to a wide range of people.

[0004] In order to solve the above technical problems, the first aspect of the present invention proposes a grid-based user business risk analysis method, wherein the grid refers to a geographic grid used to divide geographic areas, and the method comprises: obtaining the user's geographic location information; identifying the grid where the user is located from a plurality of pre-divided grids based on the user's geographic location information; calculating the business risk index of the grid where the user is located based on historical business risk feature statistical data of historical user groups in grid units, and using it as the business risk index of the user, wherein the business risk index reflects the probability of the user incurring business risks.

[0005] According to a preferred embodiment of the present invention, identifying the grid where the user is located from multiple pre-divided grids based on the user's geographic location information includes: performing Geohash encoding on the user's geographic location information, and using the geographic grid corresponding to the obtained Geohash encoding as the grid where the user is located.

[0006] According to a preferred embodiment of the present invention, the calculation of the business risk index of the grid where the user is located based on the historical business risk feature statistical data of historical user groups in grid units includes: counting the risk features of historical users in grid units to obtain risk feature statistical data in grid units; establishing and training a risk prediction model based on the risk feature statistical data in grid units, and calculating the business risk index of the grid where the user is located using the model and the risk feature statistical data of the grid where the user is located.

[0007] According to a preferred implementation manner of the present invention, the historical business risk feature statistical data and the risk feature statistical data of the grid where the user is located both include: risk feature statistical data within the grid and risk feature statistical data of adjacent grids.

[0008] According to a preferred embodiment of the present invention, the Geohash code includes Geohash codes of at least two precisions; the historical business risk feature statistical data and the risk feature statistical data of the grid where the user is located both include risk feature statistical data under multiple precision grids.

[0009] According to a preferred implementation manner of the present invention, the further step includes: searching for a target grid whose business risk index is higher than a preset threshold, and marking the target grid on a map.

[0010] According to a preferred implementation manner of the present invention, it further includes: monitoring whether a preset business risk event occurs in the target grid, and triggering a preset business risk pre-processing behavior when the business risk event occurs.

[0011] According to a preferred embodiment of the present invention, it also includes: searching for a target grid whose business risk indicator change amplitude exceeds a preset threshold within a preset time period and a plurality of social events occurring in the target grid, and identifying the event that causes the business risk indicator change from the plurality of social events.

[0012] The second aspect of the present invention proposes a grid-based user business risk analysis device, wherein the grid refers to a geographic grid used to divide geographic areas, and the device includes: a geographic location information acquisition module, which acquires the geographic location information of the user; a grid identification module, which identifies the grid where the user is located from multiple pre-divided grids based on the user's geographic location information; a business risk indicator calculation module, which calculates the business risk indicator of the grid where the user is located based on historical business risk feature statistical data of historical user groups in grid units, and uses it as the business risk indicator of the user, and the business risk indicator reflects the probability of the user incurring business risks.

[0013] According to a preferred implementation manner of the present invention, the grid identification module performs Geohash encoding on the geographical location information of the user, and uses the geographical grid corresponding to the obtained Geohash encoding as the grid where the user is located.

[0014] According to a preferred embodiment of the present invention, the business risk indicator calculation module counts the risk characteristics of historical users in grid units to obtain risk characteristic statistical data in grid units; establishes and trains a risk prediction model based on the risk characteristic statistical data in grid units, and uses the model and the risk characteristic statistical data of the grid where the user is located to calculate the business risk indicator of the grid where the user is located.

[0015] According to a preferred implementation manner of the present invention, the historical business risk feature statistical data and the risk feature statistical data of the grid where the user is located both include: risk feature statistical data within the grid and risk feature statistical data of adjacent grids.

[0016] According to a preferred embodiment of the present invention, the Geohash code includes Geohash codes of at least two precisions; the historical business risk feature statistical data and the risk feature statistical data of the grid where the user is located both include risk feature statistical data under multiple precision grids.

[0017] According to a preferred embodiment of the present invention, the invention further comprises: a grid marking module for searching for target grids whose business risk index is higher than a preset threshold value, and marking the target grids on a map.

[0018] According to a preferred embodiment of the present invention, it also includes: a risk pre-processing module, which monitors whether a preset business risk event occurs in the target grid, and triggers a preset business risk pre-processing behavior when the business risk event occurs.

[0019] According to a preferred embodiment of the present invention, it also includes: a risk event identification module, which searches for a target grid whose business risk indicator change exceeds a preset threshold within a preset time period and a plurality of social events occurring in the target grid, and identifies the event that causes the business risk indicator change from the plurality of social events.

[0020] In order to solve the above technical problem, the third aspect of the present invention proposes an electronic device, which includes a processor and a memory storing computer-executable instructions, and the computer-executable instructions enable the processor to execute the above method when executed.

[0021] In order to solve the above technical problem, the fourth aspect of the present invention proposes a computer-readable storage medium, which stores one or more programs. When the one or more programs are executed by a processor, the above method is implemented.

[0022] In the technical solution of the present invention, before conducting risk analysis on the user, the geographical location of the user is first obtained, the grid where the user is located is determined based on the geographical location of the user, and the business risk index of the grid where the user is located is calculated based on the historical business risk characteristic statistical data of the historical user groups divided by grids. Multiple users in the same grid are located in the same region, and the multiple users are all affected by the risk characteristics of the same region. Therefore, the business risk index of the grid where the user is located is used as the business risk index of the user, which has higher accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to make the technical problems solved by the present invention, the technical means adopted and the technical effects achieved more clearly, the specific embodiments of the present invention will be described in detail with reference to the accompanying drawings. However, it should be noted that the drawings described below are only drawings of exemplary embodiments of the present invention, and those skilled in the art can obtain drawings of other embodiments based on these drawings without creative work.

[0024] Figure 1 is a flow chart of a method for analyzing user business risks based on a grid according to an embodiment of the present invention;

[0025] Figure 2 is a flow chart of a method for analyzing user business risks based on a grid according to an embodiment of the present invention;

[0026] Figure 3 is a schematic diagram of a method for analyzing user service risks based on a grid according to an embodiment of the present invention;

[0027] Figure 4 is a flow chart of a method for analyzing user business risks based on a grid according to an embodiment of the present invention;

[0028] Figure 5 is a block diagram of a grid-based user service risk analysis device according to an embodiment of the present invention;

[0029] Figure 6 is a block diagram of a grid-based user service risk analysis device according to an embodiment of the present invention;

[0030] Figure 7 is a block diagram of an electronic device according to an embodiment of the present invention;

[0031] Figure 8 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present invention. DETAILED DESCRIPTION

[0032] The exemplary embodiments of the present invention will now be described more fully with reference to the accompanying drawings. Although each exemplary embodiment can be implemented in a variety of specific ways, it should not be understood that the present invention is limited to the embodiments set forth herein. On the contrary, these exemplary embodiments are provided to make the content of the present invention more complete and to facilitate the comprehensive communication of the inventive concept to those skilled in the art.

[0033] Under the premise of conforming to the technical concept of the present invention, the structure, performance, effect or other characteristics described in a specific embodiment may be combined with one or more other embodiments in any appropriate manner.

[0034] In the process of introducing specific embodiments, the detailed description of the structure, performance, effect or other characteristics is to enable those skilled in the art to fully understand the embodiments. However, it does not exclude that those skilled in the art can implement the present invention with a technical solution that does not contain the above-mentioned structure, performance, effect or other characteristics under certain circumstances.

[0035] The flowchart in the accompanying drawings is only an exemplary process demonstration, and does not mean that the solution of the present invention must include all the contents, operations and steps in the flowchart, nor does it mean that it must be executed in the order shown in the figure. For example, some operations / steps in the flowchart can be decomposed, some operations / steps can be combined or partially combined, etc. The execution order shown in the flowchart can be changed according to the actual situation without departing from the main purpose of the present invention.

[0036] Frames in the attached figure Figure 1 Generally, it refers to functional entities, which do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0037] The same reference numerals in the drawings represent the same or similar elements, components or parts, and thus the repeated description of the same or similar elements, components or parts may be omitted below. It should also be understood that although the first, second, third and other attributives representing the numbers may be used herein to describe various devices, elements, components or parts, these devices, elements, components or parts should not be limited by these attributives. In other words, these attributives are only used to distinguish one from another. For example, the first device may also be called the second device, but it does not deviate from the essential technical solution of the present invention. In addition, the terms "and / or" and "and / or" refer to all combinations including any one or more of the listed items.

[0038] In order to realize business risk analysis for a wide range of people, the present invention discloses a technical solution for user business risk analysis based on a grid, wherein a grid refers to a geographic grid used to divide a geographic area, and the solution specifically includes: obtaining the user's geographic location information, which is usually expressed in the form of longitude and latitude (Latitude / Longitude); performing Geohash encoding according to the user's geographic location information, and identifying the grid corresponding to the Geohash code of the user's current location from grids corresponding to a preset plurality of Geohash values, that is, the grid where the user is located; calculating the business risk index of the grid where the user is located based on historical business risk feature statistical data of historical user groups in units of grids, because the people in the grid belong to the same region and the risk elements in the same region are the same, the business risk index of the grid where the user is located can be used as the business risk index of the user, and the probability of the user incurring business risk is reflected by the business risk index, which has high accuracy.

[0039] like Figure 1 As shown, in one embodiment of the present invention, a method for analyzing user service risk based on a grid is provided, where the grid refers to a geographical grid used to divide a geographical area, and the method includes:

[0040] Step S110, obtaining the user's geographical location information.

[0041] This embodiment is applicable to risk analysis of different types of businesses, for example, transportation, shopping, Internet finance, etc. In this embodiment, longitude and latitude can be used to represent geographic location information, such as (116.40761, 39.931286).

[0042] Step S120: identifying the grid where the user is located from a plurality of pre-divided grids according to the user's geographical location information.

[0043] In this embodiment, grids of different precisions may be divided based on the geographical area corresponding to the longitude and latitude information. When the longitude and latitude information of the user's location is clear, the grid where the user is located may be determined.

[0044] Step S130, based on historical business risk characteristic statistics of historical user groups in grid units, calculate the business risk index of the grid where the user is located, and use it as the business risk index of the user, which reflects the probability of the user incurring business risk.

[0045] In this embodiment, historical business risk characteristic statistics of historical users in each grid are counted in advance, and after locating the grid where the user is located, the business risk index of the user is calculated using the historical business risk characteristic statistics of the grid where the user is located.

[0046] According to the technical solution of this embodiment, when performing risk analysis on users, it is necessary to consider whether different geographical regions have different degrees of influence on risks. Different provinces, cities, and regions have differences in geographical location, traffic level, urban population density, and economic development levels, that is, different regions have different elements that affect risks, which have different impacts on users in their respective regions. Multiple users in the same grid are located in the same region, and the multiple users are affected by the same elements in the same region. Therefore, the business risk index of the grid where the user is located is used as the business risk index of the user, which has higher accuracy.

[0047] like Figure 2 As shown, in one embodiment of the present invention, a method for analyzing user service risk based on a grid is provided, where the grid refers to a geographical grid used to divide a geographical area, and the method includes:

[0048] Step S210, obtaining the user's geographical location information.

[0049] In this embodiment, the latitude and longitude values ​​(Latitude / Longitude) of the user are obtained, as shown in the following table. When the latitude and longitude value (Latitude / Longitude) is 999, it means that the positioning information is not obtained.

[0050] GeoId UserId RecordTime Latitude Longitude GE1234500001 fddf0e2e72fe6de 2020 / 12 / 7 11:50 24.47527 115.7685 GE1234500002 fddf0e2e72fe7de 2020 / 12 / 7 10:52 26.74519 110.6382 GE1234500003 fddf0e2e72fe8de 2020 / 12 / 7 14:10 999 999 GE1234500004 fddf0e2e72fe9de 2020 / 12 / 7 14:10 999 999 GE1234500005 ddf0e2e72fe10de 2020 / 12 / 7 11:52 29.99845 120.5834 GE1234500006 ddf0e2e72fe11de 2020 / 12 / 7 15:37 28.20219 113.1502 GE1234500007 ddf0e2e72fe12de 2020 / 12 / 7 14:09 34.60985 119.1671 GE1234500008 ddf0e2e72fe13de 2020 / 12 / 7 15:38 35.79226 119.9038

[0051] Step S220, performing Geohash coding on the user's geographical location information according to the user's geographical location information, and using the geographical grid corresponding to the obtained Geohash coding as the grid where the user is located.

[0052] In this embodiment, the user's location can be all over the country or even the world. The data length of the longitude and latitude information is relatively long. By gridding the location and compressing the data length, it is equivalent to reducing the dimension of the longitude and latitude information, which makes it easier to compress the data volume. Specifically, the Geohash algorithm is used to encode the location information. The two-dimensional longitude and latitude data (such as (116.40761, 39.931286)) is encoded into a string through the Geohash algorithm. Each string corresponds to a rectangular geographical area. Different precisions correspond to different lengths and widths of the rectangle. The higher the precision, the smaller the side length of the rectangle. For example, when the precision is 4, the length and width of the rectangle are approximately 19.5km*39.1km; when the precision is 8, the length and width of the rectangle are approximately 19m*38.2m. At the same time, the codes of the 8 adjacent rectangular blocks around this code can be obtained.

[0053] Furthermore, Geohash encoding includes at least two precision Geohash encodings. As shown in the following table, the longitude and latitude are GeoHash encoded to obtain regional grid codes corresponding to different precisions, including grid codes with precisions of 3 to 8 (Grid3 refers to the grid code corresponding to the precision of 3):

[0054] UserId Grid3 Grid4 Grid5 Grid6 Grid7 Grid8 ddf0e2e72fe14de wse wsey wsey0 wsey0j wsey0j6 wsey0j62 ddf0e2e72fe15de wxya wxya wxya wxhjs4 wxhjs4c wxhjs4c3 ddf0e2e72fe16de wt3 wt3g wt3gg wt3ggh wt3ggh1 wt3ggh16 ddf0e2e72fe17de wtq wtq3 wxya wxya wtq3vh6 wtq3vh6b ddf0e2e72fe18de wmf wmf2 wmf26 wmf26 wmf26g8 wmf26g8k ddf0e2e72fe19de wm5 wm5 wm5m9 wm5m9u wm5m9uz wm5m9uz5 ddf0e2e72fe20de ws1 ws10 ws10c ws10cz ws10czz ws10czzb ddf0e2e72fe21de ww7 ww7 ww7 ww7pc7 ww7pc7 ww7pc7h3

[0055] Step S230, counting risk characteristics of historical users in units of grids, and obtaining risk characteristic statistical data in units of grids.

[0056] Furthermore, since Geohash coding includes Geohash coding of at least two precisions, the historical business risk feature statistics and the risk feature statistics of the grid where the user is located both include risk feature statistics under multiple precision grids. The risk feature statistics under multiple precision grids can ensure the user risk analysis with different precisions.

[0057] In this embodiment, after obtaining the user information of historical users and the grid codes corresponding to the latitude and longitude at each precision, the risk characteristic statistical data in units of grids are formed by statistics of each grid. For example, based on the aforementioned GeoHash encoded table data, the risk characteristic statistical data of the transportation business is formed as follows: Figure 3 As shown, currently the grids with precision 4 are counted, and the total amount of transportation business within the grid and the number of businesses that are not delivered on time are counted. It can be seen from the figure that the total amount of transportation business and the number of businesses that are not delivered on time in different grids are quite different, which can intuitively show the business activity and business completion level of different areas.

[0058] Step S240, establish and train a risk prediction model based on risk feature statistical data in grid units, use the model and the risk feature statistical data of the grid where the user is located to calculate the business risk index of the grid where the user is located, and use it as the user's business risk index, which reflects the probability of the user incurring business risks.

[0059] Furthermore, the historical business risk characteristic statistical data and the risk characteristic statistical data of the grid where the user is located include: risk characteristic statistical data within the grid and risk characteristic statistical data of adjacent grids. This means that not only the risk situation of the user's area is analyzed, but also the risk situation of the user's surrounding areas can be analyzed. The risk analysis results are more comprehensive and accurate.

[0060] According to the technical solution of this embodiment, when a new user's geographic location is obtained, risk characteristic statistics of people in the same area can be obtained based on the grid where they are located to assist in determining the risk of the current user. This embodiment uses GeoHash encoding to encode the longitude and latitude geographic location information, implements risk characteristic data statistical analysis based on the encoded grid, and enhances the risk identification capabilities of various business fields.

[0061] like Figure 4 As shown, in one embodiment of the present invention, a method for analyzing user service risk based on a grid is provided, where the grid refers to a geographical grid used to divide a geographical area, and the method includes:

[0062] Step S410, obtaining the user's geographical location information.

[0063] Step S420: identifying the grid where the user is located from the plurality of pre-divided grids according to the user's geographical location information.

[0064] Step S430, based on historical business risk characteristic statistics of historical user groups in grid units, calculate the business risk index of the grid where the user is located, and use it as the business risk index of the user, which reflects the probability of the user incurring business risk.

[0065] Step S440, searching for target grids whose business risk indicators are higher than a preset threshold, and marking the target grids on the map.

[0066] In this embodiment, monitoring is performed based on historical business risk feature statistics of historical user groups. Specifically, grids with risk levels higher than a certain threshold can be monitored, or the top N grids with higher risks can be monitored and directly marked and displayed on the map.

[0067] Step S450, monitoring whether a preset business risk event occurs in the target grid, and triggering a preset business risk pre-processing behavior when a business risk event occurs.

[0068] In this embodiment, since the probability of a risk event occurring in the target grid is relatively high, it is monitored in real time, and once a risk event occurs, a preset business risk pre-processing behavior is immediately implemented.

[0069] Step S460, searching for a target grid whose business risk indicator change amplitude exceeds a preset threshold within a preset time period and multiple social events occurring in the target grid, and identifying the event causing the business risk indicator change from the multiple social events.

[0070] In this embodiment, the occurrence of risk events is usually related to social events. At this time, you can search for various social events that have occurred in the grid recently to find out the social events that have an impact on the risk events as an important cause of the risk events. For example, when a large-scale delay in express delivery is detected, search for news on various social events currently occurring and find that there is a road maintenance event that has affected the smooth delivery of the express delivery. This information is used as the cause of the abnormality in the express delivery business and notify the relevant personnel.

[0071] According to the technical solution of this embodiment, not only can the business risks of users be accurately analyzed, but also the target grids with higher possibility of business risks can be accurately located, the target grids can be monitored in advance, risk events can be handled in a timely manner when they occur in the target grids, and the causes of the risk events can be found.

[0072] Those skilled in the art will appreciate that all or part of the steps to implement the above embodiments are implemented as a program executed by a data processing device (including a computer), i.e., a computer program. When the computer program is executed, the above method provided by the present invention can be implemented. Moreover, the computer program can be stored in a computer-readable storage medium, which can be a readable storage medium such as a disk, an optical disk, a ROM, a RAM, or a storage array composed of multiple storage media, such as a disk or a tape storage array. The storage medium is not limited to centralized storage, and it can also be distributed storage, such as cloud storage based on cloud computing.

[0073] The following describes an apparatus embodiment of the present invention, which can be used to execute a method embodiment of the present invention. The details described in the apparatus embodiment of the present invention should be regarded as supplementary to the above method embodiment; details not disclosed in the apparatus embodiment of the present invention can be implemented with reference to the above method embodiment.

[0074] like Figure 5 As shown, in one embodiment of the present invention, a grid-based user service risk analysis device is provided, where the grid refers to a geographic grid used to divide a geographic area, and the device includes:

[0075] The geographic location information acquisition module 510 acquires the geographic location information of the user.

[0076] This embodiment is applicable to risk analysis of different types of businesses, for example, transportation, shopping, Internet finance, etc. In this embodiment, longitude and latitude can be used to represent geographic location information, such as (116.40761, 39.931286).

[0077] The grid identification module 520 identifies the grid where the user is located from a plurality of pre-divided grids according to the user's geographical location information.

[0078] In this embodiment, grids of different precisions may be divided based on the geographical area corresponding to the longitude and latitude information. When the longitude and latitude information of the user's location is clear, the grid where the user is located may be determined.

[0079] The business risk index calculation module 530 calculates the business risk index of the grid where the user is located based on the historical business risk characteristic statistical data of the historical user group in grid units, and uses it as the business risk index of the user. The business risk index reflects the probability of the user incurring business risk.

[0080] In this embodiment, historical business risk characteristic statistics of historical users in each grid are counted in advance, and after locating the grid where the user is located, the business risk index of the user is calculated using the historical business risk characteristic statistics of the grid where the user is located.

[0081] According to the technical solution of this embodiment, when performing risk analysis on users, it is necessary to consider whether different geographical regions have different degrees of influence on risks. Different provinces, cities, and regions have differences in geographical location, traffic level, urban population density, and economic development levels, that is, different regions have different elements that affect risks, which have different impacts on users in their respective regions. Multiple users in the same grid are located in the same region, and the multiple users are affected by the same elements in the same region. Therefore, the business risk index of the grid where the user is located is used as the business risk index of the user, which has higher accuracy.

[0082] like Figure 5 As shown, in one embodiment of the present invention, a grid-based user service risk analysis device is provided, where the grid refers to a geographic grid used to divide a geographic area, and the device includes:

[0083] The geographic location information acquisition module 510 acquires the geographic location information of the user.

[0084] In this embodiment, the latitude and longitude values ​​(Latitude / Longitude) of the user are obtained, as shown in the following table. When the latitude and longitude value (Latitude / Longitude) is 999, it means that the positioning information is not obtained.

[0085] GeoId UserId RecordTime Latitude Longitude GE1234500001 fddf0e2e72fe6de 2020 / 12 / 7 11:50 24.47527 115.7685 GE1234500002 fddf0e2e72fe7de 2020 / 12 / 7 10:52 26.74519 110.6382 GE1234500003 fddf0e2e72fe8de 2020 / 12 / 7 14:10 999 999 GE1234500004 fddf0e2e72fe9de 2020 / 12 / 7 14:10 999 999 GE1234500005 ddf0e2e72fe10de 2020 / 12 / 7 11:52 29.99845 120.5834 GE1234500006 ddf0e2e72fe11de 2020 / 12 / 7 15:37 28.20219 113.1502 GE1234500007 ddf0e2e72fe12de 2020 / 12 / 7 14:09 34.60985 119.1671 GE1234500008 ddf0e2e72fe13de 2020 / 12 / 7 15:38 35.79226 119.9038

[0086] The grid identification module 520 performs Geohash coding on the user's geographical location information according to the user's geographical location information, and uses the geographical grid corresponding to the obtained Geohash coding as the grid where the user is located.

[0087] In this embodiment, the user's location can be all over the country or even the world. The data length of the longitude and latitude information is relatively long. By gridding the location and compressing the data length, it is equivalent to reducing the dimension of the longitude and latitude information, which makes it easier to compress the data volume. Specifically, the Geohash algorithm is used to encode the location information. The two-dimensional longitude and latitude data (such as (116.40761, 39.931286)) is encoded into a string through the Geohash algorithm. Each string corresponds to a rectangular geographical area. Different precisions correspond to different lengths and widths of the rectangle. The higher the precision, the smaller the side length of the rectangle. For example, when the precision is 4, the length and width of the rectangle are approximately 19.5km*39.1km; when the precision is 8, the length and width of the rectangle are approximately 19m*38.2m. At the same time, the codes of the 8 adjacent rectangular blocks around this code can be obtained.

[0088] Furthermore, Geohash encoding includes at least two precision Geohash encodings. As shown in the following table, the longitude and latitude are GeoHash encoded to obtain regional grid codes corresponding to different precisions, including grid codes with precisions of 3 to 8 (Grid3 refers to the grid code corresponding to the precision of 3):

[0089] UserId Grid3 Grid4 Grid5 Grid6 Grid7 Grid8 ddf0e2e72fe14de wse wsey wsey0 wsey0j wsey0j6 wsey0j62 ddf0e2e72fe15de wxya wxya wxya wxhjs4 wxhjs4c wxhjs4c3 ddf0e2e72fe16de wt3 wt3g wt3gg wt3ggh wt3ggh1 wt3ggh16 ddf0e2e72fe17de wtq wtq3 wxya wxya wtq3vh6 wtq3vh6b ddf0e2e72fe18de wmf wmf2 wmf26 wmf26 wmf26g8 wmf26g8k ddf0e2e72fe19de wm5 wm5 wm5m9 wm5m9u wm5m9uz wm5m9uz5 ddf0e2e72fe20de ws1 ws10 ws10c ws10cz ws10czz ws10czzb ddf0e2e72fe21de ww7 ww7 ww7 ww7pc7 ww7pc7 ww7pc7h3

[0090] The business risk index calculation module 530 counts the risk characteristics of historical users in units of grids to obtain risk characteristic statistical data in units of grids.

[0091] Furthermore, since Geohash coding includes Geohash coding of at least two precisions, the historical business risk feature statistics and the risk feature statistics of the grid where the user is located both include risk feature statistics under multiple precision grids. The risk feature statistics under multiple precision grids can ensure the user risk analysis with different precisions.

[0092] In this embodiment, after obtaining the user information of historical users and the grid codes corresponding to the latitude and longitude at each precision, the risk characteristic statistical data in units of grids are formed by statistics of each grid. For example, based on the aforementioned GeoHash encoded table data, the risk characteristic statistical data of the transportation business is formed as follows: Figure 3 As shown, currently the grids with precision 4 are counted, and the total amount of transportation business within the grid and the number of businesses that are not delivered on time are counted. It can be seen from the figure that the total amount of transportation business and the number of businesses that are not delivered on time in different grids are quite different, which can intuitively show the business activity and business completion level of different areas.

[0093] The business risk indicator calculation module 530 establishes and trains a risk prediction model based on risk feature statistical data in grid units, uses the model and the risk feature statistical data of the grid where the user is located to calculate the business risk indicator of the grid where the user is located, and uses it as the user's business risk indicator. The business risk indicator reflects the probability of the user incurring business risks.

[0094] Furthermore, the historical business risk characteristic statistical data and the risk characteristic statistical data of the grid where the user is located include: risk characteristic statistical data within the grid and risk characteristic statistical data of adjacent grids. This means that not only the risk situation of the user's area is analyzed, but also the risk situation of the user's surrounding areas can be analyzed. The risk analysis results are more comprehensive and accurate.

[0095] According to the technical solution of this embodiment, when a new user's geographic location is obtained, risk characteristic statistics of people in the same area can be obtained based on the grid where they are located to assist in determining the risk of the current user. This embodiment uses GeoHash encoding to encode the longitude and latitude geographic location information, implements risk characteristic data statistical analysis based on the encoded grid, and enhances the risk identification capabilities of various business fields.

[0096] like Figure 6 As shown, in one embodiment of the present invention, a grid-based user service risk analysis device is provided, where the grid refers to a geographic grid used to divide a geographic area, and the device includes:

[0097] The geographic location information acquisition module 610 acquires the geographic location information of the user.

[0098] The grid identification module 620 identifies the grid where the user is located from a plurality of pre-divided grids according to the user's geographical location information.

[0099] The business risk index calculation module 630 calculates the business risk index of the grid where the user is located based on the historical business risk characteristic statistical data of the historical user group in grid units, and uses it as the business risk index of the user. The business risk index reflects the probability of the user incurring business risk.

[0100] The grid marking module 640 searches for target grids whose business risk index is higher than a preset threshold and marks the target grids on the map.

[0101] In this embodiment, monitoring is performed based on historical business risk feature statistics of historical user groups. Specifically, grids with risk levels higher than a certain threshold can be monitored, or the top N grids with higher risks can be monitored and directly marked and displayed on the map.

[0102] The risk pre-processing module 650 monitors whether a preset business risk event occurs in the target grid, and triggers a preset business risk pre-processing behavior when a business risk event occurs.

[0103] In this embodiment, since the probability of a risk event occurring in the target grid is relatively high, it is monitored in real time, and once a risk event occurs, a preset business risk pre-processing behavior is immediately implemented.

[0104] The risk event identification module 660 searches for a target grid whose business risk index changes by more than a preset threshold within a preset time period and multiple social events occurring in the target grid, and identifies the event that causes the business risk index change from the multiple social events.

[0105] In this embodiment, the occurrence of risk events is usually related to social events. At this time, you can search for various social events that have occurred in the grid recently to find out the social events that have an impact on the risk events as an important cause of the risk events. For example, when a large-scale delay in express delivery is detected, search for news on various social events currently occurring and find that there is a road maintenance event that has affected the smooth delivery of the express delivery. This information is used as the cause of the abnormality in the express delivery business and notify the relevant personnel.

[0106] According to the technical solution of this embodiment, not only can the business risks of users be accurately analyzed, but also the target grids with higher possibility of business risks can be accurately located, the target grids can be monitored in advance, risk events can be handled in a timely manner when they occur in the target grids, and the causes of the risk events can be found.

[0107] Those skilled in the art will appreciate that the modules in the above device embodiments may be distributed in the device as described, or may be changed accordingly and distributed in one or more devices different from the above embodiments. The modules in the above embodiments may be combined into one module, or may be further split into multiple submodules.

[0108] The electronic device embodiment of the present invention is described below, and the electronic device can be regarded as a physical implementation of the method and device embodiments of the present invention described above. The details described in the electronic device embodiment of the present invention should be regarded as a supplement to the above method or device embodiments; details not disclosed in the electronic device embodiment of the present invention can be implemented with reference to the above method or device embodiments.

[0109] Figure 7 is a structural block diagram of an exemplary embodiment of an electronic device according to the present invention. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0110] like Figure 7As shown, the electronic device 200 of this exemplary embodiment is in the form of a general data processing device. The components of the electronic device 200 may include, but are not limited to: at least one processing unit 210, at least one storage unit 220, a bus 230 connecting different system components (including the storage unit 220 and the processing unit 210), a display unit 240, etc.

[0111] The storage unit 220 stores a computer-readable program, which may be a source program or a code of a read-only program. The program may be executed by the processing unit 210, so that the processing unit 210 performs the steps of various embodiments of the present invention. For example, the processing unit 210 may perform the following steps: Figure 1 , Figure 2 or Figure 4 Steps shown.

[0112] The storage unit 220 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 2201 and / or a cache storage unit 2202, and may further include a read-only storage unit (ROM) 2203. The storage unit 220 may also include a program / utility 2204 having a set (at least one) of program modules 2205, such program modules 2205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include the implementation of a network environment.

[0113] Bus 230 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0114] The electronic device 200 may also communicate with one or more external devices 300 (e.g., keyboard, display, network device, Bluetooth device, etc.) so that a user can interact with the electronic device 200 via these external devices 300, and / or enable the electronic device 200 to communicate with one or more other data processing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 250, and may also be performed through a network adapter 260 with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet). The network adapter 260 may communicate with other modules of the electronic device 200 through the bus 230. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in the electronic device 200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0115] Figure 8 Schematic diagram of a computer readable medium embodiment of the present invention. Figure 8 As shown, the computer program can be stored on one or more computer-readable media. The computer-readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. When the computer program is executed by one or more data processing devices, the computer-readable medium is enabled to implement the above method of the present invention, namely: obtaining the user's geographic location information; identifying the grid where the user is located from a plurality of pre-divided grids according to the user's geographic location information; calculating the business risk index of the grid where the user is located according to the historical business risk feature statistical data of the historical user group in grid units, and using it as the user's business risk index, the business risk index reflects the probability of the user having business risk.

[0116] Through the description of the above implementation modes, it is easy for those skilled in the art to understand that the exemplary embodiments described in the present invention can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation mode of the present invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a data processing device (which can be a personal computer, a server, or a network device, etc.) to perform the above method according to the present invention.

[0117] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or used in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.

[0118] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0119] In summary, the present invention can be implemented by a method, apparatus, electronic device or computer-readable medium that executes a computer program. In practice, a general data processing device such as a microprocessor or a digital signal processor (DSP) can be used to implement some or all functions of the present invention.

[0120] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the present invention is not inherently related to any specific computer, virtual device or electronic device, and various general devices can also implement the present invention. The above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for analyzing user service risk based on a grid, wherein the grid refers to a geographic grid used to divide a geographic area, characterized in that: include: Get the user's geographic location information; According to the geographical location information of the user, identifying the grid where the user is located from a plurality of pre-divided grids; Based on the historical business risk characteristic statistics of historical user groups in grid units, the business risk index of the grid where the user is located is calculated. If the people in the grid belong to the same region and the risk elements in the same region are the same, the business risk index of the grid where the user is located is used as the business risk index of the user. The business risk index reflects the probability of the user incurring business risk; Find the target grids whose business risk indicator changes exceed the preset threshold within the preset time period and multiple social events occurring in the target grids, and identify the events that cause the business risk indicator changes from the multiple social events.

2. The grid-based user service risk analysis method according to claim 1, characterized in that: The step of identifying the grid where the user is located from a plurality of pre-divided grids according to the geographical location information of the user comprises: The geographical location information of the user is Geohash-encoded, and the geographical grid corresponding to the obtained Geohash code is used as the grid where the user is located.

3. The grid-based user service risk analysis method according to claim 2, characterized in that: The calculating of the business risk index of the grid where the user is located based on the historical business risk characteristic statistical data of the historical user group in the grid unit includes: The risk characteristics of historical users are counted in grid units to obtain risk characteristic statistical data in grid units; A risk prediction model is established and trained based on risk feature statistics in grid units, and the business risk index of the grid where the user is located is calculated using this model and the risk feature statistics of the grid where the user is located.

4. The grid-based user service risk analysis method according to claim 3 is characterized in that: The historical business risk feature statistical data and the risk feature statistical data of the grid where the user is located both include: risk feature statistical data within the grid and risk feature statistical data of adjacent grids.

5. The grid-based user service risk analysis method according to claim 3, characterized in that: The Geohash code includes at least two precision Geohash codes; The historical business risk feature statistical data and the risk feature statistical data of the grid where the user is located both include risk feature statistical data under multiple precision grids.

6. The grid-based user service risk analysis method according to claim 1, characterized in that: Also includes: Find the target grid whose business risk index is higher than the preset threshold, and mark the target grid on the map.

7. The grid-based user service risk analysis method according to claim 6, characterized in that: Also includes: Monitor whether a preset business risk event occurs in the target grid, and trigger a preset business risk pre-processing behavior when the business risk event occurs.

8. A grid-based user service risk analysis device, wherein the grid refers to a geographic grid used to divide a geographic area, characterized in that: include: A geographic location information acquisition module is used to acquire the user's geographic location information; A grid identification module, which identifies the grid where the user is located from a plurality of pre-divided grids according to the geographical location information of the user; The business risk index calculation module calculates the business risk index of the grid where the user is located based on the historical business risk characteristic statistical data of the historical user group in the grid unit. If the people in the grid belong to the same region and the risk elements in the same region are the same, the business risk index of the grid where the user is located is used as the business risk index of the user. The business risk index reflects the probability of the user incurring business risk; The grid marking module searches for target grids whose business risk indicators are higher than the preset threshold and marks the target grids on the map; The risk pre-processing module monitors whether a preset business risk event occurs in the target grid and triggers the preset business risk pre-processing behavior when a business risk event occurs; The risk event identification module is used to find the target grid whose business risk indicator change exceeds the preset threshold within the preset time period and multiple social events occurring in the target grid, and identify the event that causes the change of business risk indicators from multiple social events.

9. An electronic device, comprising: processor; as well as A memory storing computer executable instructions which, when executed, cause the processor to perform the method according to any one of claims 1-7.

10. A computer-readable storage medium, wherein: The computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, the method according to any one of claims 1 to 7 is implemented.