Abnormal activation area judgment method, electronic equipment and medium

By detecting and clustering the coordinates of device activation locations, and setting density thresholds based on geographical area characteristics, the accuracy problem in the existing technology of judging whether an area with a large number of activated devices is a channel of goods fraud has been solved, and the accuracy of the judgment of areas with a large number of activated devices has been improved. Rate.

CN118628131APending Publication Date: 2024-09-10GUANGDONG HOTATA TECH GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410974542.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing equipment cross-selling management methods cannot accurately determine whether areas with a large number of activated devices are areas with cross-selling behavior, resulting in low accuracy of judgment.

Method used

By detecting whether the number of coordinates of the activated location received within the target time period exceeds the preset threshold, if so, these coordinates are obtained and clustered into clusters, the density of the clusters is determined, and the target density threshold is set according to the characteristics of the geographical area. , if the cluster density is greater than the threshold, it is determined to be an abnormal activation area.

Benefits of technology

The accuracy of the judgment of abnormal activation areas is improved, making the judgment more targeted and consistent with the actual situation, and reducing the misjudgment rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628131A
    Figure CN118628131A
Patent Text Reader

Abstract

The embodiment of the invention provides a judgment method of an abnormal activation area, electronic equipment and a medium, and relates to the technical field of computers. The method comprises the following steps: if the number of times of receiving coordinates of activation sites in a target time period is greater than a preset number-of-times threshold value, acquiring the coordinates of the activation sites received in a preset time period; the coordinate of each activation site is the coordinate of a real-time position reported when the corresponding intelligent equipment is activated; clustering the activation sites into at least one cluster according to the coordinates of the activation sites, and determining the density of each cluster; for each cluster, obtaining a target region feature of a geographic region where each activation site in the cluster is located, and determining a target density threshold value corresponding to the cluster according to the target region feature; and for each cluster, if the density of the cluster is greater than the corresponding target density threshold, taking the geographic area where each activation site in the cluster is located as an abnormal activation area. According to the embodiment of the invention, the accuracy of judging the abnormal activation area is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method for determining an abnormally activated area, an electronic device, and a medium. Background Art

[0002] Existing methods for managing device cross-selling are mainly implemented by monitoring the activation locations of the equipment. When the device activation locations are too dense, it is considered that there is suspicion of cross-selling. Traditional methods for determining cross-selling usually determine whether there is suspicion of cross-selling by counting the number of activated devices in a certain area.

[0003] Therefore, there is a problem that it is impossible to accurately determine whether an area with a large number of activated devices is an area where cross-selling occurs. Summary of the invention

[0004] The embodiments of the present application provide a method for determining an abnormally activated area, an electronic device, and a medium, which are used to solve the technical problem of low accuracy in determining an abnormally activated area.

[0005] According to a first aspect of an embodiment of the present application, a method for determining an abnormal activation area is provided, the method comprising: if the number of times the coordinates of the activation location are received within a target time period is greater than a preset number threshold, obtaining the coordinates of each activation location received within the preset time period; the coordinates of each activation location are the coordinates of the real-time position reported by the corresponding smart device when it is activated; Clustering each activation site into at least one cluster according to the coordinates of each activation site and determining the density of each cluster; For each cluster, the target area features of the geographical area where each activation location in the cluster is located are obtained, and the target density threshold corresponding to the cluster is determined according to the target area features; For each cluster, if the density of the cluster is greater than the corresponding target density threshold, the geographical area where each activation site in the cluster is located is regarded as the abnormal activation area.

[0006] According to a second aspect of an embodiment of the present application, a device for determining an abnormally activated area is provided, the device comprising: An acquisition module, for acquiring the coordinates of each activation location received within a preset time period if the number of times the coordinates of the activation location are received within a target time period is greater than a preset number threshold; the coordinates of each activation location are the coordinates of the real-time position reported by the corresponding smart device when it is activated; A clustering module, for clustering the activation locations into at least one cluster according to the coordinates of the activation locations and determining the density of each cluster; A determination module, for obtaining, for each cluster, target area characteristics of the geographical area where each activation location in the cluster is located, and determining a target density threshold corresponding to the cluster according to the target area characteristics; The processing module is used for, for each cluster, if the density of the cluster is greater than the corresponding target density threshold, taking the geographical area where each activation location in the cluster is located as an abnormal activation area.

[0007] According to a third aspect of an embodiment of the present application, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory, and when the processor executes the program, the steps of the method provided in the first aspect are implemented.

[0008] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method provided in the first aspect are implemented.

[0009] According to the fifth aspect of the embodiment of the present application, a computer program product is provided, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. When a processor of a computer device reads the computer instructions from the computer-readable storage medium, the processor executes the computer instructions, so that the computer device executes the steps of implementing the method provided in the first aspect.

[0010] The beneficial effects of the technical solution provided by the embodiment of the present application are: The embodiment of the present application provides a method for determining an abnormal activation area. Whether to further perform abnormal activation area determination is determined by detecting whether the number of times the coordinates of an activation location are received within a target time period exceeds a preset number threshold. When the number of times the coordinates are received within the target time period exceeds the preset number threshold, it indicates that an abnormal activation area may currently exist. In order to further determine whether there is an abnormal activation area, the coordinates of each activation location received within the preset time period are obtained, and each activation location is clustered into at least one cluster according to the coordinates of each activation location, and the density of each cluster is determined. For each cluster, the regional characteristics of the geographical area where each activation location in the cluster is located are obtained, and the target density threshold corresponding to the cluster is determined according to the regional characteristics, and the calculated density of the cluster is compared based on the above target density threshold. If the density of the cluster is greater than the corresponding target density threshold, the geographical area where each activation location in the cluster is located is regarded as an abnormal activation area. Based on the regional characteristics of the geographical area where each activation location in each cluster is located, the target density threshold used to determine whether the geographical area where the cluster is located is an abnormal activation area is determined, so that the determination of the abnormal activation area of ​​each cluster is more targeted and more in line with the actual situation, thereby greatly improving the accuracy of determining the abnormal activation area. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.

[0012] Figure 1 A schematic diagram of a system architecture for implementing a method for determining abnormal activation areas provided in an embodiment of the present application; Figure 2 A flowchart of a method for determining an abnormally activated area provided in an embodiment of the present application; Figure 3 A schematic flow chart of a method for clustering activation locations into at least one cluster in a method for determining an abnormal activation area provided in an embodiment of the present application; Figure 4 A schematic flow chart of a method for determining a cosine value in a method for determining an abnormally activated region provided in an embodiment of the present application; Figure 5 A method for determining similarity in a method for determining an abnormally activated region provided in an embodiment of the present application; Figure 6 A flow chart of a method for determining a cluster to which each activation location belongs in a method for determining an abnormal activation area provided in an embodiment of the present application; Figure 7 A schematic diagram of the flow of each round of clustering in a method for determining an abnormally activated region provided in an embodiment of the present application; Figure 8 A schematic flow chart of a method for calculating the similarity between a new cluster and other clusters in a method for determining an abnormally activated region provided in an embodiment of the present application; Fig. 9 A schematic flow chart of a method for determining a target density threshold corresponding to a cluster in a method for determining an abnormally activated region provided in an embodiment of the present application; Fig.10 A flowchart of another method for determining an abnormally activated area provided in an embodiment of the present application; Fig.11 A schematic diagram of the structure of a device for determining an abnormally activated area provided in an embodiment of the present application; Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0013] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.

[0014] It will be understood by those skilled in the art that, unless specifically stated, the singular forms "one", "an" and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application refer to that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude the implementation as other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the technical field. It should be understood that when we call an element "connected" or "coupled" to another element, the one element can be directly connected or coupled to the other element, or it can refer to that the one element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used here may include wireless connection or wireless coupling. The term "and / or" used here indicates at least one of the items defined by the term, for example, "A and / or B" can be implemented as "A", or as "B", or as "A and B".

[0015] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0016] The following is an explanation of the terms and related technologies involved in this application: Clustering: The process of dividing a collection of physical or abstract objects into multiple classes consisting of similar objects is called clustering. The clusters generated by clustering are a collection of data objects that are similar to objects in the same cluster and different from objects in other clusters. "Birds of a feather flock together", there are a large number of classification problems in natural sciences and social sciences. Cluster analysis, also known as group analysis, is a statistical analysis method for studying (sample or indicator) classification problems. Cluster analysis originated from taxonomy, but clustering is not equal to classification. The difference between clustering and classification is that the classes required for clustering are unknown. Cluster analysis is very rich in content, including systematic clustering, ordered sample clustering, dynamic clustering, fuzzy clustering, graph clustering, cluster prediction, etc.

[0017] The following is an explanation of the relevant technology: In the prior art, whether an area is an abnormal activation area is determined by the total number of device activations in a certain area. However, due to the different regional characteristics of different areas, when there are a large number of users in a certain area, for example, an area is a commercial area and a school, the number of device activations in the area will be correspondingly high. In this case, it will be impossible to normally distinguish whether it is a normal activation area or an abnormal activation area, and different areas are of different sizes. The same number of device activations can represent different densities. Therefore, the accuracy of determining whether the area is an abnormal activation area based on the number of activated devices counted is low.

[0018] In view of at least one of the above-mentioned technical problems or areas that need to be improved in the related art, the present application proposes a method for determining an abnormal activation area. The scheme determines whether to further perform abnormal activation area judgment by detecting whether the number of times the coordinates of the activation location are received within a target time period exceeds a preset number threshold. When the number of receptions within the target time period exceeds the preset number threshold, it indicates that an abnormal activation area may exist at present. In order to further determine whether there is an abnormal activation area, the coordinates of each activation location received within the preset time period are obtained, and according to the coordinates of each activation location, each activation location is clustered into at least one cluster, and the density of each cluster is determined. For each cluster, the regional characteristics of the geographical area where each activation location in the cluster is located are obtained, and the target density threshold corresponding to the cluster is determined according to the regional characteristics, and the calculated density of the cluster is compared based on the above target density threshold. If the density of the cluster is greater than the corresponding target density threshold, the geographical area where each activation location in the cluster is located is regarded as an abnormal activation area. Based on the regional characteristics of the geographical area where each activation location in each cluster is located, the target density threshold used to judge whether the geographical area where the cluster is located is an abnormal activation area is determined, so that the judgment of the abnormal activation area of ​​each cluster is more targeted and more in line with the actual situation, thereby greatly improving the accuracy of judging the abnormal activation area.

[0019] The following describes several exemplary embodiments to illustrate the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application. It should be noted that the following embodiments can refer to, draw on or combine with each other, and the same terms, similar features and similar implementation steps in different embodiments will not be described repeatedly.

[0020] Figure 1 A schematic diagram of a system architecture for implementing a method for determining abnormally activated areas provided in an embodiment of the present application, wherein the system architecture includes: a terminal 120 and a server 140.

[0021] The terminal 120 installs and runs an application program having a method for determining an abnormal activation area. The terminal 120 is used to determine whether the area where each activation location is located is an abnormal activation area according to the coordinates of the received activation location.

[0022] The terminal 120 is connected to the server 140 via a wireless network or a wired network.

[0023] The server 140 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Schematically, the server 140 includes a processor 144 and a memory 142, and the memory 142 includes a display module 1421, a control module 1422, and a receiving module 1423. The server 140 is used to provide background services for the application of the method for determining the abnormal activation area. Optionally, the server 140 undertakes the main computing work and the terminal 120 undertakes the secondary computing work; or, the server 140 undertakes the secondary computing work and the terminal 120 undertakes the main computing work; or, the server 140 and the terminal 120 use a distributed computing architecture for collaborative computing.

[0024] Optionally, the device types of the terminal include: at least one of a smart phone, a tablet computer, an e-book reader, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, a laptop computer and a desktop computer.

[0025] Those skilled in the art will appreciate that the number of the above terminals may be more or less. For example, the above terminal may be only one, or the above terminals may be dozens or hundreds, or more. The embodiment of the present application does not limit the number of terminals and device types.

[0026] The present application provides a method for determining abnormal activation areas. Figure 2 As shown, the method includes: S101, if the number of times the coordinates of the activation location are received within the target time period is greater than the preset number threshold, the coordinates of each activation location received within the preset time period are obtained; the coordinates of each activation location are the coordinates of the real-time position reported by the corresponding smart device when it is activated.

[0027] In the embodiments of the present application, the smart device may be a smart home device, such as a clothes drying machine, an air conditioner, a television, a sweeping robot, etc., or may be a smart office device, or may be a smart security device, such as a smart lock.

[0028] In the embodiment of the present application, when the smart device is activated, it will automatically upload the coordinates of the real-time location of the smart device. That is to say, when the terminal receives the coordinates of the real-time location uploaded by the smart device, it indicates that a smart device has been activated at this time.

[0029] In an embodiment of the present application, the coordinates of the real-time location reported by the smart device are longitude and latitude coordinates. After receiving the longitude and latitude coordinates of the real-time location, the terminal converts the longitude and latitude coordinates into two-dimensional coordinates based on a preset two-dimensional coordinate system, obtains the coordinates of the activation location, and stores the coordinates of the activation location.

[0030] In an embodiment of the present application, if the number of times the coordinates of the activation location are received within the target time period is greater than the preset number threshold, it means that the number of smart device activations within the target time period is higher than normal, and there is a possibility of channel diversion. Therefore, the coordinates of each activation location received within the preset time period are obtained to further determine the area where channel diversion may exist.

[0031] By counting the number of times the coordinates of the activation location are received in the most recent time period, the influence of the device activation time is taken into account, thereby improving the accuracy of subsequent determination of abnormal activation areas.

[0032] By counting the number of reports of activation locations of activated devices within the target time period, the impact of the device activation time span is taken into account, thereby improving the accuracy of subsequent abnormal activation judgments. In the embodiment of the present application, the method for converting the longitude and latitude coordinates reported by the smart device into two-dimensional coordinates is as follows: the longitude and latitude of the longitude and latitude coordinates of the real-time position reported by the smart device are λ, φ, and the radius of the earth is R. The coordinates of the activation location obtained by conversion are (x, y), and the conversion formula is as follows:

[0033]

[0034] By converting the longitude and latitude coordinates into two-dimensional coordinates, the calculation is simpler when clustering the activation locations by the coordinates of the activation locations.

[0035] In an embodiment of the present application, the number of times the coordinates of the activation location are received within the target time period is counted every preset time period. The preset time period and the target time period may be the same or different. For example, every 24 hours, the number of times the coordinates of the activation location are received at the current time and 48 hours ago is counted.

[0036] S102: Clustering the activation locations into at least one cluster according to the coordinates of the activation locations and determining the density of each cluster.

[0037] In the embodiment of the present application, clustering refers to the process of classifying multiple activation locations by similarity under the same metric standard. A cluster is a collection of activation locations with high similarity. That is, the activation locations in each cluster are highly similar to each other, and the similarity between the activation locations in each cluster is relatively low.

[0038] Through the clustering algorithm, the activation locations with similar characteristics are assigned to a cluster, thereby reducing the accuracy of determining abnormal activation areas.

[0039] In an embodiment of the present application, at least one cluster and the center point corresponding to the cluster can be predetermined, and then each activation point can be assigned to the cluster corresponding to the nearest center point according to the distance between the coordinates of each activation location and each center point, and then the center point of each cluster can be recalculated, and the distance between each activation location and the center point of each cluster can be determined again, and the nearest center point can be reassigned to each activation location, and the above steps can be repeated until the clusters to which each activation location belongs no longer change, and at least one cluster is obtained.

[0040] In the embodiment of the present application, the nearest activation locations may be gradually assigned to a cluster by calculating the distances between the activation locations, until a specified number of clusters is reached.

[0041] In the embodiment of the present application, the density of the cluster refers to the density between the activation locations in the cluster. The larger the density of the cluster, the higher the density of the activation locations in the cluster. The smaller the density of the cluster, the lower the density of the activation locations in the cluster. Therefore, the number of activation locations per unit area in each cluster can be determined based on the number of activation locations in the cluster and the total area occupied by each activation location, thereby obtaining the density of the cluster.

[0042] In an embodiment of the present application, for each cluster, the activation locations located at the edge of the geographical area where the activation locations are located are determined based on the coordinates of the activation locations of the cluster; the area of ​​the cluster is determined based on the coordinates of the activation locations located at the edge of the area; and the density of the cluster is determined based on the number of activation locations in the cluster and the area of ​​the cluster.

[0043] In an embodiment of the present application, for each cluster, the coordinates of all activation locations in the cluster are obtained, the coordinates of all activation locations are traversed, the minimum and maximum coordinate values ​​in the cluster are found, and the edge coordinates of the cluster are determined using the minimum and maximum coordinate values, thereby obtaining the activation locations at the edge of the region. According to the coordinates of the activation locations at the edge of the region, the area of ​​the cluster is determined. For example, the coordinates of the activation locations in the cluster are (1,1), (2,2), (3,3), (1,3), (3,1), (2,1) and (2,3). The maximum and minimum values ​​in the X-axis direction are 1 and 3 respectively, and the maximum and minimum values ​​in the Y-axis direction are 1 and 3 respectively, thereby obtaining the coordinates of the activation locations at the edge of the region as (1,1), (1,3), (3,3) and (3,1). According to the coordinates of the activation locations at the edge of the region, the area of ​​the cluster is 4.

[0044] The density of the cluster is calculated by the area of ​​the cluster and the number of activation sites in the cluster. The influence of the size of the geographical area where the cluster is located is taken into account, thereby improving the reliability of the determination results of the abnormal activation area. By determining the activation sites in the edge area of ​​the cluster, the boundaries of the cluster can be more intuitively depicted. Since the areas of the clusters are different, it is simpler to calculate the area of ​​the cluster based on the coordinates of the activation sites in the edge area of ​​the cluster.

[0045] In the embodiment of the present application, a flow chart of a method for clustering activation locations into at least one cluster is shown as follows: Figure 3 The specific contents are as follows: S201, for each activation location, construct a vector of the activation location according to the coordinates of the activation location, and calculate the cosine value and distance between two activation locations; S202, determining the similarity between two activation locations according to the cosine value and the distance between two activation locations; S203: Determine the cluster to which each activation location belongs based on the similarity between any two activation locations.

[0046] In S201 of the embodiment of the present application, the coordinates of the activation location are two-dimensional coordinates. The vector of the activation location can be obtained based on the origin of the coordinate system and the coordinates of the activation location. For example, if the activation location A is (3, 4), then the vector A of the activation location is also (3, 4). After determining the vectors of the activation locations pairwise, the cosine values ​​of the activation locations are calculated based on the vectors of the activation locations, and the distance between the activation locations is calculated based on the coordinates of the activation locations.

[0047] In S202 of the embodiment of the present application, after the cosine value and the distance between each activation location are determined, the cosine value between each activation location represents the angle between the vectors of the two activation locations, which is used to evaluate the similarity of the directions between the vectors of the two activation points. The closer the cosine value is to 1, the closer the angle between the two vectors is to 0 degrees, indicating that the vectors of the two activation locations are closer in direction; the closer the distance between the activation locations is, the closer the two activation locations are. Based on the similarity in direction and the similarity in distance between the above-mentioned activation locations, the similarity between each activation location is determined.

[0048] In S203 of the embodiment of the present application, the similarity between the activation locations is determined, and for any two activation locations, the two activation locations with similarity greater than a preset similarity threshold are grouped into the same cluster, thereby determining the cluster to which each activation location belongs.

[0049] The cosine value takes into account the directional relationship between activation locations, which helps to better distinguish similar points in different directions or angles. The distance can better reflect the density between points, and can better understand the similarities and differences between different points, which helps to explain the rationality of the clustering results.

[0050] In the embodiment of the present application, the flow chart of the method for determining the cosine value is as follows: Figure 4 The specific contents are as follows: S301, determining the dot product and modulus of two vectors according to the vectors of the activation locations in pairs; S302, obtaining the cosine value between any two activation locations according to the dot product and modulus of the two vectors.

[0051] In S301 of the embodiment of the present application, the dot product of two vectors and the respective moduli of the two vectors are determined based on the vectors of the activation locations in pairs.

[0052] In S302 of the embodiment of the present application, for any two activation locations, the product of the modules of the two vectors of the two activation locations is calculated, and the product of the two vectors is divided by the product of the modules of the two vectors to obtain the cosine value between the two activation locations.

[0053] In the embodiment of the present application, the method for determining the similarity is as follows: Figure 5 The specific contents are as follows: S401, respectively determining the weights corresponding to the cosine value and the distance; the weight corresponding to the cosine value is a positive number, and the weight corresponding to the distance is a negative number; S402, for any two activation locations, weighting the cosine values ​​of the two activation locations with the weight corresponding to the cosine value to obtain a weighted cosine value, and weighting the distance between the two activation locations with the weight corresponding to the distance to obtain a weighted distance; S403, obtaining the similarity between any two activation locations according to the weighted cosine value and the distance.

[0054] In S401 of the embodiment of the present application, the weight corresponding to the pre-set cosine value and the weight corresponding to the distance are obtained. Since the closer the cosine value is to 1, the closer the directions between the two activation locations are, and the smaller the distance between the two activation locations is, the closer the positions between the two activation locations are. In order to make the similarity between the two activation locations proportional to the similarity, the weight corresponding to the cosine value is set to a positive number in advance, and the weight corresponding to the distance is set to a negative number.

[0055] In S402 of the embodiment of the present application, for any two activation locations, the weight corresponding to the cosine value is multiplied by the cosine value of the activation locations to obtain the weighted cosine value, and the weight corresponding to the distance is multiplied by the cosine value between the activation locations to obtain the weighted distance.

[0056] In S403 of the embodiment of the present application, the weighted distance and the weighted cosine value are added to obtain the similarity between the two activation locations.

[0057] By calculating the similarity by weighting the cosine value and the distance, the robustness of the similarity is improved and the influence of distance and direction on the similarity is better balanced.

[0058] In the embodiment of the present application, the method for determining the cluster to which each activation location belongs is as follows: Figure 6 The specific contents are as follows: S501, each activation site is regarded as a cluster; S502, putting the similarities between two clusters into a similarity set; S503, performing multiple rounds of clustering on each cluster according to the similarity set until a first preset condition is met; the first preset condition is that any similarity in the similarity set is less than a preset similarity threshold; S504: Determine the cluster to which each activated location belongs according to the clustering result of the last round of clustering.

[0059] In S501 in the embodiment of the present application, the activation location is taken as a cluster, and the coordinates of the activation location are taken as the center point of the cluster.

[0060] In S502 of the embodiment of the present application, since each of the above clusters is an activation location, the similarity between any two clusters is the similarity between any two activation locations, and the similarity between any two activation locations is put into a similarity set.

[0061] In S503 of the embodiment of the present application, multiple rounds of clustering are performed on each cluster according to the similarity between clusters until the similarity between clusters in the similarity set is less than a preset similarity threshold, that is, when the differences between clusters are large, there is no need to cluster the clusters.

[0062] In S504 of the embodiment of the present application, when the first preset condition is met, it means that the similarity between the clusters in the current similarity set is low and there are large differences. Therefore, there is no need to continue merging the clusters. The cluster to which each activation location belongs is determined based on the merging results of the current clusters.

[0063] In the embodiment of the present application, each round of clustering, such as Figure 7 As shown, including the following: S601, obtaining two clusters corresponding to the maximum similarity from the similarity set of this round of clustering, and merging the two clusters into a new cluster; S602, for each of the two clusters, delete the similarity between the cluster and the other cluster from the similarity set; S603, calculating the similarity between the new cluster and other clusters, and putting the similarity between the new cluster and other clusters into a similarity set to obtain a similarity set for the next round of clustering.

[0064] In S601 of the embodiment of the present application, the similarity with the largest value is obtained from the current round of similarity set, and two clusters corresponding to the above similarity are determined. Since the similarity between the above two clusters is the largest, it means that the above two clusters are closest. Therefore, the above two clusters can be merged into one cluster. For example, the largest similarity in the similarity set is the similarity between the cluster corresponding to activation location A and the cluster corresponding to activation location B. Therefore, the above two clusters are merged into a new cluster, thereby obtaining a new cluster including activation location A and activation location B.

[0065] In S602 of the embodiment of the present application, since the two clusters with the highest similarity are merged into a new cluster, it is necessary to delete the similarities between other clusters and the above two clusters in the similarity set to avoid merging the two merged clusters again in the next round of clustering.

[0066] In S603 of the embodiment of the present application, since a new cluster is generated, it is necessary to calculate the similarity between the new cluster and each other cluster, and then put the calculated similarity between the new cluster and other clusters into a similarity set to obtain the similarity set for the next round of clustering, so that in the next round of clustering, the two clusters with the greatest similarity can be selected for merging.

[0067] By clustering each cluster based on a similarity set, the similarity between clusters is more intuitive, and by obtaining the cluster corresponding to the maximum similarity for multiple rounds of clustering, it can be ensured that each activation location can be accurately divided into the corresponding cluster, and activation locations with the same characteristics can be divided together more efficiently and effectively.

[0068] In the embodiment of the present application, the method for calculating the similarity between the new cluster and other clusters is as follows: Figure 8 The specific contents are as follows: S701, for the new cluster and each of the other clusters, determine the coordinates of the center point of the cluster according to the coordinates of each activation location in the cluster, and construct a vector of the center point based on the coordinates of the center point; S702, for the center point of any other cluster, calculate the cosine value and distance between the two center points of the new cluster and any other cluster according to the vector of the center point and the vector of the center point of the new cluster; S703, respectively determining the weights corresponding to the cosine value and the distance; wherein the weight corresponding to the cosine value is a positive number, and the weight corresponding to the distance is a negative number; S704, for each cosine value and distance of each pair of center points, weight the cosine values ​​of the two center points of the new cluster and any other clusters with the weight corresponding to the cosine value to obtain a weighted cosine value, and weight the distance between the two center points of the new cluster and any other clusters with the weight corresponding to the distance to obtain a weighted distance; S705, obtaining the similarity between the new cluster and any other cluster according to the weighted cosine value and the distance.

[0069] In S701 of the embodiment of the present application, in the process of calculating the similarity between a new cluster and other clusters, the center point of each cluster is first determined. The center point of each cluster represents the average position of the cluster and can be used to represent the characteristics of the entire cluster. After the center point is determined, the vector of the center point can be constructed based on the coordinates of the center point.

[0070] In S702 of the embodiment of the present application, for each cluster except the new cluster, the cosine value and distance between the two center points of the new cluster and any other cluster are calculated based on the vector of the center point of the new cluster and the vector of the center point of the above cluster.

[0071] In S703 of the embodiment of the present application, a preset weight corresponding to the cosine value and a preset weight corresponding to the distance are obtained, and the weight corresponding to the cosine value is a positive number, and the weight corresponding to the distance is a negative number.

[0072] In S704 of the embodiment of the present application, for the cosine value and distance between the center point of the new cluster and the center point of any cluster except the new cluster, the above cosine value is multiplied by the weight corresponding to the cosine value to obtain the weighted cosine value, and the above distance is multiplied by the weight corresponding to the distance to obtain the weighted distance.

[0073] In S705 of the embodiment of the present application, for the new cluster and any cluster except the new cluster, the weighted cosine value and the weighted distance are added to obtain the similarity between the new cluster and any other cluster.

[0074] The similarity between clusters is calculated by the distance and cosine value between the center points of each cluster. The center point of a cluster represents the important features of the cluster. By comparing the cosine value and distance between the center points, the similarity between clusters can be better compared, while reducing the complexity of the calculation.

[0075] S103: For each cluster, obtain target area features of the geographical area where each activation location in the cluster is located, and determine a target density threshold corresponding to the cluster according to the target area features.

[0076] In the embodiment of the present application, the region feature is a feature that can be used to determine the target density threshold, and the target region feature refers to a feature of the current cluster that can determine the target density threshold.

[0077] In the embodiment of the present application, the regional feature includes at least one of the following: Functions of geographic areas; Population density of geographic areas; The rank of the city in which the geographic area is located.

[0078] In an embodiment of the present application, each regional feature includes a variety of different scenarios. The regional feature may be a function of a geographical area. Different functions of a geographical area may have a certain degree of influence on the setting of a target density threshold. For example, when the regional feature is a function of a geographical area, the corresponding scenario may be a school, a commercial area, a residential area, an industrial area, etc. If the corresponding scenario is a residential area, the target density threshold needs to be appropriately increased. If the corresponding scenario is an industrial area, the target density threshold needs to be appropriately reduced.

[0079] In an embodiment of the present application, the regional feature can also be the population density of a geographical area. The corresponding scenarios are different population densities. When the population density is high, the target density threshold needs to be appropriately increased. When the population density is low, the target density threshold needs to be appropriately lowered.

[0080] In an embodiment of the present application, the regional feature can also be the level of the city, so the corresponding scenarios can be first-tier cities, second-tier cities and third-tier cities. For example, when the corresponding scenario is a first-tier city, the target density threshold needs to be appropriately increased, and when the corresponding scenario is a third-tier city, the target density threshold needs to be appropriately lowered.

[0081] In the embodiment of the present application, the geographical area where each cluster is located is composed of the geographical areas where each activation location in the cluster is located. Therefore, the target area characteristics of the geographical area where the cluster is located are obtained, thereby determining the target area characteristics of the geographical area where the cluster is located, and then determining the target density threshold based on the target area characteristics of the geographical area where the cluster is located.

[0082] In an embodiment of the present application, the target density threshold is used to judge whether the area where the current cluster is located is an abnormal activation area. Since the target area characteristics of the geographical areas are different, the target density threshold used to judge whether the geographical area where the cluster is located is an abnormal activation area will also be different. That is, different standards for determining abnormal activation areas are established according to different target area characteristics.

[0083] In the embodiment of the present application, the method for determining the target density threshold corresponding to the cluster is as follows: Fig. 9 As shown, the specific process is as follows: S801, obtaining at least one target area feature of the geographical area where each activation location in the cluster is located; S802, for each target region feature, according to the preset correspondence between the region feature and the scene, determine the target scene corresponding to the target region feature, and determine the initial density threshold corresponding to the target scene from the corresponding density threshold table; each region feature corresponds to a density threshold table, and the density threshold table stores the initial density threshold corresponding to each scene of the region feature; S803, for each target area feature, obtaining a weight corresponding to the target area feature, and weighting the initial density threshold of the target scene of the target area feature with the weight corresponding to the target area feature to obtain a weighted initial density threshold; S804, determining a target density threshold corresponding to the cluster according to the weighted initial density threshold of each target region feature.

[0084] In S801 of the embodiment of the present application, for each cluster, at least one target area feature of the geographical area where each activated location in the cluster is located is obtained. For example, three target area features are obtained, the city level is a first-tier city, the function is a commercial area, and the population density is 3626 people / square kilometer.

[0085] In an embodiment of the present application, each regional feature includes multiple scenarios. For example, the regional feature is a city level, and the city level includes multiple scenarios of first-tier cities, second-tier cities, and third-tier cities. If the geographical area is Beijing, then the target scenario corresponding to the above regional feature is a first-tier city.

[0086] In the embodiment of the present application, each regional feature has a corresponding density threshold table, and the density threshold table is used to store the initial density threshold corresponding to each scene of the regional feature.

[0087] In S802 of the embodiment of the present application, since each regional feature includes multiple scenes, for each target regional feature, it is first necessary to determine the target scene of the target regional feature based on the correspondence between the regional feature and the scene, so that the initial density threshold corresponding to the target scene can be obtained from the density threshold table corresponding to the regional feature. For example, the current target regional feature is the city level, and the target scene corresponding to the target regional feature is a first-tier city. The density threshold table corresponding to the city level stores the initial density thresholds of 100, 50 and 30 corresponding to first-tier cities, second-tier cities and third-tier cities. The initial density threshold obtained for the first-tier city according to the target scene is 100.

[0088] In S803 of the embodiment of the present application, for each target area feature, a pre-set weight corresponding to the target area feature is obtained, and the weight corresponding to the target area feature is multiplied by the initial density threshold corresponding to the target scene to obtain a weighted initial density threshold corresponding to the target area feature.

[0089] In S804 of the embodiment of the present application, weighted initial density thresholds corresponding to all target region features are obtained, and all weighted initial density thresholds are added together to obtain a target density threshold corresponding to the cluster.

[0090] In an example, the target area characteristics of cluster A are the function of the geographical area and the level of the city where the geographical area is located. The corresponding target scenes are commercial areas and second-tier cities. According to the above target scenes, the initial density obtained from the density threshold table corresponding to the function of the geographical area is 100, and the initial density obtained from the density threshold table corresponding to the level of the city where the geographical area is located is 70. The weight corresponding to the function of the geographical area is 0.4, and the weight corresponding to the level of the city where the geographical area is located is 0.5. The initial density threshold 100 corresponding to the function of the geographical area is multiplied by the weight 0.4 corresponding to the function of the geographical area to obtain a weighted initial density threshold of 40. The initial density threshold 70 corresponding to the level of the city where the geographical area is located is multiplied by the weight 0.5 corresponding to the level of the city where the geographical area is located to obtain a weighted initial density threshold of 35. The initial density thresholds corresponding to the characteristics of each target area are added to obtain a target density threshold of 75.

[0091] The target density threshold is determined according to the initial density threshold corresponding to the scene of each target area feature of the geographical area where each activation location in the cluster is located and the weight corresponding to each target area feature. The normal density range of the area is divided from multiple dimensions, making the target density threshold of each cluster more targeted, avoiding regional anomaly judgment through unified standards, and improving the accuracy of anomaly judgment.

[0092] S104: For each cluster, if the density of the cluster is greater than the corresponding target density threshold, the geographical area where each activation point in the cluster is located is regarded as an abnormal activation area.

[0093] In the embodiment of the present application, since the activation location represents the point where the smart device is activated, the abnormal activation area refers to an area where cross-selling may occur.

[0094] In an embodiment of the present application, after determining the target density threshold corresponding to each cluster, for each cluster, the density of the cluster is compared with the target density threshold. If the density of the cluster is greater than the corresponding target density threshold, it means that the density of the activation locations in the cluster is too high, and the geographical area where the activation locations in the cluster are located is regarded as an abnormal activation area; if the density of the cluster is less than the corresponding target density threshold, it means that the density of the activation locations in the cluster is normal.

[0095] In the embodiment of the present application, after the abnormal activation area is determined, alarm information corresponding to the abnormal activation area is generated; and the alarm information is pushed in a preset manner.

[0096] In an embodiment of the present application, real-time monitoring is performed to determine whether an abnormal activation area is detected. When an abnormal activation area is detected, alarm information corresponding to the abnormal activation area is immediately generated. Business personnel are notified through the alarm information to conduct further investigation and processing of the abnormal activation area. The preset method may be to push the alarm information through SMS, email, or WeChat.

[0097] In the embodiments of the present application, the present application can be applied to scenarios where it is necessary to identify abnormal aggregation behavior based on geographic location data. It can also be applied to electronic consumer products, smart hardware, vehicle monitoring, and various equipment manufacturing fields. It has extremely high practical application value, especially for scenarios requiring high-precision location detection or anti-channelling processing.

[0098] refer to Fig.10 As shown, it exemplarily shows a flow chart of a method for determining an abnormally activated area, and the specific contents are as follows: S901, receiving the latitude and longitude coordinates of the real-time location reported by the smart device when it is activated, converting the latitude and longitude coordinates into two-dimensional coordinates to obtain the coordinates of the activation location; S902, when the number of times the coordinates of the activation point are received within the target time period is greater than a preset number threshold, obtaining the coordinates of the activation point received within the preset time period; S903, calculating the cosine value and distance between any two activation locations according to the acquired coordinates of each activation location; S904, determining the similarity between the two activation locations according to the cosine value and the distance between the two activation locations; S905, taking each activated location as a cluster, and putting the similarities between the two clusters into a similarity set; S906, obtaining two clusters corresponding to the maximum similarity from the similarity set of this round of clustering, and merging the two clusters into a new cluster; S907, for each of the two clusters, delete the similarity between the cluster and other clusters from the similarity set, calculate the similarity between the new cluster and other clusters, and put the similarity between the new cluster and other clusters into the similarity set to obtain the similarity set for the next round of clustering; S908, determining whether any similarity in the similarity set is less than a preset similarity threshold, if so, executing step S909, if not, executing step S906; S909: Determine the cluster to which each activated location belongs based on the clustering result of the last round of clustering.

[0099] S910, for each cluster, determining at least one target area feature of the cluster, for each target area feature, determining a target scene corresponding to the target area feature, and determining an initial density threshold corresponding to the target scene from a corresponding density threshold table; S911, for each target area feature, obtaining a weight corresponding to the target area feature, and weighting the initial density threshold corresponding to the target area feature according to the weight to obtain a weighted initial density threshold; S912, for each cluster, determining a target density threshold corresponding to the cluster according to all weighted initial density thresholds corresponding to the cluster; S913: For each cluster, if the density of the cluster is greater than the corresponding target density threshold, the geographical area where each activation point in the cluster is located is regarded as an abnormal activation area.

[0100] The method for determining an abnormal activation area provided in an embodiment of the present application determines whether to further perform abnormal activation area determination by detecting whether the number of times the coordinates of an activation location are received within a target time period exceeds a preset number threshold. When the number of times the coordinates are received within the target time period exceeds the preset number threshold, it indicates that an abnormal activation area may currently exist. In order to further determine whether there is an abnormal activation area, the coordinates of each activation location received within the preset time period are obtained, and each activation location is clustered into at least one cluster according to the coordinates of each activation location, and the density of each cluster is determined. For each cluster, the regional characteristics of the geographical area where each activation location in the cluster is located are obtained, and the target density threshold corresponding to the cluster is determined according to the regional characteristics, and the calculated density of the cluster is compared based on the above target density threshold. If the density of the cluster is greater than the corresponding target density threshold, the geographical area where each activation location in the cluster is located is regarded as an abnormal activation area. Based on the regional characteristics of the geographical area where each activation location in each cluster is located, the target density threshold used to determine whether the geographical area where the cluster is located is an abnormal activation area is determined, so that the determination of the abnormal activation area of ​​each cluster is more targeted and more in line with the actual situation, thereby greatly improving the accuracy of determining the abnormal activation area.

[0101] The present application embodiment provides a device for determining an abnormally activated area, such as Fig.11 As shown, the abnormal activation area determination device 110 may include: an acquisition module 1101, a clustering module 1102, a determination module and a processing module 1103, wherein: The acquisition module 1101 is used to acquire the coordinates of each activation location received within the preset time period if the number of times the coordinates of the activation location are received within the target time period is greater than a preset number threshold; the coordinates of each activation location are the coordinates of the real-time position reported by the corresponding smart device when it is activated; A clustering module 1102, for clustering the activation locations into at least one cluster according to the coordinates of the activation locations and determining the density of each cluster; A determination module 1103 is used to obtain, for each cluster, target area characteristics of the geographical area where each activation location in the cluster is located, and determine a target density threshold corresponding to the cluster according to the target area characteristics; The processing module 1104 is used for, for each cluster, if the density of the cluster is greater than the corresponding target density threshold, treating the geographical area where each activation point in the cluster is located as an abnormal activation area.

[0102] The device of the embodiments of the present application can execute the method provided by the embodiments of the present application, and the implementation principles are similar. The actions performed by each module in the device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the device, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.

[0103] In an embodiment of the present application, an electronic device (computer device / equipment / system) is provided, including a memory, a processor and a computer program stored in the memory. The processor executes the above-mentioned computer program to implement the steps of the method for determining abnormal activation areas. Compared with the related art, it can achieve: based on the regional characteristics of the geographical area where each activation location in each cluster is located, a target density threshold for determining whether the geographical area where the cluster is located is an abnormal activation area, so that the judgment of the abnormal activation area of ​​each cluster is more targeted and more in line with the actual situation, thereby greatly improving the accuracy of judging the abnormal activation area.

[0104] In an alternative embodiment, an electronic device is provided, such as Fig.12 As shown, Fig.12 The electronic device 4000 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, such as through a bus 4002. Optionally, the electronic device 4000 may also include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.

[0105] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0106] The bus 4002 may include a path to transmit information between the above components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.12 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0107] The memory 4003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium that can be used to carry or store computer programs and can be read by a computer, without limitation herein.

[0108] The memory 4003 is used to store the computer program for executing the embodiment of the present application, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the computer program stored in the memory 4003 to implement the steps shown in the above method embodiment.

[0109] Among them, the electronic equipment package may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.12 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 disclosure.

[0110] The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented. Compared with the prior art, it can be implemented that: based on the regional characteristics of the geographical area where each activation location in each cluster is located, a target density threshold for determining whether the geographical area where the cluster is located is an abnormal activation area is determined, so that the judgment of the abnormal activation area of ​​each cluster is more targeted and more in line with the actual situation, thereby greatly improving the accuracy of judging the abnormal activation area.

[0111] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable medium or any combination of the above two. The computer-readable storage medium may 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 of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer 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. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0112] The present application also provides a computer program product, including a computer program, which can implement the steps and corresponding contents of the above method embodiments when executed by a processor. Compared with the prior art, it can achieve: Based on the regional characteristics of the geographical area where each activation location in each cluster is located, the target density threshold for judging whether the geographical area where the cluster is located is an abnormal activation area is determined, so that the judgment of the abnormal activation area of ​​each cluster is more targeted and more in line with the actual situation, thereby greatly improving the accuracy of judging abnormal activation areas.

[0113] The terms "first", "second", "third", "fourth", "1", "2", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that shown or described in the drawings.

[0114] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios of execution time, the execution order of these sub-steps or stages may be flexibly configured according to demand, and the embodiment of the present application does not limit this.

[0115] The above are only optional implementation methods for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the scheme of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.

Claims

1. A method for determining an abnormally activated area, characterized in that: include: If the number of times the coordinates of the activation location are received within the target time period is greater than a preset number threshold, the coordinates of each activation location received within the preset time period are obtained; the coordinates of each activation location are the coordinates of the real-time location reported by the corresponding smart device when it is activated; Clustering each activation site into at least one cluster according to the coordinates of each activation site and determining the density of each cluster; For each cluster, obtaining target area features of the geographical area where each activation location in the cluster is located, and determining a target density threshold corresponding to the cluster according to the target area features; For each cluster, if the density of the cluster is greater than the corresponding target density threshold, the geographical area where each activation location in the cluster is located is regarded as an abnormal activation area.

2. The method for determining an abnormally active region according to claim 1, characterized in that: The clustering of the activation locations into at least one cluster according to the coordinates of the activation locations comprises: For each activation location, construct a vector of the activation location according to the coordinates of the activation location, and calculate the cosine value and distance between two activation locations; Determine the similarity between two activation locations based on the cosine value and distance between the two activation locations; Based on the similarity between the two activation locations, the cluster to which each activation location belongs is determined.

3. The method for determining an abnormally activated area according to claim 2, characterized in that: Determining the similarity between two activation locations according to the cosine value and the distance between two activation locations comprises: Determine the weights corresponding to the cosine value and the distance respectively; For any two activation locations, weighting the cosine values ​​of the two activation locations with the weight corresponding to the cosine value to obtain a weighted cosine value, and weighting the distance between the two activation locations with the weight corresponding to the distance to obtain a weighted distance; Based on the weighted cosine value and distance, the similarity between the two activated locations is obtained; The weight corresponding to the cosine value is a positive number, and the weight corresponding to the distance is a negative number.

4. The method for determining an abnormally activated region according to claim 2, characterized in that: The step of determining the cluster to which each activation location belongs based on the similarity between the activation locations, comprises: Each activation site was considered as a cluster; Put the similarity between two clusters into the similarity set; According to the similarity set, multiple rounds of clustering are performed on each cluster until a first preset condition is met; the first preset condition is that any similarity in the similarity set is less than a preset similarity threshold; According to the clustering results of the last round of clustering, determine the cluster to which each activated site belongs; Each round of clustering includes: Obtain two clusters corresponding to the maximum similarity from the similarity set of this round of clustering, and merge the two clusters into a new cluster; For each of the two clusters, deleting the similarity between the cluster and the other clusters from the similarity set; The similarities between the new cluster and other clusters are calculated, and the similarities between the new cluster and other clusters are put into the similarity set to obtain the similarity set for the next round of clustering.

5. The method for determining an abnormally active region according to claim 4, characterized in that: The calculating of the similarity between the new cluster and other clusters; For each of the new cluster and the other clusters, determine the coordinates of the center point of the cluster according to the coordinates of each activation location in the cluster, and construct a vector of the center point based on the coordinates of the center point; For the center point of any other cluster, the cosine value and the distance between the two center points of the new cluster and any other cluster are calculated according to the vector of the center point and the vector of the center point of the new cluster; Determine the weights corresponding to the cosine value and the distance respectively; For each cosine value and distance of each pair of center points, weight the cosine values ​​of the two center points of the new cluster and any other clusters with the weight corresponding to the cosine value to obtain a weighted cosine value, and weight the distance between the two center points of the new cluster and any other clusters with the weight corresponding to the distance to obtain a weighted distance; According to the weighted cosine value and distance, the similarity between the new cluster and any other cluster is obtained; The weight corresponding to the cosine value is a positive number, and the weight corresponding to the distance is a negative number.

6. The method for determining an abnormally active region according to claim 1, characterized in that: The step of obtaining target area features of the geographical area where each activation location in the cluster is located, and determining a target density threshold corresponding to the cluster according to the target area features, includes: Obtain at least one target area feature of a geographical area where each activation location in the cluster is located; For each target area feature, according to the correspondence between the preset area features and scenes, the target scene corresponding to the target area feature is determined, and the initial density threshold corresponding to the target scene is determined from the corresponding density threshold table; each area feature corresponds to a density threshold table, and the density threshold table stores the initial density thresholds corresponding to each scene of the area feature; For each target area feature, a weight corresponding to the target area feature is obtained, and an initial density threshold of the target scene of the target area feature is weighted by the weight corresponding to the target area feature to obtain a weighted initial density threshold; According to the weighted initial density threshold of each regional feature, the target density threshold corresponding to the cluster is determined.

7. The method for determining an abnormally active region according to claim 1, characterized in that: The determining of the density of each cluster comprises: For each cluster, according to the coordinates of each activation location of the cluster, determining each activation location located at the edge of the geographical area where each activation location is located; determining the area of ​​the cluster according to the coordinates of each activation site located at the edge of the region; The density of the cluster is determined based on the number of activation sites in the cluster and the area of ​​the cluster.

8. The method for determining an abnormally active region according to claim 6, characterized in that: The regional characteristics include at least one of the following: the function of the geographical area; the population density of the geographic area; The rank of the city in which the geographical area is located.

9. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 8.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.