Method and device for identifying abnormal business subject based on consumption grade matching degree
By combining a consumer capacity map of cigarette distributors with anomaly detection algorithms, abnormal business entities are automatically identified, solving the problem of low efficiency in manual identification in existing technologies and achieving efficient and reliable identification of abnormal business entities.
Patent Information
- Application Number
- CN202611361986.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-03
- Publication Date
- 2026-11-24
AI Technical Summary
In existing technologies, the identification of discrepancies between the operating capabilities and operating levels of cigarette distributors relies on manual verification, which is inefficient, time-consuming, and consumes a lot of human resources, making it difficult to effectively identify abnormal behavior of business targets.
By conducting multi-dimensional analysis of sales data, a consumer spending power map is generated. Anomaly detection algorithms, such as the Isolation Forest and Local Anomaly Factor algorithms, combined with geographic location, are used to automatically identify abnormal business entities, replacing manual anomaly detection.
It improves the efficiency of anomaly identification, increases the reliability of identification results, reduces human error, and achieves efficient and reliable identification of business entities.
Smart Images

Figure CN123158249A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of marketing data analysis technology, and in particular to a method and device for identifying abnormal business entities based on the matching degree of consumption level. Background Technology
[0002] Generally, business tiers are assigned based on operational data. Therefore, a mismatch between a business's actual operational capacity and its assigned tier is common, especially in industries with strict regulations. A representative example is cigarette sales. For cigarette distributors, "mismatch between operational capacity and tier" means that their cigarette ordering tier is significantly higher than their actual sales capacity. In other words, it's difficult for them to fulfill all their orders at their distribution points. This not only wastes resources meant for other distributors in the industry, but more importantly, these businesses have a high probability of engaging in illegal distribution practices. These include large distributors controlling smaller ones (meaning retailers order cigarettes beyond their capacity, potentially under the control of large distributors for their own profit), outsourcing, and secondary wholesale—all violations of industry regulations. This leads to ineffective allocation of limited supplies, market imbalances, and hinders healthy market development.
[0003] In existing technologies, the discovery of discrepancies between a distributor's operational capabilities and their market positioning in the sales field primarily relies on relevant personnel (specifically, customer service specialists, auditors, and delivery personnel) conducting market visits. In practice, identifying abnormal customers using this method requires repeated verification and multi-party validation before definitively confirming the existence of a distributor with a mismatch between operational capabilities and market positioning. This approach suffers from problems and challenges such as high subjectivity, low efficiency, time lag, and significant human resource consumption. Summary of the Invention
[0004] In view of this, the purpose of this application is to provide at least one method and device for identifying abnormal business entities based on consumption level matching degree. By performing abnormal analysis on business entities under different consumption levels that deviate from the consumption level, it replaces the manual participation in abnormal identification in the prior art, improves identification efficiency, increases the reliability of identification results, and reduces manual labor costs.
[0005] This application mainly includes the following aspects: In a first aspect, embodiments of this application provide a method for identifying abnormal business entities based on consumption level matching. The method includes: acquiring sales data within a target sales territory, the target sales territory including multiple business entities selling target products; performing multi-dimensional sales feature analysis on the sales data, and generating a consumption capacity map of the target territory based on the target products according to the analysis results, the consumption capacity map displaying multiple business entities in different colors, with different colors indicating different consumption levels; slicing the multiple business entities according to different consumption levels to obtain multiple entity slices corresponding one-to-one with the multiple consumption levels, and constructing a corresponding spatial distribution map for each entity slice by the business entities within that entity slice; and performing spatial overlay analysis on the spatial distribution map corresponding to each consumption level and the consumption capacity map to determine abnormal business entities.
[0006] In one possible implementation, a consumer spending power map for the target sales territory is generated as follows: For each business entity, the following processing is performed: multiple sales features corresponding to the business entity are extracted from sales data; the multiple sales features corresponding to the business entity are weighted according to the feature weights corresponding to each sales feature to obtain a comprehensive consumer spending power score for the business entity, where the feature weights reflect the degree of influence of the sales features on the consumer spending power of the target products; the comprehensive consumer spending power scores of all business entities are discretized using a natural segmentation method to obtain multiple spending tiers, with different spending tiers describing different spending power; a corresponding color is assigned to each spending tier; based on the geographical coordinates of the business entity, the business entity is mapped to the corresponding geospatial map with the color corresponding to its spending tier, thereby generating a consumer spending power map.
[0007] In one possible implementation, the feature weights corresponding to each sales feature are determined by: constructing a hybrid model with the purchasing power of the target product as the dependent variable and each sales feature as the independent variable by combining the entropy weight method with supervised learning; and determining the feature weights corresponding to each sales feature based on the hybrid model.
[0008] In one possible implementation, abnormal business entities are identified by: for the spatial distribution map corresponding to each entity slice, performing the following processing: overlaying the spatial distribution map with a consumption capacity map to generate a target spatial distribution map corresponding to the entity slice, the target spatial distribution map describing the consumption level to which each business entity belongs within the entity slice; analyzing the target spatial distribution map, and using an anomaly identification algorithm to identify abnormal business entities with significant deviations in sales capacity.
[0009] In one possible implementation, the anomaly identification algorithm includes an anomaly identification algorithm based on local anomaly factors, wherein anomalous business entities within a target spatial distribution map are determined by: for each business entity within the target spatial distribution map, performing the following steps: calculating the distance between the business entity and other business entities within the target spatial distribution map, and determining the distance calculation result; based on the distance calculation result, determining the nearest neighboring business entities corresponding to the business entity; based on the nearest neighboring business entities, calculating the local reachability density of the business entity, where local reachability density represents the density relationship between the business entity and its nearest neighboring business entities; based on the local reachability density between the business entity and its nearest neighboring business entities, calculating the local anomaly factor corresponding to the business entity; and based on the local anomaly factor and a first anomaly threshold, determining the anomalous business entities within the target spatial distribution map.
[0010] In one possible implementation, the local anomaly factor is determined using the following formula:
[0011] In this formula, Indicates the business entity In its Neighboring business entities Local anomalous factors below Indicates the business entity corresponding Neighboring business entities The resulting cluster of neighboring business entities Indicates neighboring business entities The corresponding locally reachable density, Indicates the business entity The corresponding locally reachable density.
[0012] In one possible implementation, the anomaly detection algorithm includes an isolation forest-based anomaly detection algorithm, wherein anomalous business entities within the target spatial distribution map are determined by: constructing a feature vector corresponding to each business entity within the target spatial distribution map using a comprehensive score of geographical location and spending power as sample features, and using the feature vector as training samples for the business entity; performing model training based on the isolation forest based on all training samples of the target spatial distribution map to form an isolation forest model based on the target spatial distribution map; for each business entity, inputting the business entity into the isolation forest model and calculating the anomaly score corresponding to the business entity; and combining a second anomaly threshold and the anomaly score of each business entity to determine the anomalous business entities within the target spatial distribution map.
[0013] In one possible implementation, the anomaly detection algorithm includes an anomaly detection algorithm based on local anomaly factors and an anomaly detection algorithm based on isolated clusters. The anomaly business entities within the target spatial distribution map are determined as follows: using the anomaly detection algorithm based on local anomaly factors, the local anomaly factor of each business entity within the target spatial distribution map is calculated; using a comprehensive score of geographical location and spending power as sample features, a feature vector corresponding to each business entity within the target spatial distribution map is constructed; using the anomaly detection algorithm based on isolated clusters, an anomaly score is calculated for each business entity within the target spatial distribution map; for each business entity within the target spatial distribution map, the local anomaly factor and the anomaly score are weighted to obtain a target anomaly score corresponding to each business entity; and based on the target anomaly score and a third anomaly threshold, the anomaly business entity is determined.
[0014] Secondly, this application also provides an anomaly identification device for business entities based on consumption level matching. The device includes: a data acquisition module for acquiring sales data within a target sales area, the target sales area including multiple business entities selling the target product; a consumption capacity generation module for performing multi-dimensional sales feature analysis on the sales data, and generating a consumption capacity map of the target area based on the target product according to the analysis results, the consumption capacity map displaying multiple business entities in different colors, with different colors indicating different consumption levels; a spatial distribution map generation module for slicing the multiple business entities according to different consumption levels, obtaining multiple entity slices corresponding one-to-one with the multiple consumption levels, and constructing a corresponding spatial distribution map for each entity slice by the business entities within that entity slice; and a spatial overlay analysis module for performing spatial overlay analysis between the spatial distribution map corresponding to each consumption level and the consumption capacity map to determine the abnormal business entity.
[0015] Thirdly, embodiments of this application also provide an electronic device, including: a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the memory communicate through the bus. The machine-readable instructions are executed by the processor to perform the steps of the business entity anomaly identification method based on consumption level matching degree in the first aspect or any possible implementation of the first aspect.
[0016] This application provides a method and apparatus for identifying abnormal business entities based on consumption level matching, comprising: performing multi-dimensional sales feature analysis on sales data; generating a consumption capacity map of a target area based on target sales products based on the analysis results; slicing multiple business entities according to different consumption levels to obtain multiple entity slices corresponding one-to-one with the multiple consumption levels; constructing a corresponding spatial distribution map for each entity slice by the business entities within that entity slice; and performing spatial overlay analysis on the spatial distribution map corresponding to each consumption level and the consumption capacity map to determine abnormal business entities. By performing anomaly analysis on business entities deviating from consumption levels under different consumption levels, this method replaces the manual anomaly identification of existing technologies, improving identification efficiency, increasing the reliability of identification results, and reducing manual labor costs.
[0017] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0018] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 A flowchart of a method for identifying abnormal business entities based on consumption level matching degree provided in an embodiment of this application is shown; Figure 2 This document illustrates a flowchart of a consumption capacity map generation method provided in an embodiment of this application. Figure 3 This illustration shows a schematic diagram of a sales tier division and its color allocation provided in an embodiment of this application; Figure 4 This illustration shows a schematic diagram of a consumption capacity map provided in an embodiment of this application; Figure 5 This application provides a target spatial distribution map corresponding to a certain consumption level. Figure 6 This illustration shows a schematic diagram of the distribution of abnormal business entities corresponding to fee tiers, as provided in an embodiment of this application. Figure 7 The diagram shows a functional block diagram of an anomaly identification device for business entities based on consumption level matching degree provided in an embodiment of this application; Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of this application is shown. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the drawings in this application are for illustrative and descriptive purposes only and are not intended to limit the scope of protection of this application. Furthermore, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of this application. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical contextual relationships may be reversed or implemented simultaneously. In addition, those skilled in the art, guided by the content of this application, may add one or more other operations to the flowcharts, or remove one or more operations from the flowcharts.
[0021] Furthermore, the described embodiments are merely some, not all, of the embodiments of this application. The components of the embodiments of this application described and illustrated herein can typically be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0022] In the field of digital hierarchical management and risk control supervision of target objects such as merchants and business entities, classifying and differentiating various business objects based on their business tiers is the mainstream refined operation management method. The industry typically presets multiple business tiers based on multi-dimensional operation parameters such as business scale, business capacity, revenue indicators, and service capabilities, and matches corresponding operation standards, resource allocation rules, and control requirements to each tier. This achieves standardized and hierarchical management of a large number of business objects, improving the overall efficiency of operation supervision and scheduling.
[0023] Generally, business tiers are assigned based on operational data. Therefore, a mismatch between a business's actual operational capacity and its assigned tier is common, especially in industries with strict regulations. A representative example is cigarette sales. For cigarette distributors, "mismatch between operational capacity and tier" means that their cigarette ordering tier is significantly higher than their actual sales capacity. In other words, it's difficult for them to fulfill all their orders at their distribution points. This not only wastes resources meant for other distributors in the industry, but more importantly, these businesses have a high probability of engaging in illegal distribution practices. These include large distributors controlling smaller ones (meaning retailers order cigarettes beyond their capacity, potentially under the control of large distributors for their own profit), outsourcing, and secondary wholesale—all violations of industry regulations. This leads to ineffective allocation of limited supplies, market imbalances, and hinders healthy market development.
[0024] In existing technologies, the discovery of discrepancies between a cigarette distributor's operational capabilities and their market position in the cigarette sales sector primarily relies on tobacco staff (specifically, customer service representatives, inspectors, and delivery personnel) conducting market visits. In practice, identifying abnormal customers through these three personnel requires repeated verification and multi-party validation before definitively confirming the existence of a distributor with a mismatch between operational capabilities and market position. This approach suffers from problems and challenges such as high subjectivity, low efficiency, time lag, and significant human resource consumption.
[0025] Based on this, this application provides a method and apparatus for identifying abnormal business entities based on consumption level matching degree. By performing abnormal analysis on business entities deviating from their consumption levels under different consumption levels, it replaces the manual anomaly identification of existing technologies, improves identification efficiency, increases the reliability of identification results, and reduces manual labor costs, as detailed below: Please see Figure 1 , Figure 1 A flowchart illustrating a method for identifying anomalies in business entities based on consumption level matching, as provided in an embodiment of this application, is shown. Figure 1 As shown, the method provided in this application embodiment includes the following steps: S100: Obtain sales data within the target sales territory.
[0026] The target sales area includes multiple business entities that operate the target products.
[0027] S200. Perform multi-dimensional sales characteristic analysis on sales data, and generate a consumption capacity map of the target sales area based on the target sales products based on the analysis results.
[0028] The consumption capacity map displays multiple business entities in different colors, with different colors indicating different consumption levels.
[0029] S300. Slice multiple business entities according to different consumption levels to obtain multiple entity slices that correspond one-to-one with the multiple consumption levels. For each entity slice, construct a corresponding spatial distribution map of the business entities within that entity slice.
[0030] S400. For each consumption level, perform spatial overlay analysis of the spatial distribution map corresponding to that consumption level and the consumption capacity map to identify abnormal business entities.
[0031] In steps S100 to S400 provided in this application, firstly, sales big data mining is performed on the target sales area to form a consumption capacity map of the target sales area for the target products. Then, based on the different consumption levels indicated by the consumption capacity map, a spatial distribution map of the business entities under each consumption level is constructed. The consumption capacity map and the spatial distribution map are overlaid, and a specific anomaly identification algorithm is used to identify business entities that deviate significantly from the consumption level from the overlay results and mark them as abnormal business entities. In this process, through data mining, anomaly analysis of deviations from the consumption level is performed on business entities under different consumption levels, which replaces the existing technology of manual anomaly identification, improves identification efficiency, increases the reliability of identification results, and reduces human labor costs.
[0032] In specific implementation, in step S100, the sales territory where the business entity to be identified is located is determined as the target sales territory. The target sales product is customized according to actual needs. For example, it can be cigarettes. The sales data is all the sales data generated by multiple business entities operating the target sales product within the target sales territory.
[0033] In a preferred embodiment, please refer to Figure 2 , Figure 2 A flowchart illustrating a method for generating a consumption capacity map according to an embodiment of this application is shown. Figure 2 As shown, step S200 includes: S2001. For each business entity, extract multiple sales characteristics corresponding to that business entity from the sales data.
[0034] S2002. For each business entity, the multiple sales characteristics corresponding to the business entity are weighted according to the characteristic weight corresponding to each sales characteristic to obtain the comprehensive consumption capacity score of the business entity.
[0035] Among them, the feature weights reflect the degree of influence of sales features on the purchasing power of the target products.
[0036] S2003. The comprehensive score of consumption capacity of all business entities is discretized using the natural segmentation method to obtain multiple consumption levels.
[0037] Different consumption tiers describe different spending abilities.
[0038] S2004. Assign a corresponding color to each consumption level.
[0039] Different consumption levels correspond to different colors.
[0040] S2005. Based on the geographical coordinates of the business entity, map the business entity to the corresponding geospatial map with the color corresponding to its consumption level, and generate a consumption capacity map.
[0041] Specifically, in step S2001, the sales data involves multi-dimensional sales characteristics corresponding to the business entity. These sales characteristics include, but are not limited to, at least one of the following: monthly customer traffic of the target product, distribution of consumer age groups, consumer occupation types, consumption preferences, and surrounding facilities of the business entity (such as shopping malls, residential communities, hotels, restaurants, and office buildings).
[0042] In another specific embodiment, in step S2002, the feature weight corresponding to each sales feature is determined in the following way: By combining entropy weighting with supervised learning (exemplary Lightgbm), a hybrid model is constructed with the purchasing power of the target product as the dependent variable and each sales feature as the independent variable. Based on the hybrid model, the feature weights corresponding to each sales feature are determined.
[0043] In one specific embodiment, Table 1 shows a sales feature and feature weight mapping table provided by an embodiment of this application.
[0044] Table 1
[0045] As shown in Table 1, the consumer age range further includes (40~49) years old and (50~59) years old, the consumer occupation type further includes workers and service personnel, white-collar workers and general staff, the consumption preference includes digital technology preference, and the surrounding facilities include shopping malls, residential areas, hotels, restaurants and office buildings.
[0046] As shown in Table 1, in one relatively specific implementation, the feature weights for monthly customer flow are 15.15%, for those aged 40-49 it is 10.65%, for those aged 50-59 it is 8.72%, for workers and service personnel it is 7.93%, and for white-collar workers and general staff it is 8.69%. Furthermore, the feature weights for digital technology preference, shopping malls, residential communities, hotels, restaurants, and office buildings are 8.47%, 5.92%, 4.70%, 11.32%, 12.70%, and 5.75%, respectively. Table 1 only shows the feature weight percentages for each sales feature; in actual applications, these weights should be set according to specific needs.
[0047] Based on Table 1, calculate the comprehensive consumption capacity score for each business entity.
[0048] In step S2003, based on the natural segmentation method, the calculated comprehensive consumption capacity score of each business entity within the target sales area is discretized to obtain multiple comprehensive consumption capacity score segments. These multiple comprehensive consumption capacity score segments correspond one-to-one with multiple sales tiers. The natural segmentation method is a segmentation method based on data distribution characteristics. It divides the target object into several segments by identifying natural breakpoints in the target object. The data distribution within each segment is relatively uniform. This application uses the natural segmentation method to divide sales tiers, which can better reflect the inherent structure of the data and avoid the deviation caused by manually setting segmentation points. For example, by using the natural segmentation method, the comprehensive consumption capacity score within the target sales area is divided into multiple sales tiers. Each sales tier represents a different level of consumption capacity for the target consumer goods, providing a clear classification basis for subsequent consumption capacity map drawing.
[0049] In one example, in step S2004, a corresponding color is further assigned to each of the divided sales tiers to facilitate the generation of a subsequent consumer spending power map.
[0050] Please see Figure 3 , Figure 3 This diagram illustrates a sales tier division and its color allocation according to an embodiment of this application. Figure 3 In the illustrated embodiment, the target sales area is specifically divided into 7 sales tiers. The comprehensive consumption capacity score ranges corresponding to each sales tier are (76.76~100), (64.14~76.76), (53.12~64.14), (42.62~53.12), (31.92~42.62), (20.25~31.92), and (0~20.25), respectively. The color assignment for each sales tier is shown in the figure, which will not be elaborated further here.
[0051] In step S2005, for example, a geospatial map of the target sales area is retrieved, and combined with the geographical coordinates of the business entity, the business entity is mapped to the corresponding geospatial map using the color corresponding to its respective consumption level, generating a consumption capacity map. Please refer to [link to relevant documentation]. Figure 4 , Figure 4 This illustration shows a schematic diagram of a consumption capacity map provided in an embodiment of this application.
[0052] Preferably, this application outputs a consumption capacity data table corresponding to the target sales area while obtaining the consumption capacity map. For example, Table 2 is a consumption capacity data table corresponding to a target sales area provided in an embodiment of this application.
[0053] Table 2
[0054] As shown in Table 2, the consumption capacity data table describes at least the identity identifier, name, geographical coordinates (including longitude and latitude), and comprehensive consumption capacity score for each business entity within the target sales area. For example, for the business entity "Sales Store f1", its corresponding identity identifier is "Xaa1", its geographical coordinates are "longitude 113.9235161, latitude 22.97790377", and its comprehensive consumption capacity score is "40.99".
[0055] In step S300, since there are business entities with different consumption levels within the target sales area, in order to reduce interference from other factors, this application further utilizes step S300 to slice the business entities according to different consumption levels, resulting in multiple entity slices. For example, each consumption level corresponds to one entity slice, and the business entities in the same entity slice form a corresponding spatial distribution map. The spatial distribution map includes the geographical location coordinates of each business entity in the corresponding entity slice.
[0056] In a preferred embodiment, step S400 further includes: For each main slice, the following processing is performed on its corresponding spatial distribution map: the spatial distribution map is overlaid with the consumption capacity map to generate the target spatial distribution map corresponding to the main slice. The target spatial distribution map describes the consumption level of each business entity within the main slice. The target spatial distribution map is analyzed, and anomaly identification algorithms are used to identify abnormal business entities with significant deviations in sales capacity.
[0057] In a specific embodiment, during the generation of the target spatial distribution map, the spatial connection or value extraction to point function provided by the Geographic Information System (GIS) is used to overlay the spatial distribution map indicating the geographical location of each business entity under the consumption level with the consumption capacity map (surface / raster layer). Each business entity described in the spatial distribution map is assigned a corresponding comprehensive consumption capacity score to generate a new target spatial distribution map with consumption capacity attributes.
[0058] Please see Figure 5 , Figure 5 This paper illustrates a target spatial distribution map corresponding to a certain consumption level provided in an embodiment of this application.
[0059] In the specific embodiments provided in this application, the anomaly identification algorithm includes an anomaly identification algorithm based on Isolation Forest and an anomaly identification algorithm based on Local Anomaly Factor (LOF). After obtaining the target spatial distribution map corresponding to each consumption level, for each target spatial distribution map, the anomaly business entity corresponding to each target spatial distribution map is obtained by using the anomaly identification algorithm based on Isolation Forest and / or the anomaly identification algorithm based on Local Anomaly Factor (LOF).
[0060] In a preferred embodiment, the LOF (Local Outlier Factor) algorithm is based on density to determine outliers. Specifically, each data point is assigned an outlier factor (LOF) that depends on the neighborhood density to determine whether the data point is an outlier. In the specific embodiment provided by step S400 of this application, the step of using the local outlier-based anomaly identification algorithm to determine abnormal business entities within the target spatial distribution map includes: For each business entity within the target spatial distribution map, the following steps are performed: Calculate the distance between the business entity and all other business entities within the target spatial distribution map, determine the distance calculation result, and based on the distance calculation result, determine the nearest business entities corresponding to the business entity; based on the nearest business entities, calculate the local reachability density of the business entity, which represents the density relationship between the business entity and its nearest business entities; based on the local reachability density between the business entity and its nearest business entities, calculate the local anomaly factor corresponding to the business entity; and based on the local anomaly factor and the first anomaly threshold, determine the abnormal business entities within the target spatial distribution map.
[0061] In the implementation of the above-mentioned anomaly identification algorithm based on local anomaly factors in this application for determining abnormal business entities within the target spatial distribution map, the larger the value of the local anomaly factor, the more likely the corresponding business entity is to be an abnormal business entity; conversely, the larger the value of the local anomaly factor, the more likely the corresponding business entity is to be normal.
[0062] Based on the above, this application pre-sets a first abnormal threshold according to actual needs. When the local abnormal factor corresponding to the business entity is greater than or equal to the first abnormal threshold, the business entity is determined to be an abnormal business entity. An abnormal business entity indicates that the consumption level to which the business entity belongs is not matched with the consumption capacity of its surroundings. When the local abnormal factor corresponding to the business entity is less than the first abnormal threshold, the business entity is determined to be a normal business entity.
[0063] In one specific embodiment, the local anomaly factor is determined using the following formula:
[0064] In this formula, Indicates the business entity In its Neighboring business entities Local anomalous factors below Indicates the business entity corresponding Neighboring business entities The resulting cluster of neighboring business entities Indicates neighboring business entities The corresponding locally reachable density, Indicates the business entity The corresponding locally reachable density.
[0065] In this application, the anomaly identification algorithm based on local anomaly factors is existing technology and will not be described in detail here.
[0066] In another preferred embodiment, the Isolation Forest algorithm is a highly efficient anomaly detection algorithm. Unlike traditional anomaly detection methods based on distance or density, the Isolation Forest algorithm "isolates" data points by randomly selecting features and segmentation values. Anomalies are usually isolated more quickly and thus identified. In another specific embodiment provided in step S400 of this application, the step of determining abnormal business entities within the target spatial distribution map using the Isolation Forest-based anomaly identification algorithm includes: Using geographical location (including longitude and latitude) and comprehensive consumption capacity scores as sample features, a feature vector corresponding to each business entity within the target spatial distribution map is constructed. The feature vector is used as the training sample for the business entity. Based on all the training samples of the target spatial distribution map, model training based on isolated forest is performed to form an isolated forest model based on the target spatial distribution map. For each business entity, the business entity is fed into the isolated forest model, and the anomaly score corresponding to the business entity is calculated. Combining the second anomaly threshold and the anomaly score of each business entity, the abnormal business entities within the target spatial distribution map are identified.
[0067] In the implementation of the above-mentioned anomaly identification algorithm based on isolated forest to determine the abnormal business entities within the target spatial distribution map in this application, in order to accurately identify the abnormal business entities, a feature vector corresponding to the business entity is constructed based on the business entity's geographical location (including longitude and latitude) and consumption capacity comprehensive score. For example, Table 3 shows a sample feature data table provided by the embodiment of this application.
[0068] Table 3
[0069] As shown in Table 3, the operating entities The corresponding feature vector (Feature( ) is represented as: Feature = [Xcoord, Ycoord, Sc] Furthermore, based on multiple training samples within the target spatial distribution map, all training samples are subsampled to form a random subset space. A sample feature is randomly selected in the random subset space, and a cut point is randomly generated. Then, the random subset space is bisected based on the cut point to form two child nodes. The bisecting is continued in the child nodes, and new child nodes are continuously constructed until the previously constructed child nodes can no longer be segmented (only one training sample remains / the maximum depth is reached). The splitting stops, and an independent tree is generated. The above steps are repeated to generate multiple independent trees, forming an isolated tree model.
[0070] In the process of bisecting the random subset space, i.e., placing training samples whose features are less than the cut point in one child node and placing data that are greater than or equal to the cut point in another child node, the isolated forest algorithm is an existing technology and will not be elaborated on here.
[0071] For each business entity, anomaly scores are calculated for each independent tree in the isolated tree model. The anomaly score for each business entity is calculated using the following formula:
[0072] In this formula, Indicates the business entity The corresponding abnormal scores, Indicates the business entity Path length under an independent tree Indicates the business entity Mean path length across all independent trees The constant represents the number of training samples within the target spatial distribution map. The corresponding standardization factor.
[0073] In the specific implementation methods provided in this application, The value range is [0,1], and the business entity of The closer it is to 1, the stronger the business entity. Based on the premise that the higher the probability of being an abnormal business entity, the more likely it is to be an abnormal business entity, this application pre-sets a second abnormal threshold. For each business entity, if the abnormal score corresponding to the business entity is greater than or equal to the second abnormal threshold and less than or equal to 1, then the business entity is determined to be an abnormal business entity. If the abnormal score corresponding to the business entity is greater than or equal to 0 and less than the second abnormal threshold, then the business entity is determined to be a normal business entity.
[0074] To fully leverage the advantages of anomaly identification algorithms based on local anomaly factors and those based on isolated clusters, this application also proposes combining these two algorithms to identify anomalous business entities. Specifically, the method for identifying anomalous business entities within a target spatial distribution map provided in this application further includes: An anomaly identification algorithm based on local anomaly factors is used to calculate the local anomaly factors of each business entity within the target spatial distribution map. Using the comprehensive score of geographical location and consumption capacity as sample features, a feature vector corresponding to each business entity within the target spatial distribution map is constructed. An anomaly identification algorithm based on isolated forests is used to calculate the anomaly score of each business entity within the target spatial distribution map. For each business entity within the target spatial distribution map, the local anomaly factors and anomaly scores are weighted to obtain the target anomaly score corresponding to each business entity. Based on the target anomaly score and a third anomaly threshold, the abnormal business entity is determined.
[0075] In a specific embodiment, this application first uses an anomaly identification algorithm based on local anomaly factors to calculate the local anomaly factors of the business entity. The process of determining the local anomaly factors is similar to that described above and will not be elaborated further here. Then, using geographical location (longitude and latitude) and comprehensive consumption capacity score as sample features, a feature vector corresponding to each business entity within the target spatial distribution map is constructed. The feature vector is normalized (e.g., Min-Max normalization) to eliminate the influence of dimensions, resulting in a processed feature vector. On the processed feature vector, an anomaly identification algorithm based on isolated features is executed to obtain the anomaly score corresponding to each business entity. For each business entity, its corresponding local anomaly factors and anomaly scores are weighted to obtain the target anomaly score corresponding to the business entity.
[0076] Wherein, the weight coefficient corresponding to the local anomaly factor is the first weight α, and the weight coefficient corresponding to the anomaly score is the second weight (1-α), then the target anomaly score Su corresponding to the business entity is: Su = Local anomaly factor × α + Anomaly score × (1-α) Preferably, the first weight α, determined experimentally, is 0.7, and the second weight (1-α) = 0.3.
[0077] In this application, in conjunction with a predefined third abnormality threshold, for example, if the target abnormality score corresponding to the business entity is greater than or equal to the third abnormality threshold, the business entity is determined to be an abnormal business entity; if the target abnormality score corresponding to the business entity is less than the third abnormality threshold, the business entity is determined to be a normal business entity.
[0078] Furthermore, this application combines the target spatial distribution map corresponding to each consumption level within the target sales territory, and displays the abnormal business entities in the target spatial distribution map at the corresponding locations of the abnormal business entities with a given abnormal marker, thereby generating and outputting the distribution map of abnormal business entities corresponding to the consumption level.
[0079] Please see Figure 6 , Figure 6 This illustration shows a schematic diagram of the distribution of abnormal business entities corresponding to fee tiers, as provided in an embodiment of this application.
[0080] Based on the same application concept, this application also provides an anomaly identification device for business entities based on consumption level matching degree, which corresponds to the business entity anomaly identification method based on consumption level matching degree provided in the above embodiments. Since the principle of the device in this application is similar to the business entity anomaly identification method based on consumption level matching degree in the above embodiments of this application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.
[0081] Please see Figure 7 , Figure 7 This diagram illustrates the functional modules of a business entity anomaly identification device based on consumption level matching degree, according to an embodiment of this application. Figure 7 As shown, the device includes: The data acquisition module 500 is used to acquire sales data within the target sales territory, which includes multiple business entities operating the target products. The consumption capacity generation module 510 is used to perform multi-dimensional sales characteristic analysis on sales data. Based on the analysis results, it generates a consumption capacity map of the target area based on the target sales products. The consumption capacity map displays multiple business entities in different colors, with different colors indicating different consumption levels. The spatial distribution map generation module 520 is used to slice multiple business entities according to different consumption levels, obtain multiple entity slices that correspond one-to-one with multiple consumption levels, and construct a corresponding spatial distribution map for each entity slice by the business entities within that entity slice. The spatial overlay analysis module 530 is used to perform spatial overlay analysis on the spatial distribution map and the consumption capacity map corresponding to each consumption level to identify abnormal business entities.
[0082] Based on the same application concept, please refer to Figure 8 , Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of this application is shown. For example... Figure 8 As shown, the electronic device 60 includes a processor 601, a memory 602, and a bus 603. The memory 602 stores machine-readable instructions that can be executed by the processor 601. When the electronic device 60 is running, the processor 601 and the memory 602 communicate through the bus 603. The machine-readable instructions are executed by the processor 601 to perform the steps of the business entity anomaly identification method based on consumption level matching degree provided in any of the above embodiments.
[0083] Based on the same concept, this application also provides a computer-readable storage medium storing a computer program. When the computer program is run by a processor, it executes the steps of the business entity anomaly identification method based on consumption level matching degree provided in the above embodiments.
[0084] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems and devices described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division; in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces; the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.
[0085] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0086] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0087] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0088] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for identifying anomalies in business entities based on consumption level matching, characterized in that, The method includes: Obtain sales data within the target sales territory, which includes multiple business entities operating the target products; The sales data is analyzed from multiple dimensions to identify sales characteristics. Based on the analysis results, a consumption capacity map of the target sales area based on the target products is generated. The consumption capacity map displays multiple business entities in different colors, with different colors indicating different consumption levels. Multiple business entities are sliced according to different consumption levels to obtain multiple entity slices that correspond one-to-one with multiple consumption levels. For each entity slice, a corresponding spatial distribution map is constructed by the business entities within that entity slice. For each consumption level, the spatial distribution map corresponding to that consumption level is spatially overlaid with the consumption capacity map to identify abnormal business entities.
2. The method according to claim 1, characterized in that, A consumer spending power map of the target sales territory is generated using the following method: For each business entity, the following procedures will be implemented: Extract multiple sales characteristics corresponding to the business entity from the sales data; The multiple sales characteristics corresponding to the business entity are weighted according to the feature weights corresponding to each sales characteristic to obtain a comprehensive consumption capacity score for the business entity. The feature weights reflect the degree of influence of the sales characteristics on the consumption capacity of the target products. The consumption capacity of all business entities is discretized using the natural segmentation method to obtain multiple consumption levels, with each level describing different consumption capacities. Assign a corresponding color to each price tier; Based on the geographical coordinates of the business entity, the business entity is mapped to the corresponding geospatial map with the color corresponding to its consumption level, thereby generating the consumption capacity map.
3. The method according to claim 2, characterized in that, The feature weight corresponding to each sales feature is determined in the following way: A hybrid model is constructed by combining entropy weight method and supervised learning, with the purchasing power of the target product as the dependent variable and various sales characteristics as independent variables. Based on the hybrid model, the feature weights corresponding to each sales feature are determined.
4. The method according to claim 2, characterized in that, The abnormal business entity is identified through the following methods: For the spatial distribution map corresponding to each main slice, perform the following processing: The spatial distribution map is overlaid with the consumption capacity map to generate a target spatial distribution map corresponding to the main slice. The target spatial distribution map describes the consumption level of each business entity within the main slice. The target spatial distribution map is analyzed, and anomaly identification algorithms are used to identify abnormal business entities with significant deviations in sales capabilities.
5. The method according to claim 4, characterized in that, The anomaly detection algorithm includes an anomaly detection algorithm based on local anomaly factors. The abnormal business entities within the target spatial distribution map are identified through the following methods: For each business entity within the target spatial distribution map, execute: Calculate the distance between the business entity and other business entities within the target spatial distribution map, excluding the business entity itself, and determine the distance calculation results; Based on the distance calculation results, the nearest neighboring business entities corresponding to this business entity are determined: Based on the neighboring business entities, the local reachability density of the business entity is calculated, whereby the local reachability density represents the density relationship between the business entity and its neighboring business entities. Calculate the local anomaly factor corresponding to the business entity based on the local accessibility density between the business entity and its neighboring business entities; Based on the local anomaly factor and the first anomaly threshold, the abnormal business entities within the target spatial distribution map are determined.
6. The method according to claim 5, characterized in that, The local anomaly factor is determined using the following formula: In this formula, Indicates the business entity In its Neighboring business entities Local anomalous factors below Indicates the business entity corresponding Neighboring business entities The resulting cluster of neighboring business entities Indicates neighboring business entities The corresponding locally reachable density, Indicates the business entity The corresponding locally reachable density.
7. The method according to claim 4, characterized in that, The anomaly detection algorithm includes an anomaly detection algorithm based on isolated trees. The abnormal business entities within the target spatial distribution map are identified through the following methods: Using a comprehensive score of geographical location and consumption capacity as sample features, a feature vector is constructed for each business entity within the target spatial distribution map, and the feature vector is used as the training sample for the business entity. Based on all training samples of the target spatial distribution map, perform model training based on the isolated forest to form an isolated forest model based on the target spatial distribution map; For each business entity, the entity is fed into the isolated forest model to calculate the anomaly score corresponding to that entity; By combining the second anomaly threshold and the anomaly score of each business entity, the abnormal business entities within the target spatial distribution map are identified.
8. The method according to claim 4, characterized in that, The anomaly detection algorithms include anomaly detection algorithms based on local anomaly factors and anomaly detection algorithms based on isolated anomalies. The abnormal business entities within the target spatial distribution map are identified through the following methods: Using an anomaly identification algorithm based on local anomaly factors, the local anomaly factors of each business entity within the target spatial distribution map are calculated; Using a comprehensive score of geographical location and spending power as sample features, a feature vector is constructed for each business entity within the target spatial distribution map. An anomaly detection algorithm based on isolated forests is used to calculate the anomaly score for each business entity within the target spatial distribution map; For each business entity within the target spatial distribution map, the local anomaly factor and the anomaly score are weighted to obtain the target anomaly score corresponding to each business entity; Based on the target anomaly score and the third anomaly threshold, the abnormal business entity is determined.
9. A device for identifying abnormal business entities based on consumption level matching, characterized in that, The device includes: The data acquisition module is used to acquire sales data within the target sales territory, which includes multiple business entities operating the target products. The consumption capacity generation module is used to perform multi-dimensional sales characteristic analysis on the sales data. Based on the analysis results, it generates a consumption capacity map of the target area based on the target sales products. The consumption capacity map displays multiple business entities in different colors, with different colors indicating different consumption levels. The spatial distribution map generation module is used to slice multiple business entities according to different consumption levels, obtain multiple entity slices that correspond one-to-one with multiple consumption levels, and construct a corresponding spatial distribution map for each entity slice by the business entities within that entity slice. The spatial overlay analysis module is used to perform spatial overlay analysis between the spatial distribution map corresponding to each consumption level and the consumption capacity map to identify abnormal business entities.
10. An electronic device, characterized in that, include: The device includes a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus. The machine-readable instructions are executed by the processor to perform the steps of the business entity anomaly identification method based on consumption level matching degree as described in any one of claims 1 to 8.
