Risk area analysis method, device, equipment and medium based on artificial intelligence
By extracting historical event data from the business database and using clustering models and union lookup algorithms, we solve the problem in the existing technology that the risk map of risk areas cannot accurately locate risk-intensive areas, and achieve a more accurate division of risk-intensive areas. Meets spatial heterogeneity requirements.
Patent Information
- Application Number
- CN202111433135.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-29
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-11-29
AI Technical Summary
The existing risk map of risk areas cannot accurately locate risk-intensive areas through heat maps, and the subjective factors are strong and cannot take into account the spatial heterogeneity of business underwriting conditions.
By extracting historical event data from the pre-built business database, using the pre-trained clustering model to extract core event points, calculating reachable distance feature values, constructing a minimum spanning tree, and merging clusters through the union-find algorithm to absorb specific distances Clusters of thresholds draw the boundaries of risk-dense areas.
It improves the positioning accuracy of risk-intensive areas, meets the needs of spatial heterogeneity, and provides a more reasonable and accurate division of risk-intensive areas.
Smart Images

Figure CN114049042B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an artificial intelligence-based risk area analysis method, device, electronic device and computer-readable storage medium. Background Art
[0002] In the insurance industry, assessing the risk of the area where the insured object is located is an important work link. Combining historical business data to delineate areas with high risk of accidents will play a significant supporting role in the risk assessment work of the underwriting link. In the historical insurance business data, the accident data well reflects the actual risk of the object. Combining the geographical location information recorded in the accident data can further assess the risk of the corresponding area.
[0003] The risk map of the accident area is an important form of expression for assessing the risk area. The risk map of the accident area is integrated based on historical business data, which well reflects the actual risk situation in each area. The geographical location information recorded in the accident data can be combined to assess the accident risk in a certain area. The existing risk map of the accident area is constructed by coordinating historical business data in the form of heat maps, but the heat map cannot give a dense accident area with clear boundaries, and the continuous heat map level still needs to be judged by the business personnel during the application process. The threshold of the high risk segmentation is strong, and the subjective factor is strong. In addition, the heat map cannot take into account the spatial heterogeneity of the business underwriting situation. The heat value represented by it is absolute within the scope of application. However, in fact, even if the heat value of the accident is the same in the heat map, the risk represented in the area with different underwriting levels will be different. Therefore, there is an urgent need for a method that can quickly and accurately locate the risk-intensive area in the target area. Summary of the invention
[0004] The present invention provides a risk area analysis method, device and computer-readable storage medium based on artificial intelligence, the main purpose of which is to solve the problem of inaccurate positioning when locating risk-intensive areas.
[0005] To achieve the above purpose, the present invention provides a risk area analysis method based on artificial intelligence, comprising:
[0006] Extracting a historical event data set from a pre-built business database, partitioning the historical event data set according to the location where each event in the historical event data set occurred, to obtain an event data partition set;
[0007] Extracting a target data partition from the event data partition set, and extracting all core event points in the target data partition using a pre-trained clustering model, and calculating a reachable distance feature value of the target data partition according to the reachable distances between each of the core event points;
[0008] Constructing a minimum spanning tree according to each of the core event points, defining each edge in the minimum spanning tree as a cluster, and adaptively merging each of the clusters according to a union-find algorithm to obtain each combined cluster;
[0009] Constructing a combined minimum spanning tree of each of the combined clusters, and calculating an average edge distance of each of the combined minimum spanning trees;
[0010] According to a preset abandonment-absorption strategy, using the combination clusters whose average edge distance is greater than or equal to the reachable distance characteristic value, absorbing the combination clusters whose average distance is less than the reachable distance characteristic value, to obtain a valid cluster set;
[0011] The boundaries of each valid cluster in the valid cluster set are drawn to obtain each risk-intensive area in the target data partition.
[0012] Optionally, the extracting all core event points in the target data partition by using a pre-trained clustering model, and calculating the reachable distance feature value of the target data partition according to the reachable distances between the core event points, includes:
[0013] According to a preset sorting strategy, all core event points in the target data partition are sorted by reachable distance to obtain a first queue;
[0014] The first queue is represented by a density level, and the density level representation result is quantified according to a preset scaling parameter, and a reachable distance characteristic value of the target data partition is calculated.
[0015] Optionally, the step of sorting all core event points in the target data partition by reachable distance according to a preset sorting strategy to obtain a first queue includes:
[0016] Step A, extracting all core event points in the target data partition, and defining the core distance of each core event point;
[0017] Step B: using the clustering model to calculate the reachable distance between each core event point according to the core distance;
[0018] Step C, randomly extracting a core event point from all the core event points in the target data partition as an initial target point, and importing the initial target point into a pre-constructed first queue;
[0019] Step D: extracting all core event points in a preset neighborhood of the initial target point as adjacent points, and importing each adjacent point and the reachable distance of each adjacent point into a pre-constructed second queue in sequence according to the reachable distance between each adjacent point and the initial target point from near to far;
[0020] Step E: determining whether the second queue contains adjacent points;
[0021] Step F: If the second queue contains adjacent points, one of the adjacent points is sequentially retrieved from the second queue in the sorting order, and the retrieved adjacent point is stored in the first queue as an update target point;
[0022] Step G, extracting all core event points in a preset neighborhood range of the update target point as adjacent points, and importing each adjacent point and the reachable distance of each adjacent point into a pre-constructed third queue in sequence according to the reachable distance between each adjacent point and the update target point from near to far;
[0023] Step H, determining whether the reachable distance of each adjacent point in the third queue in the third queue is less than the reachable distance in the second queue;
[0024] Step I: if there is no adjacent point whose reachable distance in the third queue is less than the reachable distance in the second queue, return to the above step E;
[0025] Step J: If there is a neighboring point whose reachable distance in the third queue is less than the reachable distance in the second queue, the reachable distance in the second queue is updated by using the reachable distance in the third queue, and the process returns to the above step E;
[0026] Step K: If there is no adjacent point in the second queue, output the first queue.
[0027] Optionally, constructing a minimum spanning tree according to each of the core event points includes:
[0028] Extract non-overlapping core event points, and use a preset formula to define the mutual reach distance between each of the core event points;
[0029] Taking each of the core event points as a node and each of the mutual reach distances as an edge, an initial minimum spanning tree is constructed;
[0030] Arrange the edges of the initial minimum spanning tree according to the sorting results of the mutual reach distances between the core event points from near to far to obtain a hierarchical structure;
[0031] The hierarchical structure is compressed according to a preset minimum cluster, and the compressed hierarchical structure is connected to obtain a minimum spanning tree.
[0032] Optionally, the method of obtaining a valid cluster set by using a combination cluster whose average edge distance is greater than or equal to the reachable distance characteristic value and absorbing a combination cluster whose average distance is less than the reachable distance characteristic value according to a preset abandonment-absorption strategy includes:
[0033] Retain the combination clusters whose average edge distance is greater than or equal to the reachable distance characteristic value, and construct each buffer zone based on the minimum spanning tree of each retained combination cluster;
[0034] Importing each core event point in the combined cluster whose average distance is less than the reachable distance characteristic value into the pre-constructed candidate area;
[0035] Performing a spatial superposition operation on each of the buffer zones and each of the core event points in the candidate zone to determine whether the core event point in the candidate zone falls in the buffer zone;
[0036] If the core event point falls within the buffer zone, the core event point is absorbed into the buffer zone;
[0037] If the core event point does not fall within the buffer zone, the core event point is discarded;
[0038] After traversing all the core event points in the candidate area, each core event point in the buffer area is taken as a valid cluster to obtain a valid cluster set.
[0039] Optionally, drawing the boundaries of each valid cluster in the valid cluster set to obtain each risk-intensive area in the target data partition includes:
[0040] Dividing the buffer area of the valid clusters that can be extracted by the alphashape tool in the valid cluster set as a first risk concentration area;
[0041] Generate spatial regions for the buffer regions of the valid clusters that cannot be extracted by the alphashape tool in the valid cluster set, and divide the generated results into a second risk-intensive region;
[0042] The first risk concentration area and the second risk concentration area are regionally mapped to obtain each risk concentration area in the target data partition.
[0043] Optionally, before extracting all core event points in the target data partition using the pre-trained clustering model and calculating the reachable distance feature value of the target data partition according to the reachable distances between the core event points, the method further includes:
[0044] Obtain a pre-built sorting recognition clustering model, and configure relevant parameters of the sorting recognition clustering model using a preset core point judgment standard;
[0045] The pre-built sample data is used to train the configured sorting recognition clustering model to obtain a trained clustering model.
[0046] In order to solve the above problems, the present invention also provides a risk area analysis device based on artificial intelligence, the device comprising:
[0047] A data partitioning module is used to extract a historical event data set from a pre-built business database, and partition the historical event data set according to the location where each event in the historical event data set occurred to obtain an event data partition set;
[0048] A reachable distance feature value calculation module, used to extract a target data partition from the event data partition set, and use a pre-trained clustering model to extract all core event points in the target data partition, and calculate the reachable distance feature value of the target data partition according to the reachable distance between each of the core event points;
[0049] A cluster detection module is used to construct a minimum spanning tree according to each of the core event points, and define each edge in the minimum spanning tree as a cluster, adaptively merge each of the clusters according to a union-find algorithm to obtain each combined cluster, and construct a combined minimum spanning tree of each of the combined clusters, and calculate the average edge distance of each of the combined minimum spanning trees;
[0050] An effective cluster generation module is used to obtain an effective cluster set by using the combination clusters whose average edge distance is greater than or equal to the reachable distance characteristic value and absorbing the combination clusters whose average distance is less than the reachable distance characteristic value according to a preset abandonment-absorption strategy;
[0051] The risk area output module is used to draw the boundaries of each valid cluster in the valid cluster set to obtain each risk-intensive area in the target data partition.
[0052] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:
[0053] at least one processor; and,
[0054] a memory communicatively connected to the at least one processor; wherein,
[0055] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the above-mentioned artificial intelligence-based risk area analysis method.
[0056] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the above-mentioned artificial intelligence-based risk area analysis method.
[0057] The embodiment of the present invention partitions the data of each risk point according to the location where the incident occurred, which meets the heterogeneity of the risk point in space and increases the rationality of the division of risk-intensive areas. In addition, the present invention regards the edges of the minimum spanning tree constructed by each core event point as clusters, and merges them through a union-find algorithm to obtain a combination cluster, and then compares the average edge distance of each combination cluster with the reachable distance characteristic value, and uses the combination cluster whose average edge distance is greater than or equal to the reachable distance characteristic value to absorb the combination cluster whose average distance is less than the reachable distance characteristic value to obtain a valid cluster set, thereby drawing out each risk-intensive area, wherein the number of clusters is initially compressed by the union-find algorithm, and then the number of combination clusters is secondary compressed by the reachable distance characteristic value, so that the scheme can draw a more accurate risk-intensive area range boundary. Therefore, the risk area analysis method, device, electronic device and computer-readable storage medium based on artificial intelligence proposed by the present invention can solve the problem of low accuracy in locating risk-intensive areas. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 A schematic diagram of a process flow of a risk area analysis method based on artificial intelligence provided by an embodiment of the present invention;
[0059] Figure 2 A schematic diagram of a flow chart of calculating a reachable distance sequence according to an embodiment of the present invention;
[0060] Figure 3 A schematic diagram of a process for constructing a minimum spanning tree according to an embodiment of the present invention;
[0061] Figure 4 A functional module diagram of a risk area analysis device based on artificial intelligence provided by an embodiment of the present invention;
[0062] Figure 5 A schematic diagram of the structure of an electronic device for implementing the risk area analysis method based on artificial intelligence provided by one embodiment of the present invention.
[0063] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0064] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0065] The embodiment of the present application provides a risk area analysis method based on artificial intelligence. The execution subject of the risk area analysis method based on artificial intelligence includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the risk area analysis method based on artificial intelligence can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and data display platforms.
[0066] Reference Figure 1 FIG. 1 is a flow chart of a risk area analysis method based on artificial intelligence provided by an embodiment of the present invention. In this embodiment, the risk area analysis method based on artificial intelligence includes:
[0067] S1. Extract a historical event data set from a pre-built business database, partition the historical event data set according to the location where each event in the historical event data set occurred, and obtain an event data partition set.
[0068] In an embodiment of the present invention, the historical event data set may be a business record of an insurance company's claims, underwriting business and other events in the past year, and may include fields such as claim type, insured amount, claim point location, claim time and the like.
[0069] Due to the differences in the magnitude of accidents caused by the spatial heterogeneity of business underwriting conditions, the traditional method of measuring whether an area is densely populated with accidents by accident density is not applicable. Therefore, in an embodiment of the present invention, each accident point is first partitioned according to the location of each accident point, and the corresponding risk-intensive area is extracted according to the distribution of accidents in the partition.
[0070] S2. Extract the target data partition from the event data partition set, and use the pre-trained clustering model to extract all the core event points in the target data partition, and calculate the reachable distance feature value of the target data partition based on the reachable distance between each of the core event points.
[0071] In the embodiment of the present invention, the clustering model is an artificial intelligence model generated by packaging the Ordering Points To Identify the Clustering Structure (OPTICS) algorithm, wherein the OPTICS algorithm is an algorithm that makes density-based clustering structures such as risk-intensive areas present a special order, and is configured by pre-constructed core point judgment criteria and fine-tuned through training samples. The clustering structure corresponding to the special order contains clustering information at each level, which is conducive to analyzing the characteristic value of the reachable distance in the target data partition.
[0072] The embodiment of the present invention can arbitrarily extract data of a location, such as Shenzhen, Guangzhou, etc., as a target data partition.
[0073] As is known to all, if clustering is performed towards a space where data is as dense as possible, then the point with the smallest reachable distance is the best choice. Therefore, the embodiment of the present invention needs to calculate the reachable distance between each of the core event points and obtain the reachable distance characteristic value of the target data partition.
[0074] In detail, in an embodiment of the present invention, the method of extracting all core event points in the target data partition using a pre-trained clustering model and calculating the reachable distance feature value of the target data partition according to the reachable distance between each of the core event points includes:
[0075] According to a preset sorting strategy, all core event points in the target data partition are sorted by reachable distance to obtain a first queue;
[0076] The first queue is represented by density, and the density representation result is quantified according to a preset scaling parameter, and a reachable distance characteristic value of the target data partition is calculated, wherein the reachable distance characteristic value eps of the target data partition is:
[0077] eps=median(q)*λ
[0078] Wherein, q is the first queue, median(q) is the result of representing the density of the first queue, and λ is a scaling parameter.
[0079] Specifically, an embodiment of the present invention utilizes the clustering model to perform core event point extraction operations, reachable distance feature value calculation, and reachable distance feature value sorting operations on all risk points in the target data partition, and finally obtains a first queue q containing a reachable distance sequence, and then quantifies the density representation of the first queue q to obtain a reachable distance feature value.
[0080] For details, see Figure 2 As shown, in the embodiment of the present invention, all the core event points in the target data partition are sorted by reachable distance according to the preset sorting strategy to obtain a first queue, including:
[0081] S20, extracting all core event points in the target data partition, and defining the core distance of each core event point;
[0082] S21. Using the clustering model and according to the core distance, the reachable distance between each core event point is calculated using the following formula:
[0083] rd(y,x)=max{cd(x),d(x,y)}
[0084] Wherein, rd(y, x) is the reachable distance from y to x, x and y are any two points in the core event point set in the target data partition, cd(x) is the core distance of x, and d(x, y) is the distance between points x and y;
[0085] S22, randomly extracting a core event point from all the core event points in the target data partition as an initial target point, and importing the initial target point into a pre-constructed first queue;
[0086] S23, extracting all core event points in a preset neighborhood range of the initial target point as adjacent points, and importing each adjacent point and the reachable distance of each adjacent point into a pre-constructed second queue in sequence according to the reachable distance between each adjacent point and the initial target point from near to far;
[0087] Specifically, due to the core point judgment standard, all the risk points in the target data partition in the embodiment of the present invention are core event points; then a core event point is randomly extracted as the initial target point and saved in the first queue, and the remaining core event points in the target data partition are all used as adjacent points, and then the present invention separately calculates the reachability between each adjacent point and the target point, and arranges the reachable distances to obtain the second queue;
[0088] S24, determining whether the second queue contains adjacent points;
[0089] If the second queue contains adjacent points, then S25, sequentially call out one of the adjacent points from the second queue in the sorting order, and store the called adjacent point as the update target point in the first queue;
[0090] S26, extracting all core event points in a preset neighborhood range of the update target point as adjacent points, and importing each adjacent point and each reachable distance of each adjacent point into a pre-constructed third queue in sequence according to the reachable distance between each adjacent point and the update target point from near to far;
[0091] According to the theorem that points with smaller reachable distances are closer, the present invention extracts the first-ranked neighboring point in the second queue, which is closest to the target point, and imports the first-ranked neighboring point into the first queue to become the updated target point;
[0092] S27, determining whether the reachable distance of each adjacent point in the third queue in the third queue is less than the reachable distance in the second queue;
[0093] If there is no adjacent point whose reachable distance in the third queue is less than the reachable distance in the second queue, then return to the above operation of determining whether the second queue contains an adjacent point;
[0094] If there is a neighboring point whose reachable distance in the third queue is smaller than that in the second queue, then S28, using the reachable distance of the neighboring point in the third queue to update the reachable distance in the second queue, and returning to the above operation of determining whether the second queue contains a neighboring point;
[0095] If there is no adjacent point in the second queue, S29, output the first queue.
[0096] It can be known that the first-ranked adjacent point in the third queue is closest to the updated target point, so the first-ranked adjacent point in the third queue can be imported into the first queue. In addition, the third queue contains the reachable distances between each adjacent point and the updated target point, while the second queue contains the reachable distances between each adjacent point and the initial target point. Therefore, if the reachable distance of a certain adjacent point in the third queue is smaller than the reachable distance in the second queue, it means that the distance of the certain adjacent point to the updated target point is closer than the distance to the initial target point. Therefore, the reachable distance of the certain adjacent point in the third queue can be used to update the reachable distance in the second queue to obtain a new second queue, and then return to the above-mentioned S24 step to iterate until there are no adjacent points in the second queue, and then jump out of the iterative process to obtain the first queue q in which all core event points are sequentially stored.
[0097] In addition, in the embodiment of the present invention, before extracting all the core event points in the target data partition using the pre-trained clustering model and calculating the reachable distance feature value of the target data partition according to the reachable distance between each of the core event points, the method further includes:
[0098] Obtain a pre-built sorting recognition clustering model, and configure relevant parameters of the sorting recognition clustering model using a preset core point judgment standard;
[0099] The pre-built sample data is used to train the configured sorting recognition clustering model to obtain a trained clustering model.
[0100] It should be known that the core point defined by the OPTICS clustering model is: within the range of the neighborhood ε, the points with more than the minimum number of samples MinPts around them are core points. In the embodiment of the present invention, the neighborhood range ε of each risk point is set to infinity through the core point judgment standard, and then MinPts is set to N, where N can be set to a natural number starting from 1, but cannot be greater than the number of all event points in the target data partition, and is usually set to 4, so that all risk points in the target data partition can be regarded as core event points, which is conducive to retaining the data characteristics of each risk point in the target data partition, so that the clustering results retain a high degree of spatial heterogeneity; then the OPTICS clustering model is locally trained through pre-constructed local sample data to obtain the trained clustering model, wherein the training process is relatively common and will not be repeated here.
[0101] S3. Construct a minimum spanning tree according to each of the core event points, define each edge in the minimum spanning tree as a cluster, and adaptively merge each of the clusters according to a union-find algorithm to obtain each combined cluster.
[0102] The minimum spanning tree is a connection method that connects each node by the sum of the shortest distances.
[0103] Furthermore, the union-find algorithm is a tree-type data structure processing algorithm, which is often used to process the merging and querying problems of some disjoint sets.
[0104] For details, see Figure 3 As shown, in the embodiment of the present invention, the minimum spanning tree is constructed according to each of the core event points, including:
[0105] S30, extracting non-overlapping core event points, and defining the mutual reach distance d between each of the core event points mreach (a, b) is:
[0106] d mreach(a,b)=max{cd(a),cd(b),d(a,b)}
[0107] a and b are any non-overlapping core event points, cd(a) is the core distance of a, cd(b) is the core distance of b, and d(a, b) is the distance between points a and b;
[0108] S31, taking each of the core event points as a node and each mutual reach distance as an edge, to construct an initial minimum spanning tree;
[0109] S32, according to the sorting results of the mutual reach distances between the core event points from near to far, arranging the edges of the initial minimum spanning tree to obtain a hierarchical structure;
[0110] S33. Compress the hierarchical structure according to a preset minimum cluster, and connect the compressed hierarchical structure to obtain a minimum spanning tree.
[0111] Specifically, in an embodiment of the present invention, each non-overlapping core event point is used as a node, and the mutual reach distance between the core event points is used as an edge, and the minimum value of the mutual reach distance of each core event point is queried to obtain an initial minimum spanning tree; then the present invention regards each edge as a cluster, and limits each cluster through a preset minimum cluster MinClusterSize, compresses clusters with a size smaller than MinClusterSize into closer clusters, and obtains a compressed minimum spanning tree.
[0112] After the minimum spanning tree is obtained in the present invention, the clusters defined by each edge are adaptively merged through a union-find algorithm to obtain each combined cluster. The union-find process is a common data merging method and will not be described in detail.
[0113] S4. Constructing a combined minimum spanning tree of each of the combined clusters, and calculating an average edge distance of each of the combined minimum spanning trees.
[0114] The embodiment of the present invention can generate a combined minimum spanning tree for each combined cluster according to the above-mentioned minimum spanning tree construction method or other clustering methods, and calculate the mutual reach distance of each edge of each combined minimum spanning tree, and then average the mutual reach distances to obtain the average edge distance d of each combined minimum spanning tree. mean .
[0115] S5. According to a preset discard-absorption strategy, the combined clusters whose average edge distance is greater than or equal to the reachable distance characteristic value are used to absorb the combined clusters whose average distance is less than the reachable distance characteristic value, so as to obtain a valid cluster set.
[0116] In the embodiment of the present invention, the abandonment-absorption strategy is: if d mean<eps, indicating that the combined cluster is a dense cluster in the target data partition, and the combined cluster is retained; otherwise, the combined cluster is discarded, and the core event points of the discarded combined cluster are placed in the pre-constructed candidate points, waiting to be received by the buffer of the retained combined cluster, wherein the d mean is the average edge distance of each combined minimum spanning tree, and eps is the reachable distance characteristic value of the target data partition.
[0117] In detail, in an embodiment of the present invention, according to the preset abandonment-absorption strategy, the combination clusters whose average edge distance is greater than or equal to the reachable distance characteristic value are used to absorb the combination clusters whose average distance is less than the reachable distance characteristic value to obtain the valid cluster set, including:
[0118] Retain the combined clusters whose average edge distance is greater than or equal to the reachable distance characteristic value, and import each core event point in the combined clusters whose average distance is less than the reachable distance characteristic value into the pre-constructed candidate area;
[0119] Each buffer zone is constructed based on the minimum spanning tree of each retained combination cluster;
[0120] Performing spatial superposition judgment on each core event point in each buffer zone and each candidate zone;
[0121] If the core event point falls within the buffer zone, the core event point is absorbed into the buffer zone;
[0122] If the core event point does not fall within the buffer zone, the core event point is discarded;
[0123] After traversing all the core event points in the candidate area, each core event point in the buffer area is taken as a valid cluster to obtain a valid cluster set.
[0124] The embodiment of the present invention traverses each remaining combined cluster and constructs a buffer of a preset size for each remaining combined cluster. When the core event point in the candidate area is in which buffer, the core event point belongs to which buffer, and the final valid cluster set is obtained.
[0125] S6. Draw the boundaries of each valid cluster in the valid cluster set to obtain each risk-intensive area in the target data partition.
[0126] In detail, in an embodiment of the present invention, drawing the boundaries of each valid cluster in the valid cluster set to obtain each risk-intensive area in the target data partition includes:
[0127] Dividing the buffer area of the valid clusters that can be extracted by the alphashape tool in the valid cluster set as a first risk concentration area;
[0128] Generate spatial regions for the buffer regions of the valid clusters that cannot be extracted by the alphashape tool in the valid cluster set, and divide the generated results into a second risk-intensive region;
[0129] The first risk concentration area and the second risk concentration area are regionally mapped to obtain each risk concentration area in the target data partition.
[0130] The alphashape tool is a mathematical tool for constructing polygonal or polyhedral graphic outlines based on points in two or three dimensions, wherein a valid cluster in an embodiment of the present invention is a set of two-dimensional points.
[0131] However, the data extraction capability of the alphashape tool is general. The embodiment of the present invention will uniformly display the area contours drawn by the alphashape tool and the buffers of valid clusters omitted in the extraction process to obtain the risk-intensive area range with precise boundaries, which can provide sales personnel with a simpler and more effective basis for determining high-risk areas.
[0132] like Figure 4 , is a functional module diagram of an artificial intelligence-based risk area analysis device provided in one embodiment of the present invention.
[0133] The risk area analysis device 100 based on artificial intelligence of the present invention can be installed in an electronic device. According to the functions to be implemented, the risk area analysis device 100 based on artificial intelligence can include a data partitioning module 101, a reachable distance feature value calculation module 102, a cluster detection module 103, a valid cluster generation module 104 and a risk area output module 105. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0134] In this embodiment, the functions of each module / unit are as follows:
[0135] The data partitioning module 101 is used to extract a historical event data set from a pre-built business database, and partition the historical event data set according to the location where each event in the historical event data set occurred, to obtain an event data partition set;
[0136] The reachable distance feature value calculation module 102 is used to extract a target data partition from the event data partition set, and use a pre-trained clustering model to extract all core event points in the target data partition, and calculate the reachable distance feature value of the target data partition according to the reachable distance between each of the core event points;
[0137] The cluster detection module 103 is used to construct a minimum spanning tree according to each of the core event points, and define each edge in the minimum spanning tree as a cluster, adaptively merge each of the clusters according to a union-find algorithm to obtain each combined cluster, and construct a combined minimum spanning tree of each of the combined clusters, and calculate the average edge distance of each of the combined minimum spanning trees;
[0138] The effective cluster generation module 104 is used to obtain an effective cluster set by using the combination clusters whose average edge distance is greater than or equal to the reachable distance characteristic value and absorbing the combination clusters whose average distance is less than the reachable distance characteristic value according to a preset abandonment-absorption strategy;
[0139] The risk area output module 105 is used to draw the boundaries of each valid cluster in the valid cluster set to obtain each risk-intensive area in the target data partition.
[0140] In detail, each module described in the risk area analysis device 100 based on artificial intelligence in the embodiment of the present invention is used in the same manner as described above. Figures 1 to 3 The technical means are the same as the risk area analysis method based on artificial intelligence described in, and can produce the same technical effects, so they will not be repeated here.
[0141] like Figure 5 , is a schematic diagram of the structure of an electronic device for implementing an artificial intelligence-based risk area analysis method provided by an embodiment of the present invention.
[0142] The electronic device 1 may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as an artificial intelligence-based risk area analysis program.
[0143] In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core (ControlUnit) of the electronic device, and uses various interfaces and lines to connect the various components of the entire electronic device, and executes or executes the programs or modules stored in the memory 11 (for example, executing the risk area analysis program based on artificial intelligence, etc.), and calls the data stored in the memory 11 to execute various functions of the electronic device and process data.
[0144] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 can also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 11 can also include both an internal storage unit of the electronic device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device, such as the code of the risk area analysis program based on artificial intelligence, but also can be used to temporarily store data that has been output or is to be output.
[0145] The communication bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0146] The communication interface 13 is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.
[0147] Figure 5 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 5 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0148] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0149] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0150] The AI-based risk area analysis program stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:
[0151] Extracting a historical event data set from a pre-built business database, partitioning the historical event data set according to the location where each event in the historical event data set occurred, to obtain an event data partition set;
[0152] Extracting a target data partition from the event data partition set, and extracting all core event points in the target data partition using a pre-trained clustering model, and calculating a reachable distance feature value of the target data partition according to the reachable distances between each of the core event points;
[0153] Constructing a minimum spanning tree according to each of the core event points, defining each edge in the minimum spanning tree as a cluster, and adaptively merging each of the clusters according to a union-find algorithm to obtain each combined cluster;
[0154] Constructing a combined minimum spanning tree of each of the combined clusters, and calculating an average edge distance of each of the combined minimum spanning trees;
[0155] According to a preset abandonment-absorption strategy, using the combination clusters whose average edge distance is greater than or equal to the reachable distance characteristic value, absorbing the combination clusters whose average distance is less than the reachable distance characteristic value, to obtain a valid cluster set;
[0156] The boundaries of each valid cluster in the valid cluster set are drawn to obtain each risk-intensive area in the target data partition.
[0157] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.
[0158] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0159] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:
[0160] Extracting a historical event data set from a pre-built business database, partitioning the historical event data set according to the location where each event in the historical event data set occurred, to obtain an event data partition set;
[0161] Extracting a target data partition from the event data partition set, and extracting all core event points in the target data partition using a pre-trained clustering model, and calculating a reachable distance feature value of the target data partition according to the reachable distances between each of the core event points;
[0162] Constructing a minimum spanning tree according to each of the core event points, defining each edge in the minimum spanning tree as a cluster, and adaptively merging each of the clusters according to a union-find algorithm to obtain each combined cluster;
[0163] Constructing a combined minimum spanning tree of each of the combined clusters, and calculating an average edge distance of each of the combined minimum spanning trees;
[0164] According to a preset abandonment-absorption strategy, using the combination clusters whose average edge distance is greater than or equal to the reachable distance characteristic value, absorbing the combination clusters whose average distance is less than the reachable distance characteristic value, to obtain a valid cluster set;
[0165] The boundaries of each valid cluster in the valid cluster set are drawn to obtain each risk-intensive area in the target data partition.
[0166] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0167] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0168] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0169] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0170] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0171] The blockchain referred to in the present invention is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the blockchain underlying platform, platform product service layer, and application service layer.
[0172] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0173] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0174] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A risk area analysis method based on artificial intelligence, characterized in that: The method comprises: Extracting a historical event data set from a pre-built business database, partitioning the historical event data set according to the location where each event in the historical event data set occurred, and obtaining an event data partition set, wherein the historical event data set includes business records of events of claims and underwriting business of a specific insurance company in the past year, including fields of claim type, insured amount, claim point location, and claim time; Extracting a target data partition from the event data partition set, and extracting all core event points in the target data partition using a pre-trained clustering model, and calculating a reachable distance feature value of the target data partition according to the reachable distances between each of the core event points; Constructing a minimum spanning tree according to each of the core event points, defining each edge in the minimum spanning tree as a cluster, and adaptively merging each of the clusters according to a union-find algorithm to obtain each combined cluster; Constructing a combined minimum spanning tree of each of the combined clusters, and calculating an average edge distance of each of the combined minimum spanning trees; According to a preset abandonment-absorption strategy, the combined clusters whose average edge distance is greater than or equal to the reachable distance characteristic value are used to absorb the combined clusters whose average distance is less than the reachable distance characteristic value, so as to obtain a valid cluster set; Draw the boundaries of each valid cluster in the valid cluster set to obtain each risk-intensive area in the target data partition; The method of extracting all the core event points in the target data partition by using the pre-trained clustering model and calculating the reachable distance characteristic value of the target data partition according to the reachable distance between each of the core event points includes: sorting all the core event points in the target data partition according to the reachable distance according to a preset sorting strategy to obtain a first queue; representing the density of the first queue, quantizing the density representation result according to a preset scaling parameter, and calculating the reachable distance characteristic value of the target data partition; According to the preset sorting strategy, all the core event points in the target data partition are sorted by reachable distance to obtain a first queue, including: step A, extracting all the core event points in the target data partition and defining the core distance of each core event point; step B, using the clustering model to calculate the reachable distance between each core event point according to the core distance; step C, arbitrarily extracting a core event point from all the core event points in the target data partition as the initial target point, and importing the initial target point into the pre-constructed first queue; step D, extracting all the core event points in the preset neighborhood range of the initial target point as adjacent points, and according to the reachable distance of each adjacent point to the initial target point from near to far, each adjacent point and the reachable distance of each adjacent point are sequentially imported into the pre-constructed second queue; step E, judging whether the second queue contains adjacent points; step F, if the second queue contains adjacent points, then select the adjacent points from the first queue in the sorting order; step F, if the second queue contains adjacent points, ... One of the adjacent points is called out from the second queue, and the called adjacent point is stored in the first queue as an updated target point; step G, extracting all core event points in the preset neighborhood range of the updated target point as adjacent points, and according to the reachable distances of each adjacent point and the updated target point from near to far, each adjacent point and the reachable distance of each adjacent point are sequentially imported into the pre-constructed third queue; step H, judging whether the reachable distance of each adjacent point in the third queue is less than the reachable distance in the second queue; step I, if there is no adjacent point whose reachable distance in the third queue is less than the reachable distance in the second queue, return to the above step E; step J, if there is an adjacent point whose reachable distance in the third queue is less than the reachable distance in the second queue, use the reachable distance of the adjacent point in the third queue to update the reachable distance in the second queue, and return to the above step E; step K, if there is no adjacent point in the second queue, output the first queue.
2. The risk area analysis method based on artificial intelligence according to claim 1, characterized in that: The constructing a minimum spanning tree according to each of the core event points includes: Extract non-overlapping core event points, and use a preset formula to define the mutual reach distance between each of the core event points; Taking each of the core event points as a node and each of the mutual reach distances as an edge, an initial minimum spanning tree is constructed; Arrange the edges of the initial minimum spanning tree according to the sorting results of the mutual reach distances between the core event points from near to far to obtain a hierarchical structure; The hierarchical structure is compressed according to a preset minimum cluster, and the compressed hierarchical structure is connected to obtain a minimum spanning tree.
3. The risk area analysis method based on artificial intelligence according to claim 1, characterized in that: The method of obtaining a valid cluster set by using the combination clusters whose average edge distance is greater than or equal to the reachable distance characteristic value and absorbing the combination clusters whose average distance is less than the reachable distance characteristic value according to the preset abandonment-absorption strategy includes: Retain the combination clusters whose average edge distance is greater than or equal to the reachable distance characteristic value, and construct each buffer zone based on the minimum spanning tree of each retained combination cluster; Importing each core event point in the combined cluster whose average distance is less than the reachable distance characteristic value into the pre-constructed candidate area; Performing a spatial superposition operation on each of the buffer zones and each of the core event points in the candidate zone to determine whether the core event point in the candidate zone falls in the buffer zone; If the core event point falls within the buffer zone, the core event point is absorbed into the buffer zone; If the core event point does not fall within the buffer zone, the core event point is discarded; After traversing all the core event points in the candidate area, each core event point in the buffer area is taken as a valid cluster to obtain a valid cluster set.
4. The risk area analysis method based on artificial intelligence according to claim 1, characterized in that: The step of drawing the boundaries of each valid cluster in the valid cluster set to obtain each risk-intensive area in the target data partition includes: Dividing the buffer area of the valid clusters that can be extracted by the alphashape tool in the valid cluster set as a first risk concentration area; Generate spatial regions for the buffer regions of the valid clusters that cannot be extracted by the alphashape tool in the valid cluster set, and divide the generated results into a second risk-intensive region; The first risk concentration area and the second risk concentration area are regionally mapped to obtain each risk concentration area in the target data partition.
5. The risk area analysis method based on artificial intelligence according to any one of claims 1 to 4, characterized in that: Before extracting all the core event points in the target data partition by using the pre-trained clustering model and calculating the reachable distance feature value of the target data partition according to the reachable distances between the core event points, the method further includes: Obtain a pre-built sorting recognition clustering model, and configure relevant parameters of the sorting recognition clustering model using a preset core point judgment standard; The pre-built sample data is used to train the configured sorting recognition clustering model to obtain a trained clustering model.
6. An artificial intelligence-based risk area analysis device, used to implement the artificial intelligence-based risk area analysis method according to any one of claims 1 to 5, characterized in that: The device comprises: A data partitioning module is used to extract a historical event data set from a pre-built business database, and partition the historical event data set according to the location where each event in the historical event data set occurred to obtain an event data partition set; A reachable distance feature value calculation module, used to extract a target data partition from the event data partition set, and use a pre-trained clustering model to extract all core event points in the target data partition, and calculate the reachable distance feature value of the target data partition according to the reachable distance between each of the core event points; A cluster detection module is used to construct a minimum spanning tree according to each of the core event points, and define each edge in the minimum spanning tree as a cluster, adaptively merge each of the clusters according to a union-find algorithm to obtain each combined cluster, and construct a combined minimum spanning tree of each of the combined clusters, and calculate the average edge distance of each of the combined minimum spanning trees; An effective cluster generation module is used to obtain an effective cluster set by using the combination clusters whose average edge distance is greater than or equal to the reachable distance characteristic value and absorbing the combination clusters whose average distance is less than the reachable distance characteristic value according to a preset abandonment-absorption strategy; The risk area output module is used to draw the boundaries of each valid cluster in the valid cluster set to obtain each risk-intensive area in the target data partition.
7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the artificial intelligence-based risk area analysis method as described in any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the risk area analysis method based on artificial intelligence as described in any one of claims 1 to 5 is implemented.
